public class MediaStreamDeviceManager
extends java.lang.Object
Constructor and Description |
---|
MediaStreamDeviceManager(com.teamdev.jxbrowser.chromium.internal.ipc.Channel channel) |
Modifier and Type | Method and Description |
---|---|
MediaStreamDeviceProvider |
getMediaStreamDeviceProvider()
Returns current media stream device provider or
返回当前的媒体流设备提供程序;如果没有注册提供程序,则返回null。 null if there's no provider registered.
|
java.util.List<MediaStreamDevice> |
getMediaStreamDevices(MediaStreamType mediaStreamType)
Returns a list of available media stream devices of the given
如果找不到设备,则返回给定mediaStreamType或空集合的可用媒体流设备的列表。 mediaStreamType or empty collection when there were no devices found.
|
void |
setMediaStreamDeviceProvider(MediaStreamDeviceProvider provider)
Sets a new media stream device provider that will be used for providing Chromium with default media stream device of the requested type (audio/video).
设置一个新的媒体流设备提供程序,该提供程序将用于向Chromium提供所请求类型(音频/视频)的默认媒体流设备。 |
public MediaStreamDeviceManager(com.teamdev.jxbrowser.chromium.internal.ipc.Channel channel)
public MediaStreamDeviceProvider getMediaStreamDeviceProvider()
null
if there's no provider registered.
null
if there's no provider registered.
当前的媒体流设备提供程序,或者没有注册提供程序。
public void setMediaStreamDeviceProvider(MediaStreamDeviceProvider provider)
provider
- a new media stream device provider. Can be
null
.
-新的媒体流设备提供商。可 。
public java.util.List<MediaStreamDevice> getMediaStreamDevices(MediaStreamType mediaStreamType)
mediaStreamType
or empty collection when there were no devices found.
mediaStreamType
- type of the media stream devices.
-媒体流设备的类型。
mediaStreamType
.
找不到给定设备的可用媒体流设备列表或空集合。