Skip to content

Media Player

halx99 edited this page Jul 23, 2024 · 3 revisions

New MediaPlayer

The new ui::MediaPlayer(renamed from ui::VideoPlayer) render video as Texture2D with designed cross-platform MediaEngine, the MediaEngine inspired from Microsoft Media Foundation IMFMediaEngine, the MediaPlayer support all native platforms.

Target Platform Video Compress Format Video Pixel Format Container Format Backend
Windows Desktop H264, HEVC, VP90 YUY2, NV12, RGB32 .mp4,.mkv,.webm IMFMediaSession
Windows UWP H264, HEVC, VP90 BGR32 .mp4,.mkv,.webm IMFMediaEngine
Apple macOS H264, HEVC(hvc1) NV12, BGR32 .mp4 AVFoundation
Apple tvOS H264, HEVC(hvc1) NV12, BGR32 .mp4 AVFoundation
Apple iOS H264, HEVC(hvc1) NV12, BGR32 .mp4 AVFoundation
Android H264, HEVC NV12, I420 .mp4,.mkv,.webm androidx.media3(ExoPlayer2)
Linux H264, HEVC NV12 .mp4,.mkv,.webm libVLC
WASM NA NA NA NA