User Tag List

Results 1 to 8 of 8

Thread: launch an external file .AVI with MMF2 Dev?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    launch an external file .AVI with MMF2 Dev?

    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

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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.
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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?

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by daniele View Post
    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.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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??

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    961
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    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.
    Want to learn Clickteam Fusion 2.5?




Similar Threads

  1. Launch another application with the file object?
    By Xeeko in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th September 2012, 05:40 PM
  2. Delete external file AND check if file exists
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 03:39 PM
  3. How to launch an url file?
    By JoKa in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th August 2009, 10:36 PM
  4. To launch a file html or external file
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2009, 07:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •