Home -> FPP plugins page -> syncflv.swf
This plugin is completely free for use in any context or connection.
syncflv.swf
FPP hotspot plugin with a modified flvplayer.swf. Use this player if you want to synchronize starting and stopping two or more videos. You can of course also control them individually.
The following hotspot attributes are used to control the plugin:

syncrolesyncrole="slave"one player must be "master" and the others "slave", no default
syncstartsyncstart="play"can be "play" or "pause", default: "play", se NOTES below
commandcommand="play:all"plugin commands, see below


Plugin commands:
The plugin is also checking the hotspot "command" attribute, and the following commands are supported:

Master/Slave commands:
playplay video
stopstop video
pausepause video

Master commands:
play:idplay player with this hotspot id
stop:idstop player with this hotspot id
pause:idpause player with this hotspot id

If id="all", the command will be sent to all players (the normal way to synchronize the players).



NOTES:

If you want to synchronize for example three players, then you have to add the attributes syncrole="master" to one of them and syncrole="slave" to the other two (as in the example above). To the master player you can also add syncstart="pause" or syncstart="play" depending on if you want the videos to auto-start playing or to be paused.

You can control all players individually by setting the hotspot's "command" attribute, but you can also let the master player control them by setting the master's "command" attribute and including the ":id" suffix. If you for example set the master's command="pause:all", it will send a "pause" command to all slaves.

In order not to confuse users of flvplayer.swf, the plugin "file=" parameter works as usual. Note, however, that the path given, is from the pano.swf directory, and not as stated in the flvplayer.swf readme file from the flvplayer.swf directory.

Example FPP XML file:

...
<!-- players -->
<box id="video1" url="syncflv.swf?file=moviebox/images/Mio.flv" pan="43.00" tilt="-5.00" rotationX="66.00" rotationY="1.00" depth="3" scale="0.9" blur="1" refreshRate="20" segmentsX="6" segmentsY="4"
   linked="../mariaberget/img/mariaberget2"
   enableSoundPanning="1" soundRadius="140" 
   soundVolume="0.12"
   syncrole="master" syncstart="play"
/>

<box id="video2" url="syncflv.swf?file=moviebox/images/Basshunter.flv" pan="75.30" tilt="-22.00" distance="1.28" rotationX="0" rotationY="-62.00" orientation="sphere" depth="3" scale="1" blur="1" refreshRate="20" segmentsX="6" segmentsY="4"
   linked="../mariaberget/img/mariaberget2"
   enableSoundPanning="1" soundRadius="140"
   soundVolume="0.12"
   syncrole="slave"
/>

<spot id="video3" url="syncflv.swf?file=moviebox/images/Toto.flv" static="1" align="TR" salign="TR" staticX="-10" staticY="10" scale="0.6"
   enableSoundPanning="1" soundRadius="140"
   soundVolume="0.12"
   syncrole="slave"
/>

<!-- play/pause button -->
<spot id="ppbutton" url="images/button.jpg" static="1" align="BR" salign="BR" staticX="-10" staticY="-10"
   onClick="playAll()"
   playAll="video1.command=play:all;onClick=pauseAll()"
   pauseAll="video1.command=pause:all;onClick=playAll()"
/>
...