devamb 123
devamb 123

Reputation: 43

Is it possible to catch the change in resolution of streaming video of webRTC?

we are doing a project on webRTC,and we have some requirement which need us to catch the event when the resolution of streaming video(remote stream) changes in WEB RTC is there any possible way by which we can achieve this??

thanks in Advance for your help

Upvotes: 3

Views: 3587

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17350

the <video> elements onresize function is called and you can check the .videoWidth and .videoHeight properties.

See this demo and the source in lines 36-38.

Upvotes: 3

Related Questions