AgoraIO-Community/AgoraWebSDK-NG

Question: How to get IRemoteVideoTrack's dimensions

Closed this issue · 2 comments

Describe the bug

In console, I found the following
current video dimensions: 640 480

Isn't there a function like IRemoteVideoTrack.getDimensions ?

There may be the information you want in the method client.getRemoteVideoStats()
https://agoraio-community.github.io/AgoraWebSDK-NG/api/en/interfaces/iagorartcclient.html#getremotevideostats

I have been looking for receiveResolutionHeight and receiveResolutionWidth. Thanks!