MuxWrapper.LiveStreams.reset_stream_key

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

reset_stream_key(client, live_stream_id)

View Source

Specs

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

Provide a function to reset stream key

Parameters

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

Examples

iex> MuxWrapper.client() |> MuxWrapper.LiveStreams.reset_stream_key("stream_id_very_long")
{:ok, 
  %MuxWrapper.EmbeddedSchema.LiveStream{
    created_at: ~N[2021-03-17 09:27:39],
    id: "009cUTpAr01fQgGQdLHnoy62naafkNhYRGQGTqG6O54kE",
    new_asset_settings: %{"playback_policies" => ["public"]},
    playback_ids: [
      %MuxWrapper.EmbeddedSchema.Playback{
        id: "004iSQFtzMHEPnftHqeU8w6UMwUocP1i8nKXtKlHcjI8",
        policy: "public"
      }
    ],
    reconnect_window: 60,
    status: "disabled",
    stream_key: "d0c30be3-7e80-de52-5676-53a87a02c54f"
  }
}