Well,
You can use the following when using the Player:
player= pymedia.Player()
player.start()
player.setStart( 15 ) # in seconds
player.startPlayback()
while player.isPlaying():
print 'Current position: ', player.getPosition()
time.sleep( 1 )
Hope this helps.
Dmitry/
-----Original Message-----
From: Jeffrey Barish <[EMAIL PROTECTED]>
To: [email protected]
Date: Fri, 7 Jul 2006 15:47:57 -0600
Subject: [Pymedia-users] Starting play from arbitrary point
>
> I may have just answered one of my questions. It still looks to me as if
> Player is a higher-level way of playing a sound file. I was wondering why I
> would ever want to bother with all the complexities of the player described
> in the tutorial, but it seems that Player does not permit playback from an
> arbitrary time, only from the beginning of the file. Too bad. I hope that
> someone tells me that I am wrong. Would it be hard to add this feature to
> Player?
>
> I also need a way to keep track of where I am in the playback -- another
> capability that seems to be lacking in Player -- but I was thinking that I
> could use Callback to count frames. It would be nice to have a getPosition()
> method.
> --
> Jeffrey Barish
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Pymedia-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pymedia-users
>
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users