Any ideas about controling windows media player in Python? I found the following code on the net which runs fine but no audio is played. am using win7 64 bit machine
<
It helps me to use Windows Media COM. When I tried it, I need to make 2 small modification to make it working in Python Flask.
pythoncom.CoInitialize()
and pythoncom.CoUninitialize()
while mp.PlayState != 1: pythoncom.PumpWaitingMessages()