ijkplayer-tvos编译(支持SSL)

发布时间:2020-07-11 13:34:51 作者: 阅读量:68

1.git clone https://github.com/Bilibili/ijkplayer.git

2.进入以下文件 init-ios-openssl.sh init-ios.sh /ios/compile-ffmpeg.sh /ios/compile-openssl.sh
删除armv7 armv7s相关字段,保留 arm64 i386 x86_64 

3.进入以下文件 /ios/tools/do-compile-ffmpeg.sh
iPhoneOS替换成AppleTVOS iPhoneSimulator替换成AppleTVSimulator

4.进入以下文件 /ios/tools/do-compile-ffmpeg.sh 
-mios替换成-mtvos

5.进入/ios/do-compile-openssl.sh
openssl-armv7替换成openssl-arm64 

6.进入以下文件 /ios/ffmpeg-arm64/configure /ios/ffmpeg-x86_64/configure
查找关键字 ERROR: openssl not found
把enabled openssl相关功能代码部分删除

7.init-ios-openssl.sh

8.init-ios.sh

9./ios/compile-openssl.sh

10.把openssl.sh放置在/ios目录下(脚本在附件中:https://tvoskit.cn/usr/uploads/2018/05/2582322911.png)
运行 ./openssl.sh脚本
11./ios/compile-ffmpeg.sh

11.慢慢等待编译过程
12.进入IJKMediaPlayer目录, 打开IJKMediaPlayer.xcodeproj
xcode进入Build Settings, Base SDK修改成tvOS 11.2, TARGETED_DEVICE_FAMILY修改成3
13.生存库,遇到相关出错修改完成就OK了

分段播放
http://blog.csdn.net/jeffasd/article/details/75007841
http://blog.csdn.net/liushihua147/article/details/60962967
http://blog.csdn.net/hejjunlin/article/details/57075026
https://www.jianshu.com/p/e1e79e98591b
http://blog.csdn.net/xihuandiannao/article/details/78328723


ffconcat version 1.0
file 'http://9890.vod.myqcloud.com/9890_4e292f9a3dd011e6b4078980237cc3d3.f30.mp4'
duration 308
file 'http://9890.vod.myqcloud.com/9890_4e292f9a3dd011e6b4078980237cc3d3.f30.mp4'
duration 308
file 'http://9890.vod.myqcloud.com/9890_4e292f9a3dd011e6b4078980237cc3d3.f30.mp4'
duration 308
@maolubin 可以了 Bilibili/ijkplayer#490 看这个 记得添加这个VideoOptionModel videoOptionModel2 =
new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "protocol_whitelist", "rtmp,concat,ffconcat,file,subfile,http,https,tls,rtp,tcp,udp,crypto");
 List<SwitchVideoModel> list = new ArrayList<>();
    list.add(switchVideoModel);

    List<VideoOptionModel> listVideoOptionModel = new ArrayList<>();
    VideoOptionModel videoOptionModel =  new VideoOptionModel(IjkMediaPlayer.OPT_CATEGORY_FORMAT,"safe",0);
    listVideoOptionModel.add(videoOptionModel);
    GSYVideoManager.instance().setOptionModelList(listVideoOptionModel);
    videoPlayer.setUp(list, false, "测试视频");
http://www.voidcn.com/article/p-hbovtmcg-brh.html

录播视频
https://github.com/lm3515/RLIJKPlayer

一些重要配置
https://www.jianshu.com/p/843c86a9e9ad
https://www.cnblogs.com/justkeepmoving/p/7871745.html

Catfish(鲶鱼) Blog V 2.3.27