yes, it's called threading :)
1) make a thread that plays the file
2) spawn this thread from the main thread
3) controll the execution/playing from the main thread
I have implemented this in my mp3 player that can be found at source forge. Look at this file and you may get some hints:
The pymedia_controller thread plays the sound and offers some controller options like pause, stop etc.. There is also an pymedia api class below that class. Hope this little example helps :)
- Rune
On 4/20/06, Jim Swainston <[EMAIL PROTECTED]> wrote:
Hi,
I am currently trying to program a media player as a project. I can play
music files but am having difficulty trying to add some functionality to
the player, such as the ability to pause and rewind. My problem is that
once the sound starts playing, i cant seem to find a way of offering the
user the option to pause by using Sound.pause(). This is because the
Python interpreter doesn't seem to move on to the next statement until
the sound has finished playing. Is there anyway of getting round this?
Thanks
Jim
Thanks
-------------------------------------------------------
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
--
Rune Devik
Siv.ing. Informatikk
