Feature/dash improvements (#778)

* Parse post live dvr info

* add otf info

* dash rework

* Bug in detecting live videos in HLS streams

* small refactor

* otf support (maybe)

* remove indexRangeExact

* tweak

* Enable OTF, and hope for the best

* Fix OTF and post live dvr

* logs

* tweaks and error handling

* change profile

* dash tweaks

* hls tweak
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-11-05 20:54:28 -05:00
1 parent b80b067afb
commit 5a8762c7e5
6 files changed
+808 -337

No files matched your search

@@ -55,6 +55,24 @@ namespace Http
qualityFilter = m.CreateQualityFilter(quality)
xmlContent = m.dashManifest.FromVideoMetadata(metadata, qualityFilter, ValidString(local) = "true")
if xmlContent.InStr("[ERROR]") <> -1
LogError("Dash manifest generated with errors")
lastPlayerResponse = ValidString(ReadAsciiFile("cachefs:/last_player_response.json"))
LogTelemetryEvent({
level: "error"
message: "Dash manifest generated with errors"
attachments: [{
filename: "dash.xml"
content_type: "text/plain"
data: xmlContent
}, {
filename: "last_player_response.json"
content_type: "application/json"
data: lastPlayerResponse
}]
})
end if
response.http_code = 200
response.SetBodyDataString(xmlContent)
response.ContentType("application/dash+xml")
@@ -127,6 +127,9 @@ namespace Http
if ValidBool(metadata.liveNow) or ValidBool(metadata.hasLiveStreamingData)
return hlsManifest
end if
if hlsManifest.InStr("/source/yt_live_broadcast") <> -1 or hlsManifest.InStr("/live/1") <> -1
return hlsManifest
end if
storyboards = metadata.storyboards
if not IsArray(storyboards)