Add 'targetDurationSec' and 'maxDvrDurationSec' to videos API

This commit is contained in:
Samantaz Fox 2022-05-01 17:00:56 +02:00
parent 04953d97ad
commit 7f2176d7fc
No known key found for this signature in database
GPG Key ID: F42821059186176E
1 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,10 @@ struct Video
end
end
# Livestream chunk infos
json.field "targetDurationSec", fmt["targetDurationSec"].as_i if fmt.has_key?("targetDurationSec")
json.field "maxDvrDurationSec", fmt["maxDvrDurationSec"].as_i if fmt.has_key?("maxDvrDurationSec")
# Audio-related data
json.field "audioQuality", fmt["audioQuality"] if fmt.has_key?("audioQuality")
json.field "audioSampleRate", fmt["audioSampleRate"].as_s.to_i if fmt.has_key?("audioSampleRate")