Enjoy Plex with your friends. In Sync. Together.
Go to file
George Cordalis 7707f0713e
Updated logo path in README
2018-05-27 13:59:32 +12:00
build Disabled uglify 2017-06-22 22:26:24 +10:00
config Webpack assets subdirectory 2017-12-30 13:13:58 +11:00
src Debug joinroom result 2018-02-09 22:54:43 +11:00
static New Logo-long-dark 2017-12-18 21:33:45 +11:00
.babelrc Init 2017-06-12 05:06:34 +10:00
.editorconfig Web 1.0 2017-04-07 15:09:03 +10:00
.gitattributes add .gitattributes 2017-12-30 20:30:03 +11:00
.gitignore Save PTInvites to file 2017-06-09 16:08:19 +10:00
.postcssrc.js Init 2017-06-12 05:06:34 +10:00
LICENSE Re-added LICENSE file 2017-07-27 01:26:51 +10:00
README.md Updated logo path in README 2018-05-27 13:59:32 +12:00
index.html more renaming 2017-12-30 20:47:27 +11:00
package.json v1.5 - Name change 2017-12-13 23:58:15 +11:00
server.js Code changes for rename 2017-12-30 13:07:51 +11:00
webapp.js Undo muthithreading for websockets 2018-03-08 19:11:40 +11:00

README.md

Build Status Version Size Pulls License

SyncLounge (Previously PlexTogether) is a tool to sync Plex content across multiple players in multiple locations.

A live version is available at synclounge.tv. We provide a handful of public SyncLounge Server instances that everyone is free to use. The project can also be built and deployed completely seperate from synclounge.tv.

Live Version

How it works

SyncLounge aims to keep multiple viewing sessions in sync regardless of whether the clients are in the same room or across the globe. To do this SyncLounge utilizes a middle-man server to communicate between each of the SyncLounge clients. Users choose their Plex client, decide on a SyncLounge Server and Room name and join up. Your friends/family can do the same. Whoever joins the room first will become the host.

The host has complete control over a room. Commands they send to their client will be sent through to other people in the room (Play, Pause, Seek etc). If the host starts playing something different, SyncLounge will search all of your available Plex Media Servers for an equiavalent copy, even if it is not from the same Plex Media Server as the Host.

Features

  • Syncing between Plex Clients over the Internet
  • SyncLounge Player
    • Plays content directly within SyncLounge.
    • Built specifically for syncing.
  • Settings to tune SyncLounge to your environment
    • Client Polling Interval - Sets how frequently SyncLounge will poll the client for new information.
    • Sync Flexibility - Sets the acceptable distance away from the host in milliseconds.
      • Sync method:
        • Clean seek - Seeks straight to where the host is.
        • Skip ahead - Seeks 10 seconds ahead, pauses and then resumes 10 seconds later.
      • Plex Media Server blocking - allows you to restrict the servers SyncLounge searches for content.
  • Autoplay content
    • SyncLounge will automatically search all of your available Plex Media Servers for content that is similar to the Host.
  • Plex Media Server Browsing - find, search and fling content to Plex Clients from within SyncLounge.
  • Metadata fetching from Plex Media Server
  • Chat to others in your room
  • Password locked rooms
  • Invite others via generated short link
  • Movies and TV Shows (Music not supported)

FAQ

  • I have to login to Plex.tv on the site, how come?

    • SyncLounge uses your Plex account to fetch details about your Plex Clients and Media Servers to use within the app.
  • Won't you have access to my username, password and Plex account?

    • All of your details are stored client side (in your browser). Absolutely none of your confidential data is sent to our server. You can verify this by inspecting the Network tab within Chrome developer tools or if you would like you can deploy SyncLounge yourself - read the 'Building and deploying' section below.
  • What is sent then?

    • When you've connected to a SyncLounge room, a few details are sent back and forth to the SyncLounge Server to enable syncing. The data sent contains the following:
      • Plex Username
      • Plex User Thumbnail URL
      • Content playing title (Eg. Lord of the Rings: The Fellowship of the Ring)
      • Current timestamp (Eg. 00:35:02)
      • Maximum timestamp (Eg. 03:48:18)
      • Playerstate (Eg. paused, stopped, playing)
      • Client response time (Ping time between you and your Plex Client)
    • SL Server address, SL Server Room and SL Server Room Password are sent to the WebApp when you join a room to create shortened invite links.
  • What about the public server provided by SyncLounge? Is my data safe?

    • We log absolutely nothing to disk. Data is kept within the room instance until you leave or the server restarts. We have enabled SSL on our public servers but if privacy is a concern for you we strongly suggest running your own server. For more details read the 'Building and Deploying' section below.
  • Speaking of SSL, why isn't the site served over HTTPS?

    • While we would love to run the SyncLounge application over HTTPS, doing so forces modern browsers in to blocking all HTTP connections. This effectively stops all communication with Plex Clients which are all HTTP.

