MP4ERequest access
On the videoBy MP4E

Watch Party (P2P)

Lets viewers in different places watch the same video in step, with a chat and reactions beside it.

  • Sends 5 events
  • Viewers join with a link or a party code
  • The person who starts the party leads play, pause and seeking
  • Connects through the public PeerJS service unless a host sets its own
  • No relay server, so some strict networks cannot connect
Version 3.1.2

It opens in the Studio, where you place it on your video.

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

Join screen
SettingTypeDefaultWhat it does
TitletitleTextWatch togetherThe heading on the join screen.
Connection noticenoticeText-The small print on the join screen; empty says which signalling service viewers go through and that some networks cannot connect.
SubtitlesubtitleTextWatch in step and chat with friends.The line under the heading on the join screen.
Connect buttonconnectLabelTextConnectThe label of the button that starts a party, or joins the one in the invite link.
Name field hintnamePlaceholderTextYour nameThe hint shown in the empty name field.

During the party

During the party
SettingTypeDefaultWhat it does
Show chatshowChatOn or offOnWhether viewers in a party see the chat and can send messages.
Show reactionsshowReactionsOn or offOnWhether viewers in a party see the row of reaction buttons.

Connection

Connection
SettingTypeDefaultWhat it does
STUN serversiceServersList-The STUN server addresses a browser asks for its public network address, each like stun:host:port.
PeerJS library addresslibraryUrlTexthttps://unpkg.com/peerjs@1.5.2/dist/peerjs.min.jsWhere the plugin loads the PeerJS library from when it starts; a host can serve its own copy.
Room name prefixroomPrefixTextmp4e-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 keysignallingKeyTextpeerjsThe API key the PeerJS server expects; the public service uses peerjs.
Signalling service hostsignallingHostText0.peerjs.comThe PeerJS server viewers find each other through; the default is the public PeerJS service, which MP4E does not run.
Signalling service pathsignallingPathText/The path the PeerJS server is mounted at on that host.
Signalling service portsignallingPortNumber443The port of the signalling service; it is always reached over a secure connection.

Events and actions

Events you can react to

EventWhen it is sentData
Synced to the hostplugin:mp4e:watch-party:syncedA guest's video was moved, played or paused to follow the host.
  • {{eventData.paused}}Whether the host's video is paused
  • {{eventData.currentTime}}The time in seconds the guest was moved to
Chat messageplugin:mp4e:watch-party:messageA chat message was sent by this viewer or received from another.
  • {{eventData.name}}The sender's display name
  • {{eventData.message}}The message text, at most 200 characters
Viewer leftplugin:mp4e:watch-party:viewerLeftA viewer connected to this viewer left the party.
  • {{eventData.name}}The viewer's display name
  • {{eventData.isHost}}True when it was the person who started the party, which ends it
Party joinedplugin:mp4e:watch-party:partyJoinedThis viewer started a party or connected to the signalling service to join one.
  • {{eventData.code}}The party code, like 3D92-24A1
  • {{eventData.isHost}}True when this viewer started the party
Viewer joinedplugin:mp4e:watch-party:viewerJoinedAnother viewer connected to this viewer (for a guest: the host).
  • {{eventData.name}}The other viewer's display name
  • {{eventData.isHost}}True when the other viewer started the party

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

  1. 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).

  2. v3.1.1November 27, 2026
    What changed

    3.1.1: its settings are in three groups: Join screen, During the party and Connection.

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

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

  5. v3.0.0October 10, 2026
    What changed

    Snapshot before the isolated-iframe patch (v3.0.1).

  6. v3.0.1October 10, 2026
    What changed

    Minimized flag lives in mp4e.storage instead of localStorage, so minimize works in an isolated plugin iframe.

  7. v2.5.4January 23, 2026
    What changed

    Archived version

  8. vv2.5.3January 13, 2026
    What changed

    Archived version

  9. vv2.5.2January 12, 2026
    What changed

    Archived version

  10. vv2.5.1January 12, 2026
    What changed

    Archived version

  11. v2.5.0January 12, 2026
    What changed

    Archived version

  12. v2.4.0January 9, 2026
    What changed

    Archived version

  13. v2.3.0January 9, 2026
    What changed

    Archived version

  14. v2.2.2January 9, 2026
    What changed

    Archived version

  15. v2.2.1January 9, 2026
    What changed

    Archived version

  16. v2.2.0January 9, 2026
    What changed

    Archived version

  17. v2.1.1January 9, 2026
    What changed

    Archived version

  18. v2.1.0January 9, 2026
    What changed

    Archived version

  19. v2.0.9January 9, 2026
    What changed

    Archived version

  20. v2.0.8January 9, 2026
    What changed

    Archived version

  21. v2.0.7January 9, 2026
    What changed

    Archived version

  22. v2.0.6January 9, 2026
    What changed

    Archived version

  23. v2.0.5January 8, 2026
    What changed

    Archived version

  24. v2.0.4January 8, 2026
    What changed

    Archived version

  25. v2.0.3January 8, 2026
    What changed

    Archived version

  26. v2.0.2January 8, 2026
    What changed

    Archived version

  27. v2.0.1January 8, 2026
    What changed

    Archived version

  28. v2.0.0January 8, 2026
    What changed

    Archived version

  29. v1.1.3January 8, 2026
    What changed

    Archived version

  30. v1.1.2January 7, 2026
    What changed

    Archived version

  31. v1.1.1January 7, 2026
    What changed

    Archived version

  32. v1.1.0January 7, 2026
    What changed

    Archived version

  33. v1.0.0January 7, 2026
    What changed

    Archived version

Watch Party (P2P) · MP4E Marketplace