CarGuo /GSYVideoPlayer

Video players (IJKplayer, ExoPlayer, MediaPlayer), HTTPS, 16k page size, danmaku (bullet chat) support, external subtitles, support for filters, watermarks, and GIF screenshots, pre-roll and mid-roll ads, multiple simultaneous playback, basic seeking/dragging, volume and brightness adjustment, play-while-cache support

★ 21,532⑂ 4,319👁 429⑃ 85● 3,936▤ 71
JavaApache-2.0Created 2016-11-13
More from this author
Download: v14.1.0v14.1.0 ↓14.1.02026-11-11
+0
Daily
+4
Weekly
+10
Monthly
21,532
stars
4,319
forks
429
watchers
85
prs
3,936
issues
71
releases

README

!

中文文档

 Supports IJKPlayer, Media3(EXOPlayer2), MediaPlayer, AliPlayer, implementing a multi-functional video player. (Please read the following instructions carefully, most questions can be answered below).

  HarmonyOS version openharmony-tpc/GSYVideoPlayer

  If cloning is too slow or images are not visible, you can try to synchronize from the following addresses
 - GitCode https://gitcode.com/ZuoYueLiang/GSYVideoPlayer
 - Gitee:https://gitee.com/CarGuo/GSYVideoPlayer

 Type          | Function
-------------|-------------------------------------------------------------------------------------------------------------------------------------------------
 Cache      | Play while caching, using AndroidVideoCache; Media3(ExoPlayer) uses SimpleCache.
 Protocols      | h263\4\5, Https, concat, rtsp, hls, rtmp, crypto, mpeg, etc.  (ijk mode format support) 
 Filters      | Basic filters, watermarks, multi-screen playback, multi-pass Gaussian/pyramid blur, Bloom, LUT grading, beauty, Glitch, CRT and analog-TV interference. Details.
 Frame images      | Video first frame, video frame screenshots, composed player screenshots including UI, and video to gif function.
 Playback      | List playback, continuous list playback, gravity rotation and manual rotation, video's own rotation attribute, fast and slow playback, network video loading speed.
 Screen      | Adjust display ratio: default, 16:9, 4:3, fill; rotate screen angle during playback (0,90,180,270); mirror rotation.
 Kernel      | IJKPlayer, Media3(EXOPlayer), MediaPlayer, AliPlayer switching, custom kernel
 Layout      | Full screen and non-full screen two sets of layout switching, pure playback support without any operation controls, barrage function, inherited custom any layout.
 Playback      | Singleton playback, multiple simultaneous playback, video list sliding automatic playback, seamless playback of list switching detail pages.
 Window      | Small window, small window playback in multiple windows (including desktop).
 Ads      | Opening ads, skip ad support, interstitial ad function.
 Subtitles      | Unified external subtitle overlay supports SRT/WebVTT across IJK, Media3(EXOPlayer), and MediaPlayer; Media3 embedded cues can bridge to the same UI.
 Dash    | Media3(exo2) mode supports dash; the demo supports HLS master / DASH MPD adaptive quality track switching.
 Stream  | Supports metadata playback
 Adapt 16k  | ex_so and arm64/x64 adapt to 16K Page Size
 openssl | Currently ex_so and arm64/armv7a/x64 all use OpenSSL 3.5.9
 FFmpeg  | Currently ex_so and arm64/armv7a/x64 (arm64-v8a / armeabi-v7a / x86_64) all use FFmpeg n5.1.10
 FFmpeg  | Currently ex_so and arm64/armv7a/x64 (arm64-v8a / armeabi-v7a / x86_64) all support G711a(pcm_alaw)
 Cast      | Optional gsyvideoplayer-cast DLNA/UPnP module built on jUPnP 3.0.3; the core keeps only the protocol-neutral CastCapability / CastProvider / CastSession SPI and does not pull Jetty. Details.
 More      | No black screen when pausing front 

Top issues

Latest release

v14.1.0 v14.1.0 2026-11-11
中文

- Compose 4267:倍速快照与 Host 配置同源,新 setUp 和挂载后立即同步 snapshot / stateFlow。
- 暂停恢复 4268:在 Java 公共核心修复缓冲通知覆盖暂停/恢复意图的问题,保留准备阶段暂停、预加载和 seek=false 行为。
- IJK 三 ABI 成套更新:ARM64 / ARMv7 / x86_64 的 FFmpeg、player、SDL 库与独立 ABI 模块逐字节匹配,包含以下修复:
  - MediaCodec 输出格式事件中的 H.264 crop-only、单轴可见尺寸传播。
  - 可选 H.264 crop 重建:受限 SPS/PPS+IDR 转换下排空旧解码器代、重建并重放一次。
  - 异步 MediaCodec EOS 等待输入槽位时允许输出继续推进,避免阻塞排空;自动生效,crop 选项关闭时也适用于 AVC/HEVC。

mediacodec-h264-crop-workaround 默认 0 关闭,仅适用于受支持 H.264 输入的异步 MediaCodec 路径,不适用于 HEVC、软件解码或同步输入。FFmpeg n5.1.10 / OpenSSL 3.5.9 基线保持不变。

发布前本地验证通过:Java/cast/Compose Debug 与 Release 共 52 次单测执行

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON