2011-02-22, 01:36
diliban Wrote:Hi,Hi, I don't know how you are telling xbmc to execute the command, but it sounds like you're having trouble with handles and video playback as was explained in the post on page 33:
I am new to XBMC and python plugins. I was able to figure out how to call the Youtube plugin with the video id (page 33 of this thread). But when I do call the plugin I get the following error in the log.
Code:14:03:37 T:5904 M:1049944064 ERROR: XFILE::CPluginDirectory::SetResolvedUrl - called with an invalid handle.
When I copy the link and paste it in Chrome browser, the file starts downloading with out any issues. So why is XBMC not playing the link? Can you please help?
http://forum.xbmc.org/showpost.php?p=628...tcount=321
It is very important that the url you pass is executed with a call like XBMC.PlayMedia(<plugin url>)
as xbmc will otherwise give it the wrong handle for video playback and the operation will fail
diliban Wrote:Also on a different note, how do I call the plugin with a playlist parameter? Currently my URL is of the formatI Don't know what you're trying to accomplish but I'm guessing that it would be to queue a playlist of "plugin" video items and start playback, this is as far as i know currently impossible with XBMC.
Code:http://www.youtube.com/p/0F50DD75842E0226?hl=en_US&fs=1
I am passing this to the API
[/CODE]
http://gdata.youtube.com/feeds/api/playlists/....[/CODE] to get the individual video ids and then calling the youtube plugin. I am hoping I can just call the plugin with the Playlistid. is that possible ? if so how? I did try changing the videoid to playlistid in the plugin call but I got an error.
any help on this is appreciated
Thanks
I've tried implementing something like this in the plugin:
Code:
xbmc.executebuiltin('XBMC.Action(Queue(plugin://plugin.video.youtube.beta/?path=/root/playlists&feed=playlist_root&playlist=02B8B3DB2F90E8BD))')
player = xbmc.Player()
player.playnext()
A lot of users have been asking for similar functionality (albeit from within xbmc), so I've also created a patch for XBMC that would allow someone to implement similar behavior by adding a new builtin function "PlayAll(<plugin path>)" (see trac ticket: http://trac.xbmc.org/ticket/10959).
But the horizon for getting this patch accepted and committed to trunk seems to be very long, so we'll probably see if we can't code around it for the next beta.
tl;dr: Auto play of YouTube playlists not possible yet..
In case you're trying to do something else with playlists please elaborate