2011-04-20, 09:35
Hi,
I've recently released RedditTV app for Android. Basically, it makes youtube videos popular on reddit.com easily available on your android device.
I'm working now on a feature which allows you to send the YouTube video from my app and to the most popular media centers via existing remote apps. I've got this working for Google TV, and XBMC (w/ youtube add-on) is the next on my list.
I'm able to call the MediaIntent exposed by the XBMC remote app and pass a URL which points to the video. This url is received by my XBMC installation, but I've not been able to get XBMC to play the youtube video.
The key to solving this is to know which youtube url to send. So far I've tried:
1) http://www.youtube.com/watch?v=2zw8SmsovJc
Doesn't work since this is just a web page with embedded video
2)http://www.youtube.com/v/2zw8SmsovJc
Direct link to the flash player
Doesn't work, as XBMC cannot find a player for compress shockwave content
My next option would be to use the streaming url (rtsp).
The url can easily be obtained from http://gdata.youtube.com/feeds/api/videos/2zw8SmsovJc
Will XBMC support a rtsp streaming url (through the PlayMedia command XBMC remote calls)?
If yes, the XBMC remote android manifest must also be update so that MediaIntent also accepts video/* on rtsp protocol.
Any other ideas on how to solve this?
(see from the youtube XBMC add-on that it uses screen-scraping in the parameters in to the flash player and some not straightforward modifications)
Regards
Dagfinn
I've recently released RedditTV app for Android. Basically, it makes youtube videos popular on reddit.com easily available on your android device.
I'm working now on a feature which allows you to send the YouTube video from my app and to the most popular media centers via existing remote apps. I've got this working for Google TV, and XBMC (w/ youtube add-on) is the next on my list.
I'm able to call the MediaIntent exposed by the XBMC remote app and pass a URL which points to the video. This url is received by my XBMC installation, but I've not been able to get XBMC to play the youtube video.
The key to solving this is to know which youtube url to send. So far I've tried:
1) http://www.youtube.com/watch?v=2zw8SmsovJc
Doesn't work since this is just a web page with embedded video
2)http://www.youtube.com/v/2zw8SmsovJc
Direct link to the flash player
Doesn't work, as XBMC cannot find a player for compress shockwave content
My next option would be to use the streaming url (rtsp).
The url can easily be obtained from http://gdata.youtube.com/feeds/api/videos/2zw8SmsovJc
Will XBMC support a rtsp streaming url (through the PlayMedia command XBMC remote calls)?
If yes, the XBMC remote android manifest must also be update so that MediaIntent also accepts video/* on rtsp protocol.
Any other ideas on how to solve this?
(see from the youtube XBMC add-on that it uses screen-scraping in the parameters in to the flash player and some not straightforward modifications)
Regards
Dagfinn