mirror of
https://github.com/v0l/zap-stream-core.git
synced 2025-06-20 05:30:29 +00:00
This commit is contained in:
@ -88,25 +88,25 @@ impl HttpServer {
|
||||
router.insert("/index.html", HttpServerPath::Index).unwrap();
|
||||
router
|
||||
.insert(
|
||||
format!("/{}/{{stream}}/live.m3u8", HlsEgress::PATH),
|
||||
format!("/{{stream}}/{}/live.m3u8", HlsEgress::PATH),
|
||||
HttpServerPath::HlsMasterPlaylist,
|
||||
)
|
||||
.unwrap();
|
||||
router
|
||||
.insert(
|
||||
format!("/{}/{{stream}}/{{variant}}/live.m3u8", HlsEgress::PATH),
|
||||
format!("/{{stream}}/{}/{{variant}}/live.m3u8", HlsEgress::PATH),
|
||||
HttpServerPath::HlsVariantPlaylist,
|
||||
)
|
||||
.unwrap();
|
||||
router
|
||||
.insert(
|
||||
format!("/{}/{{stream}}/{{variant}}/{{seg}}.ts", HlsEgress::PATH),
|
||||
format!("/{{stream}}/{}/{{variant}}/{{seg}}.ts", HlsEgress::PATH),
|
||||
HttpServerPath::HlsSegmentFile,
|
||||
)
|
||||
.unwrap();
|
||||
router
|
||||
.insert(
|
||||
format!("/{}/{{stream}}/{{variant}}/{{seg}}.m4s", HlsEgress::PATH),
|
||||
format!("/{{stream}}/{}/{{variant}}/{{seg}}.m4s", HlsEgress::PATH),
|
||||
HttpServerPath::HlsSegmentFile,
|
||||
)
|
||||
.unwrap();
|
||||
|
Reference in New Issue
Block a user