Skip to content

Commit e354387

Browse files
Merge pull request #249393 from chriswhilar/update-video-quickstart
Update video quickstarts
2 parents 7459bac + 886d06b commit e354387

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ subscribeToCall = (call) => {
139139
}
140140
});
141141

142+
call.on('isLocalVideoStartedChanged', () => {
143+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
144+
});
145+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
146+
142147
call.localVideoStreams.forEach(async (lvs) => {
143148
localVideoStream = lvs;
144149
await displayLocalVideoStream();

articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-call-web.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ subscribeToCall = (call) => {
199199
}
200200
});
201201

202+
call.on('isLocalVideoStartedChanged', () => {
203+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
204+
});
205+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
202206
call.localVideoStreams.forEach(async (lvs) => {
203207
localVideoStream = lvs;
204208
await displayLocalVideoStream();

articles/communication-services/quickstarts/voice-video-calling/includes/custom-teams-endpoint/voice-video-calling-cte-javascript.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ subscribeToCall = (call) => {
235235
});
236236
});
237237

238+
call.on('isLocalVideoStartedChanged', () => {
239+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
240+
});
241+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
238242
// Inspect the call's current remote participants and subscribe to them.
239243
call.remoteParticipants.forEach(remoteParticipant => {
240244
subscribeToRemoteParticipant(remoteParticipant);

articles/communication-services/quickstarts/voice-video-calling/includes/teams-auto-attendant/teams-auto-attendant-javascript.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ subscribeToCall = (call) => {
224224
console.log(`Call ended, call end reason={code=${call.callEndReason.code}, subCode=${call.callEndReason.subCode}}`);
225225
}
226226
});
227+
228+
call.on('isLocalVideoStartedChanged', () => {
229+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
230+
});
231+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
227232
call.localVideoStreams.forEach(async (lvs) => {
228233
localVideoStream = lvs;
229234
await displayLocalVideoStream();

articles/communication-services/quickstarts/voice-video-calling/includes/teams-call-queue/teams-call-queue-javascript.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ subscribeToCall = (call) => {
238238
});
239239
});
240240

241+
call.on('isLocalVideoStartedChanged', () => {
242+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
243+
});
244+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
241245
// Inspect the call's current remote participants and subscribe to them.
242246
call.remoteParticipants.forEach(remoteParticipant => {
243247
subscribeToRemoteParticipant(remoteParticipant);

articles/communication-services/quickstarts/voice-video-calling/includes/teams-user/teams-user-javascript.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ subscribeToCall = (call) => {
189189
console.log(`Call ended, call end reason={code=${call.callEndReason.code}, subCode=${call.callEndReason.subCode}}`);
190190
}
191191
});
192+
193+
call.on('isLocalVideoStartedChanged', () => {
194+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
195+
});
196+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
192197
call.localVideoStreams.forEach(async (lvs) => {
193198
localVideoStream = lvs;
194199
await displayLocalVideoStream();

articles/communication-services/quickstarts/voice-video-calling/includes/video-calling/video-calling-javascript.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ subscribeToCall = (call) => {
250250
}
251251
});
252252

253+
call.on('isLocalVideoStartedChanged', () => {
254+
console.log(`isLocalVideoStarted changed: ${call.isLocalVideoStarted}`);
255+
});
256+
console.log(`isLocalVideoStarted: ${call.isLocalVideoStarted}`);
253257
call.localVideoStreams.forEach(async (lvs) => {
254258
localVideoStream = lvs;
255259
await displayLocalVideoStream();

0 commit comments

Comments
 (0)