Skip to content

Commit 9b33c78

Browse files
committed
[release] 0.14.0
1 parent 744e166 commit 9b33c78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+424
-176
lines changed

api_assets.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,10 @@ func (a *AssetsApiService) GetAssetPlaybackId(aSSETID string, pLAYBACKID string,
666666
}
667667

668668
type ListAssetsParams struct {
669-
Limit int32
670-
Page int32
669+
Limit int32
670+
Page int32
671+
LiveStreamId string
672+
UploadId string
671673
}
672674

673675
// ListAssets optionally accepts the APIOption of WithParams(*ListAssetsParams).
@@ -704,6 +706,12 @@ func (a *AssetsApiService) ListAssets(opts ...APIOption) (ListAssetsResponse, er
704706
if localVarOptionals != nil && isSet(localVarOptionals.Page) {
705707
localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page, ""))
706708
}
709+
if localVarOptionals != nil && isSet(localVarOptionals.LiveStreamId) {
710+
localVarQueryParams.Add("live_stream_id", parameterToString(localVarOptionals.LiveStreamId, ""))
711+
}
712+
if localVarOptionals != nil && isSet(localVarOptionals.UploadId) {
713+
localVarQueryParams.Add("upload_id", parameterToString(localVarOptionals.UploadId, ""))
714+
}
707715
// to determine the Content-Type header
708716
localVarHttpContentTypes := []string{}
709717

api_exports.go

+74
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,77 @@ func (a *ExportsApiService) ListExports(opts ...APIOption) (ListExportsResponse,
8484

8585
return localVarReturnValue, nil
8686
}
87+
88+
func (a *ExportsApiService) ListExportsViews(opts ...APIOption) (ListVideoViewExportsResponse, error) {
89+
var (
90+
localVarAPIOptions = new(APIOptions)
91+
localVarHttpMethod = strings.ToUpper("Get")
92+
localVarPostBody interface{}
93+
localVarFormFileName string
94+
localVarFileName string
95+
localVarFileBytes []byte
96+
localVarReturnValue ListVideoViewExportsResponse
97+
)
98+
99+
for _, opt := range opts {
100+
opt(localVarAPIOptions)
101+
}
102+
103+
// create path and map variables
104+
localVarPath := a.client.cfg.basePath + "/data/v1/exports/views"
105+
106+
localVarHeaderParams := make(map[string]string)
107+
localVarQueryParams := url.Values{}
108+
localVarFormParams := url.Values{}
109+
110+
// to determine the Content-Type header
111+
localVarHttpContentTypes := []string{}
112+
113+
// set Content-Type header
114+
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
115+
if localVarHttpContentType != "" {
116+
localVarHeaderParams["Content-Type"] = localVarHttpContentType
117+
}
118+
119+
// to determine the Accept header
120+
localVarHttpHeaderAccepts := []string{"application/json"}
121+
122+
// set Accept header
123+
localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
124+
if localVarHttpHeaderAccept != "" {
125+
localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
126+
}
127+
128+
r, err := a.client.prepareRequest(localVarAPIOptions, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes)
129+
if err != nil {
130+
return localVarReturnValue, err
131+
}
132+
133+
localVarHttpResponse, err := a.client.callAPI(r)
134+
if err != nil || localVarHttpResponse == nil {
135+
return localVarReturnValue, err
136+
}
137+
138+
localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
139+
localVarHttpResponse.Body.Close()
140+
if err != nil {
141+
return localVarReturnValue, err
142+
}
143+
144+
// Check for common HTTP error status codes
145+
err = CheckForHttpError(localVarHttpResponse.StatusCode, localVarBody)
146+
if err != nil {
147+
return localVarReturnValue, err
148+
}
149+
150+
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"))
151+
if err != nil {
152+
newErr := GenericOpenAPIError{
153+
body: localVarBody,
154+
error: err.Error(),
155+
}
156+
return localVarReturnValue, newErr
157+
}
158+
159+
return localVarReturnValue, nil
160+
}

api_live_streams.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ func (a *LiveStreamsApiService) GetLiveStreamSimulcastTarget(lIVESTREAMID string
741741
}
742742

743743
type ListLiveStreamsParams struct {
744-
Limit int32
745-
Page int32
744+
Limit int32
745+
Page int32
746+
StreamKey string
746747
}
747748

