Problems with rc commands from another app.
Posted: 23 Nov 2024 04:49
Hi All
The Target:
Rpi Zero W has push buttons to select Video's in a Museum.
Buttons can be pressed in the middle of another video to change to another.
The app is written in FreeBasic and uses the Pipe command:
ie:Now this is where the issues come in.If I close the Pipe and re-open it with different
video information, the vlc screen closes and reverts to the cli.
It then has to re-open the vlc screen to play the next selection.
The idea is to stop the playing video and tell vlc to play another.
Reading and Googling until I was googly eyed, I cannot resolve how to use the rc commands to achieve this.
Yes, I can see all the different commands and dream about using , stop , play etc.
Whatever I have tried results in vlc not recognising the command.
In FreeBasic, once the Pipe is opened, you then send the next commands by using a print statement.
ie: Print #1, "stop"
Which works, But
Print #1,"play Video2.mov"
or
Print #1,"play 'Video2.mov'"
don't, I get the following screen print.
Any suggestions greatly appreciated.
Regards
The Target:
Rpi Zero W has push buttons to select Video's in a Museum.
Buttons can be pressed in the middle of another video to change to another.
The app is written in FreeBasic and uses the Pipe command:
ie:
Code: Select all
PipeCmnd = "vlc -I rc Video1.mov fullscreen"
Open Pipe PipeCmnd for Output as #1
StartTime = Timer
do
Here I wait for a button press and decide what action to take.
loop
video information, the vlc screen closes and reverts to the cli.
It then has to re-open the vlc screen to play the next selection.
The idea is to stop the playing video and tell vlc to play another.
Reading and Googling until I was googly eyed, I cannot resolve how to use the rc commands to achieve this.
Yes, I can see all the different commands and dream about using , stop , play etc.
Whatever I have tried results in vlc not recognising the command.
In FreeBasic, once the Pipe is opened, you then send the next commands by using a print statement.
ie: Print #1, "stop"
Which works, But
Print #1,"play Video2.mov"
or
Print #1,"play 'Video2.mov'"
don't, I get the following screen print.
Code: Select all
dinosaur@debian:~/projects/SimpleVLC$ ./Test
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
VLC media player 3.0.21 Vetinari
Command Line Interface initialized. Type `help' for help.
> VLC media player 3.0.21 Vetinari
Command Line Interface initialized. Type `help' for help.
> libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
Shutting down.
> Shutting down.
dinosaur@debian:~/projects/SimpleVLC$
Regards