Class: Imagekitio::Models::SubtitleOverlay
- Inherits:
-
BaseOverlay
- Object
- Internal::Type::BaseModel
- BaseOverlay
- Imagekitio::Models::SubtitleOverlay
- Defined in:
- lib/imagekitio/models/subtitle_overlay.rb
Defined Under Namespace
Modules: Encoding
Instance Attribute Summary collapse
-
#encoding ⇒ Symbol, ...
The input path can be included in the layer as either ‘i-#input` or `ie-base64_encoded_input`.
-
#input ⇒ String
Specifies the relative path to the subtitle file used as an overlay.
-
#transformation ⇒ Array<Imagekitio::Models::SubtitleOverlayTransformation>?
Control styling of the subtitle.
- #type ⇒ Symbol, :subtitle
Attributes inherited from BaseOverlay
Instance Method Summary collapse
-
#initialize(input: , encoding: nil, transformation: nil, type: :subtitle) ⇒ Object
constructor
Some parameter documentations has been truncated, see SubtitleOverlay for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(input: , encoding: nil, transformation: nil, type: :subtitle) ⇒ Object
Some parameter documentations has been truncated, see Imagekitio::Models::SubtitleOverlay for more details.
|
|
# File 'lib/imagekitio/models/subtitle_overlay.rb', line 35
|
Instance Attribute Details
#encoding ⇒ Symbol, ...
25 |
# File 'lib/imagekitio/models/subtitle_overlay.rb', line 25 optional :encoding, enum: -> { Imagekitio::SubtitleOverlay::Encoding } |
#input ⇒ String
Specifies the relative path to the subtitle file used as an overlay.
10 |
# File 'lib/imagekitio/models/subtitle_overlay.rb', line 10 required :input, String |
#transformation ⇒ Array<Imagekitio::Models::SubtitleOverlayTransformation>?
Control styling of the subtitle. See [Styling subtitles](imagekit.io/docs/add-overlays-on-videos#styling-controls-for-subtitles-layer).
32 33 |
# File 'lib/imagekitio/models/subtitle_overlay.rb', line 32 optional :transformation, -> { Imagekitio::Internal::Type::ArrayOf[Imagekitio::SubtitleOverlayTransformation] } |
#type ⇒ Symbol, :subtitle
15 |
# File 'lib/imagekitio/models/subtitle_overlay.rb', line 15 required :type, const: :subtitle |