2011-07-01, 01:50
In order to get HD streams for the MLB add-on we are using an external HLS player witch writes to a file or wherever you point it.
At this point in the add-on XBMC is expecting setResolvedUrl, Here is the code -
The file plays fine if you browse to it but won't play from the add-on with setResolvedUrl.
Thoughts, advice appreciated.
At this point in the add-on XBMC is expecting setResolvedUrl, Here is the code -
Code:
if not game_url.startswith('rtmp://'):
target = 'mlb -B '+game_url+' -o '+xbmc.translatePath( os.path.join( profile, name.replace(' ','_')+'.ts' ) )
os.system(target)
url = xbmc.translatePath( os.path.join( profile, name.replace(' ','_')+'.ts' ) )
item = xbmcgui.ListItem(path=url)
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
The file plays fine if you browse to it but won't play from the add-on with setResolvedUrl.
Thoughts, advice appreciated.