» An ultimate catalog of computer data
Forum posts for wmplayer.exe
Playback Complete In Windows Media Player
I launched a subprocess to using its call method to play a video on Window Media Player.
eg.
subprocess.call(''C:/Program Files (x86)/Windows Media Player/wmplayer.exe' 'C:/Users/Public/Videos/Sample Videos/Wildlife.wmv'')
Now, how can I check if the playback is completed in the player for that particular video.
Is there is any direct Api available for the Windows Media Player
Or
there is a way to listen to the subprocess command launched using Popen
eg.
p = subprocess.Popen(''C:/Program Files (x86)/Windows Media Player/wmplayer.exe' 'C:/Users/Public/Videos/Sample Videos/Wildlife.wmv'')
# while the placback is happening
p.wait()
# otherwise
p.kill()
View complete forum thread with replies
Other posts related to wmplayer.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Current playing item in Windows Media Player (wmplayer.exe ver. 12)
Run more of one command in ShellExecute function (C++)
Play() function not working in R [duplicate]
C# string handling how get path and args from a string
Playback Complete In Windows Media Player
Executing a command when closing Batch file