MuxWrapper.LiveStreams.create_private_playback_id

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

create_private_playback_id(client, live_stream_id)

View Source

Specs

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

Create a signed new playback ID by asset id. 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.Playbacks.create_private_playback_id(client, "live_stream_id_very_long")
{:ok,
  %MuxWrapper.EmbeddedSchema.Playback{
    id: "yP29YfRnmqr6Ft47nd9FscOTq5Eo63UWB74TJSeo9Es",
    policy: "signed"
  } 
}