-
-
Notifications
You must be signed in to change notification settings - Fork 301
Media Player
Deal edited this page Sep 27, 2026
·
7 revisions
The new ui::VideoPlayer(in Axmol v2 is ui::MediaPlayer) 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 |
| WebAssembly (1) | H264, HEVC | I420, NV12, RGB32 (RGBA8) | .mp4, .m4v, .webm, .ogv, .mov | HTMLVideoElement |
(1) The WebAssembly VideoPlayer support since axmol-v3
- Cocos2d-x Migration Guide
- SpriteKit to Axmol Engine
- Update Guide for Android
- Migration Guide for PR 3173: Refactor InputSystem