java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | sg.com.temasys.skylink.sdk.rtc.SkylinkConfig.VideoDevice |
A list of device(s) that can be the source of a video stream.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SkylinkConfig.VideoDevice | CAMERA_BACK | The back facing camera, usually on the opposite side as the main device screen. | |||||||||
SkylinkConfig.VideoDevice | CAMERA_FRONT | The front facing camera, usually on the same side as the main device screen. | |||||||||
SkylinkConfig.VideoDevice | DEVICE_CUSTOM | A custom device that can be a source of video and that is not one of other devices provided by this enum. | |||||||||
SkylinkConfig.VideoDevice | SCREEN | The device screen, which can be captured to obtain a video stream. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getDeviceName()
Get the descriptive name of this
SkylinkConfig.MediaDevice . | ||||||||||
SkylinkMedia.MediaType |
getMediaType()
Get the
SkylinkMedia.MediaType that this device can produce. | ||||||||||
boolean |
isAudio()
Check if this
SkylinkConfig.MediaDevice is of Audio type or not. | ||||||||||
boolean |
isVideo()
Check if this
SkylinkConfig.MediaDevice is of Video type or not. | ||||||||||
static SkylinkConfig.VideoDevice | valueOf(String name) | ||||||||||
final static VideoDevice[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
From interface
sg.com.temasys.skylink.sdk.rtc.SkylinkConfig.MediaDevice
|
The back facing camera, usually on the opposite side as the main device screen.
The front facing camera, usually on the same side as the main device screen.
A custom device that can be a source of video and that
is not one of other devices provided by this enum.
The use of this device will also require a
custom VideoCapturer to be provided in createLocalMedia(MediaDevice, Object, VideoCapturer, int, int, int, SkylinkCallback)
,
which must conform to org.webrtc.VideoCapturer.
The device screen, which can be captured to obtain a video stream.
Get the SkylinkMedia.MediaType
that this device can produce.