debugly/fsplayer
Tentang
iOS/Android/macOS/tvOS video player based on ijkplayer, using FFmpeg 8, support hw accel、4K、HDR、ass effect subtitle、bluray、smb...
Desain dan mediaYang dapat Anda lakukan
- FFmpeg - Based on FFmpeg 8.1.2 with hardware acceleration enabled and ongoing upgrades.
- iOS - iOS 12 or later. The Xcode 27 configuration requires iOS 15 or later.
- macOS - macOS 10.14 or later. The Xcode 27 configuration requires macOS 12 or later.
- tvOS - tvOS 12 or later. The Xcode 27 configuration requires tvOS 15 or later.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +20
- dalam 15 hari
- +21
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli简体中文 · English
Why FSPlayer
FSPlayer builds on ijkplayer with native ASS subtitle effects, 4K and HDR playback, and picture-in-picture. Hardware decoding is enabled by default on all supported platforms to reduce stutter and heat. The rendering backends support zero-copy texture uploads when hardware decoding is available.
FSPlayer is open source under the LGPL, actively maintained, and free to use.
Features
| Feature | Support |
|---|---|
| FFmpeg | Based on FFmpeg 8.1.2 with hardware acceleration enabled and ongoing upgrades. |
| iOS | iOS 12 or later. The Xcode 27 configuration requires iOS 15 or later. |
| macOS | macOS 10.14 or later. The Xcode 27 configuration requires macOS 12 or later. |
| tvOS | tvOS 12 or later. The Xcode 27 configuration requires tvOS 15 or later. |
| Android | Android 5.0 (API 21) or later,supports 16 KB memory page sizes. |
| Rendering backends | Metal on Apple platforms. Android uses Vulkan when available and falls back to OpenGL ES 3. |
| Decoding and rendering | Supports 4K, HDR, AV1, and AVS3. Hardware decoding and HDR output depend on the platform and device. Supports switching between hardware and software decoding, video filters, deinterlacing with software decoding, and transparent video. |
| Subtitles and audio tracks | Supports embedded and external subtitles, including SRT, WebVTT, ASS, and bitmap formats such as PGS. Subtitle styling, subtitle delay, and audio delay are adjustable. |
| Local and network playback | Plays local files, live and on-demand HLS, and streams over HTTP(S), RTSP, RTMP, and SMB. Plays Blu-ray ISO images and BDMV folders over the network. |
| Playback controls | Supports accurate seeking, looping, variable playback speed, and multiple player instances. Reports download speed, buffering progress, and first-frame decode and render timings. |
| Video and output | Supports scaling, rotation, mirroring, brightness and contrast adjustments, frame capture, recording, and real-time PCM output. Some APIs vary by platform. |
Quick Start
Try FSPlayer with Aura
Aura is a sample player built with FSPlayer. It is available for macOS and Android.
Integration Examples
Apple (Objective-C)
This example uses macOS.
#import <FSPlayer/FSPlayer.h>
FSOptions *options = [FSOptions optionsByDefault];
self.player = [[FSPlayer alloc] initWithContent:url options:options];
NSView<FSVideoRenderingProtocol> *playerView = self.player.view;
playerView.frame = self.playerContainer.bounds;
playerView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
[self.playerContainer addSubview:playerView];
self.player.shouldAutoplay = YES;
[self.player prepareToPlay];
Android (Java)
Once the SurfaceView surface is ready, set the media source and prepare the player asynchronously.
FSPlayer player = new FSPlayer();
player.setOption(FSPlayer.OPT_CATEGORY_PLAYER, "mediacodec", 1);
player.setDisplay(surfaceView.getHolder());
player.setDataSource(context, uri);
player.setOnPreparedListener(mp -> mp.start());
player.prepareAsync();
License
FSPlayer is released under the LGPL-2.1-or-later. Third-party components retain their respective licenses and copyright notices. Distribution notices
Contributors
FSPlayer-Pro
FSPlayer-Pro is available as a dynamic library. It adds Dolby Vision Profile 5, caching during HLS on-demand playback, seamless switching between audio tracks and quality levels, and faster first-frame startup and seeking for network ISO and BDMV playback. Contact by email
Jelajahi proyek terkait
Memuat…
