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:
Plugin commands:
The plugin is also checking the hotspot "command" attribute, and the following commands are supported:
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:
| syncrole | syncrole="slave" | one player must be "master" and the others "slave", no default |
| syncstart | syncstart="play" | can be "play" or "pause", default: "play", se NOTES below |
| command | command="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:
Master commands:
If id="all", the command will be sent to all players (the normal way to synchronize the players).
| play | play video |
| stop | stop video |
| pause | pause video |
| play:id | play player with this hotspot id |
| stop:id | stop player with this hotspot id |
| pause:id | pause player with this hotspot id |
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()" /> ...
