Peter,
You can find an example of how to control Media Player on Windows (and Quicktime on Mac) by looking at the source code for Transana, which is open-source Python/wxPython software for the transcription and qualitative analysis of video and audio data for researchers.
Start at the Transana web site, http://www.transana.org, and go to the Open Source Development page. At the bottom of the page, you will find links to a page describing all the modules you need to compile and run Transana's source code, as well as a link to CVS for the program.
You will want to look at WindowsMediaPlayer.py, video_msw.py, and VideoWindow.py in particular. The first of those is the lowest level code, the second level abstracts the functionality into an interface which is shared by the video_mac.py module, and the third file does OS detection and I forget what all else.
Okay, so sending you to Transana's source code to answer your question is a bit like using a front end loader to swat a house fly, but, like a house fly, your question can be difficult to get a hand on and can be a bit of a nuisance. Plus, I didn't do the development of that part of the program myself, so I can't be much help to you.
Good luck,
David Woods
Lead Transana Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison
···
-----Original Message-----
From: Peter Damoc [mailto:pdamoc@gmx.net]
Sent: Saturday, May 22, 2004 4:54 AM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] MediaPlayer OCX control
How do I control the MediaPlayer OCX? (load movie, play movie, etc..)
I mannaged to put it on screen but I cannot show the movie...
Any ideeas, suggestions, web pages, hints?
attached is my silly try.
WMP is the module generated by makepy.py (win32com)
--
Peter Damoc
Hacker Wannabe
http://www.sigmacore.net/