This article will show you how to play an LCEVC encoded source in THEOplayer. If you are not familiar with THEOplayer, we strongly recommend reading the getting started documentation for web first.
Web SDK | Android SDK | iOS SDK | tvOS SDK | Android TV SDK | Chromecast SDK |
---|---|---|---|---|---|
Yes | No | No | No | No | No |
You can quickly check using THEOplayer.features
. The feature is only available from THEOplayer 4.0 onwards.
This example below uses the latest version of the DIL that is maintained by V-Nova:
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/lcevc_dil.js@latest/dist/lcevc_dil.min.js"
></script>
After your player is correctly configured you can set your LCEVC source, but you need to also include lcevc: true
on
the SourceDescription so that the player knows how to configure the correct playback pipeline:
player.source = {
sources: {
type: "application/dash+xml",
src: "path/to/your/source/master.mpd",
lcevc: true,
},
}
player.source = {
sources: {
type: "application/x-mpegurl",
src: "path/to/your/source/master.m3u8",
lcevc: true,
},
}
LCEVC enhanced playback only works on modern browsers that support Media Source Extensions (MSE). If the platform does not support MSE (for example: Safari on iOS), the player will fall back to native playback without LCEVC enhancements.