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

def.dom.MediaDevices Maven / Gradle / Ivy

The newest version!
package def.dom;

import java.util.function.Consumer;

import def.js.Promise;
import jsweet.lang.Interface;
import jsweet.util.union.Union;

@Interface
public abstract class MediaDevices {
	public native Promise enumerateDevices();

	public native MediaTrackSupportedConstraints getSupportedConstraints();

	public native Promise getUserMedia(MediaStreamConstraints constraints);

	public native void addEventListener(String type, Consumer listener,
			Union options);

	public native void removeEventListener(String type, EventListener listener,
			Union options);

	public native void removeEventListener(String type, EventListenerObject listener,
			Union options);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy