Warn viewers before the session ends

Eagle 3D Streaming warns the viewer a short time before Longest a session can last ends the session: a thin countdown bar on the stream, then a small timer in the corner. You choose how many minutes before the end it appears, or turn it off.

Where: Your Projects › your project › Viewer Experience › Common tab › Warn the viewer before the session ends, right under Longest a session can last. Press Save changes afterwards. The setting belongs to the project, so it applies to the project's link, including links you have already shared.

What the viewer sees

Nothing changes until the warning time is reached. Then, in this order:

  1. The bar. A thin dark bar appears at the top of the stream: Your session ends in 1:00 min – save your work, counting down every second. It never blocks the picture and nothing is dimmed; the viewer can keep working under it. While the stream is still muted, the bar sits just under the Click for sound button so neither hides the other.
  2. The corner timer. After 8 seconds – or at once when the viewer presses the × or the Esc key – the bar shrinks into a small Session ends in 42 s timer in the top-right corner. It stays there until the end and never takes a click, so every part of the app remains usable.
  3. The end. At the limit the session ends as before: the viewer sees Session expired with a Try again button. The warning does not extend the session.
A stream on a desktop browser with the session-end warning bar at the top: Your session ends in 29 s - save your work, with a close cross, shown under the Click for sound button
Desktop: the bar at the top of the stream, under Click for sound while the stream is muted. Once sound is on it moves up into that place.
The same stream 8 seconds later: a small Session ends in 20 s timer in the top-right corner, the rest of the picture clear
Desktop, 8 seconds later: the small corner timer. It never blocks a click.
A phone held upright showing the stream with Tap for sound at the top and the warning bar below it: Your session ends in 29 s
Phone held upright: the bar sits a little lower, under Tap for sound; the text is shortened to fit.
A phone held sideways showing the stream with the warning bar Your session ends in 29 s - save your work under the Tap for sound button
Phone held sideways: the same bar as on a desktop.
A black page with the words Session expired and a Try again button
When the limit is reached the session ends, as it always did: Session expired, Try again.

The setting

Two fields on the Common tab of Viewer Experience: Longest a session can last, 15 Mins, and under it Warn the viewer before the session ends, 1 Mins, with the help text Blank = 1 minute, 0 = no warning, never more than half the session
Warn the viewer before the session ends, directly under Longest a session can last on the Common tab. Both are in minutes.

The field is the number of minutes before the end at which the warning appears.

Longest a session can lastWarn the viewer before the session endsThe viewer sees the warning
15 (or empty)emptyat 14:00 – 1 minute before the end
51at 4:00 – 1 minute before the end
52at 3:00 – 2 minutes before the end
605at 55:00 – 5 minutes before the end
45at 2:00 – capped at half the session
any0never
no limitanynever – there is no end to warn about

Change when the warning starts

Type the number of minutes into Warn the viewer before the session ends and press Save changes. The new value applies to every session that starts after the save; a session already running keeps the value it started with.

Turn the warning off

Type 0 into the field and press Save changes. Leaving the field empty does not turn it off – empty means the 1-minute default.

Set it up and test it

  1. Open the project. In the Control Panel go to Your Projects, open your project and choose the Viewer Experience tab. The settings are on the Common tab, no Advanced Options needed.

  2. Set the session length. In Longest a session can last, type how many minutes one session may run, for example 5.

  3. Set the warning. In Warn the viewer before the session ends, type how many minutes before the end the viewer should be warned, for example 1. Leave it empty for the 1-minute default, or type 0 for no warning.

  4. Save. Press Save changes and confirm. The change applies to the project's link, including for anyone you have already shared it with.

  5. Test it. Open your stream link, use the app, and wait. With a 5-minute session and a 1-minute warning the bar appears after 4 minutes, moves to the corner after 8 seconds and the session ends at 5 minutes with Session expired. For a quick test set the session to 2 minutes first, then put your real values back.

On your own web page (iframe or Web SDK)

If the stream is embedded in your own page, your page is told when the warning starts, so you can show your own notice in your own words and design, or point the viewer to your own site when the session ends.

// iframe: listen for the warning on the page that holds the <iframe>
window.addEventListener("message", (event) => {
  if (event.data && event.data.type === "sessionEndingSoon") {
    console.log("session ends in", event.data.secondsLeft, "seconds");
    // show your own notice here
  }
});

Every message a session can end with, and how to react to each, is on Why a session ended. Embedding itself: Embed the stream in your web page.

Questions

5 questions

Can the viewer extend the session from the warning?

Not from the bar itself – it only counts down. Your own page or your Unreal app can extend a running session through the Extend session time feature, and the warning then follows the new end time.

Is this the same as the idle (AFK) countdown?

No. End session when the viewer is idle closes a session that nobody has touched for a while and shows its own countdown that any click cancels. This warning is about Longest a session can last, which ends the session however busy the viewer is. Both can be on at the same time; see Session and access for all the time limits side by side.

Can I change the words on the bar?

Not in the Control Panel today. On your own page you can show any text you like using the message or callback above, and hide nothing – our bar and your notice can both be shown.

Does it work on phones and tablets?

Yes, on every device and browser the stream runs in. On a phone held upright the bar sits a little lower and the text is shortened to Your session ends in 29 s; held sideways it looks like the desktop bar.

I never set this. Do my viewers get the warning?

Yes. An empty field means 1 minute, so every project with a session time limit warns its viewers 1 minute before the end. Type 0 if you do not want that.

Related

Last updated