Enjoy Plex with your friends. In Sync. Together.
Go to file
dependabot[bot] 59a208a7b6
build(deps-dev): bump @commitlint/cli from 19.5.0 to 19.6.0
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 19.5.0 to 19.6.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v19.6.0/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-19 11:34:53 +00:00
.github ci(action): bump actions/setup-node from 4.0.4 to 4.1.0 2024-10-25 11:56:02 +00:00
config refactor(join): remove recent rooms 2020-10-25 21:57:30 -05:00
public fix(logo): put logo in public to allow static link in servers 2020-08-27 20:22:55 -05:00
src refactor GET_PLEX_PROFILE_EXTRAS and fix lint issues 2024-06-16 21:29:41 -07:00
.browserslistrc Lighten deps 2020-07-31 15:45:20 -05:00
.commitlintrc.js build(commitlint): add commitlint 2020-08-23 21:07:31 -05:00
.dockerignore build(lint): use lint-staged to fix staged lint issues 2020-08-30 18:16:31 -05:00
.editorconfig Initial vuecli conversion. Still much broken. 2020-05-25 17:12:22 -05:00
.eslintrc.js style: fix some lint issues 2023-09-25 17:40:48 -05:00
.gitattributes Added git attributes 2022-01-16 00:43:49 +01:00
.gitignore Dynamic runtime config 2020-07-21 16:28:48 -05:00
.huskyrc ci(pre-commit): lint everything 2020-09-27 17:12:31 -05:00
.lintstagedrc build(lint): use lint-staged to fix staged lint issues 2020-08-30 18:16:31 -05:00
.releaserc build(npm): add npm package deployment 2020-08-31 17:55:14 -05:00
.stylelintrc.js style: fix lint issues 2023-09-25 17:30:34 -05:00
Dockerfile build(docker): bump node from 20.8.1-alpine3.18 to 22.2.0-alpine3.18 2024-07-17 14:46:44 +00:00
Dockerfile.web build(docker): bump nginx from 1.27.0-alpine to 1.27.2-alpine 2024-10-03 11:57:45 +00:00
LICENSE Version 2.0.0 2018-07-20 14:31:44 +10:00
README.md Merge branch 'master' into master 2023-10-26 01:06:49 -05:00
babel.config.js Fix webpack issues until we get webpack 5 2020-08-01 15:16:33 -05:00
package-lock.json build(deps-dev): bump @commitlint/cli from 19.5.0 to 19.6.0 2024-11-19 11:34:53 +00:00
package.json build(deps-dev): bump @commitlint/cli from 19.5.0 to 19.6.0 2024-11-19 11:34:53 +00:00
server.js build(docker): use tini for init 2020-10-14 23:25:13 -05:00
vue.config.js refactor(docker): make builds more repeatable 2020-10-13 00:06:54 -05:00

README.md

SyncLounge

App npm Docker Version Docker Size Docker Pulls Release Dependencies Dev Dependencies License

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

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 equivalent 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)

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, compatibility 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
  • iOS (iPhone & iPad)
  • AppleTV

Broken

  • Xbox One
  • Xbox 360
  • PS3
  • PS4

Documentation

Installation

By default, it listens on port 8088. All the paths are relative, so you can use a reverse proxy at any subdirectory or subdomain without any additional configuration to SyncLounge. In this version, the webapp and socket server are combined so you only need to proxy that one port if you are using a reverse proxy.

Docker

Using the Docker image is the easiest path because it works out of the box. You can get it running immediately by

docker pull synclounge/synclounge
docker run -p 8088:8088 synclounge/synclounge:latest

You can use environment variables to change any of the default configuration.
Note that nested objects and arrays can be passed as environment variables in the following way:

AUTHENTICATION='{"mechanism":"plex","type":["server"],"authorized":["MACHINE_ID"]}'

SERVERS='[{"name":"My Server","location":"Mothership","url":"https://myserver.com","image":"https://myserver.com/myimage.jpg"}]'

Linux (Without Docker)

Make sure you have nodejs installed.

sudo npm install -g synclounge

Then you can run it:

synclounge

If you want to change any of the default configuration, you can either use environment variables with the same name, use command line arguments, or use a config file and run synclounge like synclounge --config_file /path/to/config.json

Sample Nginx config

If you want to run SyncLounge behind Nginx, here is an example configuration

Subdomain sub.domain.com

map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      '';
}


server {
    listen 80;
    listen [::]:80;
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    # TODO: Replace this with your domain
    server_name somesubdomain.yourserver.com;

    # TODO: include your ssl certs and parms, etc

    location / {
        # TODO: Replace this with your container address or localhost
        proxy_pass http://containeraddress:8088;
        proxy_http_version 1.1;
        proxy_socket_keepalive on;
        proxy_redirect off;

        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions;
        proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key;
        proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version;
    }
}

Subfolder domain.com/somefolder/

To make synclounge run at a subfolder, all you need to do is change your reverse proxy configuration.

map $http_upgrade $connection_upgrade {
        default upgrade;
        ''      '';
}


server {
    listen 80;
    listen [::]:80;
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    # TODO: Replace this with your domain
    server_name somesubdomain.yourserver.com;

    # TODO: include your ssl certs and parms, etc

    # TODO: replace "somefolder" with your desired subfolder
    location /somefolder/ {
        # TODO: Replace this with your container address or localhost.
        # Important: keep the trailing slash
        proxy_pass http://containeraddress:8088/;
        proxy_http_version 1.1;
        proxy_socket_keepalive on;
        proxy_redirect off;

        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_set_header Sec-WebSocket-Extensions $http_sec_websocket_extensions;
        proxy_set_header Sec-WebSocket-Key $http_sec_websocket_key;
        proxy_set_header Sec-WebSocket-Version $http_sec_websocket_version;
    }
}

The FAQ, Self-Hosting, Development, Contributing, and other documentation has been move to docs.synclounge.tv! Head there for more information!

Contributors

samcm - Developer

gcordalis - User Interface

ttshivers - Developer

Brandz - Design

TheGrimmChester - Developer/Tester

MagicalCodeMonkey - 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.

Using Material Design libraries provided under CC-BY 4.0