Preview

The join screen a viewer sees. Connect here starts a real party through the public PeerJS service.
About
One viewer starts a party and shares a link or a party code; others join from the same video. The person who started the party leads: their play, pause and seeking are sent to everyone about once a second, and the others follow. Viewers can chat, send reactions and share the current time as a link in the chat.
How it connects. Viewers find each other through a PeerJS signalling service: by default the free public one at 0.peerjs.com, run by the PeerJS project, not by MP4E. It sees each viewer's connection id, the party id, the display name and the network addresses needed to connect. Google's public STUN servers tell each browser its public address. After that, playback position, chat and reactions go directly between the viewers' browsers over encrypted WebRTC connections. No relay (TURN) server is provided, so some viewers behind strict company or mobile networks cannot connect. Guests connect to the person who started the party, who passes chat and reactions on to the others; when that person leaves, the party ends.
What it needs. The PeerJS library is loaded when the plugin starts, by default from unpkg.com. A host can point the plugin at its own signalling service, STUN servers and copy of the library in the settings. It works only where the plugin frame may load that script and open a WebSocket: under the player's default settings it can; a host that restricts plugin network access to declared domains blocks both, and the plugin then says it cannot connect. Invite links use the address of the page playing the video.
Settings
What a creator can set in the Studio, and what a host can set in its overrides.
Join screen
| Setting | Type | Default | What it does |
|---|---|---|---|
Titletitle | Text | Watch together | The heading on the join screen. |
Connection noticenotice | Text | - | The small print on the join screen; empty says which signalling service viewers go through and that some networks cannot connect. |
Subtitlesubtitle | Text | Watch in step and chat with friends. | The line under the heading on the join screen. |
Connect buttonconnectLabel | Text | Connect | The label of the button that starts a party, or joins the one in the invite link. |
Name field hintnamePlaceholder | Text | Your name | The hint shown in the empty name field. |
During the party
| Setting | Type | Default | What it does |
|---|---|---|---|
Show chatshowChat | On or off | On | Whether viewers in a party see the chat and can send messages. |
Show reactionsshowReactions | On or off | On | Whether viewers in a party see the row of reaction buttons. |
Connection
| Setting | Type | Default | What it does |
|---|---|---|---|
STUN serversiceServers | List | - | The STUN server addresses a browser asks for its public network address, each like stun:host:port. |
PeerJS library addresslibraryUrl | Text | https://unpkg.com/peerjs@1.5.2/dist/peerjs.min.js | Where the plugin loads the PeerJS library from when it starts; a host can serve its own copy. |
Room name prefixroomPrefix | Text | mp4e-wp- | Put in front of every party id on the signalling service, so parties of different sites sharing one service do not meet. |
Signalling service keysignallingKey | Text | peerjs | The API key the PeerJS server expects; the public service uses peerjs. |
Signalling service hostsignallingHost | Text | 0.peerjs.com | The PeerJS server viewers find each other through; the default is the public PeerJS service, which MP4E does not run. |
Signalling service pathsignallingPath | Text | / | The path the PeerJS server is mounted at on that host. |
Signalling service portsignallingPort | Number | 443 | The port of the signalling service; it is always reached over a secure connection. |
Events and actions
Events you can react to
| Event | When it is sent | Data |
|---|---|---|
Synced to the hostplugin:mp4e:watch-party:synced | A guest's video was moved, played or paused to follow the host. |
|
Chat messageplugin:mp4e:watch-party:message | A chat message was sent by this viewer or received from another. |
|
Viewer leftplugin:mp4e:watch-party:viewerLeft | A viewer connected to this viewer left the party. |
|
Party joinedplugin:mp4e:watch-party:partyJoined | This viewer started a party or connected to the signalling service to join one. |
|
Viewer joinedplugin:mp4e:watch-party:viewerJoined | Another viewer connected to this viewer (for a guest: the host). |
|
What it can reach
- Can contact: 0.peerjs.com, unpkg.com, stun.l.google.com, stun1.l.google.comLoads the PeerJS library from unpkg.com, finds the other viewers through the public PeerJS signalling service and asks Google's STUN servers for the browser's public address; a host can replace all three in the settings.
Versions
- v3.1.2November 29, 2026Current
What changed
3.1.2: declares that it copies the invite link and party code to the clipboard (permissions.device).
- v3.1.1November 27, 2026
What changed
3.1.1: its settings are in three groups: Join screen, During the party and Connection.
- v3.1.0November 26, 2026
What changed
Says plainly that viewers find each other through a signalling service (the public PeerJS one by default) and that some networks cannot connect. The signalling service, STUN servers, library address, texts, chat and reactions are now settings, guests see each other's chat, and the icons are drawn without emoji.
- v3.0.2November 18, 2026
What changed
Joining by party code works (the host registered the wrong room id); a guest sees the host under the host's name.
- v3.0.0October 10, 2026
What changed
Snapshot before the isolated-iframe patch (v3.0.1).
- v3.0.1October 10, 2026
What changed
Minimized flag lives in mp4e.storage instead of localStorage, so minimize works in an isolated plugin iframe.
- v2.5.4January 23, 2026
What changed
Archived version
- vv2.5.3January 13, 2026
What changed
Archived version
- vv2.5.2January 12, 2026
What changed
Archived version
- vv2.5.1January 12, 2026
What changed
Archived version
- v2.5.0January 12, 2026
What changed
Archived version
- v2.4.0January 9, 2026
What changed
Archived version
- v2.3.0January 9, 2026
What changed
Archived version
- v2.2.2January 9, 2026
What changed
Archived version
- v2.2.1January 9, 2026
What changed
Archived version
- v2.2.0January 9, 2026
What changed
Archived version
- v2.1.1January 9, 2026
What changed
Archived version
- v2.1.0January 9, 2026
What changed
Archived version
- v2.0.9January 9, 2026
What changed
Archived version
- v2.0.8January 9, 2026
What changed
Archived version
- v2.0.7January 9, 2026
What changed
Archived version
- v2.0.6January 9, 2026
What changed
Archived version
- v2.0.5January 8, 2026
What changed
Archived version
- v2.0.4January 8, 2026
What changed
Archived version
- v2.0.3January 8, 2026
What changed
Archived version
- v2.0.2January 8, 2026
What changed
Archived version
- v2.0.1January 8, 2026
What changed
Archived version
- v2.0.0January 8, 2026
What changed
Archived version
- v1.1.3January 8, 2026
What changed
Archived version
- v1.1.2January 7, 2026
What changed
Archived version
- v1.1.1January 7, 2026
What changed
Archived version
- v1.1.0January 7, 2026
What changed
Archived version
- v1.0.0January 7, 2026
What changed
Archived version