iptv-proxy-rs: A local proxy service for m3u8 files built by rust. The purpose is to solve the CORS problems that occur when playing m3u8 files in electron, tari, walis and other frameworks
- Start
iptv-proxy-rs
before the video is played. - Precede your m3u8 url with
127.0.0.1:25011/m3u8/
. Suppose the url ishttps://test.m3u8
, and the proxy url ishttp://127.0.0.1:25001/m3u8/https%3A%2F%2Ftest.m3u8
(UrlEncode is required).
Windows
+ tauri
:
fn main() {
// Your code...
let mut p = Command::new(r#"iptv_proxy_rs.exe"#).spawn().unwrap();
p.try_wait().unwrap();
// Your code...
}
Before playing:
const playUrl = ref("https://test.m3u8");
const proxyUrl = ref("http://127.0.0.1:25011/m3u8/" + encodeURIComponent(playUrl.value));
GPL v3.0