Tinfoil-Facebook icon indicating copy to clipboard operation
Tinfoil-Facebook copied to clipboard

Tinfoil for Youtube?

Open leethax666 opened this issue 10 years ago • 9 comments

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

leethax666 avatar May 01 '14 00:05 leethax666

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

velazcod avatar May 01 '14 00:05 velazcod

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

leethax666 avatar May 01 '14 18:05 leethax666

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.

averageapps avatar May 07 '14 16:05 averageapps

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.

velazcod avatar May 07 '14 16:05 velazcod

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.

averageapps avatar May 07 '14 17:05 averageapps

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

narayaan avatar Apr 12 '18 15:04 narayaan

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.

Roboe avatar Apr 12 '18 16:04 Roboe

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

kofalt avatar Apr 13 '18 16:04 kofalt

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.

narayaan avatar Apr 16 '18 16:04 narayaan