MuxWrapper.Assets.update_master_access

You're seeing just the function update_master_access, go back to MuxWrapper.Assets module for more information.
Link to this function

update_master_access(client, asset_id)

View Source

Specs

update_master_access(
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()},
  String.t()
) :: tuple()

Provide a high qulity link to download from Mux, suggest read Mux doc first

Parameters

Examples

iex> client = MuxWrapper.client()
%Tesla.Client{
  adapter: nil,
  fun: nil,
  post: [],
  pre: [
    {Tesla.Middleware.BaseUrl, :call, ["https://api.mux.com"]},
    {Tesla.Middleware.BasicAuth, :call,
     [
       %{
         password: "your_password",
         username: "your_username"
       }
     ]}
  ]
}

iex> MuxWrapper.Assets.update_master_access(client, "CO2pRYhPHeLzmv5MnmuRLmUSEYy4TvHj6gKcoU2kM7A")
{:ok,
  %MuxWrapper.EmbeddedSchema.Asset{
    aspect_ratio: "16:9",
    created_at: ~N[2021-03-20 12:43:16],
    duration: 10,
    id: "CO2pRYhPHeLzmv5MnmuRLmUSEYy4TvHj6gKcoU2kM7A",
    master_access: "temporary",
    max_stored_frame_rate: 23.962,
    max_stored_resolution: "SD",
    mp4_support: "none",
    playback_ids: [],
    status: "ready",
    test: true,
    tracks: [
      %MuxWrapper.EmbeddedSchema.Track{
        channels: nil,
        duration: 60.095011,
        encoding: nil,
        frame_rate: nil,
        height: nil,
        id: "kRW00Gn2NfljlA5KBPo01gTf7mijCWvVN801Nh02NTRbTZY",
        max_channel_layout: "stereo",
        max_channels: 2,
        max_frame_rate: nil,
        max_height: nil,
        max_width: nil,
        sample_rate: nil,
        type: "audio",
        width: nil
      },
      %MuxWrapper.EmbeddedSchema.Track{
        channels: nil,
        duration: 60.095,
        encoding: nil,
        frame_rate: nil,
        height: nil,
        id: "Wo6cajmOIRCygGv85fTTVXX29GYSlhUyQVUJA4h41mU",
        max_channel_layout: nil,
        max_channels: nil,
        max_frame_rate: 23.962,
        max_height: 360,
        max_width: 640,
        sample_rate: nil,
        type: "video",
        width: nil
      }
    ]
  }
}