VideoDecoder
Generated.swift:17019class VideoDecoder
class VideoDecoder
import DOM
class EventTarget
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(init: VideoDecoderInit)
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
class func isConfigSupported(config: VideoDecoderConfig) -> JSPromise
class func isConfigSupported(config: VideoDecoderConfig) async throws -> VideoDecoderSupport
@ReadonlyAttribute var decodeQueueSize: UInt32 { get }
@ClosureAttribute1Optional var ondequeue: EventHandler { get set }
@ReadonlyAttribute var state: CodecState { get }
func close()
func configure(config: VideoDecoderConfig)
func decode(chunk: EncodedVideoChunk)
func flush() -> JSPromise
func flush() async throws
func reset()