mux_ruby 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +79 -0
- data/LICENSE +7 -0
- data/README.md +121 -0
- data/Rakefile +10 -0
- data/docs/AbridgedVideoView.md +18 -0
- data/docs/Asset.md +27 -0
- data/docs/AssetErrors.md +9 -0
- data/docs/AssetMaster.md +9 -0
- data/docs/AssetResponse.md +8 -0
- data/docs/AssetStaticRenditions.md +9 -0
- data/docs/AssetStaticRenditionsFiles.md +13 -0
- data/docs/AssetsApi.md +476 -0
- data/docs/BreakdownValue.md +12 -0
- data/docs/CreateAssetRequest.md +13 -0
- data/docs/CreateLiveStreamRequest.md +9 -0
- data/docs/CreatePlaybackIDRequest.md +8 -0
- data/docs/CreatePlaybackIDResponse.md +8 -0
- data/docs/CreateUploadRequest.md +10 -0
- data/docs/DirectUploadsApi.md +214 -0
- data/docs/Error.md +15 -0
- data/docs/ErrorsApi.md +64 -0
- data/docs/ExportsApi.md +56 -0
- data/docs/FilterValue.md +9 -0
- data/docs/FiltersApi.md +118 -0
- data/docs/GetAssetInputInfoResponse.md +8 -0
- data/docs/GetAssetPlaybackIDResponse.md +8 -0
- data/docs/GetMetricTimeseriesDataResponse.md +10 -0
- data/docs/GetOverallValuesResponse.md +10 -0
- data/docs/InputFile.md +9 -0
- data/docs/InputInfo.md +9 -0
- data/docs/InputSettings.md +10 -0
- data/docs/InputSettingsOverlaySettings.md +14 -0
- data/docs/InputTrack.md +18 -0
- data/docs/Insight.md +13 -0
- data/docs/ListAllMetricValuesResponse.md +10 -0
- data/docs/ListAssetsResponse.md +8 -0
- data/docs/ListBreakdownValuesResponse.md +10 -0
- data/docs/ListErrorsResponse.md +10 -0
- data/docs/ListExportsResponse.md +10 -0
- data/docs/ListFilterValuesResponse.md +10 -0
- data/docs/ListFiltersResponse.md +10 -0
- data/docs/ListFiltersResponseData.md +9 -0
- data/docs/ListInsightsResponse.md +10 -0
- data/docs/ListLiveStreamsResponse.md +8 -0
- data/docs/ListSigningKeysResponse.md +8 -0
- data/docs/ListUploadsResponse.md +8 -0
- data/docs/ListVideoViewsResponse.md +10 -0
- data/docs/LiveStream.md +17 -0
- data/docs/LiveStreamResponse.md +8 -0
- data/docs/LiveStreamsApi.md +420 -0
- data/docs/Metric.md +12 -0
- data/docs/MetricsApi.md +322 -0
- data/docs/OverallValues.md +11 -0
- data/docs/PlaybackID.md +9 -0
- data/docs/PlaybackPolicy.md +7 -0
- data/docs/Score.md +13 -0
- data/docs/SignalLiveStreamCompleteResponse.md +8 -0
- data/docs/SigningKey.md +10 -0
- data/docs/SigningKeyResponse.md +8 -0
- data/docs/Track.md +17 -0
- data/docs/URLSigningKeysApi.md +215 -0
- data/docs/UpdateAssetMP4SupportRequest.md +8 -0
- data/docs/Upload.md +15 -0
- data/docs/UploadError.md +9 -0
- data/docs/UploadResponse.md +8 -0
- data/docs/VideoView.md +117 -0
- data/docs/VideoViewEvent.md +11 -0
- data/docs/VideoViewResponse.md +9 -0
- data/docs/VideoViewsApi.md +126 -0
- data/examples/data/exercise-errors.rb +23 -0
- data/examples/data/exercise-exports.rb +22 -0
- data/examples/data/exercise-filters.rb +29 -0
- data/examples/data/exercise-metrics.rb +52 -0
- data/examples/data/exercise-video-views.rb +30 -0
- data/examples/video/create-live-stream.rb +25 -0
- data/examples/video/exercise-assets.rb +95 -0
- data/examples/video/exercise-live-streams.rb +89 -0
- data/examples/video/exercise-signing-keys.rb +46 -0
- data/examples/video/exercise-uploads.rb +49 -0
- data/examples/video/ingest.rb +37 -0
- data/examples/video/list-everything.rb +48 -0
- data/github-ruby-sdk.png +0 -0
- data/lib/mux_ruby/api/assets_api.rb +507 -0
- data/lib/mux_ruby/api/direct_uploads_api.rb +224 -0
- data/lib/mux_ruby/api/errors_api.rb +69 -0
- data/lib/mux_ruby/api/exports_api.rb +63 -0
- data/lib/mux_ruby/api/filters_api.rb +128 -0
- data/lib/mux_ruby/api/live_streams_api.rb +440 -0
- data/lib/mux_ruby/api/metrics_api.rb +393 -0
- data/lib/mux_ruby/api/url_signing_keys_api.rb +219 -0
- data/lib/mux_ruby/api/video_views_api.rb +140 -0
- data/lib/mux_ruby/api_client.rb +400 -0
- data/lib/mux_ruby/api_error.rb +44 -0
- data/lib/mux_ruby/configuration.rb +244 -0
- data/lib/mux_ruby/models/abridged_video_view.rb +274 -0
- data/lib/mux_ruby/models/asset.rb +409 -0
- data/lib/mux_ruby/models/asset_errors.rb +195 -0
- data/lib/mux_ruby/models/asset_master.rb +193 -0
- data/lib/mux_ruby/models/asset_response.rb +184 -0
- data/lib/mux_ruby/models/asset_static_renditions.rb +232 -0
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +279 -0
- data/lib/mux_ruby/models/breakdown_value.rb +220 -0
- data/lib/mux_ruby/models/create_asset_request.rb +267 -0
- data/lib/mux_ruby/models/create_live_stream_request.rb +195 -0
- data/lib/mux_ruby/models/create_playback_id_request.rb +184 -0
- data/lib/mux_ruby/models/create_playback_id_response.rb +184 -0
- data/lib/mux_ruby/models/create_upload_request.rb +235 -0
- data/lib/mux_ruby/models/error.rb +247 -0
- data/lib/mux_ruby/models/filter_value.rb +193 -0
- data/lib/mux_ruby/models/get_asset_input_info_response.rb +186 -0
- data/lib/mux_ruby/models/get_asset_playback_id_response.rb +184 -0
- data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +206 -0
- data/lib/mux_ruby/models/get_overall_values_response.rb +204 -0
- data/lib/mux_ruby/models/input_file.rb +195 -0
- data/lib/mux_ruby/models/input_info.rb +193 -0
- data/lib/mux_ruby/models/input_settings.rb +203 -0
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +238 -0
- data/lib/mux_ruby/models/input_track.rb +274 -0
- data/lib/mux_ruby/models/insight.rb +229 -0
- data/lib/mux_ruby/models/list_all_metric_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_assets_response.rb +186 -0
- data/lib/mux_ruby/models/list_breakdown_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_errors_response.rb +206 -0
- data/lib/mux_ruby/models/list_exports_response.rb +206 -0
- data/lib/mux_ruby/models/list_filter_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_filters_response.rb +204 -0
- data/lib/mux_ruby/models/list_filters_response_data.rb +197 -0
- data/lib/mux_ruby/models/list_insights_response.rb +206 -0
- data/lib/mux_ruby/models/list_live_streams_response.rb +186 -0
- data/lib/mux_ruby/models/list_signing_keys_response.rb +186 -0
- data/lib/mux_ruby/models/list_uploads_response.rb +186 -0
- data/lib/mux_ruby/models/list_video_views_response.rb +206 -0
- data/lib/mux_ruby/models/live_stream.rb +269 -0
- data/lib/mux_ruby/models/live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/metric.rb +220 -0
- data/lib/mux_ruby/models/overall_values.rb +211 -0
- data/lib/mux_ruby/models/playback_id.rb +193 -0
- data/lib/mux_ruby/models/playback_policy.rb +31 -0
- data/lib/mux_ruby/models/score.rb +231 -0
- data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +184 -0
- data/lib/mux_ruby/models/signing_key.rb +202 -0
- data/lib/mux_ruby/models/signing_key_response.rb +184 -0
- data/lib/mux_ruby/models/track.rb +265 -0
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +219 -0
- data/lib/mux_ruby/models/upload.rb +311 -0
- data/lib/mux_ruby/models/upload_error.rb +194 -0
- data/lib/mux_ruby/models/upload_response.rb +184 -0
- data/lib/mux_ruby/models/video_view.rb +1167 -0
- data/lib/mux_ruby/models/video_view_event.rb +211 -0
- data/lib/mux_ruby/models/video_view_response.rb +195 -0
- data/lib/mux_ruby/version.rb +8 -0
- data/lib/mux_ruby.rb +97 -0
- data/mux_ruby.gemspec +38 -0
- data/spec/api/assets_api_spec.rb +136 -0
- data/spec/api/direct_uploads_api_spec.rb +74 -0
- data/spec/api/errors_api_spec.rb +41 -0
- data/spec/api/exports_api_spec.rb +39 -0
- data/spec/api/filters_api_spec.rb +55 -0
- data/spec/api/live_streams_api_spec.rb +122 -0
- data/spec/api/metrics_api_spec.rb +110 -0
- data/spec/api/url_signing_keys_api_spec.rb +76 -0
- data/spec/api/video_views_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +219 -0
- data/spec/configuration_spec.rb +35 -0
- data/spec/models/abridged_video_view_spec.rb +94 -0
- data/spec/models/asset_errors_spec.rb +40 -0
- data/spec/models/asset_master_spec.rb +40 -0
- data/spec/models/asset_response_spec.rb +34 -0
- data/spec/models/asset_spec.rb +156 -0
- data/spec/models/asset_static_renditions_files_spec.rb +72 -0
- data/spec/models/asset_static_renditions_spec.rb +44 -0
- data/spec/models/breakdown_value_spec.rb +58 -0
- data/spec/models/create_asset_request_spec.rb +68 -0
- data/spec/models/create_live_stream_request_spec.rb +40 -0
- data/spec/models/create_playback_id_request_spec.rb +34 -0
- data/spec/models/create_playback_id_response_spec.rb +34 -0
- data/spec/models/create_upload_request_spec.rb +46 -0
- data/spec/models/error_spec.rb +76 -0
- data/spec/models/filter_value_spec.rb +40 -0
- data/spec/models/get_asset_input_info_response_spec.rb +34 -0
- data/spec/models/get_asset_playback_id_response_spec.rb +34 -0
- data/spec/models/get_metric_timeseries_data_response_spec.rb +46 -0
- data/spec/models/get_overall_values_response_spec.rb +46 -0
- data/spec/models/input_file_spec.rb +40 -0
- data/spec/models/input_info_spec.rb +40 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +70 -0
- data/spec/models/input_settings_spec.rb +46 -0
- data/spec/models/input_track_spec.rb +94 -0
- data/spec/models/insight_spec.rb +64 -0
- data/spec/models/list_all_metric_values_response_spec.rb +46 -0
- data/spec/models/list_assets_response_spec.rb +34 -0
- data/spec/models/list_breakdown_values_response_spec.rb +46 -0
- data/spec/models/list_errors_response_spec.rb +46 -0
- data/spec/models/list_exports_response_spec.rb +46 -0
- data/spec/models/list_filter_values_response_spec.rb +46 -0
- data/spec/models/list_filters_response_data_spec.rb +40 -0
- data/spec/models/list_filters_response_spec.rb +46 -0
- data/spec/models/list_insights_response_spec.rb +46 -0
- data/spec/models/list_live_streams_response_spec.rb +34 -0
- data/spec/models/list_signing_keys_response_spec.rb +34 -0
- data/spec/models/list_uploads_response_spec.rb +34 -0
- data/spec/models/list_video_views_response_spec.rb +46 -0
- data/spec/models/live_stream_response_spec.rb +34 -0
- data/spec/models/live_stream_spec.rb +88 -0
- data/spec/models/metric_spec.rb +58 -0
- data/spec/models/overall_values_spec.rb +52 -0
- data/spec/models/playback_id_spec.rb +40 -0
- data/spec/models/playback_policy_spec.rb +28 -0
- data/spec/models/score_spec.rb +64 -0
- data/spec/models/signal_live_stream_complete_response_spec.rb +34 -0
- data/spec/models/signing_key_response_spec.rb +34 -0
- data/spec/models/signing_key_spec.rb +46 -0
- data/spec/models/track_spec.rb +88 -0
- data/spec/models/update_asset_mp4_support_request_spec.rb +38 -0
- data/spec/models/upload_error_spec.rb +40 -0
- data/spec/models/upload_response_spec.rb +34 -0
- data/spec/models/upload_spec.rb +80 -0
- data/spec/models/video_view_event_spec.rb +52 -0
- data/spec/models/video_view_response_spec.rb +40 -0
- data/spec/models/video_view_spec.rb +688 -0
- data/spec/spec_helper.rb +104 -0
- metadata +514 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
# MuxRuby::ListFiltersResponseData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**basic** | **Array<String>** | | [optional]
|
7
|
+
**advanced** | **Array<String>** | | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListInsightsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<Insight>**](Insight.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::ListVideoViewsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**data** | [**Array<AbridgedVideoView>**](AbridgedVideoView.md) | | [optional]
|
7
|
+
**total_row_count** | **Integer** | | [optional]
|
8
|
+
**timeframe** | **Array<String>** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/LiveStream.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# MuxRuby::LiveStream
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | | [optional]
|
7
|
+
**created_at** | **String** | | [optional]
|
8
|
+
**stream_key** | **String** | | [optional]
|
9
|
+
**active_asset_id** | **String** | | [optional]
|
10
|
+
**recent_asset_ids** | **Array<String>** | | [optional]
|
11
|
+
**status** | **String** | | [optional]
|
12
|
+
**playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | | [optional]
|
13
|
+
**new_asset_settings** | [**Asset**](Asset.md) | | [optional]
|
14
|
+
**passthrough** | **String** | | [optional]
|
15
|
+
**reconnect_window** | **Float** | | [optional]
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,420 @@
|
|
1
|
+
# MuxRuby::LiveStreamsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_live_stream**](LiveStreamsApi.md#create_live_stream) | **POST** /video/v1/live-streams | Create a live stream
|
8
|
+
[**create_live_stream_playback_id**](LiveStreamsApi.md#create_live_stream_playback_id) | **POST** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids | Create a live stream playback ID
|
9
|
+
[**delete_live_stream**](LiveStreamsApi.md#delete_live_stream) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID} | Delete a live stream
|
10
|
+
[**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
|
11
|
+
[**get_live_stream**](LiveStreamsApi.md#get_live_stream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream
|
12
|
+
[**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams
|
13
|
+
[**reset_stream_key**](LiveStreamsApi.md#reset_stream_key) | **POST** /video/v1/live-streams/{LIVE_STREAM_ID}/reset-stream-key | Reset a live stream’s stream key
|
14
|
+
[**signal_live_stream_complete**](LiveStreamsApi.md#signal_live_stream_complete) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/complete | Signal a live stream is finished
|
15
|
+
|
16
|
+
|
17
|
+
# **create_live_stream**
|
18
|
+
> LiveStreamResponse create_live_stream(create_live_stream_request)
|
19
|
+
|
20
|
+
Create a live stream
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'mux_ruby'
|
26
|
+
# setup authorization
|
27
|
+
MuxRuby.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: accessToken
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
34
|
+
create_live_stream_request = MuxRuby::CreateLiveStreamRequest.new # CreateLiveStreamRequest |
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Create a live stream
|
38
|
+
result = api_instance.create_live_stream(create_live_stream_request)
|
39
|
+
p result
|
40
|
+
rescue MuxRuby::ApiError => e
|
41
|
+
puts "Exception when calling LiveStreamsApi->create_live_stream: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**create_live_stream_request** | [**CreateLiveStreamRequest**](CreateLiveStreamRequest.md)| |
|
50
|
+
|
51
|
+
### Return type
|
52
|
+
|
53
|
+
[**LiveStreamResponse**](LiveStreamResponse.md)
|
54
|
+
|
55
|
+
### Authorization
|
56
|
+
|
57
|
+
[accessToken](../README.md#accessToken)
|
58
|
+
|
59
|
+
### HTTP request headers
|
60
|
+
|
61
|
+
- **Content-Type**: application/json
|
62
|
+
- **Accept**: application/json
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
# **create_live_stream_playback_id**
|
67
|
+
> CreatePlaybackIDResponse create_live_stream_playback_id(live_stream_id, create_playback_id_request)
|
68
|
+
|
69
|
+
Create a live stream playback ID
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'mux_ruby'
|
75
|
+
# setup authorization
|
76
|
+
MuxRuby.configure do |config|
|
77
|
+
# Configure HTTP basic authorization: accessToken
|
78
|
+
config.username = 'YOUR USERNAME'
|
79
|
+
config.password = 'YOUR PASSWORD'
|
80
|
+
end
|
81
|
+
|
82
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
83
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
84
|
+
create_playback_id_request = MuxRuby::CreatePlaybackIDRequest.new # CreatePlaybackIDRequest |
|
85
|
+
|
86
|
+
begin
|
87
|
+
#Create a live stream playback ID
|
88
|
+
result = api_instance.create_live_stream_playback_id(live_stream_id, create_playback_id_request)
|
89
|
+
p result
|
90
|
+
rescue MuxRuby::ApiError => e
|
91
|
+
puts "Exception when calling LiveStreamsApi->create_live_stream_playback_id: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
### Parameters
|
96
|
+
|
97
|
+
Name | Type | Description | Notes
|
98
|
+
------------- | ------------- | ------------- | -------------
|
99
|
+
**live_stream_id** | **String**| The live stream ID |
|
100
|
+
**create_playback_id_request** | [**CreatePlaybackIDRequest**](CreatePlaybackIDRequest.md)| |
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**CreatePlaybackIDResponse**](CreatePlaybackIDResponse.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[accessToken](../README.md#accessToken)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: application/json
|
113
|
+
- **Accept**: application/json
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# **delete_live_stream**
|
118
|
+
> delete_live_stream(live_stream_id)
|
119
|
+
|
120
|
+
Delete a live stream
|
121
|
+
|
122
|
+
### Example
|
123
|
+
```ruby
|
124
|
+
# load the gem
|
125
|
+
require 'mux_ruby'
|
126
|
+
# setup authorization
|
127
|
+
MuxRuby.configure do |config|
|
128
|
+
# Configure HTTP basic authorization: accessToken
|
129
|
+
config.username = 'YOUR USERNAME'
|
130
|
+
config.password = 'YOUR PASSWORD'
|
131
|
+
end
|
132
|
+
|
133
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
134
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
135
|
+
|
136
|
+
begin
|
137
|
+
#Delete a live stream
|
138
|
+
api_instance.delete_live_stream(live_stream_id)
|
139
|
+
rescue MuxRuby::ApiError => e
|
140
|
+
puts "Exception when calling LiveStreamsApi->delete_live_stream: #{e}"
|
141
|
+
end
|
142
|
+
```
|
143
|
+
|
144
|
+
### Parameters
|
145
|
+
|
146
|
+
Name | Type | Description | Notes
|
147
|
+
------------- | ------------- | ------------- | -------------
|
148
|
+
**live_stream_id** | **String**| The live stream ID |
|
149
|
+
|
150
|
+
### Return type
|
151
|
+
|
152
|
+
nil (empty response body)
|
153
|
+
|
154
|
+
### Authorization
|
155
|
+
|
156
|
+
[accessToken](../README.md#accessToken)
|
157
|
+
|
158
|
+
### HTTP request headers
|
159
|
+
|
160
|
+
- **Content-Type**: Not defined
|
161
|
+
- **Accept**: Not defined
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
# **delete_live_stream_playback_id**
|
166
|
+
> delete_live_stream_playback_id(live_stream_id, playback_id)
|
167
|
+
|
168
|
+
Delete a live stream playback ID
|
169
|
+
|
170
|
+
### Example
|
171
|
+
```ruby
|
172
|
+
# load the gem
|
173
|
+
require 'mux_ruby'
|
174
|
+
# setup authorization
|
175
|
+
MuxRuby.configure do |config|
|
176
|
+
# Configure HTTP basic authorization: accessToken
|
177
|
+
config.username = 'YOUR USERNAME'
|
178
|
+
config.password = 'YOUR PASSWORD'
|
179
|
+
end
|
180
|
+
|
181
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
182
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
183
|
+
playback_id = 'playback_id_example' # String | The live stream's playback ID.
|
184
|
+
|
185
|
+
begin
|
186
|
+
#Delete a live stream playback ID
|
187
|
+
api_instance.delete_live_stream_playback_id(live_stream_id, playback_id)
|
188
|
+
rescue MuxRuby::ApiError => e
|
189
|
+
puts "Exception when calling LiveStreamsApi->delete_live_stream_playback_id: #{e}"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
### Parameters
|
194
|
+
|
195
|
+
Name | Type | Description | Notes
|
196
|
+
------------- | ------------- | ------------- | -------------
|
197
|
+
**live_stream_id** | **String**| The live stream ID |
|
198
|
+
**playback_id** | **String**| The live stream's playback ID. |
|
199
|
+
|
200
|
+
### Return type
|
201
|
+
|
202
|
+
nil (empty response body)
|
203
|
+
|
204
|
+
### Authorization
|
205
|
+
|
206
|
+
[accessToken](../README.md#accessToken)
|
207
|
+
|
208
|
+
### HTTP request headers
|
209
|
+
|
210
|
+
- **Content-Type**: Not defined
|
211
|
+
- **Accept**: Not defined
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
# **get_live_stream**
|
216
|
+
> LiveStreamResponse get_live_stream(live_stream_id)
|
217
|
+
|
218
|
+
Retrieve a live stream
|
219
|
+
|
220
|
+
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.
|
221
|
+
|
222
|
+
### Example
|
223
|
+
```ruby
|
224
|
+
# load the gem
|
225
|
+
require 'mux_ruby'
|
226
|
+
# setup authorization
|
227
|
+
MuxRuby.configure do |config|
|
228
|
+
# Configure HTTP basic authorization: accessToken
|
229
|
+
config.username = 'YOUR USERNAME'
|
230
|
+
config.password = 'YOUR PASSWORD'
|
231
|
+
end
|
232
|
+
|
233
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
234
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
235
|
+
|
236
|
+
begin
|
237
|
+
#Retrieve a live stream
|
238
|
+
result = api_instance.get_live_stream(live_stream_id)
|
239
|
+
p result
|
240
|
+
rescue MuxRuby::ApiError => e
|
241
|
+
puts "Exception when calling LiveStreamsApi->get_live_stream: #{e}"
|
242
|
+
end
|
243
|
+
```
|
244
|
+
|
245
|
+
### Parameters
|
246
|
+
|
247
|
+
Name | Type | Description | Notes
|
248
|
+
------------- | ------------- | ------------- | -------------
|
249
|
+
**live_stream_id** | **String**| The live stream ID |
|
250
|
+
|
251
|
+
### Return type
|
252
|
+
|
253
|
+
[**LiveStreamResponse**](LiveStreamResponse.md)
|
254
|
+
|
255
|
+
### Authorization
|
256
|
+
|
257
|
+
[accessToken](../README.md#accessToken)
|
258
|
+
|
259
|
+
### HTTP request headers
|
260
|
+
|
261
|
+
- **Content-Type**: Not defined
|
262
|
+
- **Accept**: application/json
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
# **list_live_streams**
|
267
|
+
> ListLiveStreamsResponse list_live_streams(opts)
|
268
|
+
|
269
|
+
List live streams
|
270
|
+
|
271
|
+
### Example
|
272
|
+
```ruby
|
273
|
+
# load the gem
|
274
|
+
require 'mux_ruby'
|
275
|
+
# setup authorization
|
276
|
+
MuxRuby.configure do |config|
|
277
|
+
# Configure HTTP basic authorization: accessToken
|
278
|
+
config.username = 'YOUR USERNAME'
|
279
|
+
config.password = 'YOUR PASSWORD'
|
280
|
+
end
|
281
|
+
|
282
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
283
|
+
opts = {
|
284
|
+
limit: 25, # Integer | Number of items to include in the response
|
285
|
+
page: 1 # Integer | Offset by this many pages, of the size of `limit`
|
286
|
+
}
|
287
|
+
|
288
|
+
begin
|
289
|
+
#List live streams
|
290
|
+
result = api_instance.list_live_streams(opts)
|
291
|
+
p result
|
292
|
+
rescue MuxRuby::ApiError => e
|
293
|
+
puts "Exception when calling LiveStreamsApi->list_live_streams: #{e}"
|
294
|
+
end
|
295
|
+
```
|
296
|
+
|
297
|
+
### Parameters
|
298
|
+
|
299
|
+
Name | Type | Description | Notes
|
300
|
+
------------- | ------------- | ------------- | -------------
|
301
|
+
**limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
|
302
|
+
**page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
|
303
|
+
|
304
|
+
### Return type
|
305
|
+
|
306
|
+
[**ListLiveStreamsResponse**](ListLiveStreamsResponse.md)
|
307
|
+
|
308
|
+
### Authorization
|
309
|
+
|
310
|
+
[accessToken](../README.md#accessToken)
|
311
|
+
|
312
|
+
### HTTP request headers
|
313
|
+
|
314
|
+
- **Content-Type**: Not defined
|
315
|
+
- **Accept**: application/json
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
# **reset_stream_key**
|
320
|
+
> LiveStreamResponse reset_stream_key(live_stream_id)
|
321
|
+
|
322
|
+
Reset a live stream’s stream key
|
323
|
+
|
324
|
+
Reset a live stream key if you want to immediately stop the current stream key from working and create a new stream key that can be used for future broadcasts.
|
325
|
+
|
326
|
+
### Example
|
327
|
+
```ruby
|
328
|
+
# load the gem
|
329
|
+
require 'mux_ruby'
|
330
|
+
# setup authorization
|
331
|
+
MuxRuby.configure do |config|
|
332
|
+
# Configure HTTP basic authorization: accessToken
|
333
|
+
config.username = 'YOUR USERNAME'
|
334
|
+
config.password = 'YOUR PASSWORD'
|
335
|
+
end
|
336
|
+
|
337
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
338
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
339
|
+
|
340
|
+
begin
|
341
|
+
#Reset a live stream’s stream key
|
342
|
+
result = api_instance.reset_stream_key(live_stream_id)
|
343
|
+
p result
|
344
|
+
rescue MuxRuby::ApiError => e
|
345
|
+
puts "Exception when calling LiveStreamsApi->reset_stream_key: #{e}"
|
346
|
+
end
|
347
|
+
```
|
348
|
+
|
349
|
+
### Parameters
|
350
|
+
|
351
|
+
Name | Type | Description | Notes
|
352
|
+
------------- | ------------- | ------------- | -------------
|
353
|
+
**live_stream_id** | **String**| The live stream ID |
|
354
|
+
|
355
|
+
### Return type
|
356
|
+
|
357
|
+
[**LiveStreamResponse**](LiveStreamResponse.md)
|
358
|
+
|
359
|
+
### Authorization
|
360
|
+
|
361
|
+
[accessToken](../README.md#accessToken)
|
362
|
+
|
363
|
+
### HTTP request headers
|
364
|
+
|
365
|
+
- **Content-Type**: Not defined
|
366
|
+
- **Accept**: application/json
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
# **signal_live_stream_complete**
|
371
|
+
> SignalLiveStreamCompleteResponse signal_live_stream_complete(live_stream_id)
|
372
|
+
|
373
|
+
Signal a live stream is finished
|
374
|
+
|
375
|
+
(Optional) Make the recorded asset available immediately instead of waiting for the reconnect_window.
|
376
|
+
|
377
|
+
### Example
|
378
|
+
```ruby
|
379
|
+
# load the gem
|
380
|
+
require 'mux_ruby'
|
381
|
+
# setup authorization
|
382
|
+
MuxRuby.configure do |config|
|
383
|
+
# Configure HTTP basic authorization: accessToken
|
384
|
+
config.username = 'YOUR USERNAME'
|
385
|
+
config.password = 'YOUR PASSWORD'
|
386
|
+
end
|
387
|
+
|
388
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
389
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
390
|
+
|
391
|
+
begin
|
392
|
+
#Signal a live stream is finished
|
393
|
+
result = api_instance.signal_live_stream_complete(live_stream_id)
|
394
|
+
p result
|
395
|
+
rescue MuxRuby::ApiError => e
|
396
|
+
puts "Exception when calling LiveStreamsApi->signal_live_stream_complete: #{e}"
|
397
|
+
end
|
398
|
+
```
|
399
|
+
|
400
|
+
### Parameters
|
401
|
+
|
402
|
+
Name | Type | Description | Notes
|
403
|
+
------------- | ------------- | ------------- | -------------
|
404
|
+
**live_stream_id** | **String**| The live stream ID |
|
405
|
+
|
406
|
+
### Return type
|
407
|
+
|
408
|
+
[**SignalLiveStreamCompleteResponse**](SignalLiveStreamCompleteResponse.md)
|
409
|
+
|
410
|
+
### Authorization
|
411
|
+
|
412
|
+
[accessToken](../README.md#accessToken)
|
413
|
+
|
414
|
+
### HTTP request headers
|
415
|
+
|
416
|
+
- **Content-Type**: Not defined
|
417
|
+
- **Accept**: application/json
|
418
|
+
|
419
|
+
|
420
|
+
|
data/docs/Metric.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# MuxRuby::Metric
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**value** | **Float** | | [optional]
|
7
|
+
**type** | **String** | | [optional]
|
8
|
+
**name** | **String** | | [optional]
|
9
|
+
**metric** | **String** | | [optional]
|
10
|
+
**measurement** | **String** | | [optional]
|
11
|
+
|
12
|
+
|