mux-ruby
mux-ruby copied to clipboard
Incorrect asset static renditions status
When using static_renditions and video_quality to create an asset it does not contains static_renditions.status. The gem is inferring the value to "disabled".
{
"static_renditions": {
"files": [
{
"width": 1280,
"type": "standard",
"status": "ready",
"resolution_tier": "720p",
"resolution": "highest",
"name": "highest.mp4",
"id": "...",
"height": 720,
"filesize": 1925067,
"ext": "mp4",
"bitrate": 1538816
}
]
}
}
MuxRuby::AssetStaticRenditions.new.status
=> "disabled"
I would expect it to return nil same when setting it explicitly to nil:
MuxRuby::AssetStaticRenditions.new(status: nil).status
# => nil