9

I need to play videos from Youtube as MP4.

My system (an Android Phone) does not support Flash.

It can play MP4 videos.

So I'm thinking of creating a web page that plays videos from Youtube.

I need to get MP4 videos to play in my page.

What approaches are there?

Wayne Koorts
  • 10,861
  • 13
  • 46
  • 72
Abi
  • 4,718
  • 4
  • 20
  • 29
  • 4
    [YouTube Terms of Service](http://www.youtube.com/t/terms): "You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate." – ephemient Feb 09 '11 at 07:13

4 Answers4

2

Did you actually try viewing videos? I have the Droid Eris, which shipped with a YouTube app. Try going to the mobile version of YouTube and see if that works out.

Google created Android. Google owns YouTube. Transitivity says you shouldn't have any problems.

Andrew
  • 12,172
  • 16
  • 46
  • 61
  • 4
    Hi, I tried viewing. It is not able to view youtube. My Android stack doesnt support flv. it is optimized stack. I can play mp4. – Abi Jan 20 '11 at 05:09
  • Oh. That's way over my head, then. (Deleted my previous comment before I saw you replied, sorry! Was going to sugest an app...but...I doubt that'll help.) – Andrew Jan 20 '11 at 05:31
2

Take a look at this related question, where the OP has figured out a hacky way to get the necessary ID and checksum parameters for the get_video "API". Streaming Youtube Videos

He successfully played back the stream in the VideoView component. You can use the fmt parameter for choosing which format you want, see wikipedia for a list: http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs

Good luck.

Community
  • 1
  • 1
Junibert
  • 46
  • 6
1

Why not consider using Mobile youtube interface

Neera
  • 1,577
  • 8
  • 10
1

Youtube provides alternative RTSP(real time streaming protocol) links for all existing videos.. dig into youtube api and try to get it. once you get it you can try code playing the video invoking the inbuilt player to play those videos

Cheers.

Jana
  • 2,890
  • 5
  • 35
  • 45