Using setResolvedUrl on a local file?
#1
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 -

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.
Reply
#2
What's the debug log say? Do you see it attempting to open the file?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Unfortunately I didn't get a debug log, as I have a limited time testing (only when the free game is on). I'll get one tomorrow or maybe someone else will provide one.

When I selected the item to play the 'opening stream' dialog opens and stays there until you hit cancel.

Code:
17:27:25 T:2859465584 M:1857069056  NOTICE: Mode: 9
17:27:25 T:2859465584 M:1857069056  NOTICE: URL:
17:27:25 T:2859465584 M:1857069056  NOTICE: Name: Chicago White Sox Coverage CSC-HD
17:29:00 T:3078621040 M:1849348096   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mlbmc..........
Reply
#4
Are you setting the property "isplayable" on the item being listed?
Reply
#5
jmarshall Wrote:What's the debug log say? Do you see it attempting to open the file?

It doesn't look like it to me -
Code:
17:50:42 T:2895092592 M:1878028288  NOTICE: Mode: 9
17:50:42 T:2895092592 M:1878028288  NOTICE: URL:
17:50:42 T:2895092592 M:1878028288  NOTICE: Name: Detroit Tigers Coverage FSD-HD
17:50:43 T:3077519216 M:1878097920    INFO: Loading skin file: DialogProgress.xml
17:50:43 T:3077519216 M:1878097920   DEBUG: ------ Window Init (DialogProgress.xml) ------
17:50:54 T:3077519216 M:1874292736   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-i486-linux.so)
17:50:54 T:3077519216 M:1874292736   DEBUG: Unloading: ImageLib-i486-linux.so
17:50:54 T:3077519216 M:1874292736    INFO: CheckIdle - Closing session to http://mediadownloads.mlb.com (easy=0x9bc6520, multi=0xa06c400)
17:51:04 T:2909797232 M:1873760256   DEBUG: Thread 2909797232 terminating (autodelete)
17:51:25 T:3077519216 M:1873637376   DEBUG: SECTION:UnloadDll(libcurl-gnutls.so.4)
17:51:25 T:3077519216 M:1873637376   DEBUG: Unloading: libcurl-gnutls.so.4
17:51:27 T:3077519216 M:1873289216   DEBUG: SDLKeyboard: scancode: 51, sym: 92, unicode: 92, modifier: 0
17:51:27 T:3077519216 M:1873289216   DEBUG: OnKey: 61676 pressed, action is ToggleFullScreen
17:51:27 T:3077519216 M:1873416192   ERROR: GLX: Same window as before, refreshing context
17:51:27 T:3077519216 M:1873416192    INFO: GL: Maximum texture width: 2048
17:52:12 T:3077519216 M:1875931136   DEBUG: WaitOnScriptResult- cancelling plugin MLBMC
17:52:12 T:3077519216 M:1875931136    INFO: Stopping script with id: 9
17:52:12 T:3077519216 M:1875931136   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.mlbmc/?url=&mode=9&name=Detroit+Tigers+Coverage+FSD-HD+&event=14-288140-2011-07-01&content=16170495&session=syO4lG%2BnPRAFeIsVas9XzKgRCe4%3D&cookieIp=33486267&cookieFp=MTMwOTU2MDYzMTY1OXxlbWFpbC1wYXNzd29yZHxRM29LcDhVZGpYWk1jU3ZKUlk0S29uc3JsZUk9&scenario=HTTP_CLOUD_WIRED]
17:52:12 T:3077519216 M:1875931136   DEBUG: Playlist Player: one or more items failed to play... aborting playback

I tried adding xbmc.sleep(5000) after calling the mlb-hls client with the url, thinking that it may need a little time for the file to generate. It didn't seem to have any effect.

Code:
Are you setting the property "isplayable" on the item being listed?

Yeah, it workes properly with the rtmp:// url's.

edit:
I'm thinking I may be able to work around this by not using 'isPlayable' and play the file from a play-list. The question was raised in our development thread 'can xbmc play from stdin?' or should I use special://temp ?

Any thoughts advice appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
Using setResolvedUrl on a local file?0