MediaRecorder
Generated.swift:10857class MediaRecorder
class MediaRecorder
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(stream: MediaStream, options: MediaRecorderOptions? = nil)
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
class func isTypeSupported(type: String) -> Bool
@ReadonlyAttribute var audioBitrateMode: BitrateMode { get }
@ReadonlyAttribute var audioBitsPerSecond: UInt32 { get }
@ReadonlyAttribute var mimeType: String { get }
@ClosureAttribute1Optional var ondataavailable: EventHandler { get set }
@ClosureAttribute1Optional var onerror: EventHandler { get set }
@ClosureAttribute1Optional var onpause: EventHandler { get set }
@ClosureAttribute1Optional var onresume: EventHandler { get set }
@ClosureAttribute1Optional var onstart: EventHandler { get set }
@ClosureAttribute1Optional var onstop: EventHandler { get set }
@ReadonlyAttribute var state: RecordingState { get }
@ReadonlyAttribute var stream: MediaStream { get }
@ReadonlyAttribute var videoBitsPerSecond: UInt32 { get }
func pause()
func requestData()
func resume()
func start(timeslice: UInt32? = nil)
func stop()