2014-04-21, 00:18
Hello all,
I'm newbie to writing video addon. Please help me out much appreciate.
I'm trying to write a video addon to play this link below, but it doesn't work. I can't figure out why. Please help!!!:
http://star.zing.vn/flash/zingStarPlayer...etype=.swf
I'm newbie to writing video addon. Please help me out much appreciate.
I'm trying to write a video addon to play this link below, but it doesn't work. I can't figure out why. Please help!!!:
http://star.zing.vn/flash/zingStarPlayer...etype=.swf
Code:
addon_handle = int(sys.argv[1])
xbmcplugin.setContent(addon_handle, 'movies')
url = 'http://star.zing.vn/flash/zingStarPlayer.swf?username=&status=karaoke&song_id=3787&recorder_id=&urlDemo=http://image.star.zing.vn/flash/&domain=http://star.zing.vn&filetype=.swf'
li = xbmcgui.ListItem('My First Video!', iconImage='DefaultVideo.png')
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li)
xbmcplugin.endOfDirectory(addon_handle)