elemental2.dom.MediaRecorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jacline-elemental2-dom Show documentation
Show all versions of jacline-elemental2-dom Show documentation
Thin Java abstractions for the standard built-in objects for
Javascript.
The newest version!
package elemental2.dom;
import elemental2.dom.MediaRecorderOptions;
import elemental2.dom.EventListener;
import jsinterop.annotations.JsFunction;
import elemental2.dom.Event;
import elemental2.dom.MediaStream;
import java.lang.Object;
import java.lang.String;
import jsinterop.annotations.JsType;
import jsinterop.annotations.JsPackage;
import elemental2.dom.EventTarget;
@JsType(isNative = true,namespace = JsPackage.GLOBAL)
public class MediaRecorder implements EventTarget{
@JsFunction
public interface OndataavailableFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnerrorFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnpauseFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnresumeFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnstartFn{
Object onInvoke(Event p0);
}
@JsFunction
public interface OnstopFn{
Object onInvoke(Event p0);
}
public static native boolean isTypeSupported(String type);
public int audioBitsPerSecond;
public String mimeType;
public MediaRecorder.OndataavailableFn ondataavailable;
public MediaRecorder.OnerrorFn onerror;
public MediaRecorder.OnpauseFn onpause;
public MediaRecorder.OnresumeFn onresume;
public MediaRecorder.OnstartFn onstart;
public MediaRecorder.OnstopFn onstop;
public String state;
public MediaStream stream;
public int videoBitsPerSecond;
public MediaRecorder(MediaStream stream,MediaRecorderOptions options){}
public MediaRecorder(MediaStream stream){}
public native void addEventListener(String type,EventListener listener,EventTarget.AddEventListenerOptionsUnionType useCapture);
public native void addEventListener(String type,EventListener listener);
public native boolean dispatchEvent(Event evt);
public native void pause();
public native void removeEventListener(String type,EventListener listener,EventTarget.RemoveEventListenerOptionsUnionType useCapture);
public native void removeEventListener(String type,EventListener listener);
public native void requestData();
public native void resume();
public native Object start();
public native Object start(int timeslice);
public native void stop();
}