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:
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")
|
||||
|
||||
Reference in new issue
Block a user