public final class MediaStreamDeviceRequest
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
MediaStreamDevice |
getDefaultMediaStreamDevice()
Returns default media stream device of the requested type or
返回所请求类型的默认媒体流设备;如果没有可用的媒体流设备,则返回null。 null when there's no media stream devices available.
|
java.util.List<MediaStreamDevice> |
getMediaStreamDevices()
Returns a list of available media stream devices of the requested type.
返回所请求类型的可用媒体流设备的列表。 |
MediaStreamType |
getMediaStreamType()
Returns type of the requested media stream.
返回请求的媒体流的类型。 |
void |
setDefaultMediaStreamDevice(MediaStreamDevice device)
Updates default media stream device of the requested type.
更新请求类型的默认媒体流设备。 |
public MediaStreamType getMediaStreamType()
public java.util.List<MediaStreamDevice> getMediaStreamDevices()
public MediaStreamDevice getDefaultMediaStreamDevice()
null
when there's no media stream devices available.
null
when there's no media stream devices available.
请求类型的默认媒体流设备或没有可用的媒体流设备时。
public void setDefaultMediaStreamDevice(MediaStreamDevice device)
device
value must be the one from the list of available media stream devices you can obtain via the
getMediaStreamDevices()
method.
device
- default media stream device. Cannot be
null
. It must be the one from the list of available media stream devices you can obtain via the
getMediaStreamDevices()
method.
-默认媒体流设备。不可能是 。它必须是可以通过该方法获取的可用媒体流设备列表中的一个。
java.lang.IllegalArgumentException
- when
device
is
null
, or its media type doesn't match the requested media type that can be obtained via the
getMediaStreamType()
method, or the device isn't in the list of available devices.