xbmc.Player().seekTime
#1
hi ,

im trying to seek this stream that im playing ofer the net.

this is my code

Quote:try:
xbmc.player().play('http://x.com/xxx.wmv')
xbmc.player().seektime(100)
except:
pass

i always get an exception on this but as soon as i slash the seektime line it plays from the start. according to the docs the stream has to be playing before you can seek.

i suppose thats the problem since its probably buffering when i seek. so my question is , is this possible at all using some differnet method ? i.e. something like

Quote:xbmc.player().play('http://x.com/xxx.wmv',100)

regards
arnar
Reply
#2
after looking into this further i have tried numerous things, but this code i think should work ....
Quote: xplay = xbmc.player()
try:
xplay.play(urlreal)
except:
if not emulating: xbmcgui.dialog().ok('err','could not play file or file not found !')

try:
if (bseek):
while not (xplay.isplayingvideo()):
time.sleep(1)
xplay.seektime(100)
except:
if not emulating: xbmcgui.dialog().ok('err','could not seek !')

however it does not, what happens is that it starts playing the stream, it displays the first frame, and then halts for a while and eventually after a few secs exits without an exception (at least the dialog does not appear)

what im thinking is that maybe this is not the correct way to go about it.... in the asx file for this stream i have these parameters.

Quote: <entry>
<title>the title...</title>
<copyright>aha</copyright>
<ref href="http://thesite.net/theitem.wmv" />
<starttime value="00:16:11.0160" />
<duration value="00:01:20.0160" />
</entry>

is it possible to post the starttime somehow as a parameter with the url ? what im thinking is that when i play this file through windows media player 9 i can move the slider to any position at it starts playing from there almost right away, however if i try to fast forward in xbmc.player it takes forever and you feel that it would probably take less time to just watch the clip until it gets to the position that you fast forwarded to.

my question is , is this just a limitation on the mplayer, or is this possible at all?

please respond im starting to think that im in the incorrect forum as im not getting any responses apart from myself !!!

regards



Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.Player().seekTime0