media streming server - HelloMorningStar/HomeAssistant GitHub Wiki

使用一条简单的命令即可实现网络共享视频文件 python -m SimpleHTTPServer 8080 ,但是需要在iPhone端安装APP才能实现播放。
问题提出,搭建一个流媒体服务器,iPhone是否可以从safari浏览器直接点击观看呢?我在网上没有看到答案,那么就自己测试一下吧!
关于Setting up HLS live streaming server,那么就试一试!?

1,首先Nginx不能直接安装,需要下载相关的插件,然后编译一下再安装!

git clone https://github.com/sergey-dryabzhinsky/nginx-rtmp-module.git
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
wget http://nginx.org/download/nginx-1.14.2.tar.gz
tar -xf nginx-1.14.2.tar.gz
cd nginx-1.14.2
我的系统缺少zlib,这里安装一下
sudo apt-get install zlib1g-dev
后续如果要开启aio on 这里需要增加 --with-file-aio
sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module --with-file-aio
sudo make -j 1
sudo make install

2,Create nginx configuration file

配置文件如下:
点击参考

3,Start nginx

The nginx binary is located wherever you compiled it to - /usr/local/nginx/sbin/nginx by default. Change it to reflect your path.
Test the configuration file
/usr/local/nginx/sbin/nginx -t
Start nginx in the background
/usr/local/nginx/sbin/nginx
Start nginx in the foreground
/usr/local/nginx/sbin/nginx -g 'daemon off
Reload the config on the go
/usr/local/nginx/sbin/nginx -t && nginx -s reload
Kill nginx
/usr/local/nginx/sbin/nginx -s stop

4,如何把smba网络硬盘文件夹挂载到hls目录下,可以播放吗?

目前没有成功!!!