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

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

thanks in Advance for your help

+3


source to share


1 answer


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



See this demo and source at lines 36-38 .

+1


source







All Articles