IOS-高仿bilibili项目
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IOS-高仿bilibili项目相关的知识,希望对你有一定的参考价值。
高仿bilibili项目成长之路
(logo)
高仿bilibili项目
Github链接:(https://github.com/MichaelHuyp/Bilibili_Wuxianda)
目前完成了如下功能:
- 启动页的业务逻辑
- 带有阻力效果的轮播图
- 直播、推荐、番剧界面的搭建
- 基于ijkplayer的视频播放器(普通视频、直播视频)
七月三十号更新:
- 个人中心模块的搭建
-
集成基于来疯直播开源的LFLiveKit的手机直播功能
- RTMP推流
- 镜像 、美颜、手电筒、摄像头方向
-
更新展示


关于电脑上如何查看直播:
- 首先确保你的电脑是否安装了Homebrew
man brew
- 如果没有安装,则在终端输入以下命令安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 第一步
brew tap homebrew/nginx
- 第二步
brew install nginx-full --with-rtmp-module
- 第三步,在终端输入
nginx
- 第四步,打开浏览器打开http://localhost:8080 如果出现以下所示,那么环境就搭建好了

demo
- 第五步,在终端输入
brew info nginx-full
- 第六步,在终端 Command+F 搜索nginx.conf

demo
- 第七步,进入该路径,以文本编辑形式打开配置文件,直接在最后面插入以下代码
rtmp {
server {
listen 1935;
application rtmplive {
live on;
record off;
}
}
}

demo

demo
- 第八步,查看nginx版本号,在终端输入:
nginx -v

demo
- 第九步,重启ngix,把版本号替换成你电脑的nginx的版本号
/usr/local/Cellar/nginx-full/1.10.1/bin/nginx -s reload
接下来就可以试下直播的效果了**
- 下载VLC客户端

demo
- 打开项目代码,找到YPPhoneLiveViewController.m文件,将你电脑的ip替换到此处

demo
- 运行项目,点击个人信息界面的我要直播,然后点击开始直播,然后打开VLC客户端,然后File->open network->输入:rtmp://(你的ip):1935/rtmplive/room

demo

demo
- 好了如果顺利了话。。。。 就可以测试一下直播了[]~( ̄▽ ̄)~*
项目展示
启动页


推荐界面


直播以及番剧界面


基于ijkplayer的播放器



写在最后
- 希望能把这个项目写完,还有许许多多的功能点没有写,持续更新中...
每天进步一点点... Bilibili - ( ゜- ゜)つロ乾杯~
文章转自 MichaelHuyp的简书
以上是关于IOS-高仿bilibili项目的主要内容,如果未能解决你的问题,请参考以下文章