Class: Imagekitio::Models::VideoTransformationErrorEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::VideoTransformationErrorEvent::Data
- Defined in:
- lib/imagekitio/models/video_transformation_error_event.rb
Defined Under Namespace
Classes: Asset, Transformation
Instance Attribute Summary collapse
-
#asset ⇒ Imagekitio::Models::VideoTransformationErrorEvent::Data::Asset
Information about the source video asset being transformed.
- #transformation ⇒ Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation
Instance Method Summary collapse
-
#initialize(url: ) ⇒ Object
constructor
Information about the source video asset being transformed.
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(url: ) ⇒ Object
Information about the source video asset being transformed.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/imagekitio/models/video_transformation_error_event.rb', line 42 class Data < Imagekitio::Internal::Type::BaseModel # @!attribute asset # Information about the source video asset being transformed. # # @return [Imagekitio::Models::VideoTransformationErrorEvent::Data::Asset] required :asset, -> { Imagekitio::VideoTransformationErrorEvent::Data::Asset } # @!attribute transformation # # @return [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation] required :transformation, -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation } # @!method initialize(asset:, transformation:) # @param asset [Imagekitio::Models::VideoTransformationErrorEvent::Data::Asset] Information about the source video asset being transformed. # # @param transformation [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation] # @see Imagekitio::Models::VideoTransformationErrorEvent::Data#asset class Asset < Imagekitio::Internal::Type::BaseModel # @!attribute url # URL to download or access the source video file. # # @return [String] required :url, String # @!method initialize(url:) # Information about the source video asset being transformed. # # @param url [String] URL to download or access the source video file. end # @see Imagekitio::Models::VideoTransformationErrorEvent::Data#transformation class Transformation < Imagekitio::Internal::Type::BaseModel # @!attribute type # Type of video transformation: # # - `video-transformation`: Standard video processing (resize, format conversion, # etc.) # - `gif-to-video`: Convert animated GIF to video format # - `video-thumbnail`: Generate thumbnail image from video # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Type] required :type, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Type } # @!attribute error # Details about the transformation error. # # @return [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error, nil] optional :error, -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Error } # @!attribute options # Configuration options for video transformations. # # @return [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options, nil] optional :options, -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Options } # @!method initialize(type:, error: nil, options: nil) # Some parameter documentations has been truncated, see # {Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation} for # more details. # # @param type [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Type] Type of video transformation: # # @param error [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error] Details about the transformation error. # # @param options [Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options] Configuration options for video transformations. # Type of video transformation: # # - `video-transformation`: Standard video processing (resize, format conversion, # etc.) # - `gif-to-video`: Convert animated GIF to video format # - `video-thumbnail`: Generate thumbnail image from video # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation#type module Type extend Imagekitio::Internal::Type::Enum VIDEO_TRANSFORMATION = :"video-transformation" GIF_TO_VIDEO = :"gif-to-video" VIDEO_THUMBNAIL = :"video-thumbnail" # @!method self.values # @return [Array<Symbol>] end # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation#error class Error < Imagekitio::Internal::Type::BaseModel # @!attribute reason # Specific reason for the transformation failure: # # - `encoding_failed`: Error during video encoding process # - `download_failed`: Could not download source video # - `internal_server_error`: Unexpected server error # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error::Reason] required :reason, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Error::Reason } # @!method initialize(reason:) # Some parameter documentations has been truncated, see # {Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error} # for more details. # # Details about the transformation error. # # @param reason [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error::Reason] Specific reason for the transformation failure: # Specific reason for the transformation failure: # # - `encoding_failed`: Error during video encoding process # - `download_failed`: Could not download source video # - `internal_server_error`: Unexpected server error # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Error#reason module Reason extend Imagekitio::Internal::Type::Enum ENCODING_FAILED = :encoding_failed DOWNLOAD_FAILED = :download_failed INTERNAL_SERVER_ERROR = :internal_server_error # @!method self.values # @return [Array<Symbol>] end end # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation#options class Options < Imagekitio::Internal::Type::BaseModel # @!attribute audio_codec # Audio codec used for encoding (aac or opus). # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::AudioCodec, nil] optional :audio_codec, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Options::AudioCodec } # @!attribute auto_rotate # Whether to automatically rotate the video based on metadata. # # @return [Boolean, nil] optional :auto_rotate, Imagekitio::Internal::Type::Boolean # @!attribute format_ # Output format for the transformed video or thumbnail. # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::Format, nil] optional :format_, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Options::Format }, api_name: :format # @!attribute quality # Quality setting for the output video. # # @return [Integer, nil] optional :quality, Integer # @!attribute stream_protocol # Streaming protocol for adaptive bitrate streaming. # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::StreamProtocol, nil] optional :stream_protocol, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Options::StreamProtocol } # @!attribute variants # Array of quality representations for adaptive bitrate streaming. # # @return [Array<String>, nil] optional :variants, Imagekitio::Internal::Type::ArrayOf[String] # @!attribute video_codec # Video codec used for encoding (h264, vp9, or av1). # # @return [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::VideoCodec, nil] optional :video_codec, enum: -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation::Options::VideoCodec } # @!method initialize(audio_codec: nil, auto_rotate: nil, format_: nil, quality: nil, stream_protocol: nil, variants: nil, video_codec: nil) # Configuration options for video transformations. # # @param audio_codec [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::AudioCodec] Audio codec used for encoding (aac or opus). # # @param auto_rotate [Boolean] Whether to automatically rotate the video based on metadata. # # @param format_ [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::Format] Output format for the transformed video or thumbnail. # # @param quality [Integer] Quality setting for the output video. # # @param stream_protocol [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::StreamProtocol] Streaming protocol for adaptive bitrate streaming. # # @param variants [Array<String>] Array of quality representations for adaptive bitrate streaming. # # @param video_codec [Symbol, Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options::VideoCodec] Video codec used for encoding (h264, vp9, or av1). # Audio codec used for encoding (aac or opus). # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options#audio_codec module AudioCodec extend Imagekitio::Internal::Type::Enum AAC = :aac OPUS = :opus # @!method self.values # @return [Array<Symbol>] end # Output format for the transformed video or thumbnail. # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options#format_ module Format extend Imagekitio::Internal::Type::Enum MP4 = :mp4 WEBM = :webm JPG = :jpg PNG = :png WEBP = :webp # @!method self.values # @return [Array<Symbol>] end # Streaming protocol for adaptive bitrate streaming. # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options#stream_protocol module StreamProtocol extend Imagekitio::Internal::Type::Enum HLS = :HLS DASH = :DASH # @!method self.values # @return [Array<Symbol>] end # Video codec used for encoding (h264, vp9, or av1). # # @see Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation::Options#video_codec module VideoCodec extend Imagekitio::Internal::Type::Enum H264 = :h264 VP9 = :vp9 AV1 = :av1 # @!method self.values # @return [Array<Symbol>] end end end end |
Instance Attribute Details
#asset ⇒ Imagekitio::Models::VideoTransformationErrorEvent::Data::Asset
Information about the source video asset being transformed.
47 |
# File 'lib/imagekitio/models/video_transformation_error_event.rb', line 47 required :asset, -> { Imagekitio::VideoTransformationErrorEvent::Data::Asset } |
#transformation ⇒ Imagekitio::Models::VideoTransformationErrorEvent::Data::Transformation
52 |
# File 'lib/imagekitio/models/video_transformation_error_event.rb', line 52 required :transformation, -> { Imagekitio::VideoTransformationErrorEvent::Data::Transformation } |