add initial_discontinuity to streaming decoder for testing, add vtt to router

This commit is contained in:
jb-alvarado 2024-09-25 22:01:59 +02:00
parent 5d601844e3
commit e0fe14ea30
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -659,7 +659,9 @@ impl PlayoutConfig {
"-maxrate",
&bitrate,
"-bufsize",
&buff_size
&buff_size,
"-mpegts_flags",
"initial_discontinuity"
]);
}