Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to play video stream without Piped proxy #2817

Open
3 tasks done
ARBoyGo opened this issue Aug 15, 2023 · 21 comments
Open
3 tasks done

Option to play video stream without Piped proxy #2817

ARBoyGo opened this issue Aug 15, 2023 · 21 comments
Labels
enhancement New feature or request

Comments

@ARBoyGo
Copy link

ARBoyGo commented Aug 15, 2023

Describe the feature

In libretube we can turn off Proxy for video stream.

Why would this be useful to add?

In current state, It' s useful and we just need to turn on our VPN.

Concept(s)

No response

Additional context

No response

Acknowledgements

  • I have searched the existing issues and this is NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this form.
@ARBoyGo ARBoyGo added the enhancement New feature or request label Aug 15, 2023
@ARBoyGo
Copy link
Author

ARBoyGo commented Aug 15, 2023

I was checking more on it. And saw this. #794 (comment)

@ARBoyGo ARBoyGo closed this as completed Aug 15, 2023
@ARBoyGo ARBoyGo reopened this Aug 15, 2023
@Bnyro
Copy link
Member

Bnyro commented Aug 15, 2023

That linked issue is about something different.

@Bnyro
Copy link
Member

Bnyro commented Aug 15, 2023

This issue is reasonable in my opinion due to the recent YouTube rate limiting waves.

@deroverda
Copy link

This issue is reasonable in my opinion due to the recent YouTube rate limiting waves.

Noob here. Is it YouTubes fault that piped is not working more than it is actually working?

@smol-loli
Copy link

Noob here. Is it YouTubes fault that piped is not working more than it is actually working?

Assuming that i understand your question the right way, yes, it's Youtubes fault that piped is not working because they are rate limiting very heavily (by piped server IPs). Also, it's Youtubes fault that we even need piped :)

@deroverda
Copy link

Noob here. Is it YouTubes fault that piped is not working more than it is actually working?

Assuming that i understand your question the right way, yes, it's Youtubes fault that piped is not working because they are rate limiting very heavily (by piped server IPs). Also, it's Youtubes fault that we even need piped :)

Yes you understood my question. Damn, bloody YouTube. I wonder what will happen now then if they continue with this rate limiting bullocks.

@chev2
Copy link

chev2 commented Aug 17, 2023

I'm assuming such an option would be toggleable per-user and not a global option for the instance owner to change, right?

Also, on top of the benefits mentioned already, this option could additionally help users on instances with heavy traffic load as they would not have to deal with slow video delivery times (I've noticed some instances are pretty slow to buffer videos, likely because of this proxying). Furthermore it could help instance owners offload bandwidth usage, even if by a little bit.

@Bnyro
Copy link
Member

Bnyro commented Aug 17, 2023

Yes, the option would be a user preference in the Piped frontend - the proxy will stay enabled by default because probably not all users use a VPN by default. By using Piped you expect to not send any requests directly to YT anymore, and that's how it should stay (if not changed explicitly).
And if added, there'll probably also be a privacy warning when enabling.

@Bnyro
Copy link
Member

Bnyro commented Aug 17, 2023

Nevertheless, @FireMasterK has the last word on whether we implement an option to disable the proxy, or not.

Also, videos from YouTube music probably don't work when the proxy is disabled, which should be noted here.

I would work on this if Kavin agrees.

@FireMasterK
Copy link
Member

Nevertheless, @FireMasterK has the last word on whether we implement an option to disable the proxy, or not.

Also, videos from YouTube music probably don't work when the proxy is disabled, which should be noted here.

I would work on this if Kavin agrees.

I'm already working on this. This cannot be done without an extension, as we have to deal with CORS. I'm working on adding support for it in https://github.com/TeamPiped/piped-redirects. Maybe this functionality could also be added to Privacy Redirects too?

@deroverda
Copy link

So the reason https://piped.kavin.rocks hasn't worked (videos don't play) for many days now is because of YouTube? I just want to know so I know its not something that is wrong on my end. Is this instance also not working for everyone else? Should I switch instance or are none working?

@Bnyro
Copy link
Member

Bnyro commented Aug 17, 2023

Yes, see #2809.

@Qaz-6
Copy link
Contributor

Qaz-6 commented Aug 18, 2023

It is possible to run this feature without a VPN.However, it doesn't open all videos both with and without VPN.🤔

I have used on LibreTube.We will not be able to run LibreTube

@felschr
Copy link
Contributor

felschr commented Oct 20, 2023

I'm already working on this. This cannot be done without an extension, as we have to deal with CORS. I'm working on adding support for it in https://github.com/TeamPiped/piped-redirects. Maybe this functionality could also be added to Privacy Redirects too?

Perhaps Piped could add an option to use the official YouTube embed iframe.
It does provide an API for play, pause, stop, seek, volume, mute, etc., so most of the functionality of piped should:
https://developers.google.com/youtube/iframe_api_reference

Downsides:

  • ads can't be removed (docs)
  • more Google tracking
  • not all of the YT embed UI elements can be hidden

This option should include a warning to explain the risks, but it's probably the only feasible Proxy alternative that doesn't require an extension.

It's still a better compromise for users that would otherwise fall back to using youtube.com instead when the proxy is down.

@ARBoyGo
Copy link
Author

ARBoyGo commented Oct 20, 2023

That's not needed IMO, Cause Invidious has option to turn off proxy.

@ARBoyGo
Copy link
Author

ARBoyGo commented Oct 20, 2023

There is a reason why, I recommend this feature, Because not many people care about privacy they just wanna get rid of Ads. Having proxy makes loading the video slower.

@felschr
Copy link
Contributor

felschr commented Oct 20, 2023

Interesting, it does indeed seem to work on Invidious.
I've just tried this on an instance and it connects to:
https://rr5---sn-5hne6nsy.googlevideo.com/videoplayback

@felschr
Copy link
Contributor

felschr commented Oct 20, 2023

@Bnyro
Copy link
Member

Bnyro commented Oct 20, 2023

Invidious doesn't use DASH but MPEG-4 streams containing audio and video at once. Drawbacks

  • much slower loading times
  • only very few available qualities to choose from
  • throttling by YouTube possibly
  • some livestreams won't play

@Qaz-6
Copy link
Contributor

Qaz-6 commented Nov 26, 2023

I'm already working on this. This cannot be done without an extension, as we have to deal with CORS. I'm working on adding support for it in https://github.com/TeamPiped/piped-redirects. Maybe this functionality could also be added to Privacy Redirects too?

Perhaps Piped could add an option to use the official YouTube embed iframe. It does provide an API for play, pause, stop, seek, volume, mute, etc., so most of the functionality of piped should: https://developers.google.com/youtube/iframe_api_reference

Downsides:

  • ads can't be removed (docs)
  • more Google tracking
  • not all of the YT embed UI elements can be hidden

This option should include a warning to explain the risks, but it's probably the only feasible Proxy alternative that doesn't require an extension.

It's still a better compromise for users that would otherwise fall back to using youtube.com instead when the proxy is down.

This is not a good idea. It would be great to use YouTube.js 🤔instead.https://github.com/LuanRT/YouTube.js

@felschr
Copy link
Contributor

felschr commented Sep 11, 2024

With #3658 this seems more relevant now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants