Skip to content

Commit 0d17df1

Browse files
authored
Update dominant-speaker-web.md
The code was still using the old api function which has been renamed to feature. Also, we already have the CallDominantSpeakers feature object, so we can use it directly without get the feature again
1 parent 531b624 commit 0d17df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/communication-services/how-tos/calling-sdk/includes/dominant-speaker/dominant-speaker-web.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const dominantSpeakersChangedHandler = () => {
3333
// Get the most up to date list of dominant speakers
3434
let dominantSpeakers = callDominantSpeakersApi.dominantSpeakers;
3535
};
36-
callDominantSpeakersApi.api(Features.CallDominantSpeakers).on('dominantSpeakersChanged', dominantSpeakersChangedHandler);
36+
callDominantSpeakersApi.on('dominantSpeakersChanged', dominantSpeakersChangedHandler);
3737
```
3838
#### Handle the Dominant Speaker's video streams
3939

0 commit comments

Comments
 (0)