Add video size to dash manifest

This commit is contained in:
Brahim Hadriche committed 2024-07-22 12:56:20 -04:00
1 parent ac36d11930
commit 5a379247c7
2 files changed
+12

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Added
- Sort options to channel live streams
- Video width and height to DASH manifest
## [0.24.6] - 2024-07-08
@@ -313,6 +313,17 @@ class DashManifest
LogWarn("Invalid video stream index, itag:", stream.itag)
continue for
end if
if (stream.width = invalid or stream.height = invalid) and not StringUtils.IsNullOrEmpty(stream.size)
if stream.size.instr("x") > 0
parts = stream.size.Tokenize("x")
if parts.Count() = 2
stream.width = ValidInt(parts[0].toInt())
stream.height = ValidInt(parts[1].toInt())
end if
end if
end if
videoStreams.Push(stream)
end if
end for