MuxWrapper.list_all_live_stream
You're seeing just the function
list_all_live_stream
, go back to MuxWrapper module for more information.
Provide a function to list all live streams in Mux, support pagnation see Mux doc
## Parameters
- client: provide by
client/0
- opt: pagnation query params, can pass a Map like this
%{limit: 10, page: 3}
. If don't pass, the default value from Mux is limit: 25 and page: 1
## Example
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.list_all_live_stream(client, %{limit: 1, page: 1})
%MuxWrapper.EmbeddedSchema.LiveStream{
created_at: ~N[2021-03-16 09:59:26],
id: "livestream_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"
}