Skip to content

Livestream and web page templates

The template upload dialog can build a template for you from a single URL: a full-screen HLS livestream or a full-screen web page. No ZIP, no HTML. This page explains what the dialog asks for, what the generated template does on the sign, and when you have outgrown it.

The Add New Template button on a template list opens the Upload New Template dialog, which has three tabs. The first, HTML Template Upload, takes a ZIP you authored, or a single image or video that is wrapped in a template for you; see Template library. The other two tabs are covered here.

What every tab asks for

  • Title and Event, as for any template.
  • Template Dimension Type, shown on the two URL tabs and when the first tab wraps a single image or video. Responsive fills whatever screen the sign has. Absolute takes a pixel width and height and renders the template at exactly that size. Responsive is the right choice unless a sign must be driven at a fixed resolution that differs from its screen.

Web Page URL

Enter an HTTPS address. The generated template shows that page full-screen for as long as the template is active. The page loads from its own server every time, so it is only as reliable as that server and the venue network.

The page is shown inside an iframe, which puts two conditions on it that opening the address in a normal browser tab does not test:

  • The site must allow embedding. Many sites forbid it with an X-Frame-Options header or a frame-ancestors content-security policy — most sign-in pages, social networks, Google properties, SharePoint and many intranet tools among them. The sign then shows an empty frame or a refused to connect message, while the same address works in a tab. Check with the site's owner, or test the template in the preview and look at the sign's console for a Refused to display … in a frame line.
  • No interactive sign-in. Nobody is at the sign to log in, and a session cookie set in one browser profile is not there in another. Use a page that is public or reachable by a token in its URL, or by IP from the venue network.

Pages that scroll, show cookie banners or animate on hover look different on a screen nobody touches; a dashboard or kiosk view of the page, if the site offers one, is usually the better address.

HLS Stream URL

Enter the HTTPS address of an HLS playlist, the .m3u8 link your streaming provider gives you (AWS IVS, Wowza, Mux and similar). The stream host must allow cross-origin requests; every mainstream provider does. The generated template fills the screen with the stream and takes care of the things that go wrong with livestreams on unattended signs:

  • It waits for a stream that has not started. A channel that is not broadcasting yet answers "not found". The sign shows Waiting for the stream... and retries every five seconds until the stream comes up, then plays it within seconds.
  • It recovers from a stream that dies. If the channel drops mid-playback the picture freezes; once the buffered video runs out and the picture has been still for about fifteen seconds, the sign shows the waiting message and keeps reconnecting until the stream is back, then resumes at the live edge.
  • It rides out bad network. Short rebuffering pauses never trigger a reconnect, and a slow link that can deliver the stream at all will play it.
  • It plays without depending on other downloads. The player library ships inside the template and is cached on the sign with the template's other files.
  • It cleans up after itself when the room switches to a gap template and back, so a sign that switches all day does not accumulate stream connections.

The audio toggle

Off, which is the default, the stream plays muted with no controls: the setting that works on every browser without any preparation.

On, the template tries to play with sound. Browsers refuse to start audible playback without a click unless Chrome is launched with --autoplay-policy=no-user-gesture-required; see Chrome kiosk setup. When playback with sound is refused, the stream plays muted instead so the picture is never lost, and it switches to sound at the first tap or key press on the sign. The player controls stay visible as a manual fallback. A paused stream resumes by itself after a few seconds; a sign is not meant to stay paused.

Reading the sign's console

If a stream does not appear, the browser console on the sign says why. Every line is prefixed [Preseria HLS]; the reconnect lines repeat at most once every five minutes, and the audio line is logged once per template load:

Console line Meaning
Reconnecting stream: manifestLoadError (HTTP 404) The channel is not broadcasting yet. The sign will pick it up when it starts.
Reconnecting stream: manifestLoadError (HTTP 0) The stream host refuses cross-origin requests, or the address is unreachable. Check the URL and the host's CORS configuration.
Reconnecting stream: playback stalled The stream stopped delivering media mid-playback and the sign is reconnecting.
Autoplay with sound was refused, so the stream is playing muted The audio toggle is on but Chrome was not launched with the autoplay flag.

When to write a custom template instead

The generated template is deliberately basic: one stream, full screen, always on. Write your own template when you need any of the following, and start from the complete script in Embedding an HLS livestream:

  • the stream inside a layout with other content, such as a schedule beside a keynote;
  • scheduled windows, where the stream shows only at set times and the sign shows something else in between;
  • a background video file rather than a livestream; see Embedding video.

Notes

  • A generated template is a normal template once created: it appears in the template list, can be assigned like any other, and its files can be inspected and edited in the app; see Template Editor and analysis.
  • Changes to how templates are generated reach templates created after the change. A template created earlier keeps the code it was created with.