Hello all,
As you may know from some of my previous posts and messages on the #VideoLAN IRC channel, I have been hard at work over the past few months helping to add VLC support to the video playback synchronisation tool Syncplay. The existing VLC interfaces did not have all the features I needed, so with the help of posts on this forum I made a special interface for communication between Syncplay and VLC. Syncplay is available from: http://syncplay.pl/ and the VLC/Syncplay interface script is available from: https://raw.github.com/Uriziel/syncplay ... ncplay.lua - who knows, this interface might be helpful for other projects as well. A full description of the protocol appears at the top of the file.
NOTE: To use with VLC 2.1 nightlies change the line "while not vlc.misc.should_die() do" to "while true do" within syncplay.lua.
Syncplay synchronises video playback across multiple instances of VLC so that a group of people who all have the same videos can watch them together. Pausing, unpausing and jumping position within a media player is all synchronized, giving everyone connected to the same virtual room a shared viewing experience. Syncplay differs from VLC's netsync function in that all viewers connect to a server and anyone in the same viewing session can control the playback.
Syncplay for VLC has only really been tested on Windows with VLC 2.0.6/2.0.7. It works for some people on Linux, but not for others. If there are any Linux-using Python testers out there who want to figure out why then that'd be great. Similarly, Syncplay waits for 5 seconds before connecting to VLC so that it can connect on the first attempt on slower systems so it'd be great if someone could write some Python code to allow for multiple connection attempts so that this value can be lowered.
To use Syncplay with VLC, users need the Syncplay interface module for VLC. The interface allows Syncplay to query VLC as to what video the user is playing and their position, as well as whether the video or not the video is paused. Furthermore, it allows Syncplay to play, pause and seek within the video, load a new video, and display messages on the OSD.
The interface can be installed when the user installs Syncplay. Optionally, it can be installed by placing the syncplay.lua file in one of the following folders:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\intf\
* Windows (current user): %APPDATA%\VLC\lua\intf\
* Linux (all users): /usr/lib/vlc/lua/intf/
* Linux (current user): ~/.local/share/vlc/lua/intf/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/intf/
P.S. The VLC Addon entry is available from: http://addons.videolan.org/content/show ... ent=159160