Suggestions

close search

StringeeVideoTrack

public class StringeeVideoTrack
extends Object



Represents a Stringee video track.



Summary


Nested classes
public enum StringeeVideoTrack.MediaState

State of video track media.

public enum StringeeVideoTrack.TrackType

Type of track.

public static class StringeeVideoTrack.Options

Represents a video track options.

public interface StringeeVideoTrack.Listener

Monitors the video track media states.

Public Constructors
StringeeVideoTrack()

Construct a new StringeeVideoTrack.

Public methods
String getId()

Return track id.

boolean audioEnabled()

Check whether the video track audio is enable.

boolean videoEnabled()

Check whether the video track video is enable.

boolean isScreenCapture()

Check whether the video track is screen capture.

boolean isLocal()

Check whether the video track is local track.

String getUserId()

Return user id.

String getRoomId()

Return room id.

StringeeVideoTrack.TrackType getTrackType()

Return track type.

org.webrtc.SurfaceViewRenderer getView(Context context)

Return track view.

void switchCamera(StatusListener listener)

Switch camera.

void setListener(StringeeVideoTrack.Listener listener)

Sets a StringeeVideoTrack.Listener object to monitor the video track media states.

void mute(boolean mute)

Mute/unmute audio.

void enableVideo(boolean enable)

Enable/disable track video.

void release()

Release track.

void renderView(boolean isOverlay)

Display track's video.


Public constructors


StringeeVideoTrack

StringeeVideoTrack()

Construct a new StringeeVideoTrack.

Public methods


getId

String getId()

Return track id.



audioEnabled

boolean audioEnabled()

Check whether the video track audio is enable.



videoEnabled

boolean videoEnabled()

Check whether the video track video is enable.



isScreenCapture

boolean isScreenCapture()

Check whether the video track video is screen capture.



isLocal

boolean isLocal()

Check whether the video track video is local track.



getUserId

String getUserId()

Return user id.



getRoomId

String getRoomId()

Return room id.



getTrackType

StringeeVideoTrack.TrackType getTrackType()

Return track type.



getView

org.webrtc.SurfaceViewRenderer getView(Context context)

Return track view.

Parameters
context

The Context instance.



switchCamera

void switchCamera(StatusListener listener)

Switch camera.

Parameters
listener

The StatusListener instance.



setListener

void setListener(StringeeVideoTrack.Listener listener)

Sets a StringeeVideoTrack.Listener object to monitor the video track media states.

Parameters
listener

The StringeeVideoTrack.Listener instance.



mute

void mute(boolean mute)

Mute/unmute audio.

Parameters
mute

True is mute, false is unmute.



enableVideo

void enableVideo(boolean enable)

Enable/disable track video.

Parameters
enable

True is enable, false is disable.



release

void release()

Release track.



renderView

void renderView(boolean isOverlay)

Display track's video.

Parameters
isOverlay

Control whether the video is placed on top of another regular surface view in the window.