2014-05-24, 16:01
Hi all,
I'm creating a plugin for a new VOD service in France, and I'm having difficulties using the StartOffset property. As their API provides this it would be possible to stop watching a video on the website and resume it on XBMC, that would be pretty cool.
I'm using XBMCSwift2, and according to their doc :
http://www.xbmcswift.com/en/latest/item.html#properties
(The link is dead here, but the interesting part is here : http://mirrors.xbmc.org/docs/python-docs...etProperty )
So according to this, I should be able to set the start time with :
self.list.getSelectedItem().setProperty('StartOffset', '256.4')
Or with xbmcswitft, by defining a dict of properties, and adding it like I do for infolabels.
It seems that the property is not just ignored, as if I set a value with the wrong type I get a message saying unicode or srt is expected for StartOffset.
But still, when I go in a section with videos with a value set for startoffset, even when I force it to a certain value, I don't get the "resume play" popup.
Am I missing somethin ?
I put the code in a temporary repository if needed : https://dev.gormotte.info/noco_tmp/
Thanks !
I'm creating a plugin for a new VOD service in France, and I'm having difficulties using the StartOffset property. As their API provides this it would be possible to stop watching a video on the website and resume it on XBMC, that would be pretty cool.
I'm using XBMCSwift2, and according to their doc :
http://www.xbmcswift.com/en/latest/item.html#properties
Quote:A dict of properties, similar to info-labels. See http://mirrors.xbmc.org/docs/python-docs...etProperty for more information.
(The link is dead here, but the interesting part is here : http://mirrors.xbmc.org/docs/python-docs...etProperty )
So according to this, I should be able to set the start time with :
self.list.getSelectedItem().setProperty('StartOffset', '256.4')
Or with xbmcswitft, by defining a dict of properties, and adding it like I do for infolabels.
It seems that the property is not just ignored, as if I set a value with the wrong type I get a message saying unicode or srt is expected for StartOffset.
But still, when I go in a section with videos with a value set for startoffset, even when I force it to a certain value, I don't get the "resume play" popup.
Am I missing somethin ?
I put the code in a temporary repository if needed : https://dev.gormotte.info/noco_tmp/
Thanks !