add initial_discontinuity to streaming decoder for testing, add vtt to router
This commit is contained in:
parent
5d601844e3
commit
e0fe14ea30
@ -1332,7 +1332,10 @@ async fn get_public(
|
||||
) -> Result<actix_files::NamedFile, ServiceError> {
|
||||
let (id, public, file_stem) = path.into_inner();
|
||||
|
||||
let absolute_path = if file_stem.ends_with(".ts") || file_stem.ends_with(".m3u8") {
|
||||
let absolute_path = if file_stem.ends_with(".ts")
|
||||
|| file_stem.ends_with(".m3u8")
|
||||
|| file_stem.ends_with(".vtt")
|
||||
{
|
||||
let manager = controllers.lock().unwrap().get(id).unwrap();
|
||||
let config = manager.config.lock().unwrap();
|
||||
config.channel.hls_path.join(public)
|
||||
|
@ -659,7 +659,9 @@ impl PlayoutConfig {
|
||||
"-maxrate",
|
||||
&bitrate,
|
||||
"-bufsize",
|
||||
&buff_size
|
||||
&buff_size,
|
||||
"-mpegts_flags",
|
||||
"initial_discontinuity"
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user