mux_ruby 1.5.1 → 1.6.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 +1 -1
- data/README.md +4 -1
- data/docs/CreateLiveStreamRequest.md +1 -0
- data/docs/LiveStream.md +1 -1
- data/docs/VideoView.md +16 -14
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +4 -4
- data/lib/mux_ruby/models/create_live_stream_request.rb +15 -4
- data/lib/mux_ruby/models/live_stream.rb +1 -1
- data/lib/mux_ruby/models/video_view.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- data/spec/models/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_live_stream_request_spec.rb +6 -0
- data/spec/models/video_view_spec.rb +12 -0
- metadata +60 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 044a3655b853ad9277d213c6259b2a73071fb1c198ae46956f368d6933f5a288
|
4
|
+
data.tar.gz: 0424ff46a5d2035d32092ca261a75422bde616a324341b1f144180cee74d5dfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d37bb4b970e888934ef8c7041b0d16b6669e97c1250504c962f81462c9c278f75e513e6bfe25a415aa94f3e2b1add8ae699a7181a0a834f4cc29f751d0deeee9
|
7
|
+
data.tar.gz: 3618c152283e26e9a6ce43426279e3cff70f94b5ba2184b7707519c99b9b613d448c3b567c463b6fa4b2b2045b0ad9d28f59e0eb1f8b9e8a2c0f139daf711ac7
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,8 +21,11 @@ Use `bundle install` to install dependencies if you're developing locally.
|
|
21
21
|
## Installation
|
22
22
|
|
23
23
|
### Adding to your Gemfile
|
24
|
+
|
25
|
+
This gem can be sourced from [RubyGems](https://rubygems.org/gems/mux_ruby)
|
26
|
+
|
24
27
|
```
|
25
|
-
gem 'mux_ruby'
|
28
|
+
gem 'mux_ruby'
|
26
29
|
```
|
27
30
|
|
28
31
|
### Clone and install locally
|
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
**passthrough** | **String** | | [optional]
|
10
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
11
|
**test** | **BOOLEAN** | | [optional]
|
12
|
+
**simulcast_targets** | [**Array<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional]
|
12
13
|
|
13
14
|
|
data/docs/LiveStream.md
CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**recent_asset_ids** | **Array<String>** | | [optional]
|
11
11
|
**status** | **String** | | [optional]
|
12
12
|
**playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | | [optional]
|
13
|
-
**new_asset_settings** | [**
|
13
|
+
**new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
|
14
14
|
**passthrough** | **String** | | [optional]
|
15
15
|
**reconnect_window** | **Float** | | [optional]
|
16
16
|
**reduced_latency** | **BOOLEAN** | | [optional]
|
data/docs/VideoView.md
CHANGED
@@ -11,22 +11,22 @@ Name | Type | Description | Notes
|
|
11
11
|
**preroll_requested** | **BOOLEAN** | | [optional]
|
12
12
|
**page_type** | **String** | | [optional]
|
13
13
|
**startup_score** | **String** | | [optional]
|
14
|
-
**view_seek_duration** | **
|
14
|
+
**view_seek_duration** | **Integer** | | [optional]
|
15
15
|
**country_name** | **String** | | [optional]
|
16
16
|
**player_source_height** | **Integer** | | [optional]
|
17
17
|
**longitude** | **String** | | [optional]
|
18
|
-
**buffering_count** | **
|
19
|
-
**video_duration** | **
|
18
|
+
**buffering_count** | **Integer** | | [optional]
|
19
|
+
**video_duration** | **Integer** | | [optional]
|
20
20
|
**player_source_type** | **String** | | [optional]
|
21
21
|
**city** | **String** | | [optional]
|
22
22
|
**view_id** | **String** | | [optional]
|
23
23
|
**platform_description** | **String** | | [optional]
|
24
|
-
**video_startup_preroll_request_time** | **
|
24
|
+
**video_startup_preroll_request_time** | **Integer** | | [optional]
|
25
25
|
**viewer_device_name** | **String** | | [optional]
|
26
26
|
**video_series** | **String** | | [optional]
|
27
27
|
**viewer_application_name** | **String** | | [optional]
|
28
28
|
**updated_at** | **String** | | [optional]
|
29
|
-
**view_total_content_playback_time** | **
|
29
|
+
**view_total_content_playback_time** | **Integer** | | [optional]
|
30
30
|
**cdn** | **String** | | [optional]
|
31
31
|
**player_instance_id** | **String** | | [optional]
|
32
32
|
**video_language** | **String** | | [optional]
|
@@ -37,8 +37,8 @@ Name | Type | Description | Notes
|
|
37
37
|
**playback_score** | **String** | | [optional]
|
38
38
|
**page_url** | **String** | | [optional]
|
39
39
|
**metro** | **String** | | [optional]
|
40
|
-
**view_max_request_latency** | **
|
41
|
-
**requests_for_first_preroll** | **
|
40
|
+
**view_max_request_latency** | **Integer** | | [optional]
|
41
|
+
**requests_for_first_preroll** | **Integer** | | [optional]
|
42
42
|
**view_total_downscaling** | **String** | | [optional]
|
43
43
|
**latitude** | **String** | | [optional]
|
44
44
|
**player_source_host_name** | **String** | | [optional]
|
@@ -48,7 +48,7 @@ Name | Type | Description | Notes
|
|
48
48
|
**player_language** | **String** | | [optional]
|
49
49
|
**page_load_time** | **Integer** | | [optional]
|
50
50
|
**viewer_device_category** | **String** | | [optional]
|
51
|
-
**video_startup_preroll_load_time** | **
|
51
|
+
**video_startup_preroll_load_time** | **Integer** | | [optional]
|
52
52
|
**player_version** | **String** | | [optional]
|
53
53
|
**watch_time** | **Integer** | | [optional]
|
54
54
|
**player_source_stream_type** | **String** | | [optional]
|
@@ -58,14 +58,14 @@ Name | Type | Description | Notes
|
|
58
58
|
**experiment_name** | **String** | | [optional]
|
59
59
|
**viewer_os_version** | **String** | | [optional]
|
60
60
|
**player_preload** | **BOOLEAN** | | [optional]
|
61
|
-
**buffering_duration** | **
|
61
|
+
**buffering_duration** | **Integer** | | [optional]
|
62
62
|
**player_view_count** | **Integer** | | [optional]
|
63
63
|
**player_software** | **String** | | [optional]
|
64
|
-
**player_load_time** | **
|
64
|
+
**player_load_time** | **Integer** | | [optional]
|
65
65
|
**platform_summary** | **String** | | [optional]
|
66
66
|
**video_encoding_variant** | **String** | | [optional]
|
67
67
|
**player_width** | **Integer** | | [optional]
|
68
|
-
**view_seek_count** | **
|
68
|
+
**view_seek_count** | **Integer** | | [optional]
|
69
69
|
**viewer_experience_score** | **String** | | [optional]
|
70
70
|
**view_error_id** | **Integer** | | [optional]
|
71
71
|
**video_variant_name** | **String** | | [optional]
|
@@ -77,7 +77,7 @@ Name | Type | Description | Notes
|
|
77
77
|
**events** | [**Array<VideoViewEvent>**](VideoViewEvent.md) | | [optional]
|
78
78
|
**player_name** | **String** | | [optional]
|
79
79
|
**view_start** | **String** | | [optional]
|
80
|
-
**view_average_request_throughput** | **
|
80
|
+
**view_average_request_throughput** | **Integer** | | [optional]
|
81
81
|
**video_producer** | **String** | | [optional]
|
82
82
|
**error_type_id** | **Integer** | | [optional]
|
83
83
|
**mux_viewer_id** | **String** | | [optional]
|
@@ -88,7 +88,7 @@ Name | Type | Description | Notes
|
|
88
88
|
**video_content_type** | **String** | | [optional]
|
89
89
|
**viewer_os_family** | **String** | | [optional]
|
90
90
|
**player_poster** | **String** | | [optional]
|
91
|
-
**view_average_request_latency** | **
|
91
|
+
**view_average_request_latency** | **Integer** | | [optional]
|
92
92
|
**video_variant_id** | **String** | | [optional]
|
93
93
|
**player_source_duration** | **Integer** | | [optional]
|
94
94
|
**player_source_url** | **String** | | [optional]
|
@@ -97,7 +97,7 @@ Name | Type | Description | Notes
|
|
97
97
|
**id** | **String** | | [optional]
|
98
98
|
**short_time** | **String** | | [optional]
|
99
99
|
**rebuffer_percentage** | **String** | | [optional]
|
100
|
-
**time_to_first_frame** | **
|
100
|
+
**time_to_first_frame** | **Integer** | | [optional]
|
101
101
|
**viewer_user_id** | **String** | | [optional]
|
102
102
|
**video_stream_type** | **String** | | [optional]
|
103
103
|
**player_startup_time** | **Integer** | | [optional]
|
@@ -111,7 +111,9 @@ Name | Type | Description | Notes
|
|
111
111
|
**player_autoplay** | **BOOLEAN** | | [optional]
|
112
112
|
**player_height** | **Integer** | | [optional]
|
113
113
|
**asn** | **Integer** | | [optional]
|
114
|
+
**asn_name** | **String** | | [optional]
|
114
115
|
**quality_score** | **String** | | [optional]
|
115
116
|
**player_software_version** | **String** | | [optional]
|
117
|
+
**player_mux_plugin_name** | **String** | | [optional]
|
116
118
|
|
117
119
|
|
@@ -112,9 +112,9 @@ module MuxRuby
|
|
112
112
|
# Check to see if the all the properties in the model are valid
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
|
-
name_validator = EnumAttributeValidator.new('String', ['low.mp4', 'medium.mp4', 'high.mp4'])
|
115
|
+
name_validator = EnumAttributeValidator.new('String', ['low.mp4', 'medium.mp4', 'high.mp4', 'audio.m4a'])
|
116
116
|
return false unless name_validator.valid?(@name)
|
117
|
-
ext_validator = EnumAttributeValidator.new('String', ['mp4'])
|
117
|
+
ext_validator = EnumAttributeValidator.new('String', ['mp4', 'm4a'])
|
118
118
|
return false unless ext_validator.valid?(@ext)
|
119
119
|
true
|
120
120
|
end
|
@@ -122,7 +122,7 @@ module MuxRuby
|
|
122
122
|
# Custom attribute writer method checking allowed values (enum).
|
123
123
|
# @param [Object] name Object to be assigned
|
124
124
|
def name=(name)
|
125
|
-
validator = EnumAttributeValidator.new('String', ['low.mp4', 'medium.mp4', 'high.mp4'])
|
125
|
+
validator = EnumAttributeValidator.new('String', ['low.mp4', 'medium.mp4', 'high.mp4', 'audio.m4a'])
|
126
126
|
unless validator.valid?(name)
|
127
127
|
fail ArgumentError, 'invalid value for "name", must be one of #{validator.allowable_values}.'
|
128
128
|
end
|
@@ -132,7 +132,7 @@ module MuxRuby
|
|
132
132
|
# Custom attribute writer method checking allowed values (enum).
|
133
133
|
# @param [Object] ext Object to be assigned
|
134
134
|
def ext=(ext)
|
135
|
-
validator = EnumAttributeValidator.new('String', ['mp4'])
|
135
|
+
validator = EnumAttributeValidator.new('String', ['mp4', 'm4a'])
|
136
136
|
unless validator.valid?(ext)
|
137
137
|
fail ArgumentError, 'invalid value for "ext", must be one of #{validator.allowable_values}.'
|
138
138
|
end
|
@@ -21,6 +21,8 @@ module MuxRuby
|
|
21
21
|
|
22
22
|
attr_accessor :test
|
23
23
|
|
24
|
+
attr_accessor :simulcast_targets
|
25
|
+
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
27
|
def self.attribute_map
|
26
28
|
{
|
@@ -29,7 +31,8 @@ module MuxRuby
|
|
29
31
|
:'reconnect_window' => :'reconnect_window',
|
30
32
|
:'passthrough' => :'passthrough',
|
31
33
|
:'reduced_latency' => :'reduced_latency',
|
32
|
-
:'test' => :'test'
|
34
|
+
:'test' => :'test',
|
35
|
+
:'simulcast_targets' => :'simulcast_targets'
|
33
36
|
}
|
34
37
|
end
|
35
38
|
|
@@ -41,7 +44,8 @@ module MuxRuby
|
|
41
44
|
:'reconnect_window' => :'Float',
|
42
45
|
:'passthrough' => :'String',
|
43
46
|
:'reduced_latency' => :'BOOLEAN',
|
44
|
-
:'test' => :'BOOLEAN'
|
47
|
+
:'test' => :'BOOLEAN',
|
48
|
+
:'simulcast_targets' => :'Array<CreateSimulcastTargetRequest>'
|
45
49
|
}
|
46
50
|
end
|
47
51
|
|
@@ -78,6 +82,12 @@ module MuxRuby
|
|
78
82
|
if attributes.has_key?(:'test')
|
79
83
|
self.test = attributes[:'test']
|
80
84
|
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'simulcast_targets')
|
87
|
+
if (value = attributes[:'simulcast_targets']).is_a?(Array)
|
88
|
+
self.simulcast_targets = value
|
89
|
+
end
|
90
|
+
end
|
81
91
|
end
|
82
92
|
|
83
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,7 +137,8 @@ module MuxRuby
|
|
127
137
|
reconnect_window == o.reconnect_window &&
|
128
138
|
passthrough == o.passthrough &&
|
129
139
|
reduced_latency == o.reduced_latency &&
|
130
|
-
test == o.test
|
140
|
+
test == o.test &&
|
141
|
+
simulcast_targets == o.simulcast_targets
|
131
142
|
end
|
132
143
|
|
133
144
|
# @see the `==` method
|
@@ -139,7 +150,7 @@ module MuxRuby
|
|
139
150
|
# Calculates hash code according to all attributes.
|
140
151
|
# @return [Fixnum] Hash code
|
141
152
|
def hash
|
142
|
-
[playback_policy, new_asset_settings, reconnect_window, passthrough, reduced_latency, test].hash
|
153
|
+
[playback_policy, new_asset_settings, reconnect_window, passthrough, reduced_latency, test, simulcast_targets].hash
|
143
154
|
end
|
144
155
|
|
145
156
|
# Builds the object from hash
|
@@ -62,7 +62,7 @@ module MuxRuby
|
|
62
62
|
:'recent_asset_ids' => :'Array<String>',
|
63
63
|
:'status' => :'String',
|
64
64
|
:'playback_ids' => :'Array<PlaybackID>',
|
65
|
-
:'new_asset_settings' => :'
|
65
|
+
:'new_asset_settings' => :'CreateAssetRequest',
|
66
66
|
:'passthrough' => :'String',
|
67
67
|
:'reconnect_window' => :'Float',
|
68
68
|
:'reduced_latency' => :'BOOLEAN',
|
@@ -223,10 +223,14 @@ module MuxRuby
|
|
223
223
|
|
224
224
|
attr_accessor :asn
|
225
225
|
|
226
|
+
attr_accessor :asn_name
|
227
|
+
|
226
228
|
attr_accessor :quality_score
|
227
229
|
|
228
230
|
attr_accessor :player_software_version
|
229
231
|
|
232
|
+
attr_accessor :player_mux_plugin_name
|
233
|
+
|
230
234
|
# Attribute mapping from ruby-style variable name to JSON key.
|
231
235
|
def self.attribute_map
|
232
236
|
{
|
@@ -338,8 +342,10 @@ module MuxRuby
|
|
338
342
|
:'player_autoplay' => :'player_autoplay',
|
339
343
|
:'player_height' => :'player_height',
|
340
344
|
:'asn' => :'asn',
|
345
|
+
:'asn_name' => :'asn_name',
|
341
346
|
:'quality_score' => :'quality_score',
|
342
|
-
:'player_software_version' => :'player_software_version'
|
347
|
+
:'player_software_version' => :'player_software_version',
|
348
|
+
:'player_mux_plugin_name' => :'player_mux_plugin_name'
|
343
349
|
}
|
344
350
|
end
|
345
351
|
|
@@ -354,22 +360,22 @@ module MuxRuby
|
|
354
360
|
:'preroll_requested' => :'BOOLEAN',
|
355
361
|
:'page_type' => :'String',
|
356
362
|
:'startup_score' => :'String',
|
357
|
-
:'view_seek_duration' => :'
|
363
|
+
:'view_seek_duration' => :'Integer',
|
358
364
|
:'country_name' => :'String',
|
359
365
|
:'player_source_height' => :'Integer',
|
360
366
|
:'longitude' => :'String',
|
361
|
-
:'buffering_count' => :'
|
362
|
-
:'video_duration' => :'
|
367
|
+
:'buffering_count' => :'Integer',
|
368
|
+
:'video_duration' => :'Integer',
|
363
369
|
:'player_source_type' => :'String',
|
364
370
|
:'city' => :'String',
|
365
371
|
:'view_id' => :'String',
|
366
372
|
:'platform_description' => :'String',
|
367
|
-
:'video_startup_preroll_request_time' => :'
|
373
|
+
:'video_startup_preroll_request_time' => :'Integer',
|
368
374
|
:'viewer_device_name' => :'String',
|
369
375
|
:'video_series' => :'String',
|
370
376
|
:'viewer_application_name' => :'String',
|
371
377
|
:'updated_at' => :'String',
|
372
|
-
:'view_total_content_playback_time' => :'
|
378
|
+
:'view_total_content_playback_time' => :'Integer',
|
373
379
|
:'cdn' => :'String',
|
374
380
|
:'player_instance_id' => :'String',
|
375
381
|
:'video_language' => :'String',
|
@@ -380,8 +386,8 @@ module MuxRuby
|
|
380
386
|
:'playback_score' => :'String',
|
381
387
|
:'page_url' => :'String',
|
382
388
|
:'metro' => :'String',
|
383
|
-
:'view_max_request_latency' => :'
|
384
|
-
:'requests_for_first_preroll' => :'
|
389
|
+
:'view_max_request_latency' => :'Integer',
|
390
|
+
:'requests_for_first_preroll' => :'Integer',
|
385
391
|
:'view_total_downscaling' => :'String',
|
386
392
|
:'latitude' => :'String',
|
387
393
|
:'player_source_host_name' => :'String',
|
@@ -391,7 +397,7 @@ module MuxRuby
|
|
391
397
|
:'player_language' => :'String',
|
392
398
|
:'page_load_time' => :'Integer',
|
393
399
|
:'viewer_device_category' => :'String',
|
394
|
-
:'video_startup_preroll_load_time' => :'
|
400
|
+
:'video_startup_preroll_load_time' => :'Integer',
|
395
401
|
:'player_version' => :'String',
|
396
402
|
:'watch_time' => :'Integer',
|
397
403
|
:'player_source_stream_type' => :'String',
|
@@ -401,14 +407,14 @@ module MuxRuby
|
|
401
407
|
:'experiment_name' => :'String',
|
402
408
|
:'viewer_os_version' => :'String',
|
403
409
|
:'player_preload' => :'BOOLEAN',
|
404
|
-
:'buffering_duration' => :'
|
410
|
+
:'buffering_duration' => :'Integer',
|
405
411
|
:'player_view_count' => :'Integer',
|
406
412
|
:'player_software' => :'String',
|
407
|
-
:'player_load_time' => :'
|
413
|
+
:'player_load_time' => :'Integer',
|
408
414
|
:'platform_summary' => :'String',
|
409
415
|
:'video_encoding_variant' => :'String',
|
410
416
|
:'player_width' => :'Integer',
|
411
|
-
:'view_seek_count' => :'
|
417
|
+
:'view_seek_count' => :'Integer',
|
412
418
|
:'viewer_experience_score' => :'String',
|
413
419
|
:'view_error_id' => :'Integer',
|
414
420
|
:'video_variant_name' => :'String',
|
@@ -420,7 +426,7 @@ module MuxRuby
|
|
420
426
|
:'events' => :'Array<VideoViewEvent>',
|
421
427
|
:'player_name' => :'String',
|
422
428
|
:'view_start' => :'String',
|
423
|
-
:'view_average_request_throughput' => :'
|
429
|
+
:'view_average_request_throughput' => :'Integer',
|
424
430
|
:'video_producer' => :'String',
|
425
431
|
:'error_type_id' => :'Integer',
|
426
432
|
:'mux_viewer_id' => :'String',
|
@@ -431,7 +437,7 @@ module MuxRuby
|
|
431
437
|
:'video_content_type' => :'String',
|
432
438
|
:'viewer_os_family' => :'String',
|
433
439
|
:'player_poster' => :'String',
|
434
|
-
:'view_average_request_latency' => :'
|
440
|
+
:'view_average_request_latency' => :'Integer',
|
435
441
|
:'video_variant_id' => :'String',
|
436
442
|
:'player_source_duration' => :'Integer',
|
437
443
|
:'player_source_url' => :'String',
|
@@ -440,7 +446,7 @@ module MuxRuby
|
|
440
446
|
:'id' => :'String',
|
441
447
|
:'short_time' => :'String',
|
442
448
|
:'rebuffer_percentage' => :'String',
|
443
|
-
:'time_to_first_frame' => :'
|
449
|
+
:'time_to_first_frame' => :'Integer',
|
444
450
|
:'viewer_user_id' => :'String',
|
445
451
|
:'video_stream_type' => :'String',
|
446
452
|
:'player_startup_time' => :'Integer',
|
@@ -454,8 +460,10 @@ module MuxRuby
|
|
454
460
|
:'player_autoplay' => :'BOOLEAN',
|
455
461
|
:'player_height' => :'Integer',
|
456
462
|
:'asn' => :'Integer',
|
463
|
+
:'asn_name' => :'String',
|
457
464
|
:'quality_score' => :'String',
|
458
|
-
:'player_software_version' => :'String'
|
465
|
+
:'player_software_version' => :'String',
|
466
|
+
:'player_mux_plugin_name' => :'String'
|
459
467
|
}
|
460
468
|
end
|
461
469
|
|
@@ -901,6 +909,10 @@ module MuxRuby
|
|
901
909
|
self.asn = attributes[:'asn']
|
902
910
|
end
|
903
911
|
|
912
|
+
if attributes.has_key?(:'asn_name')
|
913
|
+
self.asn_name = attributes[:'asn_name']
|
914
|
+
end
|
915
|
+
|
904
916
|
if attributes.has_key?(:'quality_score')
|
905
917
|
self.quality_score = attributes[:'quality_score']
|
906
918
|
end
|
@@ -908,6 +920,10 @@ module MuxRuby
|
|
908
920
|
if attributes.has_key?(:'player_software_version')
|
909
921
|
self.player_software_version = attributes[:'player_software_version']
|
910
922
|
end
|
923
|
+
|
924
|
+
if attributes.has_key?(:'player_mux_plugin_name')
|
925
|
+
self.player_mux_plugin_name = attributes[:'player_mux_plugin_name']
|
926
|
+
end
|
911
927
|
end
|
912
928
|
|
913
929
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1036,8 +1052,10 @@ module MuxRuby
|
|
1036
1052
|
player_autoplay == o.player_autoplay &&
|
1037
1053
|
player_height == o.player_height &&
|
1038
1054
|
asn == o.asn &&
|
1055
|
+
asn_name == o.asn_name &&
|
1039
1056
|
quality_score == o.quality_score &&
|
1040
|
-
player_software_version == o.player_software_version
|
1057
|
+
player_software_version == o.player_software_version &&
|
1058
|
+
player_mux_plugin_name == o.player_mux_plugin_name
|
1041
1059
|
end
|
1042
1060
|
|
1043
1061
|
# @see the `==` method
|
@@ -1049,7 +1067,7 @@ module MuxRuby
|
|
1049
1067
|
# Calculates hash code according to all attributes.
|
1050
1068
|
# @return [Fixnum] Hash code
|
1051
1069
|
def hash
|
1052
|
-
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, quality_score, player_software_version].hash
|
1070
|
+
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name].hash
|
1053
1071
|
end
|
1054
1072
|
|
1055
1073
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
@@ -28,7 +28,7 @@ describe 'AssetStaticRenditionsFiles' do
|
|
28
28
|
describe 'test attribute "name"' do
|
29
29
|
it 'should work' do
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4"])
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"])
|
32
32
|
# validator.allowable_values.each do |value|
|
33
33
|
# expect { @instance.name = value }.not_to raise_error
|
34
34
|
# end
|
@@ -38,7 +38,7 @@ describe 'AssetStaticRenditionsFiles' do
|
|
38
38
|
describe 'test attribute "ext"' do
|
39
39
|
it 'should work' do
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mp4"])
|
41
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mp4", "m4a"])
|
42
42
|
# validator.allowable_values.each do |value|
|
43
43
|
# expect { @instance.ext = value }.not_to raise_error
|
44
44
|
# end
|
@@ -673,6 +673,12 @@ describe 'VideoView' do
|
|
673
673
|
end
|
674
674
|
end
|
675
675
|
|
676
|
+
describe 'test attribute "asn_name"' do
|
677
|
+
it 'should work' do
|
678
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
676
682
|
describe 'test attribute "quality_score"' do
|
677
683
|
it 'should work' do
|
678
684
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -685,4 +691,10 @@ describe 'VideoView' do
|
|
685
691
|
end
|
686
692
|
end
|
687
693
|
|
694
|
+
describe 'test attribute "player_mux_plugin_name"' do
|
695
|
+
it 'should work' do
|
696
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
688
700
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mux_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mux SDK Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -467,85 +467,85 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
467
467
|
- !ruby/object:Gem::Version
|
468
468
|
version: '0'
|
469
469
|
requirements: []
|
470
|
-
rubygems_version: 3.1.
|
470
|
+
rubygems_version: 3.1.4
|
471
471
|
signing_key:
|
472
472
|
specification_version: 4
|
473
473
|
summary: Ruby API wrapper for Mux
|
474
474
|
test_files:
|
475
|
-
- spec/api/delivery_usage_api_spec.rb
|
476
|
-
- spec/api/url_signing_keys_api_spec.rb
|
477
|
-
- spec/api/video_views_api_spec.rb
|
478
475
|
- spec/api/filters_api_spec.rb
|
476
|
+
- spec/api/exports_api_spec.rb
|
477
|
+
- spec/api/direct_uploads_api_spec.rb
|
479
478
|
- spec/api/metrics_api_spec.rb
|
480
479
|
- spec/api/assets_api_spec.rb
|
481
|
-
- spec/api/live_streams_api_spec.rb
|
482
|
-
- spec/api/direct_uploads_api_spec.rb
|
483
|
-
- spec/api/exports_api_spec.rb
|
484
480
|
- spec/api/errors_api_spec.rb
|
481
|
+
- spec/api/url_signing_keys_api_spec.rb
|
482
|
+
- spec/api/video_views_api_spec.rb
|
483
|
+
- spec/api/live_streams_api_spec.rb
|
484
|
+
- spec/api/delivery_usage_api_spec.rb
|
485
485
|
- spec/api_client_spec.rb
|
486
486
|
- spec/configuration_spec.rb
|
487
|
-
- spec/models/
|
488
|
-
- spec/models/playback_policy_spec.rb
|
489
|
-
- spec/models/list_video_views_response_spec.rb
|
487
|
+
- spec/models/playback_id_spec.rb
|
490
488
|
- spec/models/list_signing_keys_response_spec.rb
|
491
|
-
- spec/models/
|
489
|
+
- spec/models/filter_value_spec.rb
|
490
|
+
- spec/models/input_file_spec.rb
|
492
491
|
- spec/models/get_metric_timeseries_data_response_spec.rb
|
493
|
-
- spec/models/
|
492
|
+
- spec/models/get_overall_values_response_spec.rb
|
493
|
+
- spec/models/list_live_streams_response_spec.rb
|
494
494
|
- spec/models/live_stream_spec.rb
|
495
|
-
- spec/models/
|
496
|
-
- spec/models/
|
497
|
-
- spec/models/
|
498
|
-
- spec/models/get_asset_input_info_response_spec.rb
|
499
|
-
- spec/models/abridged_video_view_spec.rb
|
500
|
-
- spec/models/list_assets_response_spec.rb
|
501
|
-
- spec/models/update_asset_master_access_request_spec.rb
|
502
|
-
- spec/models/list_delivery_usage_response_spec.rb
|
503
|
-
- spec/models/asset_static_renditions_files_spec.rb
|
504
|
-
- spec/models/input_info_spec.rb
|
505
|
-
- spec/models/simulcast_target_spec.rb
|
506
|
-
- spec/models/create_live_stream_request_spec.rb
|
507
|
-
- spec/models/list_all_metric_values_response_spec.rb
|
508
|
-
- spec/models/video_view_response_spec.rb
|
509
|
-
- spec/models/update_asset_mp4_support_request_spec.rb
|
510
|
-
- spec/models/list_uploads_response_spec.rb
|
511
|
-
- spec/models/error_spec.rb
|
495
|
+
- spec/models/input_settings_overlay_settings_spec.rb
|
496
|
+
- spec/models/get_asset_playback_id_response_spec.rb
|
497
|
+
- spec/models/track_spec.rb
|
512
498
|
- spec/models/delivery_report_spec.rb
|
513
|
-
- spec/models/
|
514
|
-
- spec/models/
|
499
|
+
- spec/models/list_assets_response_spec.rb
|
500
|
+
- spec/models/create_track_request_spec.rb
|
501
|
+
- spec/models/list_breakdown_values_response_spec.rb
|
515
502
|
- spec/models/insight_spec.rb
|
516
|
-
- spec/models/
|
517
|
-
- spec/models/
|
518
|
-
- spec/models/
|
503
|
+
- spec/models/error_spec.rb
|
504
|
+
- spec/models/create_track_response_spec.rb
|
505
|
+
- spec/models/create_playback_id_request_spec.rb
|
506
|
+
- spec/models/playback_policy_spec.rb
|
519
507
|
- spec/models/list_filters_response_spec.rb
|
520
|
-
- spec/models/
|
508
|
+
- spec/models/get_asset_input_info_response_spec.rb
|
509
|
+
- spec/models/input_info_spec.rb
|
510
|
+
- spec/models/score_spec.rb
|
511
|
+
- spec/models/asset_master_spec.rb
|
512
|
+
- spec/models/list_insights_response_spec.rb
|
513
|
+
- spec/models/simulcast_target_spec.rb
|
514
|
+
- spec/models/abridged_video_view_spec.rb
|
515
|
+
- spec/models/asset_errors_spec.rb
|
516
|
+
- spec/models/metric_spec.rb
|
521
517
|
- spec/models/create_playback_id_response_spec.rb
|
522
|
-
- spec/models/
|
523
|
-
- spec/models/
|
524
|
-
- spec/models/live_stream_response_spec.rb
|
525
|
-
- spec/models/overall_values_spec.rb
|
518
|
+
- spec/models/signing_key_spec.rb
|
519
|
+
- spec/models/asset_static_renditions_spec.rb
|
526
520
|
- spec/models/list_filter_values_response_spec.rb
|
521
|
+
- spec/models/simulcast_target_response_spec.rb
|
522
|
+
- spec/models/create_asset_request_spec.rb
|
523
|
+
- spec/models/video_view_response_spec.rb
|
524
|
+
- spec/models/signing_key_response_spec.rb
|
527
525
|
- spec/models/input_settings_spec.rb
|
526
|
+
- spec/models/create_upload_request_spec.rb
|
527
|
+
- spec/models/update_asset_mp4_support_request_spec.rb
|
528
528
|
- spec/models/list_filters_response_data_spec.rb
|
529
|
-
- spec/models/
|
530
|
-
- spec/models/
|
531
|
-
- spec/models/
|
532
|
-
- spec/models/
|
529
|
+
- spec/models/upload_error_spec.rb
|
530
|
+
- spec/models/input_track_spec.rb
|
531
|
+
- spec/models/upload_response_spec.rb
|
532
|
+
- spec/models/asset_static_renditions_files_spec.rb
|
533
533
|
- spec/models/video_view_event_spec.rb
|
534
534
|
- spec/models/video_view_spec.rb
|
535
|
-
- spec/models/score_spec.rb
|
536
|
-
- spec/models/input_settings_overlay_settings_spec.rb
|
537
|
-
- spec/models/input_track_spec.rb
|
538
|
-
- spec/models/input_file_spec.rb
|
539
|
-
- spec/models/signal_live_stream_complete_response_spec.rb
|
540
|
-
- spec/models/track_spec.rb
|
541
|
-
- spec/models/list_live_streams_response_spec.rb
|
542
|
-
- spec/models/create_track_response_spec.rb
|
543
|
-
- spec/models/list_insights_response_spec.rb
|
544
|
-
- spec/models/signing_key_response_spec.rb
|
545
|
-
- spec/models/simulcast_target_response_spec.rb
|
546
|
-
- spec/models/get_overall_values_response_spec.rb
|
547
535
|
- spec/models/breakdown_value_spec.rb
|
548
|
-
- spec/models/
|
549
|
-
- spec/models/
|
550
|
-
- spec/models/
|
536
|
+
- spec/models/upload_spec.rb
|
537
|
+
- spec/models/list_all_metric_values_response_spec.rb
|
538
|
+
- spec/models/signal_live_stream_complete_response_spec.rb
|
539
|
+
- spec/models/asset_response_spec.rb
|
540
|
+
- spec/models/list_uploads_response_spec.rb
|
541
|
+
- spec/models/list_video_views_response_spec.rb
|
542
|
+
- spec/models/asset_spec.rb
|
543
|
+
- spec/models/live_stream_response_spec.rb
|
544
|
+
- spec/models/create_simulcast_target_request_spec.rb
|
545
|
+
- spec/models/overall_values_spec.rb
|
546
|
+
- spec/models/list_delivery_usage_response_spec.rb
|
547
|
+
- spec/models/list_exports_response_spec.rb
|
548
|
+
- spec/models/list_errors_response_spec.rb
|
549
|
+
- spec/models/update_asset_master_access_request_spec.rb
|
550
|
+
- spec/models/create_live_stream_request_spec.rb
|
551
551
|
- spec/spec_helper.rb
|