Class: Azure::MediaServices::Mgmt::V2020_05_01::Models::Overlay
- Inherits:
-
Object
- Object
- Azure::MediaServices::Mgmt::V2020_05_01::Models::Overlay
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb
Overview
Base type for all overlays - image, audio or video.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#audio_gain_level ⇒ Float
should be in the range [0, 1.0].
-
#end_property ⇒ Duration
at which the overlay ends.
-
#fade_in_duration ⇒ Duration
the input video.
-
#fade_out_duration ⇒ Duration
input video.
-
#input_label ⇒ String
overlay.
-
#odatatype ⇒ Object
Returns the value of attribute odatatype.
-
#start ⇒ Duration
video, at which the overlay starts.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Overlay class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ Overlay
constructor
A new instance of Overlay.
Constructor Details
#initialize ⇒ Overlay
19 20 21 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 19 def initialize @odatatype = "Overlay" end |
Instance Attribute Details
#audio_gain_level ⇒ Float
should be in the range [0, 1.0]. The default is 1.0.
62 63 64 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 62 def audio_gain_level @audio_gain_level end |
#end_property ⇒ Duration
at which the overlay ends. The value should be in ISO 8601 format. For example, PT30S to end the overlay at 30 seconds into the input video. If not specified or the value is greater than the input video duration, the overlay will be applied until the end of the input video if the overlay media duration is greater than the input video duration, else the overlay will last as long as the overlay media duration.
47 48 49 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 47 def end_property @end_property end |
#fade_in_duration ⇒ Duration
the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).
53 54 55 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 53 def fade_in_duration @fade_in_duration end |
#fade_out_duration ⇒ Duration
input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).
58 59 60 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 58 def fade_out_duration @fade_out_duration end |
#input_label ⇒ String
overlay. The Input must specify exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See aka.ms/mesformats for the complete list of supported audio and video file formats.
31 32 33 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 31 def input_label @input_label end |
#odatatype ⇒ Object
Returns the value of attribute odatatype.
23 24 25 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 23 def odatatype @odatatype end |
#start ⇒ Duration
video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds into the input video. If not specified the overlay starts from the beginning of the input video.
38 39 40 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 38 def start @start end |
Class Method Details
.mapper ⇒ Object
Mapper for Overlay class as Ruby Hash. This will be used for serialization/deserialization.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/2020-05-01/generated/azure_mgmt_media_services/models/overlay.rb', line 69 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Overlay', type: { name: 'Composite', polymorphic_discriminator: '@odata.type', uber_parent: 'Overlay', class_name: 'Overlay', model_properties: { input_label: { client_side_validation: true, required: true, serialized_name: 'inputLabel', type: { name: 'String' } }, start: { client_side_validation: true, required: false, serialized_name: 'start', type: { name: 'TimeSpan' } }, end_property: { client_side_validation: true, required: false, serialized_name: 'end', type: { name: 'TimeSpan' } }, fade_in_duration: { client_side_validation: true, required: false, serialized_name: 'fadeInDuration', type: { name: 'TimeSpan' } }, fade_out_duration: { client_side_validation: true, required: false, serialized_name: 'fadeOutDuration', type: { name: 'TimeSpan' } }, audio_gain_level: { client_side_validation: true, required: false, serialized_name: 'audioGainLevel', type: { name: 'Double' } } } } } end |