java.lang.Object | |
↳ | sg.com.temasys.skylink.sdk.rtc.SkylinkMedia |
This class is to encapsulate all related info for an audio/video media object in the SkylinkSDK
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | SkylinkMedia.MediaState | The possible states that a SkylinkMedia can use to describe the media it represents. |
|||||||||
enum | SkylinkMedia.MediaType | The possible types that a SkylinkMedia object can be |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SkylinkMedia() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AudioTrack |
getAudioTrack()
Get the audio track of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
VideoCapturer |
getCustomVideoCapturer()
Get the custom media capturer
| ||||||||||
String |
getMediaId()
Get the id of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
Object |
getMediaMetadata()
Get the metadata of the media object input by the user when starting local media
| ||||||||||
SkylinkMedia.MediaState |
getMediaState()
Get the current state of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
SkylinkMedia.MediaType |
getMediaType()
Get the type of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
VideoTrack |
getVideoTrack()
Get the video track of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
SurfaceViewRenderer |
getVideoView()
Get the video view of the SkylinkMedia object, can use for both local and remote media
| ||||||||||
boolean |
isCustomMedia()
Check the local media is created by the input custom media capturer or not
| ||||||||||
boolean |
isVideo()
Checks the
SkylinkMedia.MediaType of this SkylinkMedia to see if it is of Video type. | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the audio track of the SkylinkMedia object, can use for both local and remote media
Get the custom media capturer
Get the id of the SkylinkMedia object, can use for both local and remote media
Get the metadata of the media object input by the user when starting local media
Get the current state of the SkylinkMedia object, can use for both local and remote media
Get the type of the SkylinkMedia object, can use for both local and remote media
Get the video track of the SkylinkMedia object, can use for both local and remote media
Get the video view of the SkylinkMedia object, can use for both local and remote media
Check the local media is created by the input custom media capturer or not
Checks the SkylinkMedia.MediaType
of this SkylinkMedia
to see if it is of Video type.
A false value does NOT necessarily indicate || @link MediaType#AUDIO
.
SkylinkMedia.MediaType
is of Video type, e.g.:
VIDEO
, VIDEO_CAMERA
,
VIDEO_CUSTOM
, VIDEO_SCREEN
.