pushinbr / pam-native-video
Adaptive streaming, subtitles and native Media3/AVPlayer playback for PAM Native.
Package info
github.com/push-in/pam-native-video
Language:Kotlin
Type:pam-native-plugin
pkg:composer/pushinbr/pam-native-video
Requires
- php: ^8.4
- pushinbr/pam-native: ^0.6.1
README
Adaptive HLS/DASH and local video playback through Android Media3 and Apple AVPlayer. Decoder, buffering, controls and progress timing remain native rather than crossing the PHP bridge per frame.
composer require pushinbr/pam-native-video pam mobile codegen pam mobile ios:prepare
use Pam\Native\Video\VideoPlayer; use Pam\Native\Video\VideoResizeMode; return VideoPlayer::make('https://cdn.example.com/master.m3u8') ->autoPlay() ->controls() ->resizeMode(VideoResizeMode::Cover) ->onEvent(function ($kind, array $event): void {});
Features include adaptive HLS/DASH playback, embedded subtitle/audio tracks, native controls, autoplay, looping, mute/volume, deterministic seek commands, configurable progress events and sandboxed local files. Android dependencies are pinned to Media3 1.9.3; iOS uses AVFoundation/AVKit.
Platform support: Android API 26+, iOS 15+, PAM Native 0.6.x.