VOD playback
The default player gives you the complete VOD experience out of the box: scrubbing with cue-accurate seeking, ±10s transport, quality / speed / audio / subtitle menus, double-tap seeking and fullscreen.
val player = OGPlayer.Builder(context).build()
player.load( OGMediaItem.Builder("https://example.com/movie.m3u8") .setStreamType(StreamType.VOD) .setTitle("Tears of Steel") .build(),)// OGPlayerView(player = player, …) renders the chromelet player = OGPlayer()
if let item = OGMediaItem( urlString: "https://example.com/movie.m3u8", title: "Tears of Steel") { player.load(item)}// OGPlayerView(player: player, isFullscreen: $isFullscreen) renders the chromeconst player = new OGPlayer();document.querySelector("og-player")!.player = player;
player.load({ url: "https://example.com/movie.m3u8", title: "Tears of Steel",});Position, speed, quality
Section titled “Position, speed, quality”The transport API is identical everywhere: play() / pause() /
seekTo(ms) / seekForward() / seekBackward(), playbackSpeed
(0.25–2×), videoQualities + selectVideoQuality(id) (with an adaptive
“Auto” entry), and position getters driven by a configurable onProgress
tick (250 ms default).
The title overlay
Section titled “The title overlay”Set title on the media item and the SDK shows it at content start for a
few seconds (configurable timeout), reflowing around content-rating icons
automatically.