项目地址:https://github.com/fraunhoferhhi/omaf.js.git
1. 安装nginx
brew install nginx
2. 下载代码
mkdir ~/omafserver && cd ~/omafserver
git clone https://github.com/fraunhoferhhi/omaf.js.git
curl https://datacloud.hhi.fraunhofer.de/s/yojnrKZqWmmWCwy/download -o content.zip
unzip -q content.zip
3. 配置nginx
官方方案-(我试了会报错)
touch /usr/local/etc/nginx/servers/omafserver.conf
open -t /usr/local/etc/nginx/servers/omafserver.conf
解决方案
-
进入/opt/homebrew/etc/nginx,新建server文件夹 -
终端输入
- touch /usr/local/etc/nginx/servers/omafserver.conf
- open -t /usr/local/etc/nginx/servers/omafserver.conf
4. 启动nginx
brew services start nginx
5. 访问
- 打开Safari浏览器,进入http://127.0.0.1:5555/omaf.js/
- 在mpd地址输入http://127.0.0.1:5555/Garage_gb2/dash/Garage_live.mpd,点击load
|