wsc_sdk 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +146 -0
- data/.circleci/docker/build/Dockerfile +3 -0
- data/.circleci/helpers/add_preamble.rb +29 -0
- data/.circleci/helpers/build_docs.sh +5 -0
- data/.circleci/helpers/build_gem.sh +5 -0
- data/.circleci/helpers/debundle-context.sh +14 -0
- data/.circleci/helpers/finalize_release.sh +24 -0
- data/.circleci/helpers/publish_docs.sh +10 -0
- data/.circleci/helpers/release_gem.sh +8 -0
- data/.circleci/helpers/setup.sh +11 -0
- data/.circleci/helpers/setup_aws.sh +13 -0
- data/.circleci/helpers/setup_gem.sh +2 -0
- data/.circleci/helpers/setup_git.sh +27 -0
- data/.circleci/helpers/setup_rubygems.sh +15 -0
- data/.circleci/helpers/test_integration.sh +12 -0
- data/.circleci/helpers/test_unit.sh +6 -0
- data/.circleci/jobs/publish-production.sh +17 -0
- data/.circleci/jobs/publish-staging.sh +17 -0
- data/.circleci/jobs/release-production.sh +21 -0
- data/.circleci/jobs/test-integration.sh +9 -0
- data/.circleci/jobs/test-unit.sh +9 -0
- data/.circleci/tag_repo.rb +46 -0
- data/.gitignore +28 -0
- data/.rspec +2 -0
- data/.yard/config +2 -0
- data/.yard/template/default/fulldoc/html/css/custom.css +151 -0
- data/.yard/template/default/layout/html/footer.erb +0 -0
- data/.yard/template/default/layout/html/headers.erb +10 -0
- data/.yard/template/default/layout/html/layout.erb +45 -0
- data/.yard/template/default/layout/html/setup.rb +24 -0
- data/.yardopts +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +99 -0
- data/LICENSE.txt +28 -0
- data/README.md +397 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/Hash.html +291 -0
- data/doc/WscSdk.html +570 -0
- data/doc/WscSdk/ApiResponse.html +242 -0
- data/doc/WscSdk/Attributes.html +128 -0
- data/doc/WscSdk/Attributes/Mode.html +191 -0
- data/doc/WscSdk/Attributes/Type.html +389 -0
- data/doc/WscSdk/Client.html +2677 -0
- data/doc/WscSdk/Configuration.html +595 -0
- data/doc/WscSdk/Endpoint.html +2974 -0
- data/doc/WscSdk/Endpoints.html +141 -0
- data/doc/WscSdk/Endpoints/CustomStreamTargets.html +383 -0
- data/doc/WscSdk/Endpoints/LiveStreams.html +197 -0
- data/doc/WscSdk/Endpoints/OutputStreamTargets.html +180 -0
- data/doc/WscSdk/Endpoints/Outputs.html +180 -0
- data/doc/WscSdk/Endpoints/StreamTargets.html +446 -0
- data/doc/WscSdk/Endpoints/Transcoders.html +197 -0
- data/doc/WscSdk/Endpoints/UllStreamTargets.html +383 -0
- data/doc/WscSdk/Endpoints/WowzaStreamTargets.html +383 -0
- data/doc/WscSdk/Enum.html +225 -0
- data/doc/WscSdk/Enums.html +321 -0
- data/doc/WscSdk/Enums/BillingMode.html +188 -0
- data/doc/WscSdk/Enums/BroadcastLocation.html +396 -0
- data/doc/WscSdk/Enums/BufferSize.html +301 -0
- data/doc/WscSdk/Enums/ClosedCaptionType.html +221 -0
- data/doc/WscSdk/Enums/CustomProvider.html +252 -0
- data/doc/WscSdk/Enums/DeliveryMethod.html +188 -0
- data/doc/WscSdk/Enums/DeliveryType.html +188 -0
- data/doc/WscSdk/Enums/Encoder.html +460 -0
- data/doc/WscSdk/Enums/Errors.html +555 -0
- data/doc/WscSdk/Enums/IdleTimeout.html +398 -0
- data/doc/WscSdk/Enums/ImagePosition.html +220 -0
- data/doc/WscSdk/Enums/ModelMode.html +175 -0
- data/doc/WscSdk/Enums/ModelType.html +373 -0
- data/doc/WscSdk/Enums/PlayerType.html +188 -0
- data/doc/WscSdk/Enums/Protocol.html +204 -0
- data/doc/WscSdk/Enums/TargetDeliveryProtocol.html +188 -0
- data/doc/WscSdk/Enums/TranscoderType.html +188 -0
- data/doc/WscSdk/Enums/UserRegion.html +383 -0
- data/doc/WscSdk/Enums/WowzaProvider.html +188 -0
- data/doc/WscSdk/Errors.html +683 -0
- data/doc/WscSdk/Loggable.html +346 -0
- data/doc/WscSdk/Model.html +3316 -0
- data/doc/WscSdk/ModelList.html +442 -0
- data/doc/WscSdk/ModelTemplate.html +267 -0
- data/doc/WscSdk/Models.html +141 -0
- data/doc/WscSdk/Models/CustomStreamTarget.html +192 -0
- data/doc/WscSdk/Models/Error.html +351 -0
- data/doc/WscSdk/Models/LiveStream.html +601 -0
- data/doc/WscSdk/Models/LiveStreamConnectionCode.html +192 -0
- data/doc/WscSdk/Models/LiveStreamState.html +200 -0
- data/doc/WscSdk/Models/LiveStreamStats.html +200 -0
- data/doc/WscSdk/Models/LiveStreamThumbnailUrl.html +200 -0
- data/doc/WscSdk/Models/Output.html +294 -0
- data/doc/WscSdk/Models/OutputStreamTarget.html +274 -0
- data/doc/WscSdk/Models/StreamTarget.html +273 -0
- data/doc/WscSdk/Models/Transcoder.html +793 -0
- data/doc/WscSdk/Models/TranscoderBooleanStat.html +278 -0
- data/doc/WscSdk/Models/TranscoderConnectionCode.html +192 -0
- data/doc/WscSdk/Models/TranscoderFloatStat.html +278 -0
- data/doc/WscSdk/Models/TranscoderIntegerStat.html +278 -0
- data/doc/WscSdk/Models/TranscoderState.html +196 -0
- data/doc/WscSdk/Models/TranscoderStats.html +196 -0
- data/doc/WscSdk/Models/TranscoderStreamTargetState.html +192 -0
- data/doc/WscSdk/Models/TranscoderStringStat.html +278 -0
- data/doc/WscSdk/Models/TranscoderThumbnailUrl.html +196 -0
- data/doc/WscSdk/Models/UllStreamTarget.html +360 -0
- data/doc/WscSdk/Models/WowzaStreamTarget.html +380 -0
- data/doc/WscSdk/Pagination.html +1277 -0
- data/doc/WscSdk/Schema.html +861 -0
- data/doc/WscSdk/SchemaAttribute.html +2400 -0
- data/doc/WscSdk/Templates.html +141 -0
- data/doc/WscSdk/Templates/CustomStreamTarget.html +1045 -0
- data/doc/WscSdk/Templates/LiveStream.html +1432 -0
- data/doc/WscSdk/Templates/Output.html +829 -0
- data/doc/WscSdk/Templates/Transcoder.html +699 -0
- data/doc/WscSdk/Templates/UllStreamTarget.html +411 -0
- data/doc/WscSdk/Templates/WowzaStreamTarget.html +447 -0
- data/doc/WscSdk/TranscoderSharedMethods.html +1113 -0
- data/doc/_index.html +705 -0
- data/doc/class_list.html +51 -0
- data/doc/css/bootstrap.css +5 -0
- data/doc/css/common.css +1 -0
- data/doc/css/custom.css +151 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +570 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/images/wsc-ruby-1800x400.png +0 -0
- data/doc/index.html +570 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +1731 -0
- data/doc/top-level-namespace.html +182 -0
- data/examples/client.rb +40 -0
- data/examples/helpers.rb +100 -0
- data/examples/live_streams/create.rb +39 -0
- data/examples/live_streams/delete.rb +32 -0
- data/examples/live_streams/find.rb +22 -0
- data/examples/live_streams/flood.rb +126 -0
- data/examples/live_streams/list.rb +24 -0
- data/examples/live_streams/regenerate_connection_code.rb +29 -0
- data/examples/live_streams/reset.rb +32 -0
- data/examples/live_streams/reset_and_wait.rb +51 -0
- data/examples/live_streams/start.rb +33 -0
- data/examples/live_streams/start_and_wait.rb +51 -0
- data/examples/live_streams/state.rb +33 -0
- data/examples/live_streams/stats.rb +43 -0
- data/examples/live_streams/stop.rb +33 -0
- data/examples/live_streams/stop_and_wait.rb +51 -0
- data/examples/live_streams/thumbnail_url.rb +46 -0
- data/examples/live_streams/update.rb +43 -0
- data/examples/live_streams/workflow.rb +165 -0
- data/examples/output_stream_targets/create.rb +56 -0
- data/examples/output_stream_targets/delete.rb +45 -0
- data/examples/output_stream_targets/find.rb +37 -0
- data/examples/output_stream_targets/list.rb +36 -0
- data/examples/output_stream_targets/update.rb +56 -0
- data/examples/outputs/create.rb +49 -0
- data/examples/outputs/delete.rb +39 -0
- data/examples/outputs/find.rb +31 -0
- data/examples/outputs/list.rb +29 -0
- data/examples/outputs/update.rb +50 -0
- data/examples/stream_targets/custom/create.rb +42 -0
- data/examples/stream_targets/custom/delete.rb +31 -0
- data/examples/stream_targets/custom/find.rb +23 -0
- data/examples/stream_targets/custom/list.rb +24 -0
- data/examples/stream_targets/custom/update.rb +43 -0
- data/examples/stream_targets/list.rb +24 -0
- data/examples/stream_targets/ull/create.rb +41 -0
- data/examples/stream_targets/ull/delete.rb +31 -0
- data/examples/stream_targets/ull/find.rb +23 -0
- data/examples/stream_targets/ull/list.rb +24 -0
- data/examples/stream_targets/ull/update.rb +43 -0
- data/examples/stream_targets/wowza/create.rb +42 -0
- data/examples/stream_targets/wowza/delete.rb +31 -0
- data/examples/stream_targets/wowza/find.rb +23 -0
- data/examples/stream_targets/wowza/list.rb +23 -0
- data/examples/stream_targets/wowza/update.rb +43 -0
- data/examples/transcoders/create.rb +39 -0
- data/examples/transcoders/delete.rb +31 -0
- data/examples/transcoders/find.rb +23 -0
- data/examples/transcoders/list.rb +24 -0
- data/examples/transcoders/reset.rb +32 -0
- data/examples/transcoders/reset_and_wait.rb +48 -0
- data/examples/transcoders/start.rb +33 -0
- data/examples/transcoders/start_and_wait.rb +50 -0
- data/examples/transcoders/state.rb +33 -0
- data/examples/transcoders/stats.rb +43 -0
- data/examples/transcoders/stop.rb +33 -0
- data/examples/transcoders/stop_and_wait.rb +50 -0
- data/examples/transcoders/thumbnail_url.rb +46 -0
- data/examples/transcoders/update.rb +43 -0
- data/images/wsc-ruby-1800x400.png +0 -0
- data/lib/wsc_sdk.rb +81 -0
- data/lib/wsc_sdk/client.rb +417 -0
- data/lib/wsc_sdk/configuration.rb +21 -0
- data/lib/wsc_sdk/constants.rb +29 -0
- data/lib/wsc_sdk/endpoint.rb +492 -0
- data/lib/wsc_sdk/endpoints/custom_stream_targets.rb +44 -0
- data/lib/wsc_sdk/endpoints/live_streams.rb +34 -0
- data/lib/wsc_sdk/endpoints/output_stream_targets.rb +17 -0
- data/lib/wsc_sdk/endpoints/outputs.rb +17 -0
- data/lib/wsc_sdk/endpoints/stream_targets.rb +45 -0
- data/lib/wsc_sdk/endpoints/transcoders.rb +38 -0
- data/lib/wsc_sdk/endpoints/ull_stream_targets.rb +44 -0
- data/lib/wsc_sdk/endpoints/wowza_stream_targets.rb +44 -0
- data/lib/wsc_sdk/enums.rb +31 -0
- data/lib/wsc_sdk/enums/billing_mode.rb +20 -0
- data/lib/wsc_sdk/enums/broadcast_location.rb +58 -0
- data/lib/wsc_sdk/enums/buffer_size.rb +41 -0
- data/lib/wsc_sdk/enums/closed_caption_type.rb +26 -0
- data/lib/wsc_sdk/enums/custom_provider.rb +32 -0
- data/lib/wsc_sdk/enums/delivery_method.rb +20 -0
- data/lib/wsc_sdk/enums/delivery_type.rb +20 -0
- data/lib/wsc_sdk/enums/encoder.rb +71 -0
- data/lib/wsc_sdk/enums/idle_timeout.rb +50 -0
- data/lib/wsc_sdk/enums/image_position.rb +26 -0
- data/lib/wsc_sdk/enums/player_type.rb +20 -0
- data/lib/wsc_sdk/enums/protocol.rb +23 -0
- data/lib/wsc_sdk/enums/target_delivery_protocol.rb +20 -0
- data/lib/wsc_sdk/enums/transcoder_type.rb +20 -0
- data/lib/wsc_sdk/enums/wowza_provider.rb +20 -0
- data/lib/wsc_sdk/errors.rb +115 -0
- data/lib/wsc_sdk/model.rb +515 -0
- data/lib/wsc_sdk/model_list.rb +42 -0
- data/lib/wsc_sdk/model_template.rb +27 -0
- data/lib/wsc_sdk/models/custom_stream_target.rb +34 -0
- data/lib/wsc_sdk/models/error.rb +53 -0
- data/lib/wsc_sdk/models/live_stream.rb +130 -0
- data/lib/wsc_sdk/models/live_stream_connection_code.rb +31 -0
- data/lib/wsc_sdk/models/live_stream_state.rb +20 -0
- data/lib/wsc_sdk/models/live_stream_stats.rb +20 -0
- data/lib/wsc_sdk/models/live_stream_thumbnail_url.rb +20 -0
- data/lib/wsc_sdk/models/output.rb +61 -0
- data/lib/wsc_sdk/models/output_stream_target.rb +37 -0
- data/lib/wsc_sdk/models/stream_target.rb +29 -0
- data/lib/wsc_sdk/models/transcoder.rb +135 -0
- data/lib/wsc_sdk/models/transcoder_boolean_stat.rb +41 -0
- data/lib/wsc_sdk/models/transcoder_connection_code.rb +29 -0
- data/lib/wsc_sdk/models/transcoder_float_stat.rb +40 -0
- data/lib/wsc_sdk/models/transcoder_integer_stat.rb +40 -0
- data/lib/wsc_sdk/models/transcoder_state.rb +31 -0
- data/lib/wsc_sdk/models/transcoder_stats.rb +51 -0
- data/lib/wsc_sdk/models/transcoder_stream_target_state.rb +29 -0
- data/lib/wsc_sdk/models/transcoder_string_stat.rb +40 -0
- data/lib/wsc_sdk/models/transcoder_thumbnail_url.rb +29 -0
- data/lib/wsc_sdk/models/ull_stream_target.rb +54 -0
- data/lib/wsc_sdk/models/wowza_stream_target.rb +60 -0
- data/lib/wsc_sdk/modules/api_response.rb +24 -0
- data/lib/wsc_sdk/modules/loggable.rb +44 -0
- data/lib/wsc_sdk/modules/transcoder_shared_methods.rb +221 -0
- data/lib/wsc_sdk/pagination.rb +89 -0
- data/lib/wsc_sdk/schema.rb +140 -0
- data/lib/wsc_sdk/schema_attribute.rb +349 -0
- data/lib/wsc_sdk/templates/custom_stream_target.rb +154 -0
- data/lib/wsc_sdk/templates/live_stream.rb +234 -0
- data/lib/wsc_sdk/templates/output.rb +133 -0
- data/lib/wsc_sdk/templates/transcoder.rb +97 -0
- data/lib/wsc_sdk/templates/ull_stream_target.rb +49 -0
- data/lib/wsc_sdk/templates/wowza_stream_target.rb +57 -0
- data/lib/wsc_sdk/version.rb +7 -0
- data/wsc_sdk.gemspec +48 -0
- metadata +460 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the valid types of closed caption interpretation for a Transcoder.
|
8
|
+
#
|
9
|
+
module ClosedCaptionType
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# No closed captioning.
|
13
|
+
NONE = "none"
|
14
|
+
|
15
|
+
# Generate CEA closed captioning.
|
16
|
+
CEA = "cea"
|
17
|
+
|
18
|
+
# Generate On Text closed captioning.
|
19
|
+
ON_TEXT = "on_text"
|
20
|
+
|
21
|
+
# Generate both types of closed captioning.
|
22
|
+
BOTH = "both"
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid transcoder types.
|
8
|
+
#
|
9
|
+
module CustomProvider
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Akamai Custom Provider
|
13
|
+
AKAMAI_HD = "akamai"
|
14
|
+
|
15
|
+
# Akamai Cupertino Custom Provider
|
16
|
+
AKAMAI_HLS = "akamai_cupertino"
|
17
|
+
|
18
|
+
# Akamai RTMP Custom Provider
|
19
|
+
AKAMAI_RTMP = "akamai_rtmp"
|
20
|
+
|
21
|
+
# Limelight Custom Provider
|
22
|
+
LIMELIGHT = "limelight"
|
23
|
+
|
24
|
+
# RTMP Custom Provider
|
25
|
+
RTMP = "rtmp"
|
26
|
+
|
27
|
+
# UStream Custom Provider
|
28
|
+
USTREAM = "ustream"
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the delivery methods for a Transcoder or Live Stream
|
8
|
+
#
|
9
|
+
module DeliveryMethod
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Push content to the Transcoder or Live Stream.
|
13
|
+
PUSH = "push"
|
14
|
+
|
15
|
+
# Pull content into the Transcoder or Live Stream.
|
16
|
+
PULL = "pull"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the delivery methods for a Transcoder or Live Stream
|
8
|
+
#
|
9
|
+
module DeliveryType
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Deliver a single-bitrate stream from WSE to the live stream/transcoder
|
13
|
+
SINGLE_BITRATE = "single-bitrate"
|
14
|
+
|
15
|
+
# Deliver a multi-bitrate stream from WSE to the live stream/transcoder
|
16
|
+
MULTI_BITRATE = "multi-bitrate"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the delivery methods for a Transcoder or Live Stream
|
8
|
+
#
|
9
|
+
module Encoder
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# WSE Encoder
|
13
|
+
WOWZA_STREAMING_ENGINE = "wowza_streaming_engine"
|
14
|
+
|
15
|
+
# Wowza GoCoder Encoder
|
16
|
+
WOWZA_GOCODER = "wowza_gocoder"
|
17
|
+
|
18
|
+
# Media DS Encoder
|
19
|
+
MEDIA_DS = "media_ds"
|
20
|
+
|
21
|
+
# Axis Encoder
|
22
|
+
AXIS = "axis"
|
23
|
+
|
24
|
+
# Epiphan Encoder
|
25
|
+
EPIPHAN = "epiphan"
|
26
|
+
|
27
|
+
# Hauppauge Encoder
|
28
|
+
HAUPPAUGE = "hauppauge"
|
29
|
+
|
30
|
+
# JVC Encoder
|
31
|
+
JVC = "jvc"
|
32
|
+
|
33
|
+
# Live-U Encoder
|
34
|
+
LIVE_U = "live_u"
|
35
|
+
|
36
|
+
# Matrox Encoder
|
37
|
+
MATROX = "matrox"
|
38
|
+
|
39
|
+
# NewTek Tricaster Encoder
|
40
|
+
NEWTEK_TRICASTER = "newtek_tricaster"
|
41
|
+
|
42
|
+
# Osprey Encoder
|
43
|
+
OSPREY = "osprey"
|
44
|
+
|
45
|
+
# Sony Encoder
|
46
|
+
SONY = "sony"
|
47
|
+
|
48
|
+
# Telestream Wirecast Encoder
|
49
|
+
TELESTREAM_WIRECAST = "telestream_wirecast"
|
50
|
+
|
51
|
+
# Teradek Cube Encoder
|
52
|
+
TERADEK_CUBE = "teradek_cube"
|
53
|
+
|
54
|
+
# VMix Encoder
|
55
|
+
VMIX = "vmix"
|
56
|
+
|
57
|
+
# X Split Encoder
|
58
|
+
X_SPLIT = "x_split"
|
59
|
+
|
60
|
+
# IP Camera Encoder
|
61
|
+
IP_CAMERA = "ipcamera"
|
62
|
+
|
63
|
+
# Other RTMP Encoder
|
64
|
+
OTHER_RTMP = "other_rtmp"
|
65
|
+
|
66
|
+
# Other RTSP Encoder
|
67
|
+
OTHER_RTSP = "other_rtsp"
|
68
|
+
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid idle timeouts for a Transcoder.
|
8
|
+
#
|
9
|
+
module IdleTimeout
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# No idle timeout. The transcoder will run without stopping automatically
|
13
|
+
NONE = 0
|
14
|
+
|
15
|
+
# Timeout after 1 minute of inactivity from the source.
|
16
|
+
ONE_MINUTE = 1
|
17
|
+
|
18
|
+
# Timeout after 10 minutes of inactivity from the source.
|
19
|
+
TEN_MINUTES = 600
|
20
|
+
|
21
|
+
# Timeout after 20 minutes of inactivity from the source.
|
22
|
+
TWENTY_MINUTES = 1200
|
23
|
+
|
24
|
+
# Timeout after 30 minutes of inactivity from the source.
|
25
|
+
THIRTY_MINUTES = 1800
|
26
|
+
|
27
|
+
# Timeout after 1 hour of inactivity from the source.
|
28
|
+
ONE_HOUR = 3600
|
29
|
+
|
30
|
+
# Timeout after 6 hours of inactivity from the source.
|
31
|
+
SIX_HOURS = 21600
|
32
|
+
|
33
|
+
# Timeout after 12 hours of inactivity from the source.
|
34
|
+
TWELVE_HOURS = 43200
|
35
|
+
|
36
|
+
# Timeout after 1 day of inactivity from the source.
|
37
|
+
ONE_DAY = 86400
|
38
|
+
|
39
|
+
# Timeout after 2 days of inactivity from the source.
|
40
|
+
TWO_DAYS = 172800
|
41
|
+
|
42
|
+
# Return the valid range of values for the idle timeout.
|
43
|
+
#
|
44
|
+
def self.values
|
45
|
+
(NONE..TWO_DAYS)
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid transcoder types.
|
8
|
+
#
|
9
|
+
module ImagePosition
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Position watermark in the top left corner of the stream
|
13
|
+
TOP_LEFT = "top-left"
|
14
|
+
|
15
|
+
# Position watermark in the top right corner of the stream
|
16
|
+
TOP_RIGHT = "top-right"
|
17
|
+
|
18
|
+
# Position watermark in the bottom left corner of the stream
|
19
|
+
BOTTOM_LEFT = "bottom-left"
|
20
|
+
|
21
|
+
# Position watermark in the bottom left corner of the stream
|
22
|
+
BOTTOM_RIGHT = "bottom-right"
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the delivery methods for a Transcoder or Live Stream
|
8
|
+
#
|
9
|
+
module PlayerType
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Original HTML5 Player
|
13
|
+
ORIGINAL_HTML5 = "original_html5"
|
14
|
+
|
15
|
+
# Wowza Player
|
16
|
+
WOWZA = "wowza_player"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid protocols for a Transcoder or Live Stream.
|
8
|
+
#
|
9
|
+
module Protocol
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# The RTMP protocol.
|
13
|
+
RTMP = "rtmp"
|
14
|
+
|
15
|
+
# The RTSP protocol.
|
16
|
+
RTSP = "rtsp"
|
17
|
+
|
18
|
+
# The Wowza protocol (used for ULL)
|
19
|
+
WOWZ = "wowz"
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate the delivery methods for a Transcoder or Live Stream
|
8
|
+
#
|
9
|
+
module TargetDeliveryProtocol
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Push content to the Transcoder or Live Stream.
|
13
|
+
HLS_HTTPS = "hls-https"
|
14
|
+
|
15
|
+
# Pull content into the Transcoder or Live Stream.
|
16
|
+
HLS_HDS = "hls-hds"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid transcoder types.
|
8
|
+
#
|
9
|
+
module TranscoderType
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# A transcoded stream type
|
13
|
+
TRANSCODED = "transcoded"
|
14
|
+
|
15
|
+
# A passthrough stream type
|
16
|
+
PASSTHROUGH = "passthrough"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
module Enums
|
6
|
+
|
7
|
+
# Enumerate valid transcoder types.
|
8
|
+
#
|
9
|
+
module WowzaProvider
|
10
|
+
extend WscSdk::Enums
|
11
|
+
|
12
|
+
# Akamai Wowza Provider
|
13
|
+
AKAMAI = "akamai"
|
14
|
+
|
15
|
+
# Akamai Cupertino Wowza Provider
|
16
|
+
AKAMAI_CUPERTINO = "akamai_cupertino"
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
####> This code and all components © 2015 – 2019 Wowza Media Systems, LLC. All rights reserved.
|
2
|
+
####> This code is licensed pursuant to the BSD 3-Clause License.
|
3
|
+
|
4
|
+
module WscSdk
|
5
|
+
# Enumerate the errors that can be generated by the SDK
|
6
|
+
#
|
7
|
+
module Errors
|
8
|
+
# Error returned when the model does not validate.
|
9
|
+
#
|
10
|
+
INVALID_ATTRIBUTES = {
|
11
|
+
meta: {
|
12
|
+
status: 422,
|
13
|
+
code: "ERR-422-InvalidAttributes",
|
14
|
+
title: "Invalid Attributes",
|
15
|
+
message: "The model has invalid attribute values assigned to it. Check the `WscSdk::Model#errors` property for more details.",
|
16
|
+
description: ""
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
# Error returned if the data returned from the API is not valid JSON.
|
21
|
+
#
|
22
|
+
INVALID_PAYLOAD = {
|
23
|
+
meta: {
|
24
|
+
status: 422,
|
25
|
+
code: "ERR-422-PayloadInvalid",
|
26
|
+
title: "Payload Invalid",
|
27
|
+
message: "The API request received an invalid payload.",
|
28
|
+
description: "Turn on logging in DEBUG mode for more details about the issue."
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
# Error returned when the model is attempting an update, but it doesn't
|
33
|
+
# have a primary key.
|
34
|
+
#
|
35
|
+
MODEL_DOES_NOT_EXIST = {
|
36
|
+
meta: {
|
37
|
+
status: 422,
|
38
|
+
code: "ERR-422-ModelDoesNotExist",
|
39
|
+
title: "Model Does Not Exist",
|
40
|
+
message: "You are attempting to access or update a record that does not exist yet. Try creating it first.",
|
41
|
+
description: ""
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
# Error returned when the model is attempting to create, but it already
|
46
|
+
# has a primary key.
|
47
|
+
#
|
48
|
+
MODEL_EXISTS = {
|
49
|
+
meta: {
|
50
|
+
status: 422,
|
51
|
+
code: "ERR-422-ModelExists",
|
52
|
+
title: "Model Exists",
|
53
|
+
message: "You are attempting to create a record that already exists. Try updating the it.",
|
54
|
+
description: ""
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
# Build an INVALID_ATTRIBUTES error model object.
|
59
|
+
#
|
60
|
+
# @param endpoint [WscSdk::Endpoint]
|
61
|
+
# The endpoint that is building the error.
|
62
|
+
#
|
63
|
+
# @return [WscSdk::Models::Error]
|
64
|
+
# The newly built error object.
|
65
|
+
#
|
66
|
+
def self.invalid_attributes(endpoint)
|
67
|
+
error = WscSdk::Models::Error.new(endpoint)
|
68
|
+
error.ingest_attributes(INVALID_ATTRIBUTES, write_to_read_only: true, mark_clean: true)
|
69
|
+
error
|
70
|
+
end
|
71
|
+
|
72
|
+
# Build an INVALID_PAYLOAD error model object.
|
73
|
+
#
|
74
|
+
# @param endpoint [WscSdk::Endpoint]
|
75
|
+
# The endpoint that is building the error.
|
76
|
+
#
|
77
|
+
# @return [WscSdk::Models::Error]
|
78
|
+
# The newly built error object.
|
79
|
+
#
|
80
|
+
def self.invalid_payload(endpoint)
|
81
|
+
error = WscSdk::Models::Error.new(endpoint)
|
82
|
+
error.ingest_attributes(INVALID_PAYLOAD, write_to_read_only: true, mark_clean: true)
|
83
|
+
error
|
84
|
+
end
|
85
|
+
|
86
|
+
# Build an RECORD_DOES_NOT_EXIST error model object.
|
87
|
+
#
|
88
|
+
# @param endpoint [WscSdk::Endpoint]
|
89
|
+
# The endpoint that is building the error.
|
90
|
+
#
|
91
|
+
# @return [WscSdk::Models::Error]
|
92
|
+
# The newly built error object.
|
93
|
+
#
|
94
|
+
def self.model_does_not_exist(endpoint)
|
95
|
+
error = WscSdk::Models::Error.new(endpoint)
|
96
|
+
error.ingest_attributes(MODEL_DOES_NOT_EXIST, write_to_read_only: true, mark_clean: true)
|
97
|
+
error
|
98
|
+
end
|
99
|
+
|
100
|
+
# Build an RECORD_EXISTS error model object.
|
101
|
+
#
|
102
|
+
# @param endpoint [WscSdk::Endpoint]
|
103
|
+
# The endpoint that is building the error.
|
104
|
+
#
|
105
|
+
# @return [WscSdk::Models::Error]
|
106
|
+
# The newly built error object.
|
107
|
+
#
|
108
|
+
def self.model_exists(endpoint)
|
109
|
+
error = WscSdk::Models::Error.new(endpoint)
|
110
|
+
error.ingest_attributes(MODEL_EXISTS, write_to_read_only: true, mark_clean: true)
|
111
|
+
error
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
115
|
+
end
|