Nuno Durães
Member
Hello everybody.
Once again I ask for your help:
I need to use Windows media player commands to control it via an application to be developed in b4j.
When the application runs, Windows media player is already running, so I can't (I think) access it through JShell.
My application will have a player to play audio spot and whenever it does, it has to pause the Windows media player that is running a playlist.
So and in short, windows media player has an independent execution of my b4x application
I used a batch file for this result. The file outputs, when run directly, but not in b4j.
Used this template:
As additional information, for the purpose of this solution I really have to interact with the windows media player, since it is part of the company's solution to use it to play playlist. But I can use another media player (to be created internally in the b4x application) and pause the windows media player when necessary to intersperse other audio spots.
I must doing something wrong.
Can I resort to batch file using jshell? How do I do that ?
Anticipated thanks
Once again I ask for your help:
I need to use Windows media player commands to control it via an application to be developed in b4j.
When the application runs, Windows media player is already running, so I can't (I think) access it through JShell.
My application will have a player to play audio spot and whenever it does, it has to pause the Windows media player that is running a playlist.
So and in short, windows media player has an independent execution of my b4x application
I used a batch file for this result. The file outputs, when run directly, but not in b4j.
Used this template:
b4x:
Dim sh As Shell
sh.Initialize("sh", "cmd /c C:\path\to\my\file.bat", Null)
sh.Run(-1)
As additional information, for the purpose of this solution I really have to interact with the windows media player, since it is part of the company's solution to use it to play playlist. But I can use another media player (to be created internally in the b4x application) and pause the windows media player when necessary to intersperse other audio spots.
I must doing something wrong.
Can I resort to batch file using jshell? How do I do that ?
Anticipated thanks