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.
Nothing changes until the warning time is reached. Then, in this order:
The field is the number of minutes before the end at which the warning appears.
| Longest a session can last | Warn the viewer before the session ends | The viewer sees the warning |
|---|---|---|
| 15 (or empty) | empty | at 14:00 – 1 minute before the end |
| 5 | 1 | at 4:00 – 1 minute before the end |
| 5 | 2 | at 3:00 – 2 minutes before the end |
| 60 | 5 | at 55:00 – 5 minutes before the end |
| 4 | 5 | at 2:00 – capped at half the session |
| any | 0 | never |
| no limit | any | never – there is no end to warn about |
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.
Type 0 into the field and press Save changes. Leaving the field empty does not turn it off – empty means the 1-minute default.
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.
Set the session length. In Longest a session can last, type how many minutes one session may run, for example 5.
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.
Save. Press Save changes and confirm. The change applies to the project's link, including for anyone you have already shared it with.
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.
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.
{ type: "sessionEndingSoon", secondsLeft } through postMessage when the warning starts. Our bar is shown inside the iframe as usual.onSessionEndingSoon(secondsLeft) is called. On a Web SDK page our notice is not shown – your page decides what the viewer sees.sessionExpired message and onSessionExpired callback follow, as before.// 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.
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.
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.
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.
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.
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.
Last updated