@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="MediaStreamTrack")
public class MediaStreamTrack
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
boolean |
enabled
The enabled property on the MediaStreamTrack interface is a Boolean value which is true if the track is allowed to render the source stream or false if it is not.
|
EventHandler |
onended
The MediaStreamTrack.onended event handler is used to specify a function which serves as an EventHandler to be called when the ended event occurs on the track.
|
EventHandler |
onisolationchange |
EventHandler |
onmute
MediaStreamTrack's onmute event handler is called when the mute event is received.
|
EventHandler |
onunmute
MediaStreamTrack's onunmute event handler is called when the unmute event is received.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MediaStreamTrack() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndedListener(EventListener callback) |
void |
addEndedListener(EventListener callback,
AddEventListenerOptions options) |
void |
addEndedListener(EventListener callback,
boolean useCapture) |
void |
addMuteListener(EventListener callback) |
void |
addMuteListener(EventListener callback,
AddEventListenerOptions options) |
void |
addMuteListener(EventListener callback,
boolean useCapture) |
void |
addUnmuteListener(EventListener callback) |
void |
addUnmuteListener(EventListener callback,
AddEventListenerOptions options) |
void |
addUnmuteListener(EventListener callback,
boolean useCapture) |
Promise<java.lang.Void> |
applyConstraints()
The applyConstraints() method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the Web site or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancelation, and so forth.
|
Promise<java.lang.Void> |
applyConstraints(MediaTrackConstraints constraints)
The applyConstraints() method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the Web site or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancelation, and so forth.
|
MediaStreamTrack |
clone_()
The clone() method of the MediaStreamTrack interface creates a duplicate of the MediaStreamTrack.
|
MediaTrackCapabilities |
getCapabilities()
The getCapabilities() method of the MediaStreamTrack interface returns a MediaTrackCapabilities object which specifies the values or range of values which each constrainable property, based upon the platform and user agent.
|
MediaTrackConstraints |
getConstraints()
The getConstraints() method of the MediaStreamTrack interface returns a MediaTrackConstraints object containing the set of constraints most recently established for the track using a prior call to applyConstraints().
|
MediaTrackSettings |
getSettings()
The getSettings() method of the MediaStreamTrack interface returns a MediaTrackSettings object containing the current values of each of the constrainable properties for the current MediaStreamTrack.
|
java.lang.String |
id()
The MediaStreamTrack.id read-only property returns a DOMString containing a unique identifier (GUID) for the track, which is generated by the user agent.
|
boolean |
isolated() |
java.lang.String |
kind()
The MediaStreamTrack.kind read-only property returns a DOMString set to "audio" if the track is an audio track and to "video", if it is a video track.
|
java.lang.String |
label()
The MediaStreamTrack.label read-only property returns a DOMString containing a user agent-assigned label that identifies the track source, as in "internal microphone".
|
boolean |
muted()
The muted read-only property of the MediaStreamTrack interface returns a Boolean value indicating whether or not the track is currently unable to provide media output.
|
java.lang.String |
readyState()
The MediaStreamTrack.readyState read-only property returns an enumerated value giving the status of the track.
|
void |
removeEndedListener(EventListener callback) |
void |
removeEndedListener(EventListener callback,
boolean useCapture) |
void |
removeEndedListener(EventListener callback,
EventListenerOptions options) |
void |
removeMuteListener(EventListener callback) |
void |
removeMuteListener(EventListener callback,
boolean useCapture) |
void |
removeMuteListener(EventListener callback,
EventListenerOptions options) |
void |
removeUnmuteListener(EventListener callback) |
void |
removeUnmuteListener(EventListener callback,
boolean useCapture) |
void |
removeUnmuteListener(EventListener callback,
EventListenerOptions options) |
void |
stop()
The MediaStreamTrack.stop() method stops the track.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic boolean enabled
@Nullable public EventHandler onended
@Nullable public EventHandler onisolationchange
@Nullable public EventHandler onmute
@Nullable public EventHandler onunmute
@JsProperty(name="id") @Nonnull public java.lang.String id()
@JsProperty(name="isolated") public boolean isolated()
@JsProperty(name="kind") @Nonnull public java.lang.String kind()
@JsProperty(name="label") @Nonnull public java.lang.String label()
@JsProperty(name="muted") public boolean muted()
@JsProperty(name="readyState") @Nonnull @MediaStreamTrackState public java.lang.String readyState()
@Nonnull public Promise<java.lang.Void> applyConstraints(@Nonnull MediaTrackConstraints constraints)
@Nonnull public Promise<java.lang.Void> applyConstraints()
@JsMethod(name="clone") @Nonnull public MediaStreamTrack clone_()
@Nonnull public MediaTrackCapabilities getCapabilities()
@Nonnull public MediaTrackConstraints getConstraints()
@Nonnull public MediaTrackSettings getSettings()
public void stop()
@JsOverlay
public final void addEndedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addEndedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addEndedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeEndedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeEndedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeEndedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addMuteListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addMuteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addMuteListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeMuteListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeMuteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeMuteListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addUnmuteListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addUnmuteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addUnmuteListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeUnmuteListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeUnmuteListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeUnmuteListener(@Nonnull
EventListener callback)