MediaDevices
Overview
The MediaDevices interface provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
- Ancestry: EventTarget | MediaDevices
Required Methods
addEventListener (dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(partype: dynamic; parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
func addEventListener(_ partype: dynamic, _ parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
Sub addEventListener(partype As dynamic, parlistener As dynamic)
Parameters:
- partype:
- parlistener:
addEventListener (dynamic, dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)
Parameters:
- type:
- listener:
- options:
addEventListener (dynamic, dynamic, Boolean) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)
Parameters:
- type:
- listener:
- useCapture:
getDisplayMedia
Prompts the user to select a display or portion of a display (such as a window) to capture as a MediaStream for sharing or recording purposes. Returns a promise that resolves to a MediaStream.
method getDisplayMedia(parconstraints: dynamic): MediaStream
MediaStream getDisplayMedia(dynamic parconstraints)
func getDisplayMedia(_ parconstraints: dynamic) -> MediaStream
MediaStream getDisplayMedia(dynamic parconstraints)
Function getDisplayMedia(parconstraints As dynamic) As MediaStream
Parameters:
- parconstraints:
getSupportedConstraints
Returns an object conforming to MediaTrackSupportedConstraints indicating which constrainable properties are supported on the MediaStreamTrack interface. See Capabilities and constraints in Media Capture and Streams API (Media Stream) to learn more about constraints and how to use them.
method getSupportedConstraints: MediaStreamTrack
MediaStreamTrack getSupportedConstraints()
func getSupportedConstraints() -> MediaStreamTrack
MediaStreamTrack getSupportedConstraints()
Function getSupportedConstraints() As MediaStreamTrack
getUserMedia
With the user's permission through a prompt, turns on a camera and/or a microphone on the system and provides a MediaStream containing a video track and/or an audio track with the input.
method getUserMedia(parconstraints: dynamic): MediaStream
MediaStream getUserMedia(dynamic parconstraints)
func getUserMedia(_ parconstraints: dynamic) -> MediaStream
MediaStream getUserMedia(dynamic parconstraints)
Function getUserMedia(parconstraints As dynamic) As MediaStream
Parameters:
- parconstraints:
removeEventListener (declared in EventTarget)
Removes an event listener from the EventTarget.
method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic
Parameters:
- partype:
- parlistener:
- paroptions:
- paruseCapture: