@microsoft/teams-js 2.0.0-beta.3-dev.85 → 2.0.0-beta.3-dev.86
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.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.86";
|
|
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.
|
|
@@ -4796,29 +4796,22 @@ var media;
|
|
|
4796
4796
|
this.controllerCallback = controllerCallback;
|
|
4797
4797
|
}
|
|
4798
4798
|
MediaController.prototype.notifyEventToHost = function (mediaEvent, callback) {
|
|
4799
|
-
var _this = this;
|
|
4800
4799
|
ensureInitialized(FrameContexts.content, FrameContexts.task);
|
|
4801
|
-
|
|
4802
|
-
.then(function () {
|
|
4800
|
+
try {
|
|
4803
4801
|
throwExceptionIfMobileApiIsNotSupported(nonFullScreenVideoModeAPISupportVersion);
|
|
4804
|
-
}
|
|
4805
|
-
|
|
4806
|
-
var
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
});
|
|
4815
|
-
}
|
|
4816
|
-
|
|
4817
|
-
if (callback) {
|
|
4818
|
-
callback(err);
|
|
4819
|
-
}
|
|
4820
|
-
throw err;
|
|
4821
|
-
});
|
|
4802
|
+
}
|
|
4803
|
+
catch (err) {
|
|
4804
|
+
var wrappedRejectedErrorFn = function () { return Promise.reject(err); };
|
|
4805
|
+
return callCallbackWithSdkErrorFromPromiseAndReturnPromise(wrappedRejectedErrorFn, callback);
|
|
4806
|
+
}
|
|
4807
|
+
var params = {
|
|
4808
|
+
mediaType: this.getMediaType(),
|
|
4809
|
+
mediaControllerEvent: mediaEvent,
|
|
4810
|
+
};
|
|
4811
|
+
var wrappedFunction = function () {
|
|
4812
|
+
return new Promise(function (resolve) { return resolve(sendAndHandleSdkError('media.controller', [params])); });
|
|
4813
|
+
};
|
|
4814
|
+
return callCallbackWithSdkErrorFromPromiseAndReturnPromise(wrappedFunction, callback);
|
|
4822
4815
|
};
|
|
4823
4816
|
MediaController.prototype.stop = function (callback) {
|
|
4824
4817
|
return Promise.resolve(this.notifyEventToHost(MediaControllerEvent.StopRecording, callback));
|