748749
// ListLiveStreams optionally accepts the APIOption of WithParams(*ListLiveStreamsParams).
@@ -779,6 +780,9 @@ func (a *LiveStreamsApiService) ListLiveStreams(opts ...APIOption) (ListLiveStre
779780
if localVarOptionals != nil && isSet(localVarOptionals.Page) {
780781
localVarQueryParams.Add("page", parameterToString(localVarOptionals.Page, ""))
781782
}
783+
if localVarOptionals != nil && isSet(localVarOptionals.StreamKey) {
784+
localVarQueryParams.Add("stream_key", parameterToString(localVarOptionals.StreamKey, ""))
785+
}
782786
// to determine the Content-Type header
783787
localVarHttpContentTypes := []string{}
784788

api_real_time.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ type GetRealtimeHistogramTimeseriesParams struct {
125125
}
126126

127127
// GetRealtimeHistogramTimeseries optionally accepts the APIOption of WithParams(*GetRealtimeHistogramTimeseriesParams).
128-
func (a *RealTimeApiService) GetRealtimeHistogramTimeseries(rEALTIMEMETRICID string, opts ...APIOption) (GetRealTimeHistogramTimeseriesResponse, error) {
128+
func (a *RealTimeApiService) GetRealtimeHistogramTimeseries(rEALTIMEHISTOGRAMMETRICID string, opts ...APIOption) (GetRealTimeHistogramTimeseriesResponse, error) {
129129
var (
130130
localVarAPIOptions = new(APIOptions)
131131
localVarHttpMethod = strings.ToUpper("Get")
@@ -146,8 +146,8 @@ func (a *RealTimeApiService) GetRealtimeHistogramTimeseries(rEALTIMEMETRICID str
146146
}
147147

148148
// create path and map variables
149-
localVarPath := a.client.cfg.basePath + "/data/v1/realtime/metrics/{REALTIME_METRIC_ID}/histogram-timeseries"
150-
localVarPath = strings.Replace(localVarPath, "{"+"REALTIME_METRIC_ID"+"}", fmt.Sprintf("%v", rEALTIMEMETRICID), -1)
149+
localVarPath := a.client.cfg.basePath + "/data/v1/realtime/metrics/{REALTIME_HISTOGRAM_METRIC_ID}/histogram-timeseries"
150+
localVarPath = strings.Replace(localVarPath, "{"+"REALTIME_HISTOGRAM_METRIC_ID"+"}", fmt.Sprintf("%v", rEALTIMEHISTOGRAMMETRICID), -1)
151151

152152
localVarHeaderParams := make(map[string]string)
153153
localVarQueryParams := url.Values{}

docs/Asset.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Id** | **string** | Unique identifier for the Asset. | [optional]
7-
**CreatedAt** | **string** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
8-
**DeletedAt** | **string** | | [optional]
6+
**Id** | **string** | Unique identifier for the Asset. Max 255 characters. | [optional]
7+
**CreatedAt** | **string** | Time the Asset was created, defined as a Unix timestamp (seconds since epoch). | [optional]
98
**Status** | **string** | The status of the asset. | [optional]
10-
**Duration** | **float64** | The duration of the asset in seconds (max duration for a single asset is 24 hours). | [optional]
9+
**Duration** | **float64** | The duration of the asset in seconds (max duration for a single asset is 12 hours). | [optional]
1110
**MaxStoredResolution** | **string** | The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional]
12-
**MaxStoredFrameRate** | **float64** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional]
11+
**MaxStoredFrameRate** | **float64** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional]
1312
**AspectRatio** | **string** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional]
14-
**PlaybackIds** | [**[]PlaybackId**](PlaybackID.md) | | [optional]
15-
**Tracks** | [**[]Track**](Track.md) | | [optional]
13+
**PlaybackIds** | [**[]PlaybackId**](PlaybackID.md) | 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. | [optional]
14+
**Tracks** | [**[]Track**](Track.md) | The individual media tracks that make up an asset. | [optional]
1615
**Errors** | [**AssetErrors**](Asset_errors.md) | | [optional]
1716
**PerTitleEncode** | **bool** | | [optional]
17+
**UploadId** | **string** | Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. | [optional]
1818
**IsLive** | **bool** | Whether the asset is created from a live stream and the live stream is currently `active` and not in `idle` state. | [optional]
1919
**Passthrough** | **string** | Arbitrary metadata set for the asset. Max 255 characters. | [optional]
2020
**LiveStreamId** | **string** | Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. | [optional]
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
2626
**StaticRenditions** | [**AssetStaticRenditions**](Asset_static_renditions.md) | | [optional]
2727
**RecordingTimes** | [**[]AssetRecordingTimes**](Asset_recording_times.md) | An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream | [optional]
2828
**NonStandardInputReasons** | [**AssetNonStandardInputReasons**](Asset_non_standard_input_reasons.md) | | [optional]
29-
**Test** | **bool** | Indicates this asset is a test asset if the value is `true`. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional]
29+
**Test** | **bool** | True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional]
3030

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

docs/AssetMaster.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**Status** | **string** | | [optional]
7-
**Url** | **string** | | [optional]
7+
**Url** | **string** | The temporary URL to the master version of the video, as an MP4 file. This URL will expire after 24 hours. | [optional]
88

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

