Skip to content

Commit edf5eab

Browse files
authored
Go SDK 0.9.0 features and bugfixes (#20)
1 parent 1a360df commit edf5eab

File tree

7 files changed

+65
-59
lines changed

7 files changed

+65
-59
lines changed

configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ConfigurationOption func(*Configuration)
2222
func NewConfiguration(opts ...ConfigurationOption) *Configuration {
2323
cfg := &Configuration{
2424
basePath: "https://api.mux.com",
25-
userAgent: "Mux Go | 0.8.0",
25+
userAgent: "Mux Go | 0.9.0",
2626
}
2727
for _, opt := range opts {
2828
opt(cfg)

docs/CreateLiveStreamRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**Passthrough** | **string** | | [optional]
1010
**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]
1111
**Test** | **bool** | | [optional]
12+
**SimulcastTargets** | [**[]CreateSimulcastTargetRequest**](CreateSimulcastTargetRequest.md) | | [optional]
1213

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

docs/LiveStream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**RecentAssetIds** | **[]string** | | [optional]
1111
**Status** | **string** | | [optional]
1212
**PlaybackIds** | [**[]PlaybackId**](PlaybackID.md) | | [optional]
13-
**NewAssetSettings** | [**Asset**](Asset.md) | | [optional]
13+
**NewAssetSettings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
1414
**Passthrough** | **string** | | [optional]
1515
**ReconnectWindow** | **float32** | | [optional]
1616
**ReducedLatency** | **bool** | | [optional]

docs/VideoView.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Name | Type | Description | Notes
1111
**PrerollRequested** | **bool** | | [optional]
1212
**PageType** | **string** | | [optional]
1313
**StartupScore** | **string** | | [optional]
14-
**ViewSeekDuration** | **string** | | [optional]
14+
**ViewSeekDuration** | **int64** | | [optional]
1515
**CountryName** | **string** | | [optional]
1616
**PlayerSourceHeight** | **int32** | | [optional]
1717
**Longitude** | **string** | | [optional]
18-
**BufferingCount** | **string** | | [optional]
19-
**VideoDuration** | **string** | | [optional]
18+
**BufferingCount** | **int64** | | [optional]
19+
**VideoDuration** | **int64** | | [optional]
2020
**PlayerSourceType** | **string** | | [optional]
2121
**City** | **string** | | [optional]
2222
**ViewId** | **string** | | [optional]
2323
**PlatformDescription** | **string** | | [optional]
24-
**VideoStartupPrerollRequestTime** | **string** | | [optional]
24+
**VideoStartupPrerollRequestTime** | **int64** | | [optional]
2525
**ViewerDeviceName** | **string** | | [optional]
2626
**VideoSeries** | **string** | | [optional]
2727
**ViewerApplicationName** | **string** | | [optional]
2828
**UpdatedAt** | **string** | | [optional]
29-
**ViewTotalContentPlaybackTime** | **string** | | [optional]
29+
**ViewTotalContentPlaybackTime** | **int64** | | [optional]
3030
**Cdn** | **string** | | [optional]
3131
**PlayerInstanceId** | **string** | | [optional]
3232
**VideoLanguage** | **string** | | [optional]
@@ -37,35 +37,35 @@ Name | Type | Description | Notes
3737
**PlaybackScore** | **string** | | [optional]
3838
**PageUrl** | **string** | | [optional]
3939
**Metro** | **string** | | [optional]
40-
**ViewMaxRequestLatency** | **string** | | [optional]
41-
**RequestsForFirstPreroll** | **string** | | [optional]
40+
**ViewMaxRequestLatency** | **int64** | | [optional]
41+
**RequestsForFirstPreroll** | **int64** | | [optional]
4242
**ViewTotalDownscaling** | **string** | | [optional]
4343
**Latitude** | **string** | | [optional]
4444
**PlayerSourceHostName** | **string** | | [optional]
4545
**InsertedAt** | **string** | | [optional]
4646
**ViewEnd** | **string** | | [optional]
4747
**MuxEmbedVersion** | **string** | | [optional]
4848
**PlayerLanguage** | **string** | | [optional]
49-
**PageLoadTime** | **int32** | | [optional]
49+
**PageLoadTime** | **int64** | | [optional]
5050
**ViewerDeviceCategory** | **string** | | [optional]
51-
**VideoStartupPrerollLoadTime** | **string** | | [optional]
51+
**VideoStartupPrerollLoadTime** | **int64** | | [optional]
5252
**PlayerVersion** | **string** | | [optional]
53-
**WatchTime** | **int32** | | [optional]
53+
**WatchTime** | **int64** | | [optional]
5454
**PlayerSourceStreamType** | **string** | | [optional]
5555
**PrerollAdTagHostname** | **string** | | [optional]
5656
**ViewerDeviceManufacturer** | **string** | | [optional]
5757
**RebufferingScore** | **string** | | [optional]
5858
**ExperimentName** | **string** | | [optional]
5959
**ViewerOsVersion** | **string** | | [optional]
6060
**PlayerPreload** | **bool** | | [optional]
61-
**BufferingDuration** | **string** | | [optional]
62-
**PlayerViewCount** | **int32** | | [optional]
61+
**BufferingDuration** | **int64** | | [optional]
62+
**PlayerViewCount** | **int64** | | [optional]
6363
**PlayerSoftware** | **string** | | [optional]
64-
**PlayerLoadTime** | **string** | | [optional]
64+
**PlayerLoadTime** | **int64** | | [optional]
6565
**PlatformSummary** | **string** | | [optional]
6666
**VideoEncodingVariant** | **string** | | [optional]
6767
**PlayerWidth** | **int32** | | [optional]
68-
**ViewSeekCount** | **string** | | [optional]
68+
**ViewSeekCount** | **int64** | | [optional]
6969
**ViewerExperienceScore** | **string** | | [optional]
7070
**ViewErrorId** | **int32** | | [optional]
7171
**VideoVariantName** | **string** | | [optional]
@@ -77,7 +77,7 @@ Name | Type | Description | Notes
7777
**Events** | [**[]VideoViewEvent**](VideoViewEvent.md) | | [optional]
7878
**PlayerName** | **string** | | [optional]
7979
**ViewStart** | **string** | | [optional]
80-
**ViewAverageRequestThroughput** | **string** | | [optional]
80+
**ViewAverageRequestThroughput** | **int64** | | [optional]
8181
**VideoProducer** | **string** | | [optional]
8282
**ErrorTypeId** | **int32** | | [optional]
8383
**MuxViewerId** | **string** | | [optional]
@@ -88,31 +88,33 @@ Name | Type | Description | Notes
8888
**VideoContentType** | **string** | | [optional]
8989
**ViewerOsFamily** | **string** | | [optional]
9090
**PlayerPoster** | **string** | | [optional]
91-
**ViewAverageRequestLatency** | **string** | | [optional]
91+
**ViewAverageRequestLatency** | **int64** | | [optional]
9292
**VideoVariantId** | **string** | | [optional]
93-
**PlayerSourceDuration** | **int32** | | [optional]
93+
**PlayerSourceDuration** | **int64** | | [optional]
9494
**PlayerSourceUrl** | **string** | | [optional]
9595
**MuxApiVersion** | **string** | | [optional]
9696
**VideoTitle** | **string** | | [optional]
9797
**Id** | **string** | | [optional]
9898
**ShortTime** | **string** | | [optional]
9999
**RebufferPercentage** | **string** | | [optional]
100-
**TimeToFirstFrame** | **string** | | [optional]
100+
**TimeToFirstFrame** | **int64** | | [optional]
101101
**ViewerUserId** | **string** | | [optional]
102102
**VideoStreamType** | **string** | | [optional]
103-
**PlayerStartupTime** | **int32** | | [optional]
103+
**PlayerStartupTime** | **int64** | | [optional]
104104
**ViewerApplicationVersion** | **string** | | [optional]
105105
**ViewMaxDownscalePercentage** | **string** | | [optional]
106106
**ViewMaxUpscalePercentage** | **string** | | [optional]
107107
**CountryCode** | **string** | | [optional]
108108
**UsedFullscreen** | **bool** | | [optional]
109109
**Isp** | **string** | | [optional]
110-
**PropertyId** | **int32** | | [optional]
110+
**PropertyId** | **int64** | | [optional]
111111
**PlayerAutoplay** | **bool** | | [optional]
112112
**PlayerHeight** | **int32** | | [optional]
113-
**Asn** | **int32** | | [optional]
113+
**Asn** | **int64** | | [optional]
114+
**AsnName** | **string** | | [optional]
114115
**QualityScore** | **string** | | [optional]
115116
**PlayerSoftwareVersion** | **string** | | [optional]
117+
**PlayerMuxPluginName** | **string** | | [optional]
116118

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

model_create_live_stream_request.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type CreateLiveStreamRequest struct {
1010
ReconnectWindow float32 `json:"reconnect_window,omitempty"`
1111
Passthrough string `json:"passthrough,omitempty"`
1212
// 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/
13-
ReducedLatency bool `json:"reduced_latency,omitempty"`
14-
Test bool `json:"test,omitempty"`
13+
ReducedLatency bool `json:"reduced_latency,omitempty"`
14+
Test bool `json:"test,omitempty"`
15+
SimulcastTargets []CreateSimulcastTargetRequest `json:"simulcast_targets,omitempty"`
1516
}

model_live_stream.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
package muxgo
55

66
type LiveStream struct {
7-
Id string `json:"id,omitempty"`
8-
CreatedAt string `json:"created_at,omitempty"`
9-
StreamKey string `json:"stream_key,omitempty"`
10-
ActiveAssetId string `json:"active_asset_id,omitempty"`
11-
RecentAssetIds []string `json:"recent_asset_ids,omitempty"`
12-
Status string `json:"status,omitempty"`
13-
PlaybackIds []PlaybackId `json:"playback_ids,omitempty"`
14-
NewAssetSettings Asset `json:"new_asset_settings,omitempty"`
15-
Passthrough string `json:"passthrough,omitempty"`
16-
ReconnectWindow float32 `json:"reconnect_window,omitempty"`
17-
ReducedLatency bool `json:"reduced_latency,omitempty"`
18-
SimulcastTargets []SimulcastTarget `json:"simulcast_targets,omitempty"`
19-
Test bool `json:"test,omitempty"`
7+
Id string `json:"id,omitempty"`
8+
CreatedAt string `json:"created_at,omitempty"`
9+
StreamKey string `json:"stream_key,omitempty"`
10+
ActiveAssetId string `json:"active_asset_id,omitempty"`
11+
RecentAssetIds []string `json:"recent_asset_ids,omitempty"`
12+
Status string `json:"status,omitempty"`
13+
PlaybackIds []PlaybackId `json:"playback_ids,omitempty"`
14+
NewAssetSettings CreateAssetRequest `json:"new_asset_settings,omitempty"`
15+
Passthrough string `json:"passthrough,omitempty"`
16+
ReconnectWindow float32 `json:"reconnect_window,omitempty"`
17+
ReducedLatency bool `json:"reduced_latency,omitempty"`
18+
SimulcastTargets []SimulcastTarget `json:"simulcast_targets,omitempty"`
19+
Test bool `json:"test,omitempty"`
2020
}

0 commit comments

Comments
 (0)