Skip to content

Commit 9d7b74b

Browse files
authored
Merge pull request #270204 from Venkateshdodda-MSFT/patch-72
(AzureCXP) fixes MicrosoftDocs/azure-docs#120860
2 parents 9c7719e + dd06ace commit 9d7b74b

File tree

1 file changed

+4
-4
lines changed
  • articles/communication-services/how-tos/calling-sdk/includes/raise-hand

1 file changed

+4
-4
lines changed

articles/communication-services/how-tos/calling-sdk/includes/raise-hand/raise-hand-web.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ const raisedHandChangedHandler = (event) => {
6060
const loweredHandChangedHandler = (event) => {
6161
console.log(`Participant ${event.identifier} lowered hand`);
6262
};
63-
raiseHandFeature.on('raisedHandChanged', raisedHandChangedHandler):
64-
raiseHandFeature.on('loweredHandChanged', loweredHandChangedHandler):
63+
raiseHandFeature.on('raisedHandEvent', raisedHandChangedHandler):
64+
raiseHandFeature.on('loweredHandEvent', loweredHandChangedHandler):
6565
```
6666
The `raisedHandChanged` and `loweredHandChanged` events contain an object with the `identifier` property, which represents the participant's communication identifier. In the example above, we log a message to the console indicating that a participant has raised their hand.
6767

6868
To unsubscribe from the events, you can use the `off` method.
6969

7070
### List of all participants with active state
71-
To get information about all participants that have raised hand state on current call, you can use the `getRaisedHands` api. he returned array is sorted by the order field.
71+
To get information about all participants that have raised hand state on current call, you can use the `getRaisedHands` api. The returned array is sorted by the order field.
7272
Here's an example of how to use the `getRaisedHands` API:
7373
```js
7474
const raiseHandFeature = call.feature(Features.RaiseHand );
@@ -79,4 +79,4 @@ let participantsWithRaisedHands = raiseHandFeature.getRaisedHands();
7979
The `participantsWithRaisedHands` variable will contain an array of participant objects, where each object has the following properties:
8080
`identifier`: the communication identifier of the participant
8181
`order`: the order in which the participant raised their hand
82-
You can use this information to display a list of participants with the Raise Hand state and their order in the queue.
82+
You can use this information to display a list of participants with the Raise Hand state and their order in the queue.

0 commit comments

Comments
 (0)