public class

SkylinkConfig

extends Object
implements Serializable
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.config.SkylinkConfig

Class Overview

Configuration class used to configure the parameters of real time communication.

Summary

Nested Classes
enum SkylinkConfig.AudioCodec Audio codec to be used  
enum SkylinkConfig.AudioVideoConfig List of enums that specify an audio video setting. 
Fields
public static int MAX_VIDEO_FPS
public static int MAX_VIDEO_HEIGHT
public static int MAX_VIDEO_WIDTH
Public Constructors
SkylinkConfig()
Creates a new SkylinkConfig object.
SkylinkConfig(SkylinkConfig config)
Creates a new SkylinkConfig (Copy constructor).
Public Methods
Map<StringObject> getAdvancedOptions()
SkylinkConfig.AudioCodec getPreferredAudioCodec()
int getTimeout()
String getTransport()
int getVideoFps()
int getVideoHeight()
int getVideoWidth()
boolean hasAudioReceive()
boolean hasAudioSend()
boolean hasDataTransfer()
boolean hasFileTransfer()
boolean hasPeerMessaging()
boolean hasVideoReceive()
boolean hasVideoSend()
boolean isStereoAudio()
boolean isStunDisabled()
boolean isTurnDisabled()
void setAdvancedOptions(Map<StringObject> advancedOptions)
Sets advanced options.
void setAudioVideoReceiveConfig(SkylinkConfig.AudioVideoConfig audioVideoConfig)
Sets the audio video receive flag to the indicated boolean value.
void setAudioVideoSendConfig(SkylinkConfig.AudioVideoConfig audioVideoConfig)
Sets the audio video send and receive flag to the indicated boolean value.
void setHasDataTransfer(boolean dataTransfer)
Sets if dataTransfer is enabled.
void setHasFileTransfer(boolean fileTransfer)
Sets the fileTransfer is enabled.
void setHasPeerMessaging(boolean peerMessaging)
Sets if peerMessaging is enabled.
void setPreferredAudioCodec(SkylinkConfig.AudioCodec preferredAudioCodec)
Sets the preferredAudioCodec.
void setStereoAudio(boolean stereoAudio)
Sets if stereo audio is enabled.
void setTimeout(int timeout)
Sets the timeout value (in seconds) for various operations in the SDK, for e.g.
void setVideoFps(int videoFPS)
Sets the video FPS
void setVideoHeight(int videoHeight)
Sets the video height.
void setVideoWidth(int videoWidth)
Sets the video width
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static int MAX_VIDEO_FPS

public static int MAX_VIDEO_HEIGHT

public static int MAX_VIDEO_WIDTH

Public Constructors

public SkylinkConfig ()

Creates a new SkylinkConfig object.

public SkylinkConfig (SkylinkConfig config)

Creates a new SkylinkConfig (Copy constructor).

Parameters
config Configuration object with settings to copy from.

Public Methods

public Map<StringObject> getAdvancedOptions ()

Returns
  • Map of Advanced Options.

public SkylinkConfig.AudioCodec getPreferredAudioCodec ()

Returns

public int getTimeout ()

Returns
  • Timeout config value.

public String getTransport ()

Returns
  • transport used. Possible values are "UDP" or "TCP"

public int getVideoFps ()

Returns
  • the video FPS

public int getVideoHeight ()

Returns
  • the video height

public int getVideoWidth ()

Returns
  • the video width

public boolean hasAudioReceive ()

Returns
  • true if receiving remote peer's audio stream is enabled

public boolean hasAudioSend ()

Returns
  • true if sending user's audio stream is enabled

public boolean hasDataTransfer ()

Returns
  • DataTransfer config value.

public boolean hasFileTransfer ()

Returns
  • FileTransfer config value.

public boolean hasPeerMessaging ()

Returns
  • PeerMessaging config value.

public boolean hasVideoReceive ()

Returns
  • true if receiving remote peer's video stream is enabled

public boolean hasVideoSend ()

Returns
  • true if sending user's video stream is enabled

public boolean isStereoAudio ()

Returns
  • true if stereo audio is used

public boolean isStunDisabled ()

Returns
  • STUN is enabled or not

public boolean isTurnDisabled ()

Returns
  • TURN is enabled or not

public void setAdvancedOptions (Map<StringObject> advancedOptions)

Sets advanced options. (For advanced users only).

Parameters
advancedOptions A map containing optional entries as follows: "STUN":"boolean" or "STUN",boolean "TURN":"boolean", or "TURN":boolean "transport":"UDP" or "transport":"TCP"

public void setAudioVideoReceiveConfig (SkylinkConfig.AudioVideoConfig audioVideoConfig)

Sets the audio video receive flag to the indicated boolean value.

Parameters
audioVideoConfig Audio video receive config value

public void setAudioVideoSendConfig (SkylinkConfig.AudioVideoConfig audioVideoConfig)

Sets the audio video send and receive flag to the indicated boolean value.

Parameters
audioVideoConfig Audio video send config value

public void setHasDataTransfer (boolean dataTransfer)

Sets if dataTransfer is enabled.

Parameters
dataTransfer DataTransfer config value

public void setHasFileTransfer (boolean fileTransfer)

Sets the fileTransfer is enabled.

Parameters
fileTransfer FileTransfer config value

public void setHasPeerMessaging (boolean peerMessaging)

Sets if peerMessaging is enabled.

Parameters
peerMessaging PeerMessaging config value

public void setPreferredAudioCodec (SkylinkConfig.AudioCodec preferredAudioCodec)

Sets the preferredAudioCodec. Possible values SkylinkConfig.AudioCodec

public void setStereoAudio (boolean stereoAudio)

Sets if stereo audio is enabled.

Parameters
stereoAudio configuration value

public void setTimeout (int timeout)

Sets the timeout value (in seconds) for various operations in the SDK, for e.g. file transfer waiting time for remote peer's response.

Parameters
timeout Timeout config value

public void setVideoFps (int videoFPS)

Sets the video FPS

public void setVideoHeight (int videoHeight)

Sets the video height.

public void setVideoWidth (int videoWidth)

Sets the video width

public String toString ()