mux_ruby 1.3.1 → 1.7.0
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 +6 -1
- data/docs/Asset.md +3 -1
- data/docs/AssetNonStandardInputReasons.md +16 -0
- data/docs/AssetRecordingTimes.md +9 -0
- data/docs/AssetsApi.md +54 -0
- data/docs/CreateAssetRequest.md +1 -1
- data/docs/CreateLiveStreamRequest.md +2 -0
- data/docs/CreateUploadRequest.md +1 -0
- data/docs/DisableLiveStreamResponse.md +8 -0
- data/docs/EnableLiveStreamResponse.md +8 -0
- data/docs/LiveStream.md +2 -1
- data/docs/LiveStreamsApi.md +104 -0
- data/docs/UpdateAssetMasterAccessRequest.md +8 -0
- data/docs/Upload.md +1 -0
- data/docs/VideoView.md +16 -14
- data/examples/data/exercise-errors.rb +1 -1
- data/examples/video/exercise-assets.rb +10 -0
- data/examples/video/exercise-live-streams.rb +22 -0
- data/lib/mux_ruby.rb +5 -0
- data/lib/mux_ruby/api/assets_api.rb +61 -0
- data/lib/mux_ruby/api/live_streams_api.rb +106 -0
- data/lib/mux_ruby/api_client.rb +1 -1
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +34 -13
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
- data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +4 -4
- data/lib/mux_ruby/models/create_asset_request.rb +13 -13
- data/lib/mux_ruby/models/create_live_stream_request.rb +24 -4
- data/lib/mux_ruby/models/create_upload_request.rb +13 -4
- data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +46 -0
- data/lib/mux_ruby/models/live_stream.rb +14 -5
- 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.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +13 -0
- data/spec/api/live_streams_api_spec.rb +24 -0
- data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
- data/spec/models/asset_recording_times_spec.rb +40 -0
- data/spec/models/asset_spec.rb +18 -6
- data/spec/models/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_asset_request_spec.rb +6 -6
- data/spec/models/create_live_stream_request_spec.rb +12 -0
- data/spec/models/create_upload_request_spec.rb +6 -0
- data/spec/models/disable_live_stream_response_spec.rb +34 -0
- data/spec/models/enable_live_stream_response_spec.rb +34 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +8 -0
- data/spec/models/live_stream_spec.rb +6 -0
- data/spec/models/update_asset_master_access_request_spec.rb +38 -0
- data/spec/models/upload_spec.rb +6 -0
- data/spec/models/video_view_spec.rb +12 -0
- data/test.sh +28 -0
- metadata +80 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ccbf90e37874b351e072e692180c58a354d436faddbb9f9d0f2c9a9d95868f4f
|
4
|
+
data.tar.gz: b8e1b2f842ec53b7447df8d4cb7ba51a4ec39ec83593edfcd83dc8e76289222e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d4b97bfbe38e4fcbab508520383eec2d36c79551cc176a1ae4b4d2bb397e2d3e05dbab8d58da94de21c409fb2f2d66e95b4f6d16121c8673e182ecd2014f538
|
7
|
+
data.tar.gz: 0e7ac75c0ce0d429ae02710b35a1bc7ef3a5182ef1f138c8f2b435ac1b2a3fe70e259ed10c224a44865d06101adb7c4fd34cc262f60095f6b9391e60a7e9f8a6
|
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.7.0)
|
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.
|
@@ -19,8 +21,11 @@ Use `bundle install` to install dependencies if you're developing locally.
|
|
19
21
|
## Installation
|
20
22
|
|
21
23
|
### Adding to your Gemfile
|
24
|
+
|
25
|
+
This gem can be sourced from [RubyGems](https://rubygems.org/gems/mux_ruby)
|
26
|
+
|
22
27
|
```
|
23
|
-
gem 'mux_ruby'
|
28
|
+
gem 'mux_ruby'
|
24
29
|
```
|
25
30
|
|
26
31
|
### Clone and install locally
|
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]
|
@@ -24,5 +23,8 @@ Name | Type | Description | Notes
|
|
24
23
|
**mp4_support** | **String** | | [optional] [default to 'none']
|
25
24
|
**normalize_audio** | **BOOLEAN** | | [optional] [default to false]
|
26
25
|
**static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
|
26
|
+
**recording_times** | [**Array<AssetRecordingTimes>**](AssetRecordingTimes.md) | An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream | [optional]
|
27
|
+
**non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional]
|
28
|
+
**test** | **BOOLEAN** | | [optional]
|
27
29
|
|
28
30
|
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# MuxRuby::AssetNonStandardInputReasons
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**video_codec** | **String** | The video codec used on the input file | [optional]
|
7
|
+
**audio_codec** | **String** | The audio codec used on the input file | [optional]
|
8
|
+
**video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file | [optional]
|
9
|
+
**video_frame_rate** | **String** | The video frame rate of the input file | [optional]
|
10
|
+
**video_resolution** | **String** | The video resolution of the input file | [optional]
|
11
|
+
**pixel_aspect_ratio** | **String** | The video pixel aspect ratio of the input file | [optional]
|
12
|
+
**video_edit_list** | **String** | Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List | [optional]
|
13
|
+
**audio_edit_list** | **String** | Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List | [optional]
|
14
|
+
**unexpected_media_file_parameters** | **String** | A catch-all reason when the input file in created with non-standard encoding parameters | [optional]
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# MuxRuby::AssetRecordingTimes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**started_at** | **DateTime** | The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format | [optional]
|
7
|
+
**duration** | **Float** | The duration of the live stream recorded. The time value is in seconds | [optional]
|
8
|
+
|
9
|
+
|
data/docs/AssetsApi.md
CHANGED
@@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
[**get_asset_input_info**](AssetsApi.md#get_asset_input_info) | **GET** /video/v1/assets/{ASSET_ID}/input-info | Retrieve asset input info
|
15
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
|
16
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
|
17
18
|
[**update_asset_mp4_support**](AssetsApi.md#update_asset_mp4_support) | **PUT** /video/v1/assets/{ASSET_ID}/mp4-support | Update MP4 support
|
18
19
|
|
19
20
|
|
@@ -524,6 +525,59 @@ Name | Type | Description | Notes
|
|
524
525
|
|
525
526
|
|
526
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
|
+
|
527
581
|
# **update_asset_mp4_support**
|
528
582
|
> AssetResponse update_asset_mp4_support(asset_id, update_asset_mp4_support_request)
|
529
583
|
|
data/docs/CreateAssetRequest.md
CHANGED
@@ -5,11 +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]
|
12
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]
|
13
12
|
**master_access** | **String** | | [optional]
|
13
|
+
**test** | **BOOLEAN** | | [optional]
|
14
14
|
|
15
15
|
|
@@ -8,5 +8,7 @@ Name | Type | Description | Notes
|
|
8
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
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
|
+
**test** | **BOOLEAN** | | [optional]
|
12
|
+
**simulcast_targets** | [**Array<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional]
|
11
13
|
|
12
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
|
|
data/docs/LiveStream.md
CHANGED
@@ -10,10 +10,11 @@ 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]
|
17
17
|
**simulcast_targets** | [**Array<SimulcastTarget>**](SimulcastTarget.md) | | [optional]
|
18
|
+
**test** | **BOOLEAN** | | [optional]
|
18
19
|
|
19
20
|
|
data/docs/LiveStreamsApi.md
CHANGED
@@ -10,6 +10,8 @@ Method | HTTP request | Description
|
|
10
10
|
[**delete_live_stream**](LiveStreamsApi.md#delete_live_stream) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID} | Delete a live stream
|
11
11
|
[**delete_live_stream_playback_id**](LiveStreamsApi.md#delete_live_stream_playback_id) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID} | Delete a live stream playback ID
|
12
12
|
[**delete_live_stream_simulcast_target**](LiveStreamsApi.md#delete_live_stream_simulcast_target) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Delete a Live Stream Simulcast Target
|
13
|
+
[**disable_live_stream**](LiveStreamsApi.md#disable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/disable | Disable a live stream
|
14
|
+
[**enable_live_stream**](LiveStreamsApi.md#enable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/enable | Enable a live stream
|
13
15
|
[**get_live_stream**](LiveStreamsApi.md#get_live_stream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream
|
14
16
|
[**get_live_stream_simulcast_target**](LiveStreamsApi.md#get_live_stream_simulcast_target) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Retrieve a Live Stream Simulcast Target
|
15
17
|
[**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams
|
@@ -320,6 +322,108 @@ nil (empty response body)
|
|
320
322
|
|
321
323
|
|
322
324
|
|
325
|
+
# **disable_live_stream**
|
326
|
+
> DisableLiveStreamResponse disable_live_stream(live_stream_id)
|
327
|
+
|
328
|
+
Disable a live stream
|
329
|
+
|
330
|
+
Disables a live stream, making it reject incoming RTMP streams until re-enabled.
|
331
|
+
|
332
|
+
### Example
|
333
|
+
```ruby
|
334
|
+
# load the gem
|
335
|
+
require 'mux_ruby'
|
336
|
+
# setup authorization
|
337
|
+
MuxRuby.configure do |config|
|
338
|
+
# Configure HTTP basic authorization: accessToken
|
339
|
+
config.username = 'YOUR USERNAME'
|
340
|
+
config.password = 'YOUR PASSWORD'
|
341
|
+
end
|
342
|
+
|
343
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
344
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
345
|
+
|
346
|
+
begin
|
347
|
+
#Disable a live stream
|
348
|
+
result = api_instance.disable_live_stream(live_stream_id)
|
349
|
+
p result
|
350
|
+
rescue MuxRuby::ApiError => e
|
351
|
+
puts "Exception when calling LiveStreamsApi->disable_live_stream: #{e}"
|
352
|
+
end
|
353
|
+
```
|
354
|
+
|
355
|
+
### Parameters
|
356
|
+
|
357
|
+
Name | Type | Description | Notes
|
358
|
+
------------- | ------------- | ------------- | -------------
|
359
|
+
**live_stream_id** | **String**| The live stream ID |
|
360
|
+
|
361
|
+
### Return type
|
362
|
+
|
363
|
+
[**DisableLiveStreamResponse**](DisableLiveStreamResponse.md)
|
364
|
+
|
365
|
+
### Authorization
|
366
|
+
|
367
|
+
[accessToken](../README.md#accessToken)
|
368
|
+
|
369
|
+
### HTTP request headers
|
370
|
+
|
371
|
+
- **Content-Type**: Not defined
|
372
|
+
- **Accept**: application/json
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
# **enable_live_stream**
|
377
|
+
> EnableLiveStreamResponse enable_live_stream(live_stream_id)
|
378
|
+
|
379
|
+
Enable a live stream
|
380
|
+
|
381
|
+
Enables a live stream, allowing it to accept an incoming RTMP stream.
|
382
|
+
|
383
|
+
### Example
|
384
|
+
```ruby
|
385
|
+
# load the gem
|
386
|
+
require 'mux_ruby'
|
387
|
+
# setup authorization
|
388
|
+
MuxRuby.configure do |config|
|
389
|
+
# Configure HTTP basic authorization: accessToken
|
390
|
+
config.username = 'YOUR USERNAME'
|
391
|
+
config.password = 'YOUR PASSWORD'
|
392
|
+
end
|
393
|
+
|
394
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
395
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
396
|
+
|
397
|
+
begin
|
398
|
+
#Enable a live stream
|
399
|
+
result = api_instance.enable_live_stream(live_stream_id)
|
400
|
+
p result
|
401
|
+
rescue MuxRuby::ApiError => e
|
402
|
+
puts "Exception when calling LiveStreamsApi->enable_live_stream: #{e}"
|
403
|
+
end
|
404
|
+
```
|
405
|
+
|
406
|
+
### Parameters
|
407
|
+
|
408
|
+
Name | Type | Description | Notes
|
409
|
+
------------- | ------------- | ------------- | -------------
|
410
|
+
**live_stream_id** | **String**| The live stream ID |
|
411
|
+
|
412
|
+
### Return type
|
413
|
+
|
414
|
+
[**EnableLiveStreamResponse**](EnableLiveStreamResponse.md)
|
415
|
+
|
416
|
+
### Authorization
|
417
|
+
|
418
|
+
[accessToken](../README.md#accessToken)
|
419
|
+
|
420
|
+
### HTTP request headers
|
421
|
+
|
422
|
+
- **Content-Type**: Not defined
|
423
|
+
- **Accept**: application/json
|
424
|
+
|
425
|
+
|
426
|
+
|
323
427
|
# **get_live_stream**
|
324
428
|
> LiveStreamResponse get_live_stream(live_stream_id)
|
325
429
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# MuxRuby::UpdateAssetMasterAccessRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**master_access** | **String** | Add or remove access to the master version of the video. | [optional]
|
7
|
+
|
8
|
+
|