Skip to content

Commit 77ed1c6

Browse files
Merge pull request #127721 from tayaras/patch-4
Enhance documentation on optimal video count changes
2 parents 4f9215e + ac27755 commit 77ed1c6

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

articles/communication-services/quickstarts/voice-video-calling/optimizing-video-placement.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,29 @@ When there's a change in the optimal video count value, if the result indicates
8282

8383
Conversely, if the optimal count decreases and is [less than the current number of videos on the page](../../resources/troubleshooting/voice-video-calling/video-issues/reaching-max-number-of-active-video-subscriptions.md), consider disposing of a video using the dispose method and updating the application layout accordingly.
8484

85+
#### Optimal video count changed reason
86+
87+
When the SDK adjusts the number of rendered video streams, developers can see why the change occurred. The `optimalVideoCountChanged` event includes a `reason` property, helping you adapt UI and troubleshoot quality issues.
88+
89+
Supported reasons:
90+
- Bandwidth – Network limitations
91+
- Performance – Device constraints
92+
93+
Examples:
94+
```javascript
95+
const ovcFeature = this.call.feature(Features.OptimalVideoCount);
96+
97+
// Shows the optimalVideoCount value
98+
console.log(ovcFeature.optimalVideoCount);
99+
100+
// shows the last reason for a change
101+
console.log(ovcFeature.lastOvcChangeReason);
102+
103+
// listener for getting updates on changes
104+
ovcFeature.on('optimalVideoCountChanged', () => {});
105+
```
106+
107+
85108
### Things to consider when adding a 1080p or 720p video to a page.
86109

87110
- You can place one 1080p incoming video with the rest smaller than 720p.
@@ -193,6 +216,7 @@ The following table illustrates how video resolution changes based on the number
193216
> [!NOTE]
194217
> The public preview 1.37.1-beta.1 and greater of the calling WebJS SDK currently supports up to **25** incoming video streams for desktop browsers (5x5 grid).
195218
219+
196220
## Conclusion
197221

198222
To determine how many videos to place on a web page, you need to carefully consider resolution, device type, bandwidth, and user experience. Follow these guidelines and best practices to create web apps that not only look appealing but also function seamlessly, providing an optimal viewing experience for users across various devices and connection speeds.

0 commit comments

Comments
 (0)