2014-03-16, 22:17
I've a BIG problem with my own plugin.
I show a list of video to the users.
This is ok
When user select a video, I show all available resolutions.
For example: 240p, 360p, 480p, etc...
I created a user preference setting to allow auto play at a specific video resolution.
So I can avoid a step to the users.
This is the step of the problems:
When I must show list of available res, I use a 'classic
But if I found the choosen video resolution, i use this
All is working on Frodo, but in Gotham the systm is expecting a endOfDirectory and so a warning jump to the screen with a (useless) message
"Remote sharing: Unable to connect to server"
I cannot understand why this issue on Gotham and not on Frodo. but I'm here to ask you how to workaround this problem... please help me!
I know it is not good to do a "Play" when xbmc expect a directory, so I ask you a method to avoid this.
I cannot detect video res of every single video at the stage of video listing, because this need to load and scan html from a different htnl page for every single video... it's extermely long for user to wait all of this time
I show a list of video to the users.
This is ok
When user select a video, I show all available resolutions.
For example: 240p, 360p, 480p, etc...
I created a user preference setting to allow auto play at a specific video resolution.
So I can avoid a step to the users.
This is the step of the problems:
When I must show list of available res, I use a 'classic
Code:
xbmcplugin.addDirectoryItem(
handle=jw_config.plugin_pid,
url=url,
listitem=listItem,
isFolder=True
)
But if I found the choosen video resolution, i use this
Code:
xbmc.Player().play(item=url_to_play, listitem=listItem)
return;
All is working on Frodo, but in Gotham the systm is expecting a endOfDirectory and so a warning jump to the screen with a (useless) message
"Remote sharing: Unable to connect to server"
I cannot understand why this issue on Gotham and not on Frodo. but I'm here to ask you how to workaround this problem... please help me!
I know it is not good to do a "Play" when xbmc expect a directory, so I ask you a method to avoid this.
I cannot detect video res of every single video at the stage of video listing, because this need to load and scan html from a different htnl page for every single video... it's extermely long for user to wait all of this time