Publisher Extension
Here are some Publisher Extension features that can help you operate your service using various Publishers of OvenMediaEngine.
#01. Features in all Publishers
Add Delay to the Stream
The Stream Delay feature allows you to force additional latency on all <Publishers>
. This can help you handle unexpected situations when operating a live service.
Set the <Publishers><DelayBufferTimeMs>
value in Server.xml
as follows:
#02. Features in (LL)-HLS and WebRTC
Default Playlist Creation Settings
If you wish to control the creation of the default Playlist (llhls, playlist, webrtc) for each playback protocol (LL-HLS, Legacy HLS, WebRTC). You can use the <CreateDefaultPlaylist>
option to manage the system more easily.
Configure in Server.xml
under <Publishers><
LLHLS
><CreateDefaultPlaylist>
(or <Publishers><
HLS
><CreateDefaultPlaylist>
, or <Publishers><
WebRTC
><CreateDefaultPlaylist>
) as follows:
#03. Features in (LL)-HLS
Origin Redundancy Settings
When configuring redundancy for OvenMediaEngine's Low-Latency HLS Origin Servers (or HLS Origin Servers), you can make the Segment file names on the Primary and Secondary Origin Servers the same through the Origin redundancy setting. This ensures that the Edge Server or CDN Cache Server connects to the Secondary Origin Server instead of the Primary Origin Server and downloads the same content seamlessly if the Primary Origin Server fails.
Enable <Publishers><
LLHLS
><ServerTimeBasedSegmentNumbering>
(or <Publishers><
HLS
><ServerTimeBasedSegmentNumbering>
) in Server.xml
as follows:
This feature generates segment file names based on server time, so you must synchronize the time on your primary and secondary origin servers.
Default Query String Settings
You can control the fundamental operations of Low-Latency HLS (or Legacy HLS) via the <DefaultQueryString>
.
Set in <Publishers><
LLHLS
><DefaultQueryString>
(or <Publishers><
HLS
><DefaultQueryString>
) in Server.xml
as follows:
This setting is ignored if the playback URL already has a query string appended to it.
Using Propagatet Query String
When you enable <PropagateQueryString>
, the query string included in the initial Master Playlist request is automatically carried over to all sub-requests (Media Playlist, Segment, and Partial Segment). By including session keys, authentication tokens, etc., in the query string and utilizing this feature, content access control becomes easier as all requests can be verified at the CDN level.
Set the <Publishers><
LLHLS
><PropagateQueryString>
(or <Publishers><
HLS
><PropagateQueryString>
) in Server.xml
like this:
You should take care not to include sensitive information in the Query String directly.
#04. Features exclusive to LL-HLS
Control Origin Cache
You can specify how long content should be cached on edge servers or CDN cache servers by adding a Cache-Control
header to the HTTP response.
Set the <Publishers><LLHLS><CacheControl>
in Server.xml
like this:
<CacheControl>
Elements
<CacheControl>
Elements<CacheControl>
can be used with 0 and positive values, while using -1 may result in unexpected caching behaviors, so caution is advised.
Last updated