MediaStream
Overview
The MediaStream interface represents a stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
- Ancestry: EventTarget | MediaStream
active
property active: Boolean read;
Boolean active { get; }
var active: Boolean { get{} }
Boolean active { __get; }
ReadOnly Property active() As Boolean
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:
addTrack
Stores a copy of the MediaStreamTrack given as argument. If the track has already been added to the MediaStream object, nothing happens.
method addTrack(partrack: dynamic): MediaStream
MediaStream addTrack(dynamic partrack)
func addTrack(_ partrack: dynamic) -> MediaStream
MediaStream addTrack(dynamic partrack)
Function addTrack(partrack As dynamic) As MediaStream
Parameters:
- partrack:
clone
Returns a clone of the MediaStream object. The clone will, however, have a unique value for id.
method clone: MediaStream
MediaStream clone()
func clone() -> MediaStream
MediaStream clone()
Function clone() As MediaStream
getAudioTracks
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to audio. The order is not defined, and may not only vary from one browser to another, but also from one call to another.
method getAudioTracks: MediaStream
MediaStream getAudioTracks()
func getAudioTracks() -> MediaStream
MediaStream getAudioTracks()
Function getAudioTracks() As MediaStream
getTrackById
Returns the track whose ID corresponds to the one given in parameters, trackid. If no parameter is given, or if no track with that ID does exist, it returns null. If several tracks have the same ID, it returns the first one.
method getTrackById(parid: dynamic): String
String getTrackById(dynamic parid)
func getTrackById(_ parid: dynamic) -> String
String getTrackById(dynamic parid)
Function getTrackById(parid As dynamic) As String
Parameters:
- parid:
getVideoTracks
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "video". The order is not defined, and may not only vary from one browser to another, but also from one call to another.
method getVideoTracks: MediaStream
MediaStream getVideoTracks()
func getVideoTracks() -> MediaStream
MediaStream getVideoTracks()
Function getVideoTracks() As MediaStream
id
property id: Int32 read;
Int32 id { get; }
var id: Int32 { get{} }
Int32 id { __get; }
ReadOnly Property id() As Int32
onaddtrack
property onaddtrack: EventListener read write;
EventListener onaddtrack { get; set; }
var onaddtrack: EventListener { get{} set{} }
EventListener onaddtrack { __get; __set; }
Property onaddtrack() As EventListener
onremovetrack
property onremovetrack: EventListener read write;
EventListener onremovetrack { get; set; }
var onremovetrack: EventListener { get{} set{} }
EventListener onremovetrack { __get; __set; }
Property onremovetrack() As EventListener
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:
removeTrack
Removes the MediaStreamTrack given as argument. If the track is not part of the MediaStream object, nothing happens.
method removeTrack: MediaStream
MediaStream removeTrack()
func removeTrack() -> MediaStream
MediaStream removeTrack()
Function removeTrack() As MediaStream
active
property active: Boolean read;
Boolean active { get; }
var active: Boolean { get{} }
Boolean active { __get; }
ReadOnly Property active() As Boolean
id
property id: Int32 read;
Int32 id { get; }
var id: Int32 { get{} }
Int32 id { __get; }
ReadOnly Property id() As Int32
onaddtrack
property onaddtrack: EventListener read write;
EventListener onaddtrack { get; set; }
var onaddtrack: EventListener { get{} set{} }
EventListener onaddtrack { __get; __set; }
Property onaddtrack() As EventListener
onremovetrack
property onremovetrack: EventListener read write;
EventListener onremovetrack { get; set; }
var onremovetrack: EventListener { get{} set{} }
EventListener onremovetrack { __get; __set; }
Property onremovetrack() As EventListener
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:
addTrack
Stores a copy of the MediaStreamTrack given as argument. If the track has already been added to the MediaStream object, nothing happens.
method addTrack(partrack: dynamic): MediaStream
MediaStream addTrack(dynamic partrack)
func addTrack(_ partrack: dynamic) -> MediaStream
MediaStream addTrack(dynamic partrack)
Function addTrack(partrack As dynamic) As MediaStream
Parameters:
- partrack:
clone
Returns a clone of the MediaStream object. The clone will, however, have a unique value for id.
method clone: MediaStream
MediaStream clone()
func clone() -> MediaStream
MediaStream clone()
Function clone() As MediaStream
getAudioTracks
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to audio. The order is not defined, and may not only vary from one browser to another, but also from one call to another.
method getAudioTracks: MediaStream
MediaStream getAudioTracks()
func getAudioTracks() -> MediaStream
MediaStream getAudioTracks()
Function getAudioTracks() As MediaStream
getTrackById
Returns the track whose ID corresponds to the one given in parameters, trackid. If no parameter is given, or if no track with that ID does exist, it returns null. If several tracks have the same ID, it returns the first one.
method getTrackById(parid: dynamic): String
String getTrackById(dynamic parid)
func getTrackById(_ parid: dynamic) -> String
String getTrackById(dynamic parid)
Function getTrackById(parid As dynamic) As String
Parameters:
- parid:
getVideoTracks
Returns a list of the MediaStreamTrack objects stored in the MediaStream object that have their kind attribute set to "video". The order is not defined, and may not only vary from one browser to another, but also from one call to another.
method getVideoTracks: MediaStream
MediaStream getVideoTracks()
func getVideoTracks() -> MediaStream
MediaStream getVideoTracks()
Function getVideoTracks() As MediaStream
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:
removeTrack
Removes the MediaStreamTrack given as argument. If the track is not part of the MediaStream object, nothing happens.
method removeTrack: MediaStream
MediaStream removeTrack()
func removeTrack() -> MediaStream
MediaStream removeTrack()
Function removeTrack() As MediaStream