Guide  How to play a live HLS (.m3u8) stream in a XenForo watch party: OBS, Zoom and streaming services

Gwendal

Developer
Moderator
Customer
Verified license
18 products BoardGameHub Classified Drafts Emporium Emporium Client GameHub GroupFlair Immersive Messenger Journey Level Plans Teams Watch Party XenCard XenPing XenSpotlight XenStaff XenStreak
Running your own live events on the forum, instead of sending members to YouTube or Twitch, usually means HLS: your streaming software or service publishes the broadcast as an .m3u8 playlist, and every viewer's browser plays it. This guide explains the chain end to end with Watch Party, and the checks that solve almost every "black player" report we get.

The chain​

Code:
OBS / Zoom / encoder  >  streaming service (RTMP in, HLS out)  >  https://.../playlist.m3u8  >  Watch Party room
Your forum never downloads the video: each viewer's browser fetches the playlist and its segments directly from the streaming service. That has two consequences that matter below: the service must accept requests coming from your forum's pages, and your server's bandwidth is not involved.

Step 1: get a usable HLS address​

  • It must be an https:// address. Browsers refuse plain http media on an https forum.
  • Its path must end in .m3u8 (a query string after it is fine).
  • Open it in the streaming service's own player first. If it does not play there, the problem is upstream of the forum.

Step 2: allow cross-origin playback on the streaming side​

Because the browser fetches the stream from a page on your forum's domain, the streaming service has to answer with CORS headers that allow it (for example Access-Control-Allow-Origin). Most hosted services do this by default; some have an "allowed domains" or "embed protection" setting where your forum's domain must be added. In the browser's developer tools (Network tab), blocked requests to .m3u8 or .ts files with a CORS error point straight at this setting. CORS errors on unrelated scripts (analytics and the like) are not the cause.

Step 3: allow the source in Watch Party​

  • Permission: the host's user group needs Use HLS streams (.m3u8) (Admin CP > Groups & permissions). Since 2.1.0 each video source has its own permission, so you can keep live streams for an organiser group only.
  • Hosts allowed for files and streams (Admin CP > Watch Party > Setup > General): empty allows any https host. If you filled it, add the streaming service's host, one per line, or start a line with a dot (.example.com) to allow its subdomains.
Then start or schedule a party and paste the .m3u8 address as the video.

What Watch Party does with a live stream​

  • Plays it through the bundled hls.js in every browser that supports it, desktop Chrome and Edge included. Since 2.0.2, Watch Party no longer trusts the native HLS player those browsers now announce: it refused or stalled live streams that hls.js plays.
  • Joins at the live edge: opening or refreshing the room during a live stream starts at the live point, not at an old position outside the stream's window.
  • Survives short drops: the player shows "The stream dropped. Reconnecting..." and retries on its own, without reloading the page.
  • Knows when the broadcast is over (2.2.0): when the playlist says so, disappears for a minute or stops growing for two minutes, the party shows "Broadcast ended" and the room and chat stay open.

Long events and replays​

  • Keep the party open when no host is in the room: a room setting for long broadcasts, so the party does not close after the idle delay. It needs the Keep parties open without a host permission.
  • Add the recording: a live stream is not recorded by the party itself. Once your streaming service has the recording, the host or staff add it from the party page with the Party start in the recording (minutes:seconds), and the replay plays it with the live chat at the right second. "Recording is being prepared" tells viewers it is on its way.

Still a black player?​

  1. Does the .m3u8 play in the service's own player? If not, check the encoder.
  2. Any CORS error on the playlist or its segments in the Network tab? Fix the allowed domains on the streaming side.
  3. Is the address https, and is its host allowed in Hosts allowed for files and streams?
  4. Is the add-on up to date? Live HLS fixes landed in 2.0.2 and 2.2.0.
If it still fails, open a private ticket with the stream address and a screenshot of the Network tab: those two usually show the cause in minutes.

Store page: Watch Party. Questions and ideas: the Watch Party forum.
 
Ready to make your forum unforgettable?Browse the storeSee the plans