Screenshots

Head to the website

Supported Plex Clients

Theoretically, all Plex Clients that implement the Plex Client Protocol will work. As some clients have this implemented slightly differently, compability with SyncLounge may vary. If you have access to one of the untested clients please let us know so we can update our list below.

Some low powered clients may be hard to achieve a perfect sync with (for example: Raspberry Pi clients).

Unsupported

  • Plex Web Player (Chrome/Safari/Firefox)

Supported

  • Plex Media Player
  • Plex Home Theater
  • OpenPHT
  • Rasplex
  • Roku
  • Android
  • Nvidia Shield

Broken

  • iOS (iPhone & iPad)
  • AppleTV
  • Xbox One
  • Xbox 360
  • PS3
  • PS4

Contributing

Please use the Issue tracker here on Github for Issues & Feature requests. We'll gladly merge Pull requests if you're keen to get hands on with the development.

Building and deploying

Docker

This is the official Docker container for SyncLounge: https://hub.docker.com/r/starbix/synclounge

The following tags are available:

  • latest: webapp and server based on alpine
  • server: only server based on alpine
  • dev: development version of webapp and server based on alpine
  • nginx: latest + nginx reverse proxy
docker run \
  --name=synclounge \
	-p 8088:8088 \
	-p 8089:8089 \
	-e DOMAIN=example.com \
  starbix/synclounge

Use this for the nginx tag:

docker run \
  --name=synclounge_nginx \
	-p 80:80 \
	-e DOMAIN=example.com \
  starbix/synclounge:nginx

Building and running the webapp:

  • Make sure you have Node v6+ installed

    • git clone https://github.com/samcm/synclounge
    • cd synclounge
    • npm install
    • npm run build
    • node webapp.js --url=http://example.com/slweb
  • The SL web app will be running at http://ip:8088/slweb.

Running the server:

  • Make sure you have Node v6+ installed

    • git clone https://github.com/samcm/synclounge
    • cd synclounge
    • npm install
    • npm run server
  • The SL server will be running at http://ip:8089/slserver.

Deploying:

  • To run both the SyncLounge webapp and the SyncLounge server through a web server like nginx you will need to make sure you proxy websockets. Example nginx.conf:
    server {
        listen 80;
    	server_name example.com;
    	root /location/of/synclounge/;
    	location /slweb {
    		proxy_pass http://localhost:8088/slweb;
    	    proxy_http_version 1.1;
    	    proxy_set_header Upgrade $http_upgrade;
    	    proxy_set_header Connection "upgrade";
    	}
    	location /slserver {
    		proxy_pass http://localhost:8089/slserver;
    	    proxy_http_version 1.1;
    	    proxy_set_header Upgrade $http_upgrade;
    	    proxy_set_header Connection "upgrade";
    	}
    	location / {
    	    proxy_http_version 1.1;
    	    proxy_set_header Upgrade $http_upgrade;
    	    proxy_set_header Connection "upgrade";
    		proxy_pass http://localhost:8088/slweb;
    	}
    }
    

Developing

You need:

  • Node v6+

    • git clone https://github.com/samcm/synclounge
    • cd synclounge
    • npm install
    • npm run dev
  • Once Webpack has finished compiling, navigate to http://localhost:8080 in your web browser.

Issues

If you run in to any issues:

  • Raise an Issue here on Github. Try to be as detailed as possible by including details such as:

    • Operating System
      • Web Browser name and version
    • Plex Media Server details
      • Version
      • Operating System
      • Location (Local/Remote)
    • Plex Client details
      • Name
      • Version
      • Network connection (Wired/Wifi)
      • Platform
  • Join the Discord Server and raise your issue.

Contributors

samcm - Developer

gcordalis - User Interface

Brandz - Design

TheGrimmChester - Developer/Tester

Starbix - Docker Support

kg6jay - Tester

Contact

Discord Server

Twitter: SyncLounge

License

SyncLounge is licensed under MIT License. See the LICENSE.txt file. SyncLounge is in no way affiliated with Plex Inc.