Your best source fails for a few minutes, the channel moves to a backup, and then it stays on the backup for hours even after the best source is back. With the crown, you choose one primary source as the preferred one: the channel always tries it first, and 24/7 channels go back to it on their own once it is stable again.
New in Xtream AI 2.5.0. Requires engine 2.5.0 on your main server. The immediate return for your own panels needs engine 2.5.1.
Crown a source
- Open Channels > Overview and edit the channel.
- Open the SOURCES tab.
- Click the crown icon at the left of the primary source you prefer. A Preferred label appears next to its name.
- Click SAVE. You do not need to restart the channel.
If you do not see the crown, your main server is not on engine 2.5.0 yet. See Update the Engine.
How it works
- Order: the crowned source first, then the other primary sources, then the secondary sources.
- If the crowned source fails: the channel keeps playing from the other sources as usual.
- When it comes back: 24/7 channels return to it on their own, usually 1.5 to 2 minutes after it is stable again, with a cut of a few seconds.
- On-demand channels do not switch while they play. They use the crowned source the next time they start.
- Event channels, channels that are recording and channels with Direct Source do not switch back on their own either.
- Checks are limited to one per minute per provider account, and channels that share the same crowned source switch together with a single connection. With engine 2.5.1 you can lift that limit for your own panels: see below.
Rules of the crown
- One crown per channel. Crowning another row moves the crown. Clicking the crowned row removes it.
- Only primary sources can be crowned. Secondary sources and empty rows cannot.
- Moving the row up or down keeps the crown on the same URL.
- If you delete the crowned row, the crown goes with it.
- A live ingest can be crowned like any other primary source. The channel returns to the encoder once it has been live for 15 seconds, usually 30 to 60 seconds after it comes back.
Crown many channels at once
- Open Channels > Bulk Tools > Mass Edit.
- Select the channels in the STREAMS tab.
- In the INFORMATION tab, tick the box next to Preferred Source and pick an option:
- Crown the first primary source: crowns the first primary source of each channel and replaces any crown it had.
- Crown the first primary source, only on channels without a crown: keeps the crowns you already set.
- Remove the crown.
- Click Edit Streams.
Channels without primary sources stay without a crown. See Mass Edit.
Turn off the automatic return
In Settings > Streaming, the option Automatically return to the preferred source is on by default. Turn it off to stop every automatic return at once. Channels then stay on the source they are using, and the crown only counts when a channel starts.
Immediate return for your own panels
After an outage, a provider account with many crowned channels can take hours to bring them all back, because the checks are limited to one per minute per account. That limit protects lines that have a connection limit. If your crowned sources come from your own panel or from a line without a connection limit, you can lift it for that DNS.
New in Xtream AI 2.5.1. Update all your servers to engine 2.5.1 first. See Update the Engine.
- Open Settings > Streaming.
- Below Automatically return to the preferred source, find DNS with immediate return to the preferred source.
- Write one host per line, for example
panel.mydomain.comor203.0.113.10. - Click Save. It applies within a minute.
What changes:
- After an outage, a thousand crowned channels of one of these DNS come back in about 25 to 40 minutes instead of hours.
- A single channel still takes 1.5 to 2 minutes, because each source must pass two checks one minute apart.
- Only the exact host counts: subdomains are not included. If you paste a full URL or
host:port, only the host is saved.
Only for your own panels or lines without a connection limit. On XC/XUI panels each check opens a session on the line and, if the line is at its limit, the panel cuts the oldest connection: it can be another one of your channels on air.
If the list is greyed out, Automatically return to the preferred source is off. If the row says the list does not apply yet on a server, that server is not on engine 2.5.1 yet and keeps the usual limit.
Common problems
- Yellow notice "The preferred source saved for this channel is no longer one of its primary sources": the crowned URL was replaced or removed, so the crown has no effect. It is cleared when you save. Crown the right source again.
- Notice "The preferred source does not apply yet on" a server: that server is not on engine 2.5.0 yet. Update it. Your other servers apply the crown normally.
- The channel did not go back: check that the automatic return is on in Settings, that the channel is not on demand, an event or Direct Source, and give the source about 2 minutes of stable playback.
- After an outage, crowned channels take hours to go back: many crowned channels share one provider account, and the checks are limited to one per minute per account. If that source is your own panel or a line without a connection limit, add its DNS to the immediate return list.