HTMLMediaElement
Generated.swift:8124class HTMLMediaElement
class HTMLMediaElement
import DOM
class HTMLElement
protocol ARIAMixin : JSBridgedClass
protocol Any_CSSPseudoElement_or_Element : ConvertibleToJSValue
protocol Any_Element_or_HTMLCollection : ConvertibleToJSValue
protocol Any_Element_or_RadioNodeList : ConvertibleToJSValue
protocol Any_Element_or_Text : ConvertibleToJSValue
protocol Any_GeometryNode : ConvertibleToJSValue
protocol Any_HTMLElement_or_Int32 : ConvertibleToJSValue
protocol Any_Node_or_String : ConvertibleToJSValue
protocol ChildNode : JSBridgedClass
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 ElementContentEditable : JSBridgedClass
protocol GeometryUtils : JSBridgedClass
protocol GlobalEventHandlers : JSBridgedClass
protocol HTMLOrSVGElement : JSBridgedClass
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.
protocol NonDocumentTypeChildNode : JSBridgedClass
protocol ParentNode : JSBridgedClass
protocol Slottable : JSBridgedClass
required init(unsafelyWrapping jsObject: JSObject)
static let HAVE_CURRENT_DATA: UInt16
static let HAVE_ENOUGH_DATA: UInt16
static let HAVE_FUTURE_DATA: UInt16
static let HAVE_METADATA: UInt16
static let HAVE_NOTHING: UInt16
static let NETWORK_EMPTY: UInt16
static let NETWORK_IDLE: UInt16
static let NETWORK_LOADING: UInt16
static let NETWORK_NO_SOURCE: UInt16
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var audioTracks: AudioTrackList { get }
@ReadWriteAttribute var autoplay: Bool { get set }
@ReadonlyAttribute var buffered: TimeRanges { get }
@ReadWriteAttribute var controls: Bool { get set }
@ReadWriteAttribute var crossOrigin: String? { get set }
@ReadonlyAttribute var currentSrc: String { get }
@ReadWriteAttribute var currentTime: Double { get set }
@ReadWriteAttribute var defaultMuted: Bool { get set }
@ReadWriteAttribute var defaultPlaybackRate: Double { get set }
@ReadonlyAttribute var duration: Double { get }
@ReadonlyAttribute var ended: Bool { get }
@ReadonlyAttribute var error: MediaError? { get }
@ReadWriteAttribute var loop: Bool { get set }
@ReadWriteAttribute var muted: Bool { get set }
@ReadonlyAttribute var networkState: UInt16 { get }
@ReadonlyAttribute var paused: Bool { get }
@ReadWriteAttribute var playbackRate: Double { get set }
@ReadonlyAttribute var played: TimeRanges { get }
@ReadWriteAttribute var preload: String { get set }
@ReadWriteAttribute var preservesPitch: Bool { get set }
@ReadonlyAttribute var readyState: UInt16 { get }
@ReadonlyAttribute var seekable: TimeRanges { get }
@ReadonlyAttribute var seeking: Bool { get }
@ReadWriteAttribute var src: String { get set }
@ReadWriteAttribute var srcObject: MediaProvider? { get set }
@ReadonlyAttribute var textTracks: TextTrackList { get }
@ReadonlyAttribute var videoTracks: VideoTrackList { get }
@ReadWriteAttribute var volume: Double { get set }
func addTextTrack(kind: TextTrackKind, label: String? = nil, language: String? = nil) -> TextTrack
func canPlayType(type: String) -> CanPlayTypeResult
func fastSeek(time: Double)
func getStartDate() -> JSObject
func load()
func pause()
func play() -> JSPromise
func play() async throws
class HTMLAudioElement
class HTMLVideoElement