Skip to content

Commit 451b2ca

Browse files
Implement PR suggestion manage-video-web.md
1 parent 71a3e01 commit 451b2ca

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ To stop local video while on a call, pass the `localVideoStream` instance that's
213213
await call.stopVideo(localVideoStream);
214214
```
215215

216-
You can switch to a different camera device while having an active LocalVideoStream by invoking `switchSource` on that `LocalVideoStream` instance:
216+
You can switch to a different camera device while having an active LocalVideoStream by invoking `switchSource` on that `LocalVideoStream` instance::
217217

218218
```js
219219
const cameras = await callClient.getDeviceManager().getCameras();
220220
const camera = cameras[1];
221221
localVideoStream.switchSource(camera);
222222
```
223223

224-
If the specified video device is being used by another process, or if it isn't enabled in the system:
224+
If the specified video device isn't available:
225225
- While in a call, if your video is off and you start video using `call.startVideo()`, this method throws a `SourceUnavailableError` and `cameraStartFailed` user facing diagnostic is set to true.
226226
- A call to the `localVideoStream.switchSource()` method causes `cameraStartFailed` to be set to true.
227227
Our Call Diagnostics guide provides additional information on how to diagnose call related issues.
@@ -289,9 +289,8 @@ call.off('isScreenSharingOnChanged', () => {
289289
Local screen share preview is in public preview and available as part of version 1.15.1-beta.1+.
290290

291291
### Local screen share preview
292+
You can use a `VideoStreamRenderer` to begin rendering streams from your local screen share so you can see what you are sending as a screen sharing stream.
292293

293-
You can use a `VideoStreamRenderer` to begin rendering streams from your local screen share so you can see
294-
what you are sending as a screen sharing stream.
295294
```js
296295
// To start viewing local screen share preview
297296
await call.startScreenSharing();
@@ -334,8 +333,8 @@ After that happens, create a new instance of `VideoStreamRenderer`, and then cre
334333
instance by using the asynchronous `createView` method.
335334
You can then attach `view.target` to any UI element.
336335

337-
Whenever the availability of a remote stream changes, you can destroy the whole `VideoStreamRenderer` or
338-
a specific `VideoStreamRendererView`. If you decide to keep them, then the view displays a blank video frame.
336+
Whenever the availability of a remote stream changes, you can destroy the whole `VideoStreamRenderer` or a specific `VideoStreamRendererView`.
337+
If you decide to keep them, then the view displays a blank video frame.
339338

340339
```js
341340
// Reference to the html's div where we would display a grid of all remote video stream from all participants.

0 commit comments

Comments
 (0)