There is an extension to launch a movie.avi? (Not Show movie internal MMF2)
I do not have to open a video file into mmf2, I have to open an avi movie through MMF2. I can not open any exe file, but only with the 'extension. exe and. bat. can you help
There is an extension to launch a movie.avi? (Not Show movie internal MMF2)
I do not have to open a video file into mmf2, I have to open an avi movie through MMF2. I can not open any exe file, but only with the 'extension. exe and. bat. can you help






From your question, I'm guessing you want to open an .avi file external from your MMF2 application?
You could execute the application with an evaluated pathname towards the media player you want to open it with (eg. Windows Media Player) and pass on the AVI file through the command line.
For example:
"C:\Program Files\Windows Media Player\wmplayer.exe" "C:\test.avi"
Would open test.avi in Windows Media Player.
Note that you should include speech marks ( "" ) around the command line if it includes a space.
Hope this helps.
Hello, thanks for your help.
I found an other solution for me. is much simpler and I want to share this. This file may be helpful for everyone.
You can stop a movie that show on windows media player? I wanted to make a movie from mmf2 is this is very simple, but if I want that to stop movie what should I write in the command line?






Sorry, but I don't think its technically possible to stop a movie in Windows Media Player from the command line.
I would suggest you develop your own simple media player separately (the DirectShow object works best for this) and allow your other application to call up this new media player to play the AVI externally rather then Windows Media Player.
Should you want to stop this file playing externally, you can do this a few ways. If you want to do this file-based, create an INI. For your own media player to stop playing this file, you should change the value of this INI (that both programs are accessing) to something like stop=1 ... when your media player detects this change, you can stop the movie. When it's stop=0, you can play it again.
That's one method of doing a workaround on what you might be wanting to accomplish.
Please do ask if you need further help.
Hello, thanks for your help, but I know that solution using an ini file to communicate with other software, but I wanted to use windows media player for particular requirements.
I found all the command line, but there is no command to stop / pause / etc why??






You'd want to ask Microsoft that
Windows Media Player was designed to be a simple media player for Windows, I wouldn't think it was possible to control it via the command line.
The other media player with advanced use is VLC, but I'm not sure that that would have the feature you're looking for.
I have an idea if you want to "stop" the media player altogether, you can use the execute the command "taskkill /F /IM wmplayer.exe" which will forcefully terminate Windows Media Player altogether.

CommandLine is only a trigger for startup of the application, it would be pointless implementing it.
You don't have to use wmplayer.exe to execute an external AVI, just execute the filename itself and Windows will open the associated program.
As far as starting/stopping at runtime you'd be best implementing the Windows Media Player ActiveX and checking for calls on the currently running program and when /stop is run with the commandline action a stop.