docs/AssetNonStandardInputReasons.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**VideoCodec** | **string** | The video codec used on the input file. | [optional]
7-
**AudioCodec** | **string** | The audio codec used on the input file. | [optional]
8-
**VideoGopSize** | **string** | The video key frame Interval (also called as Group of Picture or GOP) of the input file. | [optional]
9-
**VideoFrameRate** | **string** | The video frame rate of the input file. | [optional]
10-
**VideoResolution** | **string** | The video resolution of the input file. | [optional]
6+
**VideoCodec** | **string** | The video codec used on the input file. For example, the input file encoded with `hevc` video codec is non-standard and the value of this parameter is `hevc`. | [optional]
7+
**AudioCodec** | **string** | The audio codec used on the input file. Non-AAC audio codecs are non-standard. | [optional]
8+
**VideoGopSize** | **string** | The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 10 seconds. | [optional]
9+
**VideoFrameRate** | **string** | The video frame rate of the input file. Video with average frames per second (fps) less than 10 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. | [optional]
10+
**VideoResolution** | **string** | The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as `width` x `height` in pixels. | [optional]
1111
**PixelAspectRatio** | **string** | The video pixel aspect ratio of the input file. | [optional]
1212
**VideoEditList** | **string** | Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List. | [optional]
1313
**AudioEditList** | **string** | Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List. | [optional]

docs/AssetStaticRenditions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**Status** | **string** | Indicates the status of downloadable MP4 versions of this asset. | [optional] [default to STATUS_DISABLED]
7-
**Files** | [**[]AssetStaticRenditionsFiles**](Asset_static_renditions_files.md) | | [optional]
7+
**Files** | [**[]AssetStaticRenditionsFiles**](Asset_static_renditions_files.md) | Array of file objects. | [optional]
88

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

docs/AssetStaticRenditionsFiles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**Height** | **int32** | The height of the static rendition's file in pixels | [optional]
99
**Width** | **int32** | The width of the static rendition's file in pixels | [optional]
1010
**Bitrate** | **int64** | The bitrate in bits per second | [optional]
11-
**Filesize** | **string** | | [optional]
11+
**Filesize** | **string** | The file size in bytes | [optional]
1212

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

docs/AssetsApi.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Method | HTTP request | Description
2222
> AssetResponse CreateAsset(ctx, createAssetRequest)
2323
Create an asset
2424

25-
Create a new Mux Video asset.
25+
Create a new Mux Video asset.
2626

2727
### Required Parameters
2828

@@ -104,7 +104,7 @@ Name | Type | Description | Notes
104104
> DeleteAsset(ctx, aSSETID)
105105
Delete an asset
106106

107-
Deletes a video asset and all its data
107+
Deletes a video asset and all its data.
108108

109109
### Required Parameters
110110

@@ -269,7 +269,7 @@ Name | Type | Description | Notes
269269
> ListAssetsResponse ListAssets(ctx, optional)
270270
List assets
271271

272-
List all Mux assets.
272+
List all Mux assets.
273273

274274
### Required Parameters
275275

@@ -285,6 +285,8 @@ Name | Type | Description | Notes
285285
------------- | ------------- | ------------- | -------------
286286
**limit** | **optional.Int32**| Number of items to include in the response | [default to 25]
287287
**page** | **optional.Int32**| Offset by this many pages, of the size of `limit` | [default to 1]
288+
**liveStreamId** | **optional.String**| Filter response to return all the assets for this live stream only |
289+
**uploadId** | **optional.String**| Filter response to return an asset created from this direct upload only |
288290

289291
### Return type
290292

@@ -305,7 +307,7 @@ Name | Type | Description | Notes
305307
> AssetResponse UpdateAssetMasterAccess(ctx, aSSETID, updateAssetMasterAccessRequest)
306308
Update master access
307309

308-
Allows you add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to \"none\". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline.
310+
Allows you to add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to \"none\". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline.
309311

310312
### Required Parameters
311313

@@ -334,7 +336,7 @@ Name | Type | Description | Notes
334336
> AssetResponse UpdateAssetMp4Support(ctx, aSSETID, updateAssetMp4SupportRequest)
335337
Update MP4 support
336338

337-
Allows you add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.
339+
Allows you to add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.
338340

339341
### Required Parameters
340342

docs/CreateAssetRequest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Name | Type | Description | Notes
77
**PlaybackPolicy** | [**[]PlaybackPolicy**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
88
**PerTitleEncode** | **bool** | | [optional]
99
**Passthrough** | **string** | Arbitrary metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
10-
**Mp4Support** | **string** | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your vidoes guide](/guides/video/download-your-videos) for more information. | [optional]
10+
**Mp4Support** | **string** | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](/guides/video/download-your-videos) for more information. | [optional]
1111
**NormalizeAudio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
12-
**MasterAccess** | **string** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your vidoes guide](/guides/video/download-your-videos) for more information. | [optional]
12+
**MasterAccess** | **string** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](/guides/video/download-your-videos) for more information. | [optional]
1313
**Test** | **bool** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional]
1414

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

0 commit comments

Comments
 (0)