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

elemental2.dom.MediaStream Maven / Gradle / Ivy

The newest version!
package elemental2.dom;
import java.lang.Deprecated;
import elemental2.dom.Event;
import elemental2.dom.MediaStreamTrack;
import jsinterop.annotations.JsMethod;
import elemental2.core.JsArray;
import elemental2.dom.EventTarget;
import elemental2.dom.EventListener;
import jsinterop.base.Js;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.MediaStreamTrackEvent;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class MediaStream implements EventTarget{
@JsType(isNative = true,name = "?",namespace = JsPackage.GLOBAL)
public interface ConstructorStreamOrTracksUnionType{
@JsOverlay
static MediaStream.ConstructorStreamOrTracksUnionType of(Object o){
return Js.cast(o);
}
@JsOverlay
default JsArray asJsArray(){
return Js.cast(this);
}
@JsOverlay
default MediaStream asMediaStream(){
return Js.cast(this);
}
@JsOverlay
default boolean isJsArray(){
return (Object)this instanceof JsArray;
}
@JsOverlay
default boolean isMediaStream(){
return (Object)this instanceof MediaStream;
}
}
@JsFunction
public interface OnactiveFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnaddtrackFn{
Object onInvoke(MediaStreamTrackEvent p0);
}
@JsFunction
public interface OnendedFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OninactiveFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnremovetrackFn{
Object onInvoke(MediaStreamTrackEvent p0);
}
public boolean active;
@Deprecated
public boolean ended;
public String id;
@Deprecated
public String label;
public MediaStream.OnactiveFn onactive;
public MediaStream.OnaddtrackFn onaddtrack;
@Deprecated
public MediaStream.OnendedFn onended;
public MediaStream.OninactiveFn oninactive;
public MediaStream.OnremovetrackFn onremovetrack;
public MediaStream(){}
public MediaStream(MediaStream.ConstructorStreamOrTracksUnionType streamOrTracks){}
public MediaStream(JsArray streamOrTracks){}
public MediaStream(MediaStream streamOrTracks){}
public MediaStream(MediaStreamTrack[] streamOrTracks){}
public native void addEventListener(String type,EventListener listener,EventTarget.AddEventListenerOptionsUnionType useCapture);
public native void addEventListener(String type,EventListener listener);
public native void addTrack(MediaStreamTrack track);
@JsMethod(name = "clone")
public native MediaStream clone_();
public native boolean dispatchEvent(Event evt);
public native JsArray getAudioTracks();
public native MediaStreamTrack getTrackById(String trackId);
public native JsArray getTracks();
public native JsArray getVideoTracks();
public native void removeEventListener(String type,EventListener listener,EventTarget.RemoveEventListenerOptionsUnionType useCapture);
public native void removeEventListener(String type,EventListener listener);
public native void removeTrack(MediaStreamTrack track);
@Deprecated
public native void stop();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy