Render audio and video streams using optimized OS-level playback controls, Picture-in-Picture, and AirPlay.
Render audio and video using hardware-accelerated OS-level playback controls. Nativine embeds native iOS AVPlayerViewController and Android ExoPlayer / Media3 bridges, delivering 4K playback, Picture-in-Picture (PiP), and system lock-screen media controls.
HTML5 video tags inside webviews often suffer from performance lag, memory leaks, and restricted background audio. Nativine's Native Media Player plugin renders OS media controllers directly:
To launch native video playback from JavaScript, call nativine.mediaPlayer.play():
nativine.mediaPlayer.play({
url: 'https://cdn.yourdomain.com/videos/stream.m3u8',
title: 'Episode 1: The Beginning',
artist: 'Media Production Studio',
albumArtUrl: 'https://cdn.yourdomain.com/poster.jpg',
enablePiP: true,
callback: 'onMediaPlayStarted'
});
| Parameter | Type | Description |
|---|---|---|
url | string | Required. Video or audio stream URL (.m3u8, .mpd, .mp4, .mp3). |
title | string | Optional. Track title rendered on lock screen controls. |
Yes. AirPlay and Google Cast buttons appear automatically inside native player controls when compatible smart TVs are detected.
Yes. When background-audio entitlement is active, audio playback continues uninterrupted when the screen is locked.