EZPlayer基于AVPlayer的定制化视频播放器

基于AVPlayer的封装方案里,EZPlayer算是我用下来比较顺手的一个。支持本地和网络视频播放,反应挺快,集成也简单,尤其适合做 React Native 嵌套的时候用,挺省事。

EZPlayer的集成流程不复杂,用 Carthage 直接拉下来就行。写个Cartfile,加上github "easyui/EZPlayer",跑下carthage update,基本就能用了。打包框架也贴心,自带ExportFramework脚本。

iOS 最低要求是 9.0,Xcode 12.0+,Swift 5.0+。所以别忘了检查你项目的配置,不然编译卡半天你都找不到原因。

支持的格式参考原生AVPlayer,一般常见格式都没啥问题,网络视频也能播。可定制性蛮强的,UI 你可以完全自定义,不会被强制套皮。

做 React Native 的也可以直接用,配合原生桥接就能跑,体验还不错。尤其是做个视频播放模块,不用再去造轮子,直接拿来改下样式就行。

你要是正好有本地播放器需求,或者项目里有段子要播,不妨试试EZPlayer

folder
EZPlayer:基于AVPlayer封装的视频播放器,功能丰富,快速集成,可定制性强,支持react-native 预估大小:206个文件
file
EZRNPlayerViewBridge.h 1KB
file
EZPlayerRNList.gif 902KB
file
EZPlayer.h 495B
file
EZPlayer1.gif 3MB
file
AppDelegate.h 196B
file
EZRNPlayerViewBridge.h 2KB
file
gradlew.bat 3KB
file
gradlew 6KB
file
build_defs.bzl 602B
file
BUCK 1KB
file
build.gradle 8KB
file
settings.gradle 202B
file
build.gradle 1002B
file
.flowconfig 2KB
file
.gitignore 813B
file
.buckconfig 114B
file
.gitattributes 16B
file
EZPlayerRNBase.gif 913KB
file
.gitignore 1KB
file
EZPlayer.gif 6.61MB
zip 文件大小:65.4MB