OK, so here's how I solved the problem, albeit imperfectly.
I wrote a Perl script "button.pl" that takes as arguments the panel,
column, and row of the SoundPanel button to be pushed. It starts the
specified button using a PP RML command, then saves the panel, row, and
column to a file in /tmp.
The next time the script is run, it reads the panel, column, and row of
the button that was started last (and which might still be playing) fro
/tmp. After starting the new button, it issues a PT command to stop the
previous one. Before doing so, it checks to make sure the button to be
stopped isn't the same as the one it just started.
There are tao remaining issues. Normally when you push a SoundPanel
button, you can stop it by pushing the same button again. I can't get my
script to emulate that behavior because it can't tell whether any button
is already playing. I had thought of having it read caed.log, but that
strikes me as ugly.
The other issue concerns programming the script into a Rivendell macro
cart. This line will work:
RN /home/scott/rml/button.sh S1 3 2!
This one will not work:
RN /home/scott/rml/button.pl S1 3 2!
I've never been able to get a .pl script to play from a cart; I've always
had to invoke it from a .sh script, and run the .sh script from the cart.
This is no big deal, but it is a bit inconvenient.
Rob
--
Я там, где ребята толковые,
Я там, где плакаты "Вперёд",
Где песни рабочие новые
Страна трудовая поёт.
On Sat, 15 Sep 2018, Fred Gleason wrote:
On Sep 14, 2018, at 11:44, Tim Camp <[email protected]> wrote:
I believe you just set second, 3rd, 4th, and 5th playout cards
to "none" in rdadmin rdairplay
All that will do is change the output port used for those subsequent
play-outs. There is no simple setting to limit SoundPanel play-outs to one
at a time.
Cheers!
|----------------------------------------------------------------------|
| Frederick F. Gleason, Jr. | Chief Developer |
| | Paravel Systems |
|----------------------------------------------------------------------|
| A room without books is like a body without a soul. |
| -- Cicero |
|----------------------------------------------------------------------|
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev