13-10-2017, 21:13
VideoPlayer: Opening: 894RAXUNHOGU"
20:11:13.288 T:6164 WARNING: CDVDMessageQueue(player):ut MSGQ_NOT_INITIALIZED
20:11:13.289 T:6164 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 104 for 1.
20:11:13.289 T:6164 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
20:11:13.293 T:3652 NOTICE: Creating InputStream
20:11:13.288 T:6164 WARNING: CDVDMessageQueue(player):ut MSGQ_NOT_INITIALIZED
20:11:13.289 T:6164 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 104 for 1.
20:11:13.289 T:6164 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
20:11:13.293 T:3652 NOTICE: Creating InputStream
Код:
def PLAY(name,url,iconimage):
link = 'http://192.168.0.116/player/cbplayer/embed_player.php?vid=' + url #Конструираме адреса за достъп до видеото
req = urllib2.Request(link) #link е адресът http://http://192.168.0.116/player/pak_player/embed_player.php?vid=894RAXUNHOGU
opener = urllib2.build_opener()
f = opener.open(req)
jsonrsp = json.loads(f.read().replace('http://http://192.168.0.116/player/pak_player/pakplayer.swf?config=',''))
#print jsonrsp['clip']['url']
li = xbmcgui.ListItem(iconImage=iconimage, thumbnailImage=iconimage, path=url)
li.setInfo('video', { 'title': name })
try:
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, xbmcgui.ListItem(path = url))
except:
xbmc.executebuiltin("Notification('Грешка','Видеото липсва на сървъра!')")
Код:
elif mode==3:
print ""+url
PLAY(name,url,iconimage)