public interface MediaStream
Modifier and Type | Interface and Description |
---|---|
static interface |
MediaStream.Handler
MediaStream handler.
|
Modifier and Type | Method and Description |
---|---|
String |
getPeerId()
Get peer identifier of this MediaStream
|
android.view.SurfaceView |
getRender()
Return the surface view used to render the media stream video.
|
float |
getVideoRatio()
Return the ratio of the video ( width / height ).
|
boolean |
hasAudio()
Test if this media stream has audio.
|
boolean |
hasVideo()
Test if this media stream has video.
|
boolean |
isAudioMute()
Check if audio of this stream is muted or not.
|
boolean |
isVideoMute()
Check if video of this stream is muted or not.
|
void |
muteAudio(boolean mute)
Mute audio of this stream (if any).
|
void |
muteVideo(boolean mute)
Mute video of this stream (if any).
|
void |
setHandler(MediaStream.Handler handler)
Set an handle for this media stream.
|
void setHandler(MediaStream.Handler handler)
handler
- (MediaStream.Handler) media stream handler
// Usage
mediaStream.setHandler( handler );
android.view.SurfaceView getRender()
// Usage
SurfaceView surface = mediaStream.getRender();
boolean hasVideo()
// Usage
if ( mediaStream.hasVideo() ) { ... }
boolean hasAudio()
// Usage
if ( mediaStream.hasAudio() ) { ... }
float getVideoRatio()
// Usage
float ratio = mediaStream.getVideoRatio();
void muteAudio(boolean mute)
// Usage
float ratio = mediaStream.muteAudio(true);
mute
- (boolean) Set it to true to mute the audiovoid muteVideo(boolean mute)
// Usage
float ratio = mediaStream.muteVideo(true);
mute
- (boolean) Set it to true to mute the videoboolean isAudioMute()
// Usage
boolean audioMuteStatus = mediaStream.isAudioMute();
boolean isVideoMute()
// Usage
boolean videoMuteStatus = mediaStream.isVideoMute();
String getPeerId()
// Usage
String peerId = mediaStream.getPeerId();
Copyright © 2015. All rights reserved.