mux_ruby 1.0.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -35
- data/README.md +5 -0
- data/docs/Asset.md +2 -1
- data/docs/AssetsApi.md +157 -0
- data/docs/CreateAssetRequest.md +3 -1
- data/docs/CreateLiveStreamRequest.md +4 -0
- data/docs/CreateSimulcastTargetRequest.md +10 -0
- data/docs/CreateTrackRequest.md +14 -0
- data/docs/CreateTrackResponse.md +8 -0
- data/docs/CreateUploadRequest.md +1 -0
- data/docs/DeliveryReport.md +14 -0
- data/docs/DeliveryUsageApi.md +68 -0
- data/docs/GetMetricTimeseriesDataResponse.md +1 -1
- data/docs/GetOverallValuesResponse.md +1 -1
- data/docs/InputSettings.md +6 -1
- data/docs/InputTrack.md +0 -2
- data/docs/Insight.md +2 -2
- data/docs/ListAllMetricValuesResponse.md +1 -1
- data/docs/ListBreakdownValuesResponse.md +1 -1
- data/docs/ListDeliveryUsageResponse.md +11 -0
- data/docs/ListErrorsResponse.md +1 -1
- data/docs/ListExportsResponse.md +1 -1
- data/docs/ListFilterValuesResponse.md +1 -1
- data/docs/ListFiltersResponse.md +1 -1
- data/docs/ListInsightsResponse.md +1 -1
- data/docs/ListVideoViewsResponse.md +1 -1
- data/docs/LiveStream.md +3 -0
- data/docs/LiveStreamsApi.md +161 -0
- data/docs/SigningKeyResponse.md +1 -1
- data/docs/SimulcastTarget.md +12 -0
- data/docs/SimulcastTargetResponse.md +8 -0
- data/docs/Track.md +5 -2
- data/docs/UpdateAssetMasterAccessRequest.md +8 -0
- data/docs/Upload.md +1 -0
- data/docs/VideoViewResponse.md +1 -1
- data/examples/data/exercise-errors.rb +1 -1
- data/examples/data/exercise-metrics.rb +0 -7
- data/examples/video/exercise-assets.rb +27 -1
- data/examples/video/exercise-delivery-usage.rb +23 -0
- data/examples/video/exercise-live-streams.rb +28 -1
- data/lib/mux_ruby.rb +9 -0
- data/lib/mux_ruby/api/assets_api.rb +174 -0
- data/lib/mux_ruby/api/delivery_usage_api.rb +75 -0
- data/lib/mux_ruby/api/live_streams_api.rb +176 -0
- data/lib/mux_ruby/api_client.rb +7 -2
- data/lib/mux_ruby/api_error.rb +3 -0
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +24 -13
- data/lib/mux_ruby/models/create_asset_request.rb +46 -13
- data/lib/mux_ruby/models/create_live_stream_request.rb +66 -4
- data/lib/mux_ruby/models/create_simulcast_target_request.rb +210 -0
- data/lib/mux_ruby/models/create_track_request.rb +304 -0
- data/lib/mux_ruby/models/create_track_response.rb +184 -0
- data/lib/mux_ruby/models/create_upload_request.rb +13 -4
- data/lib/mux_ruby/models/delivery_report.rb +238 -0
- data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +1 -1
- data/lib/mux_ruby/models/get_overall_values_response.rb +1 -1
- data/lib/mux_ruby/models/input_settings.rb +104 -13
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +46 -0
- data/lib/mux_ruby/models/input_track.rb +4 -22
- data/lib/mux_ruby/models/insight.rb +2 -2
- data/lib/mux_ruby/models/list_all_metric_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_breakdown_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_delivery_usage_response.rb +216 -0
- data/lib/mux_ruby/models/list_errors_response.rb +1 -1
- data/lib/mux_ruby/models/list_exports_response.rb +1 -1
- data/lib/mux_ruby/models/list_filter_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_filters_response.rb +1 -1
- data/lib/mux_ruby/models/list_insights_response.rb +1 -1
- data/lib/mux_ruby/models/list_video_views_response.rb +1 -1
- data/lib/mux_ruby/models/live_stream.rb +33 -4
- data/lib/mux_ruby/models/simulcast_target.rb +259 -0
- data/lib/mux_ruby/models/simulcast_target_response.rb +184 -0
- data/lib/mux_ruby/models/track.rb +86 -13
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +219 -0
- data/lib/mux_ruby/models/upload.rb +13 -4
- data/lib/mux_ruby/models/video_view_response.rb +1 -1
- data/lib/mux_ruby/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +37 -0
- data/spec/api/delivery_usage_api_spec.rb +43 -0
- data/spec/api/live_streams_api_spec.rb +39 -0
- data/spec/models/asset_spec.rb +12 -6
- data/spec/models/create_asset_request_spec.rb +22 -6
- data/spec/models/create_live_stream_request_spec.rb +24 -0
- data/spec/models/create_simulcast_target_request_spec.rb +46 -0
- data/spec/models/create_track_request_spec.rb +78 -0
- data/spec/models/create_track_response_spec.rb +34 -0
- data/spec/models/create_upload_request_spec.rb +6 -0
- data/spec/models/delivery_report_spec.rb +70 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +8 -0
- data/spec/models/input_settings_spec.rb +40 -2
- data/spec/models/input_track_spec.rb +0 -12
- data/spec/models/list_delivery_usage_response_spec.rb +52 -0
- data/spec/models/live_stream_spec.rb +18 -0
- data/spec/models/simulcast_target_response_spec.rb +34 -0
- data/spec/models/simulcast_target_spec.rb +62 -0
- data/spec/models/track_spec.rb +28 -2
- data/spec/models/update_asset_master_access_request_spec.rb +38 -0
- data/spec/models/upload_spec.rb +6 -0
- data/test.sh +28 -0
- metadata +91 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 664515a5f746766972c6c3e9f59a2c841543ca0ab7978d6eab39ecd23880b74d
|
4
|
+
data.tar.gz: 04052222b86990956e14ce2a43843f8397bddea70c2e043fa2863586e9023fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f465821843ac6207dffd085a0db7fec3b306e26fa6ed0b4beb9692896411fafae7f2f6784c70b37107da5978c938d51be59b8a1625f160c7afd0af71bd9bf9ee
|
7
|
+
data.tar.gz: 42fc66417a9e0b2988064fd8b4729303b0dff0c9db5c56b97e71ea5fafa3c2ff100d3f3f5c035dcac19f1be14f5ae22f3c16fbbbca003887064e1efc212275a9
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,58 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mux_ruby (1.
|
4
|
+
mux_ruby (1.5.1)
|
5
5
|
json (~> 2.1, >= 2.1.0)
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ZenTest (4.
|
12
|
-
addressable (2.
|
13
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
ZenTest (4.12.0)
|
12
|
+
addressable (2.7.0)
|
13
|
+
public_suffix (>= 2.0.2, < 5.0)
|
14
14
|
autotest (4.4.6)
|
15
15
|
ZenTest (>= 4.4.1)
|
16
|
-
autotest-fsevent (0.2.
|
16
|
+
autotest-fsevent (0.2.17)
|
17
17
|
sys-uname
|
18
18
|
autotest-growl (0.2.16)
|
19
19
|
autotest-rails-pure (4.1.2)
|
20
|
-
byebug (
|
20
|
+
byebug (11.1.1)
|
21
21
|
coderay (1.1.2)
|
22
22
|
crack (0.4.3)
|
23
23
|
safe_yaml (~> 1.0.0)
|
24
24
|
diff-lcs (1.3)
|
25
|
-
ethon (0.
|
25
|
+
ethon (0.12.0)
|
26
26
|
ffi (>= 1.3.0)
|
27
|
-
ffi (1.
|
28
|
-
hashdiff (0.
|
29
|
-
json (2.
|
30
|
-
method_source (0.
|
31
|
-
pry (0.
|
32
|
-
coderay (~> 1.1
|
33
|
-
method_source (~>
|
34
|
-
pry-byebug (3.
|
35
|
-
byebug (~>
|
36
|
-
pry (~> 0.
|
37
|
-
public_suffix (
|
38
|
-
rake (12.
|
39
|
-
rspec (3.
|
40
|
-
rspec-core (~> 3.
|
41
|
-
rspec-expectations (~> 3.
|
42
|
-
rspec-mocks (~> 3.
|
43
|
-
rspec-core (3.
|
44
|
-
rspec-support (~> 3.
|
45
|
-
rspec-expectations (3.
|
27
|
+
ffi (1.12.2)
|
28
|
+
hashdiff (1.0.1)
|
29
|
+
json (2.3.0)
|
30
|
+
method_source (1.0.0)
|
31
|
+
pry (0.13.1)
|
32
|
+
coderay (~> 1.1)
|
33
|
+
method_source (~> 1.0)
|
34
|
+
pry-byebug (3.9.0)
|
35
|
+
byebug (~> 11.0)
|
36
|
+
pry (~> 0.13.0)
|
37
|
+
public_suffix (4.0.4)
|
38
|
+
rake (12.3.3)
|
39
|
+
rspec (3.9.0)
|
40
|
+
rspec-core (~> 3.9.0)
|
41
|
+
rspec-expectations (~> 3.9.0)
|
42
|
+
rspec-mocks (~> 3.9.0)
|
43
|
+
rspec-core (3.9.1)
|
44
|
+
rspec-support (~> 3.9.1)
|
45
|
+
rspec-expectations (3.9.1)
|
46
46
|
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-mocks (3.
|
47
|
+
rspec-support (~> 3.9.0)
|
48
|
+
rspec-mocks (3.9.1)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-support (3.
|
52
|
-
safe_yaml (1.0.
|
53
|
-
|
50
|
+
rspec-support (~> 3.9.0)
|
51
|
+
rspec-support (3.9.2)
|
52
|
+
safe_yaml (1.0.5)
|
53
|
+
solid_assert (1.0.0)
|
54
|
+
sys-uname (1.2.1)
|
54
55
|
ffi (>= 1.0.0)
|
55
|
-
typhoeus (1.3.
|
56
|
+
typhoeus (1.3.1)
|
56
57
|
ethon (>= 0.9.0)
|
57
58
|
vcr (3.0.3)
|
58
59
|
webmock (1.24.6)
|
@@ -70,10 +71,11 @@ DEPENDENCIES
|
|
70
71
|
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
71
72
|
mux_ruby!
|
72
73
|
pry-byebug
|
73
|
-
rake (~> 12.
|
74
|
+
rake (~> 12.3.3)
|
74
75
|
rspec (~> 3.6, >= 3.6.0)
|
76
|
+
solid_assert
|
75
77
|
vcr (~> 3.0, >= 3.0.1)
|
76
78
|
webmock (~> 1.24, >= 1.24.3)
|
77
79
|
|
78
80
|
BUNDLED WITH
|
79
|
-
1.
|
81
|
+
1.17.2
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
![Mux Ruby Banner](github-ruby-sdk.png)
|
2
2
|
|
3
|
+
![](https://github.com/muxinc/mux-ruby/workflows/Integration%20Test/badge.svg)
|
4
|
+
|
3
5
|
# Mux Ruby
|
4
6
|
|
5
7
|
Official Mux API wrapper for ruby projects, supporting both Mux Data and Mux Video.
|
@@ -112,10 +114,13 @@ All errors inherit from `ApiError`, you can catch it or you can catch one of the
|
|
112
114
|
[Be sure to check out the documentation in the `docs` directory.](docs/)
|
113
115
|
|
114
116
|
## Issues
|
117
|
+
|
115
118
|
If you run into problems, [please raise a GitHub issue,](https://github.com/muxinc/mux-ruby/issues) filling in the issue template. We'll take a look as soon as possible.
|
116
119
|
|
117
120
|
## Contributing
|
121
|
+
|
118
122
|
Please do not submit PRs against this package. It is generated from our OpenAPI definitions - [Please open an issue instead!](https://github.com/muxinc/mux-ruby/issues)
|
119
123
|
|
120
124
|
## License
|
125
|
+
|
121
126
|
[MIT License.](LICENSE) Copyright 2019 Mux, Inc.
|
data/docs/Asset.md
CHANGED
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
|
|
13
13
|
**aspect_ratio** | **String** | | [optional]
|
14
14
|
**playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | | [optional]
|
15
15
|
**tracks** | [**Array<Track>**](Track.md) | | [optional]
|
16
|
-
**demo** | **BOOLEAN** | | [optional]
|
17
16
|
**errors** | [**AssetErrors**](AssetErrors.md) | | [optional]
|
18
17
|
**per_title_encode** | **BOOLEAN** | | [optional]
|
19
18
|
**is_live** | **BOOLEAN** | | [optional]
|
@@ -22,6 +21,8 @@ Name | Type | Description | Notes
|
|
22
21
|
**master** | [**AssetMaster**](AssetMaster.md) | | [optional]
|
23
22
|
**master_access** | **String** | | [optional] [default to 'none']
|
24
23
|
**mp4_support** | **String** | | [optional] [default to 'none']
|
24
|
+
**normalize_audio** | **BOOLEAN** | | [optional] [default to false]
|
25
25
|
**static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
|
26
|
+
**test** | **BOOLEAN** | | [optional]
|
26
27
|
|
27
28
|
|
data/docs/AssetsApi.md
CHANGED
@@ -6,12 +6,15 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**create_asset**](AssetsApi.md#create_asset) | **POST** /video/v1/assets | Create an asset
|
8
8
|
[**create_asset_playback_id**](AssetsApi.md#create_asset_playback_id) | **POST** /video/v1/assets/{ASSET_ID}/playback-ids | Create a playback ID
|
9
|
+
[**create_asset_track**](AssetsApi.md#create_asset_track) | **POST** /video/v1/assets/{ASSET_ID}/tracks | Create an asset track
|
9
10
|
[**delete_asset**](AssetsApi.md#delete_asset) | **DELETE** /video/v1/assets/{ASSET_ID} | Delete an asset
|
10
11
|
[**delete_asset_playback_id**](AssetsApi.md#delete_asset_playback_id) | **DELETE** /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Delete a playback ID
|
12
|
+
[**delete_asset_track**](AssetsApi.md#delete_asset_track) | **DELETE** /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID} | Delete an asset track
|
11
13
|
[**get_asset**](AssetsApi.md#get_asset) | **GET** /video/v1/assets/{ASSET_ID} | Retrieve an asset
|
12
14
|
[**get_asset_input_info**](AssetsApi.md#get_asset_input_info) | **GET** /video/v1/assets/{ASSET_ID}/input-info | Retrieve asset input info
|
13
15
|
[**get_asset_playback_id**](AssetsApi.md#get_asset_playback_id) | **GET** /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Retrieve a playback ID
|
14
16
|
[**list_assets**](AssetsApi.md#list_assets) | **GET** /video/v1/assets | List assets
|
17
|
+
[**update_asset_master_access**](AssetsApi.md#update_asset_master_access) | **PUT** /video/v1/assets/{ASSET_ID}/master-access | Update master access
|
15
18
|
[**update_asset_mp4_support**](AssetsApi.md#update_asset_mp4_support) | **PUT** /video/v1/assets/{ASSET_ID}/mp4-support | Update MP4 support
|
16
19
|
|
17
20
|
|
@@ -117,6 +120,57 @@ Name | Type | Description | Notes
|
|
117
120
|
|
118
121
|
|
119
122
|
|
123
|
+
# **create_asset_track**
|
124
|
+
> CreateTrackResponse create_asset_track(asset_id, create_track_request)
|
125
|
+
|
126
|
+
Create an asset track
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'mux_ruby'
|
132
|
+
# setup authorization
|
133
|
+
MuxRuby.configure do |config|
|
134
|
+
# Configure HTTP basic authorization: accessToken
|
135
|
+
config.username = 'YOUR USERNAME'
|
136
|
+
config.password = 'YOUR PASSWORD'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = MuxRuby::AssetsApi.new
|
140
|
+
asset_id = 'asset_id_example' # String | The asset ID.
|
141
|
+
create_track_request = MuxRuby::CreateTrackRequest.new # CreateTrackRequest |
|
142
|
+
|
143
|
+
begin
|
144
|
+
#Create an asset track
|
145
|
+
result = api_instance.create_asset_track(asset_id, create_track_request)
|
146
|
+
p result
|
147
|
+
rescue MuxRuby::ApiError => e
|
148
|
+
puts "Exception when calling AssetsApi->create_asset_track: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
|
154
|
+
Name | Type | Description | Notes
|
155
|
+
------------- | ------------- | ------------- | -------------
|
156
|
+
**asset_id** | **String**| The asset ID. |
|
157
|
+
**create_track_request** | [**CreateTrackRequest**](CreateTrackRequest.md)| |
|
158
|
+
|
159
|
+
### Return type
|
160
|
+
|
161
|
+
[**CreateTrackResponse**](CreateTrackResponse.md)
|
162
|
+
|
163
|
+
### Authorization
|
164
|
+
|
165
|
+
[accessToken](../README.md#accessToken)
|
166
|
+
|
167
|
+
### HTTP request headers
|
168
|
+
|
169
|
+
- **Content-Type**: application/json
|
170
|
+
- **Accept**: application/json
|
171
|
+
|
172
|
+
|
173
|
+
|
120
174
|
# **delete_asset**
|
121
175
|
> delete_asset(asset_id)
|
122
176
|
|
@@ -215,6 +269,56 @@ nil (empty response body)
|
|
215
269
|
|
216
270
|
|
217
271
|
|
272
|
+
# **delete_asset_track**
|
273
|
+
> delete_asset_track(asset_id, track_id)
|
274
|
+
|
275
|
+
Delete an asset track
|
276
|
+
|
277
|
+
### Example
|
278
|
+
```ruby
|
279
|
+
# load the gem
|
280
|
+
require 'mux_ruby'
|
281
|
+
# setup authorization
|
282
|
+
MuxRuby.configure do |config|
|
283
|
+
# Configure HTTP basic authorization: accessToken
|
284
|
+
config.username = 'YOUR USERNAME'
|
285
|
+
config.password = 'YOUR PASSWORD'
|
286
|
+
end
|
287
|
+
|
288
|
+
api_instance = MuxRuby::AssetsApi.new
|
289
|
+
asset_id = 'asset_id_example' # String | The asset ID.
|
290
|
+
track_id = 'track_id_example' # String | The track ID.
|
291
|
+
|
292
|
+
begin
|
293
|
+
#Delete an asset track
|
294
|
+
api_instance.delete_asset_track(asset_id, track_id)
|
295
|
+
rescue MuxRuby::ApiError => e
|
296
|
+
puts "Exception when calling AssetsApi->delete_asset_track: #{e}"
|
297
|
+
end
|
298
|
+
```
|
299
|
+
|
300
|
+
### Parameters
|
301
|
+
|
302
|
+
Name | Type | Description | Notes
|
303
|
+
------------- | ------------- | ------------- | -------------
|
304
|
+
**asset_id** | **String**| The asset ID. |
|
305
|
+
**track_id** | **String**| The track ID. |
|
306
|
+
|
307
|
+
### Return type
|
308
|
+
|
309
|
+
nil (empty response body)
|
310
|
+
|
311
|
+
### Authorization
|
312
|
+
|
313
|
+
[accessToken](../README.md#accessToken)
|
314
|
+
|
315
|
+
### HTTP request headers
|
316
|
+
|
317
|
+
- **Content-Type**: Not defined
|
318
|
+
- **Accept**: Not defined
|
319
|
+
|
320
|
+
|
321
|
+
|
218
322
|
# **get_asset**
|
219
323
|
> AssetResponse get_asset(asset_id)
|
220
324
|
|
@@ -421,6 +525,59 @@ Name | Type | Description | Notes
|
|
421
525
|
|
422
526
|
|
423
527
|
|
528
|
+
# **update_asset_master_access**
|
529
|
+
> AssetResponse update_asset_master_access(asset_id, update_asset_master_access_request)
|
530
|
+
|
531
|
+
Update master access
|
532
|
+
|
533
|
+
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.
|
534
|
+
|
535
|
+
### Example
|
536
|
+
```ruby
|
537
|
+
# load the gem
|
538
|
+
require 'mux_ruby'
|
539
|
+
# setup authorization
|
540
|
+
MuxRuby.configure do |config|
|
541
|
+
# Configure HTTP basic authorization: accessToken
|
542
|
+
config.username = 'YOUR USERNAME'
|
543
|
+
config.password = 'YOUR PASSWORD'
|
544
|
+
end
|
545
|
+
|
546
|
+
api_instance = MuxRuby::AssetsApi.new
|
547
|
+
asset_id = 'asset_id_example' # String | The asset ID.
|
548
|
+
update_asset_master_access_request = MuxRuby::UpdateAssetMasterAccessRequest.new # UpdateAssetMasterAccessRequest |
|
549
|
+
|
550
|
+
begin
|
551
|
+
#Update master access
|
552
|
+
result = api_instance.update_asset_master_access(asset_id, update_asset_master_access_request)
|
553
|
+
p result
|
554
|
+
rescue MuxRuby::ApiError => e
|
555
|
+
puts "Exception when calling AssetsApi->update_asset_master_access: #{e}"
|
556
|
+
end
|
557
|
+
```
|
558
|
+
|
559
|
+
### Parameters
|
560
|
+
|
561
|
+
Name | Type | Description | Notes
|
562
|
+
------------- | ------------- | ------------- | -------------
|
563
|
+
**asset_id** | **String**| The asset ID. |
|
564
|
+
**update_asset_master_access_request** | [**UpdateAssetMasterAccessRequest**](UpdateAssetMasterAccessRequest.md)| |
|
565
|
+
|
566
|
+
### Return type
|
567
|
+
|
568
|
+
[**AssetResponse**](AssetResponse.md)
|
569
|
+
|
570
|
+
### Authorization
|
571
|
+
|
572
|
+
[accessToken](../README.md#accessToken)
|
573
|
+
|
574
|
+
### HTTP request headers
|
575
|
+
|
576
|
+
- **Content-Type**: application/json
|
577
|
+
- **Accept**: application/json
|
578
|
+
|
579
|
+
|
580
|
+
|
424
581
|
# **update_asset_mp4_support**
|
425
582
|
> AssetResponse update_asset_mp4_support(asset_id, update_asset_mp4_support_request)
|
426
583
|
|
data/docs/CreateAssetRequest.md
CHANGED
@@ -5,9 +5,11 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**input** | [**Array<InputSettings>**](InputSettings.md) | | [optional]
|
7
7
|
**playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | | [optional]
|
8
|
-
**demo** | **BOOLEAN** | | [optional]
|
9
8
|
**per_title_encode** | **BOOLEAN** | | [optional]
|
10
9
|
**passthrough** | **String** | | [optional]
|
11
10
|
**mp4_support** | **String** | | [optional]
|
11
|
+
**normalize_audio** | **BOOLEAN** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
|
12
|
+
**master_access** | **String** | | [optional]
|
13
|
+
**test** | **BOOLEAN** | | [optional]
|
12
14
|
|
13
15
|
|
@@ -5,5 +5,9 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | | [optional]
|
7
7
|
**new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
|
8
|
+
**reconnect_window** | **Float** | 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. Defaults to 60 seconds on the API if not specified. | [optional]
|
9
|
+
**passthrough** | **String** | | [optional]
|
10
|
+
**reduced_latency** | **BOOLEAN** | 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]
|
11
|
+
**test** | **BOOLEAN** | | [optional]
|
8
12
|
|
9
13
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::CreateSimulcastTargetRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**passthrough** | **String** | Arbitrary metadata set by you when creating a simulcast target. | [optional]
|
7
|
+
**stream_key** | **String** | Stream Key represents a stream identifier on the third party live streaming service to send the parent live stream to. | [optional]
|
8
|
+
**url** | **String** | RTMP hostname including application name for the third party live streaming service. Example: 'rtmp://live.example.com/app'. |
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# MuxRuby::CreateTrackRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**url** | **String** | |
|
7
|
+
**type** | **String** | |
|
8
|
+
**text_type** | **String** | |
|
9
|
+
**language_code** | **String** | |
|
10
|
+
**name** | **String** | | [optional]
|
11
|
+
**closed_captions** | **BOOLEAN** | | [optional]
|
12
|
+
**passthrough** | **String** | | [optional]
|
13
|
+
|
14
|
+
|
data/docs/CreateUploadRequest.md
CHANGED
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**timeout** | **Integer** | Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` | [optional] [default to 3600]
|
7
7
|
**cors_origin** | **String** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional]
|
8
8
|
**new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | |
|
9
|
+
**test** | **BOOLEAN** | | [optional]
|
9
10
|
|
10
11
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# MuxRuby::DeliveryReport
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**live_stream_id** | **String** | | [optional]
|
7
|
+
**asset_id** | **String** | | [optional]
|
8
|
+
**passthrough** | **String** | | [optional]
|
9
|
+
**created_at** | **String** | | [optional]
|
10
|
+
**asset_state** | **String** | | [optional]
|
11
|
+
**asset_duration** | **Float** | | [optional]
|
12
|
+
**delivered_seconds** | **Float** | | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# MuxRuby::DeliveryUsageApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_delivery_usage**](DeliveryUsageApi.md#list_delivery_usage) | **GET** /video/v1/delivery-usage | List Usage
|
8
|
+
|
9
|
+
|
10
|
+
# **list_delivery_usage**
|
11
|
+
> ListDeliveryUsageResponse list_delivery_usage(opts)
|
12
|
+
|
13
|
+
List Usage
|
14
|
+
|
15
|
+
Returns a list of delivery usage records and their associated Asset IDs or Live Stream IDs.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'mux_ruby'
|
21
|
+
# setup authorization
|
22
|
+
MuxRuby.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: accessToken
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = MuxRuby::DeliveryUsageApi.new
|
29
|
+
opts = {
|
30
|
+
page: 1, # Integer | Offset by this many pages, of the size of `limit`
|
31
|
+
limit: 100, # Integer | Number of items to include in the response
|
32
|
+
asset_id: 'asset_id_example', # String | Filter response to return delivery usage for this asset only.
|
33
|
+
timeframe: ['timeframe_example'] # Array<String> | Time window to get delivery usage information. timeframe[0] indicates the start time, timeframe[1] indicates the end time in seconds since the Unix epoch. Default time window is 1 hour representing usage from 13th to 12th hour from when the request is made.
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
#List Usage
|
38
|
+
result = api_instance.list_delivery_usage(opts)
|
39
|
+
p result
|
40
|
+
rescue MuxRuby::ApiError => e
|
41
|
+
puts "Exception when calling DeliveryUsageApi->list_delivery_usage: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
|
50
|
+
**limit** | **Integer**| Number of items to include in the response | [optional] [default to 100]
|
51
|
+
**asset_id** | **String**| Filter response to return delivery usage for this asset only. | [optional]
|
52
|
+
**timeframe** | [**Array<String>**](String.md)| Time window to get delivery usage information. timeframe[0] indicates the start time, timeframe[1] indicates the end time in seconds since the Unix epoch. Default time window is 1 hour representing usage from 13th to 12th hour from when the request is made. | [optional]
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**ListDeliveryUsageResponse**](ListDeliveryUsageResponse.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[accessToken](../README.md#accessToken)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|