@microsoft/teams-js 2.0.0-beta.3-dev.103 → 2.0.0-beta.3-dev.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/MicrosoftTeams.d.ts
CHANGED
|
@@ -3427,7 +3427,7 @@ export namespace media {
|
|
|
3427
3427
|
*/
|
|
3428
3428
|
abstract class MediaController<T> {
|
|
3429
3429
|
protected controllerCallback: T;
|
|
3430
|
-
constructor(controllerCallback
|
|
3430
|
+
constructor(controllerCallback: T);
|
|
3431
3431
|
protected abstract getMediaType(): MediaType;
|
|
3432
3432
|
/**
|
|
3433
3433
|
* @hidden
|
|
@@ -3482,7 +3482,8 @@ export namespace media {
|
|
|
3482
3482
|
* Callback which will register your app to listen to lifecycle events during the video capture flow
|
|
3483
3483
|
*/
|
|
3484
3484
|
export interface VideoControllerCallback {
|
|
3485
|
-
onRecordingStarted
|
|
3485
|
+
onRecordingStarted(): void;
|
|
3486
|
+
onRecordingStopped?(): void;
|
|
3486
3487
|
}
|
|
3487
3488
|
/**
|
|
3488
3489
|
* VideoController class is used to communicate between the app and the host client during the video capture flow
|
|
@@ -3497,7 +3498,7 @@ export namespace media {
|
|
|
3497
3498
|
* --------
|
|
3498
3499
|
* Events which are used to communicate between the app and the host client during the media recording flow
|
|
3499
3500
|
*/
|
|
3500
|
-
enum MediaControllerEvent {
|
|
3501
|
+
export enum MediaControllerEvent {
|
|
3501
3502
|
StartRecording = 1,
|
|
3502
3503
|
StopRecording = 2
|
|
3503
3504
|
}
|
package/dist/MicrosoftTeams.js
CHANGED
|
@@ -1120,7 +1120,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
|
|
1122
1122
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
|
1123
|
-
var version = "2.0.0-beta.3-dev.
|
|
1123
|
+
var version = "2.0.0-beta.3-dev.104";
|
|
1124
1124
|
/**
|
|
1125
1125
|
* @hidden
|
|
1126
1126
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
|
@@ -4234,7 +4234,7 @@ var appInstallDialog;
|
|
|
4234
4234
|
return new Promise(function (resolve) {
|
|
4235
4235
|
ensureInitialized(FrameContexts.content, FrameContexts.sidePanel, FrameContexts.settings, FrameContexts.task, FrameContexts.stage, FrameContexts.meetingStage);
|
|
4236
4236
|
if (!isSupported()) {
|
|
4237
|
-
throw 'Not supported';
|
|
4237
|
+
throw new Error('Not supported');
|
|
4238
4238
|
}
|
|
4239
4239
|
sendMessageToParent('appInstallDialog.openAppInstallDialog', [openAPPInstallDialogParams]);
|
|
4240
4240
|
resolve();
|
|
@@ -4830,16 +4830,14 @@ var media;
|
|
|
4830
4830
|
return MediaType.Video;
|
|
4831
4831
|
};
|
|
4832
4832
|
VideoController.prototype.notifyEventToApp = function (mediaEvent) {
|
|
4833
|
-
if (!this.controllerCallback) {
|
|
4834
|
-
// Early return as app has not registered with the callback
|
|
4835
|
-
return;
|
|
4836
|
-
}
|
|
4837
4833
|
switch (mediaEvent) {
|
|
4838
4834
|
case MediaControllerEvent.StartRecording:
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4835
|
+
this.controllerCallback.onRecordingStarted();
|
|
4836
|
+
break;
|
|
4837
|
+
// TODO - Should discuss whether this function should be required
|
|
4838
|
+
case MediaControllerEvent.StopRecording:
|
|
4839
|
+
this.controllerCallback.onRecordingStopped && this.controllerCallback.onRecordingStopped();
|
|
4840
|
+
break;
|
|
4843
4841
|
}
|
|
4844
4842
|
};
|
|
4845
4843
|
return VideoController;
|
|
@@ -4855,7 +4853,7 @@ var media;
|
|
|
4855
4853
|
(function (MediaControllerEvent) {
|
|
4856
4854
|
MediaControllerEvent[MediaControllerEvent["StartRecording"] = 1] = "StartRecording";
|
|
4857
4855
|
MediaControllerEvent[MediaControllerEvent["StopRecording"] = 2] = "StopRecording";
|
|
4858
|
-
})(MediaControllerEvent || (MediaControllerEvent = {}));
|
|
4856
|
+
})(MediaControllerEvent = media.MediaControllerEvent || (media.MediaControllerEvent = {}));
|
|
4859
4857
|
/**
|
|
4860
4858
|
* The modes in which camera can be launched in select Media API
|
|
4861
4859
|
*/
|
|
@@ -5322,7 +5320,7 @@ var calendar;
|
|
|
5322
5320
|
return new Promise(function (resolve) {
|
|
5323
5321
|
ensureInitialized(FrameContexts.content);
|
|
5324
5322
|
if (!isSupported()) {
|
|
5325
|
-
throw 'Not
|
|
5323
|
+
throw new Error('Not supported');
|
|
5326
5324
|
}
|
|
5327
5325
|
if (!openCalendarItemParams.itemId || !openCalendarItemParams.itemId.trim()) {
|
|
5328
5326
|
throw new Error('Must supply an itemId to openCalendarItem');
|
|
@@ -5335,7 +5333,7 @@ var calendar;
|
|
|
5335
5333
|
return new Promise(function (resolve) {
|
|
5336
5334
|
ensureInitialized(FrameContexts.content);
|
|
5337
5335
|
if (!isSupported()) {
|
|
5338
|
-
throw 'Not
|
|
5336
|
+
throw new Error('Not supported');
|
|
5339
5337
|
}
|
|
5340
5338
|
resolve(sendAndHandleStatusAndReason('calendar.composeMeeting', composeMeetingParams));
|
|
5341
5339
|
});
|
|
@@ -5361,7 +5359,7 @@ var mail;
|
|
|
5361
5359
|
return new Promise(function (resolve) {
|
|
5362
5360
|
ensureInitialized(FrameContexts.content);
|
|
5363
5361
|
if (!isSupported()) {
|
|
5364
|
-
throw 'Not
|
|
5362
|
+
throw new Error('Not supported');
|
|
5365
5363
|
}
|
|
5366
5364
|
if (!openMailItemParams.itemId || !openMailItemParams.itemId.trim()) {
|
|
5367
5365
|
throw new Error('Must supply an itemId to openMailItem');
|
|
@@ -5374,7 +5372,7 @@ var mail;
|
|
|
5374
5372
|
return new Promise(function (resolve) {
|
|
5375
5373
|
ensureInitialized(FrameContexts.content);
|
|
5376
5374
|
if (!isSupported()) {
|
|
5377
|
-
throw 'Not
|
|
5375
|
+
throw new Error('Not supported');
|
|
5378
5376
|
}
|
|
5379
5377
|
resolve(sendAndHandleStatusAndReason('mail.composeMail', composeMailParams));
|
|
5380
5378
|
});
|
|
@@ -5653,7 +5651,7 @@ var call;
|
|
|
5653
5651
|
return new Promise(function (resolve) {
|
|
5654
5652
|
ensureInitialized(FrameContexts.content);
|
|
5655
5653
|
if (!isSupported()) {
|
|
5656
|
-
throw 'Not supported';
|
|
5654
|
+
throw new Error('Not supported');
|
|
5657
5655
|
}
|
|
5658
5656
|
return sendMessageToParent('call.startCall', [startCallParams], resolve);
|
|
5659
5657
|
});
|