MediaSource
Generated.swift:10993class MediaSource
class MediaSource
import DOM
class EventTarget
protocol Any_MediaProvider : ConvertibleToJSValue
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 Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
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()
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
class func isTypeSupported(type: String) -> Bool
@ReadonlyAttribute var activeSourceBuffers: SourceBufferList { get }
@ReadonlyAttribute var canConstructInDedicatedWorker: Bool { get }
@ReadWriteAttribute var duration: Double { get set }
@ReadonlyAttribute var handle: MediaSourceHandle { get }
@ClosureAttribute1Optional var onsourceclose: EventHandler { get set }
@ClosureAttribute1Optional var onsourceended: EventHandler { get set }
@ClosureAttribute1Optional var onsourceopen: EventHandler { get set }
@ReadonlyAttribute var readyState: ReadyState { get }
@ReadonlyAttribute var sourceBuffers: SourceBufferList { get }
func addSourceBuffer(type: String) -> SourceBuffer
func clearLiveSeekableRange()
func endOfStream(error: EndOfStreamError? = nil)
func removeSourceBuffer(sourceBuffer: SourceBuffer)
func setLiveSeekableRange(start: Double, end: Double)