Hi all,

I want to make a custom app for playing ogg files, so i am trying to use pymedia.player but the getLenght() method always return -1.

Here is a simple sample showing the problem :

import time
import pymedia
player=pymedia.Player()
player.start()
player.startPlayback('NTV001.ogg')
while player.isPlaying():
        time.sleep(1)
        print player.getPosition()
        print player.getLength()

getPosition works great but getLengh always is -1.

I am using 1.3.7.0 on win32, i have also tried 1.3.5.0 with the same result.

How should i ask for the total length of the played file?

Thanks for the great pymedia work,

--
César González




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to