mux_ruby 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/Asset.md +13 -12
- data/docs/AssetErrors.md +2 -2
- data/docs/AssetNonStandardInputReasons.md +9 -9
- data/docs/AssetRecordingTimes.md +2 -2
- data/docs/AssetStaticRenditions.md +1 -1
- data/docs/AssetsApi.md +4 -0
- data/docs/CreateAssetRequest.md +6 -6
- data/docs/CreateTrackRequest.md +4 -4
- data/docs/GetAssetOrLiveStreamIdResponse.md +8 -0
- data/docs/GetAssetOrLiveStreamIdResponseData.md +10 -0
- data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +9 -0
- data/docs/InputSettings.md +9 -7
- data/docs/InputSettingsOverlaySettings.md +7 -7
- data/docs/PlaybackID.md +1 -1
- data/docs/PlaybackIDApi.md +60 -0
- data/docs/Track.md +13 -13
- data/examples/video/exercise-assets.rb +21 -0
- data/examples/video/exercise-live-streams.rb +8 -0
- data/lib/mux_ruby.rb +4 -0
- data/lib/mux_ruby/api/assets_api.rb +4 -0
- data/lib/mux_ruby/api/playback_id_api.rb +69 -0
- data/lib/mux_ruby/api_client.rb +12 -12
- data/lib/mux_ruby/models/asset.rb +38 -4
- data/lib/mux_ruby/models/asset_errors.rb +2 -0
- data/lib/mux_ruby/models/asset_master.rb +35 -0
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +13 -13
- data/lib/mux_ruby/models/asset_recording_times.rb +2 -2
- data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +2 -2
- data/lib/mux_ruby/models/create_asset_request.rb +8 -2
- data/lib/mux_ruby/models/create_track_request.rb +6 -2
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +184 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +203 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +230 -0
- data/lib/mux_ruby/models/input_settings.rb +31 -4
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +10 -2
- data/lib/mux_ruby/models/playback_id.rb +1 -0
- data/lib/mux_ruby/models/simulcast_target.rb +1 -1
- data/lib/mux_ruby/models/track.rb +27 -2
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +1 -1
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +1 -1
- data/lib/mux_ruby/models/upload.rb +1 -1
- data/lib/mux_ruby/version.rb +1 -1
- data/mux_ruby.gemspec +2 -0
- data/spec/api/assets_api_spec.rb +2 -0
- data/spec/api/playback_id_api_spec.rb +40 -0
- data/spec/models/asset_master_spec.rb +4 -0
- data/spec/models/asset_spec.rb +10 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +44 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +46 -0
- data/spec/models/get_asset_or_live_stream_id_response_spec.rb +34 -0
- data/spec/models/input_settings_spec.rb +12 -0
- data/spec/models/track_spec.rb +4 -0
- metadata +106 -89
@@ -186,6 +186,7 @@ module MuxRuby
|
|
186
186
|
end
|
187
187
|
|
188
188
|
# Delete an asset
|
189
|
+
# Deletes a video asset and all its data
|
189
190
|
# @param asset_id The asset ID.
|
190
191
|
# @param [Hash] opts the optional parameters
|
191
192
|
# @return [nil]
|
@@ -195,6 +196,7 @@ module MuxRuby
|
|
195
196
|
end
|
196
197
|
|
197
198
|
# Delete an asset
|
199
|
+
# Deletes a video asset and all its data
|
198
200
|
# @param asset_id The asset ID.
|
199
201
|
# @param [Hash] opts the optional parameters
|
200
202
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -505,6 +507,7 @@ module MuxRuby
|
|
505
507
|
end
|
506
508
|
|
507
509
|
# List assets
|
510
|
+
# List all Mux assets.
|
508
511
|
# @param [Hash] opts the optional parameters
|
509
512
|
# @option opts [Integer] :limit Number of items to include in the response (default to 25)
|
510
513
|
# @option opts [Integer] :page Offset by this many pages, of the size of `limit` (default to 1)
|
@@ -515,6 +518,7 @@ module MuxRuby
|
|
515
518
|
end
|
516
519
|
|
517
520
|
# List assets
|
521
|
+
# List all Mux assets.
|
518
522
|
# @param [Hash] opts the optional parameters
|
519
523
|
# @option opts [Integer] :limit Number of items to include in the response
|
520
524
|
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
|
8
|
+
module MuxRuby
|
9
|
+
class PlaybackIDApi
|
10
|
+
attr_accessor :api_client
|
11
|
+
|
12
|
+
def initialize(api_client = ApiClient.default)
|
13
|
+
@api_client = api_client
|
14
|
+
end
|
15
|
+
# Retrieve an Asset or Live Stream ID
|
16
|
+
# Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
|
17
|
+
# @param playback_id The live stream's playback ID.
|
18
|
+
# @param [Hash] opts the optional parameters
|
19
|
+
# @return [GetAssetOrLiveStreamIdResponse]
|
20
|
+
def get_asset_or_livestream_id(playback_id, opts = {})
|
21
|
+
data, _status_code, _headers = get_asset_or_livestream_id_with_http_info(playback_id, opts)
|
22
|
+
data
|
23
|
+
end
|
24
|
+
|
25
|
+
# Retrieve an Asset or Live Stream ID
|
26
|
+
# Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
|
27
|
+
# @param playback_id The live stream's playback ID.
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [Array<(GetAssetOrLiveStreamIdResponse, Fixnum, Hash)>] GetAssetOrLiveStreamIdResponse data, response status code and response headers
|
30
|
+
def get_asset_or_livestream_id_with_http_info(playback_id, opts = {})
|
31
|
+
if @api_client.config.debugging
|
32
|
+
@api_client.config.logger.debug 'Calling API: PlaybackIDApi.get_asset_or_livestream_id ...'
|
33
|
+
end
|
34
|
+
# verify the required parameter 'playback_id' is set
|
35
|
+
if @api_client.config.client_side_validation && playback_id.nil?
|
36
|
+
fail ArgumentError, "Missing the required parameter 'playback_id' when calling PlaybackIDApi.get_asset_or_livestream_id"
|
37
|
+
end
|
38
|
+
# resource path
|
39
|
+
local_var_path = '/video/v1/playback-ids/{PLAYBACK_ID}'.sub('{' + 'PLAYBACK_ID' + '}', playback_id.to_s)
|
40
|
+
|
41
|
+
# query parameters
|
42
|
+
query_params = {}
|
43
|
+
|
44
|
+
# header parameters
|
45
|
+
header_params = {}
|
46
|
+
# HTTP header 'Accept' (if needed)
|
47
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = nil
|
54
|
+
auth_names = ['accessToken']
|
55
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
56
|
+
:header_params => header_params,
|
57
|
+
:query_params => query_params,
|
58
|
+
:form_params => form_params,
|
59
|
+
:body => post_body,
|
60
|
+
:auth_names => auth_names,
|
61
|
+
:return_type => 'GetAssetOrLiveStreamIdResponse')
|
62
|
+
if @api_client.config.debugging
|
63
|
+
@api_client.config.logger.debug "API called: PlaybackIDApi#get_asset_or_livestream_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
64
|
+
end
|
65
|
+
return data, status_code, headers
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
data/lib/mux_ruby/api_client.rb
CHANGED
@@ -57,33 +57,33 @@ module MuxRuby
|
|
57
57
|
elsif response.code == 401
|
58
58
|
fail UnauthorizedError.new(:code => response.code,
|
59
59
|
:response_headers => response.headers,
|
60
|
-
|
61
|
-
|
60
|
+
:response_body => response.body,
|
61
|
+
:message => response.status_message)
|
62
62
|
elsif response.code == 403
|
63
63
|
fail ForbiddenError.new(:code => response.code,
|
64
64
|
:response_headers => response.headers,
|
65
|
-
:response_body => response.body
|
66
|
-
|
65
|
+
:response_body => response.body,
|
66
|
+
:message => response.status_message)
|
67
67
|
elsif response.code == 404
|
68
68
|
fail NotFoundError.new(:code => response.code,
|
69
69
|
:response_headers => response.headers,
|
70
|
-
:response_body => response.body
|
71
|
-
|
70
|
+
:response_body => response.body,
|
71
|
+
:message => response.status_message)
|
72
72
|
elsif response.code == 429
|
73
73
|
fail TooManyRequestsError.new(:code => response.code,
|
74
74
|
:response_headers => response.headers,
|
75
|
-
:response_body => response.body
|
76
|
-
|
75
|
+
:response_body => response.body,
|
76
|
+
:message => response.status_message)
|
77
77
|
elsif response.code.between?(500, 599)
|
78
78
|
fail ServiceError.new(:code => response.code,
|
79
79
|
:response_headers => response.headers,
|
80
|
-
:response_body => response.body
|
81
|
-
|
80
|
+
:response_body => response.body,
|
81
|
+
:message => response.status_message)
|
82
82
|
else
|
83
83
|
fail ApiError.new(:code => response.code,
|
84
84
|
:response_headers => response.headers,
|
85
|
-
:response_body => response.body
|
86
|
-
|
85
|
+
:response_body => response.body,
|
86
|
+
:message => response.status_message)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
@@ -7,20 +7,27 @@ require 'date'
|
|
7
7
|
|
8
8
|
module MuxRuby
|
9
9
|
class Asset
|
10
|
+
# Unique identifier for the Asset.
|
10
11
|
attr_accessor :id
|
11
12
|
|
13
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
12
14
|
attr_accessor :created_at
|
13
15
|
|
14
16
|
attr_accessor :deleted_at
|
15
17
|
|
18
|
+
# The status of the asset.
|
16
19
|
attr_accessor :status
|
17
20
|
|
21
|
+
# The duration of the asset in seconds (max duration for a single asset is 24 hours).
|
18
22
|
attr_accessor :duration
|
19
23
|
|
24
|
+
# 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.
|
20
25
|
attr_accessor :max_stored_resolution
|
21
26
|
|
27
|
+
# 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.
|
22
28
|
attr_accessor :max_stored_frame_rate
|
23
29
|
|
30
|
+
# The aspect ratio of the asset in the form of `width:height`, for example `16:9`.
|
24
31
|
attr_accessor :aspect_ratio
|
25
32
|
|
26
33
|
attr_accessor :playback_ids
|
@@ -31,10 +38,13 @@ module MuxRuby
|
|
31
38
|
|
32
39
|
attr_accessor :per_title_encode
|
33
40
|
|
41
|
+
# Whether the asset is created from a live stream and the live stream is currently `active` and not in `idle` state.
|
34
42
|
attr_accessor :is_live
|
35
43
|
|
44
|
+
# Arbitrary metadata set for the asset. Max 255 characters.
|
36
45
|
attr_accessor :passthrough
|
37
46
|
|
47
|
+
# Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream.
|
38
48
|
attr_accessor :live_stream_id
|
39
49
|
|
40
50
|
attr_accessor :master
|
@@ -43,6 +53,10 @@ module MuxRuby
|
|
43
53
|
|
44
54
|
attr_accessor :mp4_support
|
45
55
|
|
56
|
+
# Asset Identifier of the video used as the source for creating the clip.
|
57
|
+
attr_accessor :source_asset_id
|
58
|
+
|
59
|
+
# Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets.
|
46
60
|
attr_accessor :normalize_audio
|
47
61
|
|
48
62
|
attr_accessor :static_renditions
|
@@ -52,6 +66,7 @@ module MuxRuby
|
|
52
66
|
|
53
67
|
attr_accessor :non_standard_input_reasons
|
54
68
|
|
69
|
+
# 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.
|
55
70
|
attr_accessor :test
|
56
71
|
|
57
72
|
class EnumAttributeValidator
|
@@ -97,6 +112,7 @@ module MuxRuby
|
|
97
112
|
:'master' => :'master',
|
98
113
|
:'master_access' => :'master_access',
|
99
114
|
:'mp4_support' => :'mp4_support',
|
115
|
+
:'source_asset_id' => :'source_asset_id',
|
100
116
|
:'normalize_audio' => :'normalize_audio',
|
101
117
|
:'static_renditions' => :'static_renditions',
|
102
118
|
:'recording_times' => :'recording_times',
|
@@ -126,6 +142,7 @@ module MuxRuby
|
|
126
142
|
:'master' => :'AssetMaster',
|
127
143
|
:'master_access' => :'String',
|
128
144
|
:'mp4_support' => :'String',
|
145
|
+
:'source_asset_id' => :'String',
|
129
146
|
:'normalize_audio' => :'BOOLEAN',
|
130
147
|
:'static_renditions' => :'AssetStaticRenditions',
|
131
148
|
:'recording_times' => :'Array<AssetRecordingTimes>',
|
@@ -222,6 +239,10 @@ module MuxRuby
|
|
222
239
|
self.mp4_support = 'none'
|
223
240
|
end
|
224
241
|
|
242
|
+
if attributes.has_key?(:'source_asset_id')
|
243
|
+
self.source_asset_id = attributes[:'source_asset_id']
|
244
|
+
end
|
245
|
+
|
225
246
|
if attributes.has_key?(:'normalize_audio')
|
226
247
|
self.normalize_audio = attributes[:'normalize_audio']
|
227
248
|
else
|
@@ -257,6 +278,8 @@ module MuxRuby
|
|
257
278
|
# Check to see if the all the properties in the model are valid
|
258
279
|
# @return true if the model is valid
|
259
280
|
def valid?
|
281
|
+
status_validator = EnumAttributeValidator.new('String', ['preparing', 'ready', 'errored'])
|
282
|
+
return false unless status_validator.valid?(@status)
|
260
283
|
max_stored_resolution_validator = EnumAttributeValidator.new('String', ['Audio only', 'SD', 'HD', 'FHD', 'UHD'])
|
261
284
|
return false unless max_stored_resolution_validator.valid?(@max_stored_resolution)
|
262
285
|
master_access_validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
@@ -266,12 +289,22 @@ module MuxRuby
|
|
266
289
|
true
|
267
290
|
end
|
268
291
|
|
292
|
+
# Custom attribute writer method checking allowed values (enum).
|
293
|
+
# @param [Object] status Object to be assigned
|
294
|
+
def status=(status)
|
295
|
+
validator = EnumAttributeValidator.new('String', ['preparing', 'ready', 'errored'])
|
296
|
+
unless validator.valid?(status)
|
297
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
298
|
+
end
|
299
|
+
@status = status
|
300
|
+
end
|
301
|
+
|
269
302
|
# Custom attribute writer method checking allowed values (enum).
|
270
303
|
# @param [Object] max_stored_resolution Object to be assigned
|
271
304
|
def max_stored_resolution=(max_stored_resolution)
|
272
305
|
validator = EnumAttributeValidator.new('String', ['Audio only', 'SD', 'HD', 'FHD', 'UHD'])
|
273
306
|
unless validator.valid?(max_stored_resolution)
|
274
|
-
fail ArgumentError,
|
307
|
+
fail ArgumentError, "invalid value for \"max_stored_resolution\", must be one of #{validator.allowable_values}."
|
275
308
|
end
|
276
309
|
@max_stored_resolution = max_stored_resolution
|
277
310
|
end
|
@@ -281,7 +314,7 @@ module MuxRuby
|
|
281
314
|
def master_access=(master_access)
|
282
315
|
validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
283
316
|
unless validator.valid?(master_access)
|
284
|
-
fail ArgumentError,
|
317
|
+
fail ArgumentError, "invalid value for \"master_access\", must be one of #{validator.allowable_values}."
|
285
318
|
end
|
286
319
|
@master_access = master_access
|
287
320
|
end
|
@@ -291,7 +324,7 @@ module MuxRuby
|
|
291
324
|
def mp4_support=(mp4_support)
|
292
325
|
validator = EnumAttributeValidator.new('String', ['standard', 'none'])
|
293
326
|
unless validator.valid?(mp4_support)
|
294
|
-
fail ArgumentError,
|
327
|
+
fail ArgumentError, "invalid value for \"mp4_support\", must be one of #{validator.allowable_values}."
|
295
328
|
end
|
296
329
|
@mp4_support = mp4_support
|
297
330
|
end
|
@@ -319,6 +352,7 @@ module MuxRuby
|
|
319
352
|
master == o.master &&
|
320
353
|
master_access == o.master_access &&
|
321
354
|
mp4_support == o.mp4_support &&
|
355
|
+
source_asset_id == o.source_asset_id &&
|
322
356
|
normalize_audio == o.normalize_audio &&
|
323
357
|
static_renditions == o.static_renditions &&
|
324
358
|
recording_times == o.recording_times &&
|
@@ -335,7 +369,7 @@ module MuxRuby
|
|
335
369
|
# Calculates hash code according to all attributes.
|
336
370
|
# @return [Fixnum] Hash code
|
337
371
|
def hash
|
338
|
-
[id, created_at, deleted_at, status, duration, max_stored_resolution, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, is_live, passthrough, live_stream_id, master, master_access, mp4_support, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test].hash
|
372
|
+
[id, created_at, deleted_at, status, duration, max_stored_resolution, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, is_live, passthrough, live_stream_id, master, master_access, mp4_support, source_asset_id, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test].hash
|
339
373
|
end
|
340
374
|
|
341
375
|
# Builds the object from hash
|
@@ -7,8 +7,10 @@ require 'date'
|
|
7
7
|
|
8
8
|
module MuxRuby
|
9
9
|
class AssetErrors
|
10
|
+
# The type of error that occurred for this asset.
|
10
11
|
attr_accessor :type
|
11
12
|
|
13
|
+
# Error messages with more details.
|
12
14
|
attr_accessor :messages
|
13
15
|
|
14
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,11 +6,34 @@
|
|
6
6
|
require 'date'
|
7
7
|
|
8
8
|
module MuxRuby
|
9
|
+
# An object containing the current status of Master Access and the link to the Master MP4 file when ready. This object does not exist if `master_acess` is set to `none` and when the temporary URL expires.
|
9
10
|
class AssetMaster
|
10
11
|
attr_accessor :status
|
11
12
|
|
12
13
|
attr_accessor :url
|
13
14
|
|
15
|
+
class EnumAttributeValidator
|
16
|
+
attr_reader :datatype
|
17
|
+
attr_reader :allowable_values
|
18
|
+
|
19
|
+
def initialize(datatype, allowable_values)
|
20
|
+
@allowable_values = allowable_values.map do |value|
|
21
|
+
case datatype.to_s
|
22
|
+
when /Integer/i
|
23
|
+
value.to_i
|
24
|
+
when /Float/i
|
25
|
+
value.to_f
|
26
|
+
else
|
27
|
+
value
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def valid?(value)
|
33
|
+
!value || allowable_values.include?(value)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
14
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
15
38
|
def self.attribute_map
|
16
39
|
{
|
@@ -54,9 +77,21 @@ module MuxRuby
|
|
54
77
|
# Check to see if the all the properties in the model are valid
|
55
78
|
# @return true if the model is valid
|
56
79
|
def valid?
|
80
|
+
status_validator = EnumAttributeValidator.new('String', ['ready', 'preparing', 'errored'])
|
81
|
+
return false unless status_validator.valid?(@status)
|
57
82
|
true
|
58
83
|
end
|
59
84
|
|
85
|
+
# Custom attribute writer method checking allowed values (enum).
|
86
|
+
# @param [Object] status Object to be assigned
|
87
|
+
def status=(status)
|
88
|
+
validator = EnumAttributeValidator.new('String', ['ready', 'preparing', 'errored'])
|
89
|
+
unless validator.valid?(status)
|
90
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
91
|
+
end
|
92
|
+
@status = status
|
93
|
+
end
|
94
|
+
|
60
95
|
# Checks equality by comparing each attribute.
|
61
96
|
# @param [Object] Object to be compared
|
62
97
|
def ==(o)
|
@@ -7,31 +7,31 @@ require 'date'
|
|
7
7
|
|
8
8
|
module MuxRuby
|
9
9
|
class AssetNonStandardInputReasons
|
10
|
-
# The video codec used on the input file
|
10
|
+
# The video codec used on the input file.
|
11
11
|
attr_accessor :video_codec
|
12
12
|
|
13
|
-
# The audio codec used on the input file
|
13
|
+
# The audio codec used on the input file.
|
14
14
|
attr_accessor :audio_codec
|
15
15
|
|
16
|
-
# The video key frame Interval (also called as Group of Picture or GOP) of the input file
|
16
|
+
# The video key frame Interval (also called as Group of Picture or GOP) of the input file.
|
17
17
|
attr_accessor :video_gop_size
|
18
18
|
|
19
|
-
# The video frame rate of the input file
|
19
|
+
# The video frame rate of the input file.
|
20
20
|
attr_accessor :video_frame_rate
|
21
21
|
|
22
|
-
# The video resolution of the input file
|
22
|
+
# The video resolution of the input file.
|
23
23
|
attr_accessor :video_resolution
|
24
24
|
|
25
|
-
# The video pixel aspect ratio of the input file
|
25
|
+
# The video pixel aspect ratio of the input file.
|
26
26
|
attr_accessor :pixel_aspect_ratio
|
27
27
|
|
28
|
-
# Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List
|
28
|
+
# Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List.
|
29
29
|
attr_accessor :video_edit_list
|
30
30
|
|
31
|
-
# Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List
|
31
|
+
# Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List.
|
32
32
|
attr_accessor :audio_edit_list
|
33
33
|
|
34
|
-
# A catch-all reason when the input file in created with non-standard encoding parameters
|
34
|
+
# A catch-all reason when the input file in created with non-standard encoding parameters.
|
35
35
|
attr_accessor :unexpected_media_file_parameters
|
36
36
|
|
37
37
|
class EnumAttributeValidator
|
@@ -157,7 +157,7 @@ module MuxRuby
|
|
157
157
|
def video_gop_size=(video_gop_size)
|
158
158
|
validator = EnumAttributeValidator.new('String', ['high'])
|
159
159
|
unless validator.valid?(video_gop_size)
|
160
|
-
fail ArgumentError,
|
160
|
+
fail ArgumentError, "invalid value for \"video_gop_size\", must be one of #{validator.allowable_values}."
|
161
161
|
end
|
162
162
|
@video_gop_size = video_gop_size
|
163
163
|
end
|
@@ -167,7 +167,7 @@ module MuxRuby
|
|
167
167
|
def video_edit_list=(video_edit_list)
|
168
168
|
validator = EnumAttributeValidator.new('String', ['non-standard'])
|
169
169
|
unless validator.valid?(video_edit_list)
|
170
|
-
fail ArgumentError,
|
170
|
+
fail ArgumentError, "invalid value for \"video_edit_list\", must be one of #{validator.allowable_values}."
|
171
171
|
end
|
172
172
|
@video_edit_list = video_edit_list
|
173
173
|
end
|
@@ -177,7 +177,7 @@ module MuxRuby
|
|
177
177
|
def audio_edit_list=(audio_edit_list)
|
178
178
|
validator = EnumAttributeValidator.new('String', ['non-standard'])
|
179
179
|
unless validator.valid?(audio_edit_list)
|
180
|
-
fail ArgumentError,
|
180
|
+
fail ArgumentError, "invalid value for \"audio_edit_list\", must be one of #{validator.allowable_values}."
|
181
181
|
end
|
182
182
|
@audio_edit_list = audio_edit_list
|
183
183
|
end
|
@@ -187,7 +187,7 @@ module MuxRuby
|
|
187
187
|
def unexpected_media_file_parameters=(unexpected_media_file_parameters)
|
188
188
|
validator = EnumAttributeValidator.new('String', ['non-standard'])
|
189
189
|
unless validator.valid?(unexpected_media_file_parameters)
|
190
|
-
fail ArgumentError,
|
190
|
+
fail ArgumentError, "invalid value for \"unexpected_media_file_parameters\", must be one of #{validator.allowable_values}."
|
191
191
|
end
|
192
192
|
@unexpected_media_file_parameters = unexpected_media_file_parameters
|
193
193
|
end
|
@@ -7,10 +7,10 @@ require 'date'
|
|
7
7
|
|
8
8
|
module MuxRuby
|
9
9
|
class AssetRecordingTimes
|
10
|
-
# The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format
|
10
|
+
# The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format.
|
11
11
|
attr_accessor :started_at
|
12
12
|
|
13
|
-
# The duration of the live stream recorded. The time value is in seconds
|
13
|
+
# The duration of the live stream recorded. The time value is in seconds.
|
14
14
|
attr_accessor :duration
|
15
15
|
|
16
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|