velazcod / Tinfoil-Facebook

For those users that require a Tinfoil Hat when logging in to Facebook. It creates a sandbox for facebook's mobile site.
248 stars 62 forks source link

Tinfoil for Youtube? #19

Open leethax666 opened 10 years ago

leethax666 commented 10 years ago

It would be amazing. This probably isn't the right place to ask... sorry ;-)

velazcod commented 10 years ago

What do you mean? Why? What would be the advantage of this?

leethax666 commented 10 years ago

Same as the tinfoil-facebook, so the youtube app can't access my phone's data or permissions. Also I prefer open source.

averageapps commented 10 years ago

One could maybe fork the last open source version of Youtube Downloader (available in F-Droid) and modify it to just stream Videos instead of Downloading them, or at least use the relevant code from there that finds the raw Video URL from a Youtube link. This would likely work without a Youtube API key, so open-sourcing the result would be possible. But I don't know if there are any good open video streaming libraries for android. (Maybe just use a VideoView?)

Anyway, I think this would be an interesting project, but probably it won't be very easy to get it working and maintain it, and I won't have time to try programming it in the next months myself. Just sharing some ideas here.

velazcod commented 10 years ago

Actually, it would be fairly easy to do, the source code for Tinfoil already includes all the functionality to play videos, see here: https://github.com/velazcod/Tinfoil-Facebook/blob/master/Tinfoil-for-Facebook/src/main/java/com/danvelazco/fbwrapper/webview/FacebookWebChromeClient.java

We'd just need to write an activity to load the YouTube site instead, the code for Tinfoil is abstracted enough to support this, the abstraction stops at the activity level: https://github.com/velazcod/Tinfoil-Facebook/blob/master/Tinfoil-for-Facebook/src/main/java/com/danvelazco/fbwrapper/activity/BaseFacebookWebViewActivity.java

I could write this, but I'm also very busy for the next month or two. I'll keep this open until I find the time to create the repo and organize things there.

averageapps commented 10 years ago

Oh, I wasn't aware of that functionality. But wouldn't this just use the WebView to display the official mobile Youtube page? I find the official mobile Youtube interface quite aweful, so i was rather thinking about accessing the video directly without a WebView, so it would be quite different from Tinfoil for Facebook' implementation and behavior.

I see your point, though. Your idea would also be less confusing than mine if you call it "Tinfoil for Youtube", because its behavior would be consistent with "Tinfoil for Facebook". So I guess I was imagining a totally different app for a different use case.

narayaan commented 6 years ago

Jumping on this issue, but skytube might be the app that you need, check it out: https://github.com/ram-on/SkyTube

Roboe commented 6 years ago

I'm using @TeamNewPipe's NewPipe on a daily basis for two years, already. Awesome UI with pretty complex features on top of the scraped YouTube's mobile web. Only available on F-Droid because Google Play won't accept not using the YouTube API.

kofalt commented 6 years ago

Second opinion: I agree with @Roboe, NewPipe is amazing and I heartily endorse it!

narayaan commented 6 years ago

Ok, I'm quite happy with SkyTube myself, but I might want to compare one day. Seems like Skytybe uses some code of newpipe as well.