MuxWrapper.Assets.set_mp4_support

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

set_mp4_support(client, asset_id)

View Source

Specs

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

Provide mp4 support(added) to 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.set_mp4_support(client, "doS01p7VusXkwqfhe18LDttqIXV4xqXvd53K8ORee501k")
{:ok,
  %MuxWrapper.EmbeddedSchema.Asset{
    aspect_ratio: "16:9",
    created_at: ~N[2021-03-19 14:37:50],
    duration: 10,
    id: "doS01p7VusXkwqfhe18LDttqIXV4xqXvd53K8ORee501k",
    master_access: "temporary",
    max_stored_frame_rate: 23.962,
    max_stored_resolution: "SD",
    mp4_support: "standard",
    playback_ids: [],
    status: "ready",
    test: true,
    tracks: [
      %MuxWrapper.EmbeddedSchema.Track{
        channels: nil,
        duration: 60.095011,
        encoding: nil,
        frame_rate: nil,
        height: nil,
        id: "J00OusXFvcz9UJo93Vd5bFs1EsXX9cd1HqLs6lPWrRSA",
        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: "2xI4b59vNk02DZ01EmtGk2bOYSb1vY4lmtmb6luBW500Tw",
        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
      }
    ]
  } 
}