Skip to content

Commit f5c6073

Browse files
Update dominant-speaker-windows.md
1 parent 78db746 commit f5c6073

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,31 @@ ms.author: jsaurezlee
88

99
[!INCLUDE [Install SDK](../install-sdk/install-sdk-windows.md)]
1010

11-
[!INCLUDE [public-preview-notes](../../../../includes/public-preview-include.md)]
12-
1311
[!INCLUDE [common](dominant-speaker-common.md)]
1412

1513
In order to use the Dominant Speakers call feature for Windows, the first step is to obtain the Dominant Speakers feature API object:
1614

1715
```csharp
18-
DominantSpeakersCallFeature dominantSpeakersFeature = (DominantSpeakersCallFeature)call.GetCallFeatureExtension(HandleType.DominantSpeakersCallFeature);
16+
DominantSpeakersCallFeature dominantSpeakersFeature = call.Features.DominantSpeakers;
1917
```
2018

2119
The Dominant Speakers feature object have the following API structure:
2220
- `OnDominantSpeakersChanged`: Event for listening for changes in the dominant speakers list.
2321
- `DominantSpeakersInfo`: Gets the `DominantSpeakersInfo` object. This object has:
2422
- `Speakers`: A list of participant identifiers representing the dominant speakers list.
25-
- `Timestamp`: The date when the dominant speakers list was updated.
23+
- `LastUpdatedAt`: The date when the dominant speakers list was updated.
2624

2725
To subscribe to changes in the dominant speakers list:
2826
```csharp
2927
// Obtain the extended feature object from the call object.
30-
DominantSpeakersFeature dominantSpeakersFeature = (DominantSpeakersCallFeature)call.GetCallFeatureExtension(HandleType.DominantSpeakersCallFeature);
28+
DominantSpeakersFeature dominantSpeakersFeature = call.Features.DominantSpeakers;
3129
// Subscribe to the OnDominantSpeakersChanged event.
3230
dominantSpeakersFeature.OnDominantSpeakersChanged += DominantSpeakersFeature__OnDominantSpeakersChanged;
3331

3432
private void DominantSpeakersFeature__OnDominantSpeakersChanged(object sender, PropertyChangedEventArgs args) {
3533
// When the list changes, get the timestamp of the last change and the current list of Dominant Speakers
3634
DominantSpeakersInfo dominantSpeakersInfo = dominantSpeakersFeature.DominantSpeakersInfo;
37-
DateTimeOffset date = dominantSpeakersInfo.Timestamp;
35+
DateTimeOffset date = dominantSpeakersInfo.LastUpdatedAt;
3836
IReadOnlyList<ICommunicationIdentifier> speakersList = dominantSpeakersInfo.Speakers;
3937
}
4038
```

0 commit comments

Comments
 (0)