public static interface MediaStream.Handler
Modifier and Type | Method and Description |
---|---|
void |
onVideoRatioChange(String peer_id,
MediaStream mediaStream,
float ratio)
Called when the video ratio change.
|
void |
onVideoReady(String peer_id,
MediaStream mediaStream)
Called when first video frame is received.
|
void |
onVideoSizeChange(String peer_id,
MediaStream mediaStream,
int width,
int height)
Called when the video size has changed.
|
void onVideoRatioChange(String peer_id, MediaStream mediaStream, float ratio)
peer_id
- (String) The id of the peermediaStream
- The media streamratio
- (float) the ratio of the videovoid onVideoSizeChange(String peer_id, MediaStream mediaStream, int width, int height)
peer_id
- (String) The id of the peermediaStream
- The media streamwidth
- (int) video widthheight
- (int) video heightvoid onVideoReady(String peer_id, MediaStream mediaStream)
peer_id
- (String) The id of the peermediaStream
- The media streamCopyright © 2017. All rights reserved.