使用 docker cli 一鍵創(chuàng)建容器
docker run -d --restart unless-stopped --net=host --privileged=true -p 35455:35455 --name allinone youshandefeiyang/allinone
使用 watchtower 定時(shí)更新
# 配置watchtower每天凌晨兩點(diǎn)自動監(jiān)聽allinone鏡像更新指令: docker run -d --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower allinone -c --schedule "0 0 2 * * *"
進(jìn)階優(yōu)化
# 直播源鏡像 youshandefeiyang/allinone 項(xiàng)目的 m3u 進(jìn)行重新分組格式化: docker run -d --restart=always -p 35456:35456 --name allinone_format yuexuangu/allinone_format:latest
訪問
http://內(nèi)網(wǎng)IP:35456/tv.php?h=allinoneIP&p=allinonePort&m=1&t=0
請求參數(shù)說明
h 可選參數(shù) allinone 項(xiàng)目部署的內(nèi)外網(wǎng) IP或域名(不能使用127.0.0.1),默認(rèn)值=請求的內(nèi)網(wǎng)IP p 可選參數(shù) allinone 項(xiàng)目部署的端口,默認(rèn)值=35455 m 可選參數(shù)是否對頻道連接進(jìn)行聚合,默認(rèn)值1=聚合(強(qiáng)烈推薦)0=不聚合(僅推薦不支持聚合格式的殼子使用) t 可選參數(shù)輸出格式默認(rèn)值0=m3u,1=text
http://:35456/tv.php?h=&p=&m=1&t=0
用瀏覽器訪問試一下
圖片
上面替換好的網(wǎng)址就可以放到你的多平臺播放器上打開了!
使用 potplayer 試一下,可以正常播放。 我本地的網(wǎng)絡(luò)體驗(yàn)下來還是停流暢的。
圖片
potplayer添加IPTV列表 打開potplayer后,點(diǎn)擊圖片標(biāo)注的序號1,打開播放列表;點(diǎn)擊標(biāo)注的序號2,新建專輯;點(diǎn)擊標(biāo)注的序號3,創(chuàng)建一個(gè)專輯名;點(diǎn)擊標(biāo)注的序號4,勾選使用外部播放列表,輸入鏈接;然后點(diǎn)擊確定即可創(chuàng)建專輯。
圖片
播放的時(shí)候觀察一下日志
圖片
作者聲明本文無利益相關(guān),歡迎值友理性交流,和諧討論~
,