Streaming from Youtube almost working!

I’ve just got a youtube video streaming in the Corona Simulator (Not on device nor Xcode Simulator :frowning: ) using media.playVideo and these codes:

http://www.phpkode.com/source/s/youtube-api/youtube-api/YouTubeAPI.inc.php
http://www.phpkode.com/source/s/youtube-api/youtube-api/example.php

If you test the example one you can search for videos and “Stream on Mobile”. If you copy one of the “Stream on Mobile” links and use it like this:

  
url ="Paste the Stream on Mobile link here!"  
  
media.playVideo( url, media.RemoteSource, true)  
  

It will work in the Corona Simulator but with low quality. I need help with viewing it in better quality and on device.
[import]uid: 24111 topic_id: 25693 reply_id: 325693[/import]

@oskwish

Great find! What build are you using? Will these work the current stable build (704)? Finally question (maybe stupid one)

will these lines work as is?

[lua]url =“Paste the Stream on Mobile link here!”
media.playVideo( url, media.RemoteSource, true)[/lua]

Thanks again for sharing that.

Mo
(LairdGames) [import]uid: 100814 topic_id: 25693 reply_id: 103869[/import]

They work if you use the URL generated by the PHP files. I’m using build 786 [import]uid: 24111 topic_id: 25693 reply_id: 103871[/import]

Oh, I see. This means I need a server of my own to run those PHP correct?

Thanks

Mo
(LairdGames) [import]uid: 100814 topic_id: 25693 reply_id: 103878[/import]

No, you could have a local one actually :slight_smile: [import]uid: 24111 topic_id: 25693 reply_id: 103885[/import]

Anyone knows how to get better quality on the videos?
-Oskar [import]uid: 24111 topic_id: 25693 reply_id: 103975[/import]