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
@@ -0,0 +1,219 @@
|
|
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 'date'
|
7
|
+
|
8
|
+
module MuxRuby
|
9
|
+
class UpdateAssetMasterAccessRequest
|
10
|
+
# Add or remove access to the master version of the video.
|
11
|
+
attr_accessor :master_access
|
12
|
+
|
13
|
+
class EnumAttributeValidator
|
14
|
+
attr_reader :datatype
|
15
|
+
attr_reader :allowable_values
|
16
|
+
|
17
|
+
def initialize(datatype, allowable_values)
|
18
|
+
@allowable_values = allowable_values.map do |value|
|
19
|
+
case datatype.to_s
|
20
|
+
when /Integer/i
|
21
|
+
value.to_i
|
22
|
+
when /Float/i
|
23
|
+
value.to_f
|
24
|
+
else
|
25
|
+
value
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def valid?(value)
|
31
|
+
!value || allowable_values.include?(value)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'master_access' => :'master_access'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'master_access' => :'String'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
|
+
|
57
|
+
if attributes.has_key?(:'master_access')
|
58
|
+
self.master_access = attributes[:'master_access']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
master_access_validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
73
|
+
return false unless master_access_validator.valid?(@master_access)
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Custom attribute writer method checking allowed values (enum).
|
78
|
+
# @param [Object] master_access Object to be assigned
|
79
|
+
def master_access=(master_access)
|
80
|
+
validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
81
|
+
unless validator.valid?(master_access)
|
82
|
+
fail ArgumentError, 'invalid value for "master_access", must be one of #{validator.allowable_values}.'
|
83
|
+
end
|
84
|
+
@master_access = master_access
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
master_access == o.master_access
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Fixnum] Hash code
|
103
|
+
def hash
|
104
|
+
[master_access].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
self.class.openapi_types.each_pair do |key, type|
|
120
|
+
if type =~ /\AArray<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the attribute
|
122
|
+
# is documented as an array but the input is not
|
123
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
|
+
end
|
126
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :BOOLEAN
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
MuxRuby.const_get(type).build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
@@ -27,6 +27,8 @@ module MuxRuby
|
|
27
27
|
# The URL to upload the associated source media to.
|
28
28
|
attr_accessor :url
|
29
29
|
|
30
|
+
attr_accessor :test
|
31
|
+
|
30
32
|
class EnumAttributeValidator
|
31
33
|
attr_reader :datatype
|
32
34
|
attr_reader :allowable_values
|
@@ -59,7 +61,8 @@ module MuxRuby
|
|
59
61
|
:'asset_id' => :'asset_id',
|
60
62
|
:'error' => :'error',
|
61
63
|
:'cors_origin' => :'cors_origin',
|
62
|
-
:'url' => :'url'
|
64
|
+
:'url' => :'url',
|
65
|
+
:'test' => :'test'
|
63
66
|
}
|
64
67
|
end
|
65
68
|
|
@@ -73,7 +76,8 @@ module MuxRuby
|
|
73
76
|
:'asset_id' => :'String',
|
74
77
|
:'error' => :'UploadError',
|
75
78
|
:'cors_origin' => :'String',
|
76
|
-
:'url' => :'String'
|
79
|
+
:'url' => :'String',
|
80
|
+
:'test' => :'BOOLEAN'
|
77
81
|
}
|
78
82
|
end
|
79
83
|
|
@@ -118,6 +122,10 @@ module MuxRuby
|
|
118
122
|
if attributes.has_key?(:'url')
|
119
123
|
self.url = attributes[:'url']
|
120
124
|
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'test')
|
127
|
+
self.test = attributes[:'test']
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,7 +189,8 @@ module MuxRuby
|
|
181
189
|
asset_id == o.asset_id &&
|
182
190
|
error == o.error &&
|
183
191
|
cors_origin == o.cors_origin &&
|
184
|
-
url == o.url
|
192
|
+
url == o.url &&
|
193
|
+
test == o.test
|
185
194
|
end
|
186
195
|
|
187
196
|
# @see the `==` method
|
@@ -193,7 +202,7 @@ module MuxRuby
|
|
193
202
|
# Calculates hash code according to all attributes.
|
194
203
|
# @return [Fixnum] Hash code
|
195
204
|
def hash
|
196
|
-
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url].hash
|
205
|
+
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url, test].hash
|
197
206
|
end
|
198
207
|
|
199
208
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
data/spec/api/assets_api_spec.rb
CHANGED
@@ -49,6 +49,18 @@ describe 'AssetsApi' do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
# unit tests for create_asset_track
|
53
|
+
# Create an asset track
|
54
|
+
# @param asset_id The asset ID.
|
55
|
+
# @param create_track_request
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [CreateTrackResponse]
|
58
|
+
describe 'create_asset_track test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
52
64
|
# unit tests for delete_asset
|
53
65
|
# Delete an asset
|
54
66
|
# @param asset_id The asset ID.
|
@@ -72,6 +84,18 @@ describe 'AssetsApi' do
|
|
72
84
|
end
|
73
85
|
end
|
74
86
|
|
87
|
+
# unit tests for delete_asset_track
|
88
|
+
# Delete an asset track
|
89
|
+
# @param asset_id The asset ID.
|
90
|
+
# @param track_id The track ID.
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @return [nil]
|
93
|
+
describe 'delete_asset_track test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
75
99
|
# unit tests for get_asset
|
76
100
|
# Retrieve an asset
|
77
101
|
# Retrieves the details of an asset that has previously been created. Supply the unique asset ID that was returned from your previous request, and Mux will return the corresponding asset information. The same information is returned when creating an asset.
|
@@ -120,6 +144,19 @@ describe 'AssetsApi' do
|
|
120
144
|
end
|
121
145
|
end
|
122
146
|
|
147
|
+
# unit tests for update_asset_master_access
|
148
|
+
# Update master access
|
149
|
+
# 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.
|
150
|
+
# @param asset_id The asset ID.
|
151
|
+
# @param update_asset_master_access_request
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @return [AssetResponse]
|
154
|
+
describe 'update_asset_master_access test' do
|
155
|
+
it 'should work' do
|
156
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
123
160
|
# unit tests for update_asset_mp4_support
|
124
161
|
# Update MP4 support
|
125
162
|
# 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.
|
@@ -0,0 +1,43 @@
|
|
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 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::DeliveryUsageApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'DeliveryUsageApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::DeliveryUsageApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of DeliveryUsageApi' do
|
23
|
+
it 'should create an instance of DeliveryUsageApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::DeliveryUsageApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for list_delivery_usage
|
29
|
+
# List Usage
|
30
|
+
# Returns a list of delivery usage records and their associated Asset IDs or Live Stream IDs.
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
33
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
34
|
+
# @option opts [String] :asset_id Filter response to return delivery usage for this asset only.
|
35
|
+
# @option opts [Array<String>] :timeframe 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.
|
36
|
+
# @return [ListDeliveryUsageResponse]
|
37
|
+
describe 'list_delivery_usage test' do
|
38
|
+
it 'should work' do
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
@@ -48,6 +48,19 @@ describe 'LiveStreamsApi' do
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
+
# unit tests for create_live_stream_simulcast_target
|
52
|
+
# Create a live stream simulcast target
|
53
|
+
# Create a simulcast target for the parent live stream. Simulcast target can only be created when the parent live stream is in idle state. Only one simulcast target can be created at a time with this API.
|
54
|
+
# @param live_stream_id The live stream ID
|
55
|
+
# @param create_simulcast_target_request
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [SimulcastTargetResponse]
|
58
|
+
describe 'create_live_stream_simulcast_target test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
51
64
|
# unit tests for delete_live_stream
|
52
65
|
# Delete a live stream
|
53
66
|
# @param live_stream_id The live stream ID
|
@@ -71,6 +84,19 @@ describe 'LiveStreamsApi' do
|
|
71
84
|
end
|
72
85
|
end
|
73
86
|
|
87
|
+
# unit tests for delete_live_stream_simulcast_target
|
88
|
+
# Delete a Live Stream Simulcast Target
|
89
|
+
# Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state.
|
90
|
+
# @param live_stream_id The live stream ID
|
91
|
+
# @param simulcast_target_id The ID of the simulcast target.
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [nil]
|
94
|
+
describe 'delete_live_stream_simulcast_target test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
74
100
|
# unit tests for get_live_stream
|
75
101
|
# Retrieve a live stream
|
76
102
|
# Retrieves the details of a live stream that has previously been created. Supply the unique live stream ID that was returned from your previous request, and Mux will return the corresponding live stream information. The same information is returned when creating a live stream.
|
@@ -83,6 +109,19 @@ describe 'LiveStreamsApi' do
|
|
83
109
|
end
|
84
110
|
end
|
85
111
|
|
112
|
+
# unit tests for get_live_stream_simulcast_target
|
113
|
+
# Retrieve a Live Stream Simulcast Target
|
114
|
+
# Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information.
|
115
|
+
# @param live_stream_id The live stream ID
|
116
|
+
# @param simulcast_target_id The ID of the simulcast target.
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @return [SimulcastTargetResponse]
|
119
|
+
describe 'get_live_stream_simulcast_target test' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
86
125
|
# unit tests for list_live_streams
|
87
126
|
# List live streams
|
88
127
|
# @param [Hash] opts the optional parameters
|