MuxWrapper.get_live_stream

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

get_live_stream(client, live_stream_id)

View Source

Specs

get_live_stream(
  %Tesla.Client{adapter: term(), fun: term(), post: term(), pre: term()},
  String.t()
) :: %MuxWrapper.EmbeddedSchema.LiveStream{
  created_at: term(),
  id: term(),
  new_asset_settings: term(),
  playback_ids: term(),
  reconnect_window: term(),
  status: term(),
  stream_key: term()
}

Provide a function to get a specific live streaming from Mux

Parameters

  • client: provide by client/0
  • live_stream_id: stream id

Examples

iex> MuxWrapper.client() |> MuxWrapper.get_live_stream("stream_id_very_long")
%MuxWrapper.EmbeddedSchema.LiveStream{
  created_at: ~N[2021-03-16 09:59:26],
  id: "stream_id_very_long",
  new_asset_settings: %{"playback_policies" => ["public"]},
  playback_ids: [
    %MuxWrapper.EmbeddedSchema.Playback{
      id: "playback_id_very_long",
      policy: "public"
    }
  ],
  reconnect_window: 60,
  status: "idle",
  stream_key: "stream_key_very_long"
}