public class StringeeVideoTrack
extends Object
Represents a Stringee video track.
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. |
StringeeVideoTrack()
Construct a new StringeeVideoTrack.
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 video is screen capture.
boolean isLocal()
Check whether the video track video 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.
Parameters | |
---|---|
context |
The Context instance. |
void switchCamera(StatusListener listener)
Switch camera.
Parameters | |
---|---|
listener |
The StatusListener instance. |
void setListener(StringeeVideoTrack.Listener listener)
Sets a StringeeVideoTrack.Listener object to monitor the video track media states.
Parameters | |
---|---|
listener |
The StringeeVideoTrack.Listener instance. |
void mute(boolean mute)
Mute/unmute audio.
Parameters | |
---|---|
mute |
True is mute, false is unmute. |
void enableVideo(boolean enable)
Enable/disable track video.
Parameters | |
---|---|
enable |
True is enable, false is disable. |
void release()
Release track.
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. |