All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental2.dom.MediaStreamTrack Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import java.lang.Void;
import elemental2.dom.MediaTrackConstraints;
import elemental2.dom.Event;
import jsinterop.annotations.JsMethod;
import elemental2.dom.MediaTrackSettings;
import elemental2.promise.Promise;
import elemental2.dom.EventTarget;
import elemental2.dom.EventListener;
import elemental2.dom.MediaTrackCapabilities;
import jsinterop.annotations.JsFunction;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class MediaStreamTrack implements EventTarget{
@JsFunction
public interface OnendedFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnmuteFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnoverconstrainedFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnunmuteFn{
Object onInvoke(Event p0);
}
public String contentHint;
public boolean enabled;
public String id;
public String kind;
public String label;
public boolean muted;
public MediaStreamTrack.OnendedFn onended;
public MediaStreamTrack.OnmuteFn onmute;
public MediaStreamTrack.OnoverconstrainedFn onoverconstrained;
public MediaStreamTrack.OnunmuteFn onunmute;
public String readyState;
public boolean remote;
public native void addEventListener(String type,EventListener listener,EventTarget.AddEventListenerOptionsUnionType options);
public native void addEventListener(String type,EventListener listener);
public native Promise applyConstraints();
public native Promise applyConstraints(MediaTrackConstraints constraints);
@JsMethod(name = "clone")
public native MediaStreamTrack clone_();
public native boolean dispatchEvent(Event evt);
public native MediaTrackCapabilities getCapabilities();
public native MediaTrackConstraints getConstraints();
public native MediaTrackSettings getSettings();
public native void removeEventListener(String type,EventListener listener,EventTarget.RemoveEventListenerOptionsUnionType options);
public native void removeEventListener(String type,EventListener listener);
public native void stop();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy