Skip to content

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

License

Notifications You must be signed in to change notification settings

1595901624/iptv-proxy-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iptv-proxy-rs

What is iptv-proxy-rs

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

Usage

  1. Start iptv-proxy-rs before the video is played.
  2. Precede your m3u8 url with 127.0.0.1:25011/m3u8/. Suppose the url is https://test.m3u8, and the proxy url is http://127.0.0.1:25001/m3u8/https%3A%2F%2Ftest.m3u8 (UrlEncode is required).

Example

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));

License

GPL v3.0

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages