2012-09-16, 00:51
xbmc-iplayer seems to suffer from the same problem...
this is code in the addon, 1chanell
this is code in the addon, 1chanell
Code:
stream_url = urlresolver.HostedMediaFile(url=url).resolve()
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
playlist.clear()
// some metadata code here
playlist.add(url=stream_url, listitem=listitem)
player = playback.Player(imdbnum=imdbnum, video_type=video_type, title=title, season=season, episode=episode, year=year)
player.play(playlist)
while player._playbackLock.isSet():
xbmc.sleep(250)
Code:
22:25:59 T:1220281440 ERROR: Leaving Python method 'XBMCAddon_xbmc_Player_play'. Exception from call to 'play' 'Incorrect type passed to "play", was expecting a "p.PlayList" but received a "p.XBMCAddon::xbmc::PlayList"' ... returning NULL
22:25:59 T:1220281440 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: Incorrect type passed to "play", was expecting a "p.PlayList" but received a "p.XBMCAddon::xbmc::PlayList"