@microsoft/teams-js 2.0.0-beta.3-dev.82 → 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.
@@ -4016,7 +4016,6 @@ export namespace meeting {
4016
4016
  */
4017
4017
  function registerLiveStreamChangedHandler(handler: (liveStreamState: LiveStreamState) => void): void;
4018
4018
  /**
4019
- * @hidden
4020
4019
  * Allows an app to share contents in the meeting
4021
4020
  *
4022
4021
  * @param appContentUrl - appContentUrl is the input URL which needs to be shared on to the stage
@@ -4024,7 +4023,6 @@ export namespace meeting {
4024
4023
  */
4025
4024
  function shareAppContentToStage(appContentUrl: string): Promise<boolean>;
4026
4025
  /**
4027
- * @hidden
4028
4026
  * @deprecated
4029
4027
  * As of 2.0.0-beta.1, please use {@link meeting.shareAppContentToStage meeting.shareAppContentToStage(appContentUrl: string): Promise\<boolean\>} instead.
4030
4028
  *
@@ -4037,14 +4035,12 @@ export namespace meeting {
4037
4035
  */
4038
4036
  function shareAppContentToStage(callback: (error: SdkError | null, result: boolean | null) => void, appContentUrl: string): void;
4039
4037
  /**
4040
- * @hidden
4041
4038
  * Provides information related to app's in-meeting sharing capabilities
4042
4039
  *
4043
4040
  * @returns Promise resolved with sharing capability details or rejected with SdkError value
4044
4041
  */
4045
4042
  function getAppContentStageSharingCapabilities(): Promise<IAppContentStageSharingCapabilities>;
4046
4043
  /**
4047
- * @hidden
4048
4044
  * @deprecated
4049
4045
  * As of 2.0.0-beta.1, please use {@link meeting.getAppContentStageSharingCapabilities meeting.getAppContentStageSharingCapabilities(): Promise\<IAppContentStageSharingCapabilities\>} instead.
4050
4046
  *
@@ -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.82";
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
- return Promise.resolve()
4802
- .then(function () {
4800
+ try {
4803
4801
  throwExceptionIfMobileApiIsNotSupported(nonFullScreenVideoModeAPISupportVersion);
4804
- })
4805
- .then(function () {
4806
- var params = { mediaType: _this.getMediaType(), mediaControllerEvent: mediaEvent };
4807
- sendMessageToParent('media.controller', [params], function (err) {
4808
- if (callback) {
4809
- callback(err);
4810
- }
4811
- else if (err) {
4812
- throw err;
4813
- }
4814
- });
4815
- })
4816
- .catch(function (err) {
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));
@@ -5197,7 +5190,6 @@ var meeting;
5197
5190
  }
5198
5191
  meeting.registerLiveStreamChangedHandler = registerLiveStreamChangedHandler;
5199
5192
  /**
5200
- * @hidden
5201
5193
  * This function is the overloaded implementation of shareAppContentToStage.
5202
5194
  * Since the method signatures of the v1 callback and v2 promise differ in the type of the first parameter,
5203
5195
  * we need to do an extra check to know the typeof the @param1 to set the proper arguments of the utility function.