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