process - Creating, controlling, and destroying a Movie in Java -
I am trying to create a piece of software that starts the movie (.m4v) in the original movie viewer Please, let's run the movie and turn it off when I was thinking of using the process
, but after a few hours and after some Google searches, I was unable to find out Here's what I have to do:
Runtime Runtime = Runtime.GetRight (); Try {process process = runtime. Exec ("A: \\ test.m4v"); } Hold (IOException e) {e.printStackTrace (); }
I get an error: java.io.IOException: Can not run the program "A: \ test.m4v": CreateProcess error = 193,% 1 is valid Win32 is not the application
What am I doing wrong? What should I do to start this movie? What do I need to do to create a full screen of the movie?
Try entering wmplayer .exe / play / close A: \\ test.m4v
In your .exec
method, if you know that .m4v
can be viewed on Windows Media Player. Or just select a different compatible player instead of Mplayer2.exe.
After the video has expired, it automatically closes the / shutdown
command-line.
For example, the code snippet below opens WMedia Player and plays MP4 video in full screen mode.
runtime runtime = runtime.gettime (); {Try process = runtime.exe ("C: \\ program files \\ Windows Media Player \\ wmplayer.exe / play / fullscreen C: \\ 56775-download.mp4"); } Hold (IOException e) {e.printStackTrace (); }
Comments
Post a Comment