You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing
23
+
### Start spotlight for participants
24
+
25
+
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing
26
+
27
+
You need a list of participant identifiers to use this feature.
46
28
47
-
To use this feature, a list of participants identifiers is required
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing
65
47
66
-
To use this feature, a list of participants identifiers is required
48
+
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing.
49
+
50
+
You need a list of participants identifiers to use this feature.
All pinned participants can be unpinned using this API. Only MicrosoftTeamsUserIdentifier users who have an organizer, co-organizer or presenter role can unpin all participants.
69
+
70
+
All pinned participants can be unpinned using this operation. Only `MicrosoftTeamsUserIdentifier` users who have an organizer, co-organizer, or presenter role can unpin all participants.
71
+
83
72
```java
84
73
spotlightCallFeature.stopAllSpotlight();
85
74
```
86
75
87
76
### Handle changed states
88
-
The `Spotlight` API allows you to subscribe to `SpotlightChanged` events. A `SpotlightChanged` event comes from a `call` instance and contains information about newly spotlighted participants and participants whose spotlight were stopped
77
+
78
+
Spotlight mode enables you to subscribe to `SpotlightChanged` events. A `SpotlightChanged` event comes from a call instance and contains information about newly spotlighted participants and participants whose spotlight stopped. The returned array `SpotlightedParticipant` is sorted by the order the participants were spotlighted.
79
+
80
+
To get information about all participants with spotlight state changes on the current call, use the following code.
To get information about all participants that have spotlight state on current call, you can use the following API. The returned array is sorted by the order the participants were spotlighted.
102
+
### Get all spotlighted participants
103
+
104
+
To get information about all participants that have spotlight state on current call, use the following operation. The returned array is sorted by the order the participants were spotlighted.
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing
24
+
### Start spotlight for participants
25
+
26
+
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing
48
27
49
-
To use this feature, a list of participants identifiers is required
28
+
You need a list of participant identifiers to use this feature.
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing
64
42
65
-
To use this feature, a list of participants identifiers is required
43
+
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing.
44
+
45
+
You need a list of participants identifiers to use this feature.
All pinned participants can be unpinned using this API. Only MicrosoftTeamsUserIdentifier users who have an organizer, co-organizer or presenter role can unpin all participants.
59
+
60
+
All pinned participants can be unpinned using this operation. Only `MicrosoftTeamsUserIdentifier` users who have an organizer, co-organizer, or presenter role can unpin all participants.
61
+
79
62
```swift
80
63
spotlightFeature.stopAllSpotlight(completionHandler: { (error) in
81
64
iflet error = error {
@@ -85,7 +68,11 @@ spotlightFeature.stopAllSpotlight(completionHandler: { (error) in
85
68
```
86
69
87
70
### Handle changed states
88
-
The `Spotlight` API allows you to subscribe to `SpotlightChanged` events. A `SpotlightChanged` event comes from a `call` instance and contains information about newly spotlighted participants and participants whose spotlight were stopped
71
+
72
+
Spotlight mode enables you to subscribe to `SpotlightChanged` events. A `SpotlightChanged` event comes from a call instance and contains information about newly spotlighted participants and participants whose spotlight stopped. The returned array `SpotlightedParticipant` is sorted by the order the participants were spotlighted.
73
+
74
+
To get information about all participants with spotlight state changes on the current call, use the following code.
@@ -107,17 +94,20 @@ public class SpotlightDelegate: SpotlightCallFeatureDelegate {
107
94
}
108
95
```
109
96
110
-
### Get all spotlighted participants:
111
-
To get information about all participants that have spotlight state on current call, you can use the following API. The returned array is sorted by the order the participants were spotlighted.
97
+
### Get all spotlighted participants
98
+
99
+
To get information about all participants that have spotlight state on the current call, use the following operation. The returned array is sorted by the order the participants were spotlighted.
112
100
113
101
```swift
114
102
spotlightCallFeature.spotlightedParticipants.forEach { participant in
115
103
print("Spotlight active for participant: "+ Utilities.toMri(participant.identifier))
116
104
}
117
105
```
118
106
119
-
### Get the maximum supported spotlight:
120
-
The following API can be used to get the maximum number of participants that can be spotlighted using the Calling SDK
107
+
### Get the maximum supported spotlight participants
108
+
109
+
Use the following operation to get the maximum number of participants that can be spotlighted using the Calling SDK.
To pin the video of the current/local participant, use the following code. This action is idempotent, trying to start spotlight on a pinned participant does nothing
23
+
### Start spotlight for current participant
24
+
25
+
To pin the video of the current/local participant, use the following code. This action is idempotent, trying to start spotlight on a pinned participant does nothing.
26
+
24
27
```js
25
28
spotLightFeature.startSpotlight();
26
29
```
27
30
28
31
### Spotlight specific participants
29
-
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing
32
+
33
+
Any participant in the call or meeting can be pinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can start spotlight for other participants. This action is idempotent, trying to start spotlight on a pinned participant does nothing.
To unpin the video of the current/local participant, use the following code. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing
42
+
### Stop spotlight for current participant
43
+
44
+
To unpin the video of the current/local participant, use the following code. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing.
45
+
39
46
```js
40
47
spotLightFeature.stopSpotlight();
41
48
```
42
49
50
+
### Remove spotlight from participants
43
51
52
+
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing.
53
+
54
+
You need a list of participants identifiers to use this feature.
44
55
45
-
### Remove spotlight from participants
46
-
Any pinned participant in the call or meeting can be unpinned. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can unpin other participants. This action is idempotent, trying to stop spotlight on an unpinned participant does nothing
All pinned participants can be unpinned using this API. Only Microsoft 365 users who have an organizer, co-organizer, or presenter role can unpin all participants.
64
+
65
+
All pinned participants can be unpinned using this operation. Only `MicrosoftTeamsUserIdentifier` users who have an organizer, co-organizer, or presenter role can unpin all participants.
66
+
56
67
```js
57
68
spotLightFeature.stopAllSpotLight();
58
69
```
59
70
71
+
### Handle changed states
60
72
73
+
Spotlight mode enables you to subscribe to `SpotlightChanged` events. A `SpotlightChanged` event comes from a call instance and contains information about newly spotlighted participants and participants whose spotlight stopped. The returned array `SpotlightedParticipant` is sorted by the order the participants were spotlighted.
74
+
75
+
To get information about all participants with spotlight state changes on the current call, use the following code.
61
76
62
-
### Handle changed states
63
-
The `Spotlight` API allows you to subscribe to `spotlightChanged` events. A `spotlightChanged` event comes from a `call` instance and contains information about newly spotlighted participants and participants whose spotlight were stopped
### Get List of all participants currently spotlighted
83
-
To get information about all participants that are spotlighted on the current call, use the following API call. It returns an array of SpotlightedParticipant
98
+
99
+
To get information about all participants that have spotlight state on current call, use the following operation. The returned array `SpotlightedParticipant` is sorted by the order the participants were spotlighted.
100
+
84
101
```js
85
102
let spotlightedParticipants =spotLightFeature.getSpotlightedParticipants();
86
103
```
87
-
### Get the maximum supported spotlight:
88
-
The following API can be used to get the maximum number of participants that can be spotlighted using the Calling SDK
104
+
105
+
### Get the maximum supported spotlight participants
106
+
107
+
Use the following operation to get the maximum number of participants that can be spotlighted using the Calling SDK.
108
+
89
109
```js
90
110
spotLightFeature.maxParticipantsToSpotlight;
91
111
```
92
-
93
-
## Troubleshooting
94
-
|code| Subcode | Result Category | Reason | Resolution |
|400 | 45900 | ExpectedError | All provided participant IDs are already spotlighted | Only participants who aren't currently spotlighted can be spotlighted |
97
-
|400 | 45902 | ExpectedError | The maximum number of participants that can be spotlighted has been reached | Only seven participants can be in the spotlight state at any given time |
98
-
|403 | 45903 | ExpectedError | Only participants with the roles of organizer, co-organizer, or presenter can initiate a spotlight | Ensure the participant calling the `startSpotlight` API has assigned role of organizer, co-organizer or presenter |
0 commit comments