github.com/muxinc/mux-go@v1.1.1/model_live_stream.go (about) 1 // Mux Go - Copyright 2019 Mux Inc. 2 // NOTE: This file is auto generated. Do not edit this file manually. 3 4 package muxgo 5 6 type LiveStream struct { 7 // Unique identifier for the Live Stream. Max 255 characters. 8 Id string `json:"id,omitempty"` 9 // Time the Live Stream was created, defined as a Unix timestamp (seconds since epoch). 10 CreatedAt string `json:"created_at,omitempty"` 11 // Unique key used for streaming to a Mux RTMP endpoint. This should be considered as sensitive as credentials, anyone with this stream key can begin streaming. 12 StreamKey string `json:"stream_key,omitempty"` 13 // The Asset that is currently being created if there is an active broadcast. 14 ActiveAssetId string `json:"active_asset_id,omitempty"` 15 // An array of strings with the most recent Assets that were created from this live stream. 16 RecentAssetIds []string `json:"recent_asset_ids,omitempty"` 17 // `idle` indicates that there is no active broadcast. `active` indicates that there is an active broadcast and `disabled` status indicates that no future RTMP streams can be published. 18 Status string `json:"status,omitempty"` 19 // An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. 20 PlaybackIds []PlaybackId `json:"playback_ids,omitempty"` 21 NewAssetSettings CreateAssetRequest `json:"new_asset_settings,omitempty"` 22 // Arbitrary metadata set for the asset. Max 255 characters. 23 Passthrough string `json:"passthrough,omitempty"` 24 // The live stream only processes the audio track if the value is set to true. Mux drops the video track if broadcasted. 25 AudioOnly bool `json:"audio_only,omitempty"` 26 // When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. **Min**: 0.1s. **Max**: 300s (5 minutes). 27 ReconnectWindow float32 `json:"reconnect_window,omitempty"` 28 // Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. **Note**: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs. 29 ReducedLatency bool `json:"reduced_latency,omitempty"` 30 // Latency is the time from when the streamer does something in real life to when you see it happen in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds. 31 LowLatency bool `json:"low_latency,omitempty"` 32 // Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms). 33 SimulcastTargets []SimulcastTarget `json:"simulcast_targets,omitempty"` 34 // True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. 35 Test bool `json:"test,omitempty"` 36 }