External app using MediaIntent to send Youtube video to XBMC problem
#1
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
Reply
#2
Managed to get some progress.

The url I need to send to PlayMedia is in the form
plugin://plugin.video.youtube/?action=play_video&videoid=<youtubeid>

The MediaIntent in XBMC doesn't capture urls starting with plugin (only those which start with http) so this should be changed in the app. Will post a feature request on that.

By sending the url in the required format, I've managed to confirm that the youtube video is playing.
Reply
#3
Not sure what you mean but xbmc should be able to take a plugin:// as play argument given it is formed correctly (and that the plugin can turn it into a properly streamable url, i.e. http in this case).
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply

Logout Mark Read Team Forum Stats Members Help
External app using MediaIntent to send Youtube video to XBMC problem0