MediaStreamDelegate Protocol Reference
| Conforms to | NSObject | 
|---|---|
| Declared in | media_stream.h | 
– onVideoRatioChange:media:
	required method
		Called when the video ratio change. This can happen when a phone is rotate from landscape to portrait.
- (void)onVideoRatioChange:(float)ratio media:(MediaStream *)mediaStreamParameters
| (float) | ratio. Ratio of the video. | 
|---|---|
| (MediaStream). | The media stream. | 
Discussion
Called when the video ratio change. This can happen when a phone is rotate from landscape to portrait.
Declared In
media_stream.h
– onVideoSizeChange:height:media:
	required method
		Called when the video size has changed. This can happen when a phone is rotated from landscape to portrait or when remote peer adapts video size according to available bandwidth.. This is also called on the first received frame of the video.
- (void)onVideoSizeChange:(int)width height:(int)height media:(MediaStream *)mediaStreamParameters
| (int) | height. Height of the video. | 
|---|---|
| (MediaStream). | The media stream. | 
Discussion
Called when the video size has changed. This can happen when a phone is rotated from landscape to portrait or when remote peer adapts video size according to available bandwidth.. This is also called on the first received frame of the video.
Declared In
media_stream.h
– onVideoReady:
	required method
		Called when first video frame is received.
- (void)onVideoReady:(MediaStream *)mediaStreamParameters
| (MediaStream). | The media stream. | 
|---|
Discussion
Called when first video frame is received.
Declared In
media_stream.h