public class

SkylinkMedia

extends Object
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.rtc.SkylinkMedia

Class Overview

This class is to encapsulate all related info for an audio/video media object in the SkylinkSDK

Summary

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

Public Constructors

public SkylinkMedia ()

Public Methods

public AudioTrack getAudioTrack ()

Get the audio track of the SkylinkMedia object, can use for both local and remote media

Returns
  • the AudioTrack of the media object if the media object is an audio null if it is not existing or media object is not an audio

public VideoCapturer getCustomVideoCapturer ()

Get the custom media capturer

public String getMediaId ()

Get the id of the SkylinkMedia object, can use for both local and remote media

public Object getMediaMetadata ()

Get the metadata of the media object input by the user when starting local media

public SkylinkMedia.MediaState getMediaState ()

Get the current state of the SkylinkMedia object, can use for both local and remote media

public SkylinkMedia.MediaType getMediaType ()

Get the type of the SkylinkMedia object, can use for both local and remote media

public VideoTrack getVideoTrack ()

Get the video track of the SkylinkMedia object, can use for both local and remote media

Returns
  • the VideoTrack of the media object if the media object is a video null if it is not existing or media object is not a video

public SurfaceViewRenderer getVideoView ()

Get the video view of the SkylinkMedia object, can use for both local and remote media

Returns
  • the SurfaceViewRenderer of the media object if the media object is a video null if it is not existing or media object is not a video

public boolean isCustomMedia ()

Check the local media is created by the input custom media capturer or not

public boolean isVideo ()

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.

Returns

public String toString ()