public interface

MediaListener

sg.com.temasys.skylink.sdk.listener.MediaListener

Class Overview

Listener comprises of callbacks related to audio / video manipulation during the call.

Summary

Public Methods
abstract void onLocalMediaCapture(GLSurfaceView videoView, Point size)
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.
abstract void onRemotePeerAudioToggle(String remotePeerId, boolean isMuted)
This is triggered when a remote peer enable / disable its audio.
abstract void onRemotePeerMediaReceive(String remotePeerId, GLSurfaceView videoView, Point size)
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.
abstract void onRemotePeerVideoToggle(String remotePeerId, boolean isMuted)
This is triggered when a peer enable / disable its video.
abstract void onVideoSizeChange(GLSurfaceView videoView, Point size)
This is triggered when any of the given video streams' frame size changes.

Public Methods

public abstract void onLocalMediaCapture (GLSurfaceView videoView, Point size)

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
size Size of the video frame

public abstract 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 abstract void onRemotePeerMediaReceive (String remotePeerId, GLSurfaceView videoView, Point size)

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
size Size of the peer video frame

public abstract 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 abstract void onVideoSizeChange (GLSurfaceView videoView, Point size)

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

Parameters
videoView The video view for which the frame size is changed
size Size of the video frame