mux-ruby icon indicating copy to clipboard operation
mux-ruby copied to clipboard

Incorrect asset static renditions status

Open masterT opened this issue 7 months ago • 4 comments

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

masterT avatar Mar 14 '25 14:03 masterT