Add video size to dash manifest
This commit is contained in:
1 parent
ac36d11930
commit
5a379247c7
2 files changed
+12
No files matched your search
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## Added
|
## Added
|
||||||
|
|
||||||
- Sort options to channel live streams
|
- Sort options to channel live streams
|
||||||
|
- Video width and height to DASH manifest
|
||||||
|
|
||||||
## [0.24.6] - 2024-07-08
|
## [0.24.6] - 2024-07-08
|
||||||
|
|
||||||
|
|||||||
@@ -313,6 +313,17 @@ class DashManifest
|
|||||||
LogWarn("Invalid video stream index, itag:", stream.itag)
|
LogWarn("Invalid video stream index, itag:", stream.itag)
|
||||||
continue for
|
continue for
|
||||||
end if
|
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)
|
videoStreams.Push(stream)
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|||||||
Reference in new issue
Block a user