retv

command module
v0.0.0-...-a1c4c37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 16 Imported by: 0

README

retv

一个简单的 m3u 代理

Apple TV 的某些 iptv 播放器(底层使用的 VLC)地址中有 IPv6 地址时无法播放,因此有了这个简单代理

caddy 配置

:80 {
  bind 192.168.1.200
  route {
    reverse_proxy /r/* 127.0.0.1:18090
    reverse_proxy /rtp/* 127.0.0.1:18090

    file_server /* {
      root  /var/www/html
    }
  }
}

systemd 服务文件

[Unit]
Description=Reverse Proxy for IPTV Service
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
PIDFile=/run/retv.pid
ExecStart=/usr/bin/retv -l 127.0.0.1:18090
Restart=always
LimitNOFILE=4096
RestartSec=3

[Install]
WantedBy=multi-user.target

system状态更新

systemctl status retv

report status like:

Status: "RTP(stream: 1, client: 2), HLS(client: 1)"

参考资料

  1. https://en.wikipedia.org/wiki/RTP_payload_formats

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL