Skip to content

Commit 386bcdc

Browse files
authored
Merge pull request #187380 from cwhil2492/patch-34
Update remotevideostream docs
2 parents 0487ac7 + 1913b57 commit 386bcdc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

articles/communication-services/how-tos/calling-sdk/includes/manage-video/manage-video-web.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ subscribeToRemoteVideoStream = async (remoteVideoStream) => {
194194
if (remoteVideoStream.isAvailable) {
195195
await renderVideo();
196196
}
197+
198+
console.log(`Initial stream size: height: ${remoteVideoStream.size.height}, width: ${remoteVideoStream.size.width}`);
199+
remoteVideoStream.on('sizeChanged', () => {
200+
console.log(`Remote video stream size changed: new height: ${remoteVideoStream.size.height}, new width: ${remoteVideoStream.size.width}`);
201+
});
197202
}
198203
```
199204

@@ -216,7 +221,13 @@ const type: MediaStreamType = remoteVideoStream.mediaStreamType;
216221
- `isAvailable`: Whether a remote participant endpoint is actively sending a stream.
217222

218223
```js
219-
const type: boolean = remoteVideoStream.isAvailable;
224+
const isAvailable: boolean = remoteVideoStream.isAvailable;
225+
```
226+
227+
- `size`: The stream size. The higher the stream size, the better the video quality.
228+
229+
```js
230+
const size: StreamSize = remoteVideoStream.size;
220231
```
221232

222233
## VideoStreamRenderer methods and properties
@@ -248,4 +259,4 @@ You can update `scalingMode` by invoking the `updateScalingMode` method:
248259

249260
```js
250261
view.updateScalingMode('Crop');
251-
```
262+
```

0 commit comments

Comments
 (0)