Mac搭建服务器,看前一篇文章《Mac 搭建nginx+rtmp服务器》
1.rtmp观看
打开下面网址,输入你的rtmp地址,点击播放视频即可。
http://daniulive.com:8080/files/SmartPlayer/SmartPlayer.html
2.推流
(1)LiveVideoCoreSDK
https://github.com/runner365/LiveVideoCoreSDK
3.拉流
(1)ijkplayer 配置有点复杂
https://github.com/Bilibili/ijkplayer
(2)PLPlayerKit
https://github.com/pili-engineering/PLPlayerKit
该库使用pods导入,如果不用pods导入,下面地址说明:
http://blog.youkuaiyun.com/kivenhehaoyu/article/details/51181629