public class

MediaAdapter

extends Object
implements MediaListener
java.lang.Object
   ↳ sg.com.temasys.skylink.sdk.adapter.MediaAdapter

Summary

Public Constructors
MediaAdapter()
Public Methods
void onLocalMediaCapture(GLSurfaceView videoView)
This is triggered when the framework successfully captures the camera input from one's device if the connection is configured to have a video call.
void onRemotePeerAudioToggle(String remotePeerId, boolean isMuted)
This is triggered when a remote peer enable / disable its audio.
void onRemotePeerMediaReceive(String remotePeerId, GLSurfaceView videoView)
The is triggered upon receiving the media stream of the remote peer if the connection is configured to have a audio and/or video call.
void onRemotePeerVideoToggle(String remotePeerId, boolean isMuted)
This is triggered when a peer enable / disable its video.
void onVideoSizeChange(String peerId, Point size)
This is triggered when any of the given video streams' frame size changes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sg.com.temasys.skylink.sdk.listener.MediaListener

Public Constructors

public MediaAdapter ()

Public Methods

public void onLocalMediaCapture (GLSurfaceView videoView)

This is triggered when the framework successfully captures the camera input from one's device if the connection is configured to have a video call.

Parameters
videoView Video of oneself

public void onRemotePeerAudioToggle (String remotePeerId, boolean isMuted)

This is triggered when a remote peer enable / disable its audio.

Parameters
remotePeerId The id of the remote peer
isMuted Flag specifying whether the audio is muted or not

public void onRemotePeerMediaReceive (String remotePeerId, GLSurfaceView videoView)

The is triggered upon receiving the media stream of the remote peer if the connection is configured to have a audio and/or video call.

Parameters
remotePeerId The id of the peer
videoView Video of the peer

public void onRemotePeerVideoToggle (String remotePeerId, boolean isMuted)

This is triggered when a peer enable / disable its video.

Parameters
remotePeerId The id of the remote peer
isMuted Flag specifying whether the video is muted or not

public void onVideoSizeChange (String peerId, Point size)

This is triggered when any of the given video streams' frame size changes. It includes the self stream also.

Parameters
peerId The id of the peer. If null, it indicates self stream.
size Size of the video frame