dyc3 / opentogethertube

Watch videos with your friends. The spiritual successor to TogetherTube, preserving the spirit of it's simple to use interface, while improving it's look, feel, and reliability.
https://opentogethertube.com
GNU Affero General Public License v3.0
396 stars 54 forks source link

Peertube support #221

Open dyc3 opened 4 years ago

dyc3 commented 4 years ago

Relevant documentation: https://docs.joinpeertube.org/api/embed-player

Other: https://github.com/Chocobozzz/PeerTube/issues/468

React with 👍 if you are interested in this

dyc3 commented 2 years ago

This is currently lacking example video links, and its lacking information about how peertube instances work.

dyc3 commented 12 months ago

I did a rough pass at adding support for peertube in #994. Currently, it doesn't use peertube's embed player because the api appears to be broken. It's also a little unclear what to do about instances, so I made them configurable.

stevespaw commented 3 months ago

Does this work? I would love to make this work with our Peertube instances. This link is from the Main Peertube demo: https://peertube2.cpy.re/w/3wBM1yShrDjzy5dLEKF23P

stevespaw commented 3 months ago

https://www.npmjs.com/package/peertube-plugin-player-api

dyc3 commented 3 months ago

It's functional, but right now instances have to be configured ahead of time so that the system knows the link is to a peertube instance

stevespaw commented 3 months ago

The OTT instance would need to be connected to the Peertube instance? That actually would be fine in our potential use case. I have yet to install this I was just trying the online demo. Where is this setting done? Thanks!

dyc3 commented 3 months ago

Not connected per se, the domain of the peertube instance just needs to be whitelisted. https://github.com/dyc3/opentogethertube/blob/ab5242fb4e6acd857a127903599a97374e328226/server/ott-config.ts#L272-L277

So in your production.toml:

[info_extractor.peertube]
instances = ["foo"]
stevespaw commented 3 months ago

Great. If I install via docker, t his file is available?

dyc3 commented 3 months ago

Read this: https://github.com/dyc3/opentogethertube/blob/master/docs/how-to-deploy.md

stevespaw commented 3 months ago

@dyc3 As I have been think about use case - I realized that I had not considered CDN. Can I connect this to a CDN, or is it using the CDN of the source, and just referencing the Current Playtime?

dyc3 commented 3 months ago

This is getting off topic. Open a discussion post: https://github.com/dyc3/opentogethertube/discussions/new/choose