xxoo / av_media_player

A lightweight media player for flutter.
https://pub.dev/packages/av_media_player
BSD 2-Clause "Simplified" License
11 stars 0 forks source link

About av_media_player

A lightweight Flutter media player with subtitle rendering[^subtitle] and track selection, leveraging system components for seamless playback and video rendering via Flutter's 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 libmpv[^libmpv]

Supported media formats

The supported media formats vary by platform but generally include:

Type Formats
Video Codec H.264, H.265(HEVC)[^h265]
Audio Codec AAC, MP3
Container Format MP4, TS
Subtitle Format WebVTT[^webvtt]
Transfer Protocol HTTP, HLS, LL-HLS

[^subtitle]: Only internal subtitle tracks are supported. External subtitle files are not. [^libmpv]: 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. [^h265]: Windows user may need to install a free H.265(HEVC) decoder from Microsoft Store. [^webvtt]: WebVTT is supported on all platforms except Linux, where SRT and ASS formats are supported instead.