Skip to content

xxoo/av_media_player

Repository files navigation

About

av_media_player is a lightweight media player with subtitle rendering1 and track selection support, leveraging system or app-level components for seamless playback, video rendering via Texture widget. For API documentation, please visit here.

Platform Version Backend
iOS 15+ AVPlayer
macOS 12+ AVPlayer
Android 8+ ExoPlayer
Windows 10+ MediaPlayer
Linux N/A libmpv2

Supported media formats

The supported media formats vary by platform but generally include:

Type Formats
Video Codec H.264, H.265(HEVC)3
Audio Codec AAC, MP3
Container Format MP4, TS
Subtitle Format WebVTT4
Transfer Protocol HTTP, HLS, LL-HLS

Footnotes

  1. Only internal subtitle tracks are supported.

  2. The Linux backend requires libmpv(aka mpv-libs). Developers integrating this plugin into Linux app should install libmpv-dev(aka mpv-libs-devel) instead. If unavailable in your package manager, please build libmpv from source. For details, refer to mpv-build.

  3. Windows user may need to install a free H.265(HEVC) decoder from Microsoft Store.

  4. WebVTT is supported on all platforms except Linux, where SRT and ASS formats are supported instead.