Skip to content

Commit

Permalink
Support reduced latency live streaming (muxinc#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
philcluff authored Jul 17, 2019
1 parent 854b743 commit 9a3f093
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type ConfigurationOption func(*Configuration)
func NewConfiguration(opts ...ConfigurationOption) *Configuration {
cfg := &Configuration{
basePath: "https://api.mux.com",
userAgent: "Mux Go | 0.2.1",
userAgent: "Mux Go | 0.2.2",
}
for _, opt := range opts {
opt(cfg)
Expand Down
1 change: 1 addition & 0 deletions docs/CreateLiveStreamRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**NewAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
**ReconnectWindow** | **float32** | 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. Default: 60 seconds | [optional] [default to 60]
**Passthrough** | **string** | | [optional]
**ReducedLatency** | **bool** | 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. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/LiveStream.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**NewAssetSettings** | [**Asset**](Asset.md) | | [optional]
**Passthrough** | **string** | | [optional]
**ReconnectWindow** | **float64** | | [optional]
**ReducedLatency** | **bool** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 2 additions & 0 deletions model_create_live_stream_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ type CreateLiveStreamRequest struct {
// 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. Default: 60 seconds
ReconnectWindow float32 `json:"reconnect_window,omitempty"`
Passthrough string `json:"passthrough,omitempty"`
// 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. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/
ReducedLatency bool `json:"reduced_latency,omitempty"`
}
1 change: 1 addition & 0 deletions model_live_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ type LiveStream struct {
NewAssetSettings Asset `json:"new_asset_settings,omitempty"`
Passthrough string `json:"passthrough,omitempty"`
ReconnectWindow float64 `json:"reconnect_window,omitempty"`
ReducedLatency bool `json:"reduced_latency,omitempty"`
}

0 comments on commit 9a3f093

Please sign in to comment.