@microsoft/teams-js 2.19.0-beta.1 → 2.19.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2420,6 +2420,7 @@ export namespace teams {
2420
2420
  * Limited to Microsoft-internal use
2421
2421
  */
2422
2422
  export namespace videoEffectsEx {
2423
+ const frameProcessingTimeoutInMs = 2000;
2423
2424
  /**
2424
2425
  * @hidden
2425
2426
  * Error level when notifying errors to the host, the host will decide what to do acording to the error level.
@@ -2106,9 +2106,6 @@ const versionAndPlatformAgnosticTeamsRuntimeConfig = {
2106
2106
  hostVersionsInfo: teamsMinAdaptiveCardVersion,
2107
2107
  isLegacyTeams: true,
2108
2108
  supports: {
2109
- app: {
2110
- lifecycle: {},
2111
- },
2112
2109
  appInstallDialog: {},
2113
2110
  appEntity: {},
2114
2111
  call: {},
@@ -2382,7 +2379,7 @@ const _minRuntimeConfigToUninitialize = {
2382
2379
  * @hidden
2383
2380
  * Package version.
2384
2381
  */
2385
- const version = "2.19.0-beta.1";
2382
+ const version = "2.19.0-beta.2";
2386
2383
 
2387
2384
  ;// CONCATENATED MODULE: ./src/internal/internalAPIs.ts
2388
2385
 
@@ -13230,6 +13227,7 @@ var videoEffectsEx_awaiter = (undefined && undefined.__awaiter) || function (thi
13230
13227
  */
13231
13228
  var videoEffectsEx;
13232
13229
  (function (videoEffectsEx) {
13230
+ videoEffectsEx.frameProcessingTimeoutInMs = 2000;
13233
13231
  const videoPerformanceMonitor = inServerSideRenderingEnvironment()
13234
13232
  ? undefined
13235
13233
  : new VideoPerformanceMonitor(sendMessageToParent);
@@ -13284,8 +13282,10 @@ var videoEffectsEx;
13284
13282
  registerHandler('video.newVideoFrame', (videoBufferData) => {
13285
13283
  if (videoBufferData) {
13286
13284
  videoPerformanceMonitor === null || videoPerformanceMonitor === void 0 ? void 0 : videoPerformanceMonitor.reportStartFrameProcessing(videoBufferData.width, videoBufferData.height);
13285
+ const clearProcessingTimeout = createFrameProcessingTimeout();
13287
13286
  const timestamp = videoBufferData.timestamp;
13288
13287
  parameters.videoBufferHandler(normalizedVideoBufferData(videoBufferData), () => {
13288
+ clearProcessingTimeout();
13289
13289
  videoPerformanceMonitor === null || videoPerformanceMonitor === void 0 ? void 0 : videoPerformanceMonitor.reportFrameProcessed();
13290
13290
  notifyVideoFrameProcessed(timestamp);
13291
13291
  }, notifyError);
@@ -13301,12 +13301,22 @@ var videoEffectsEx;
13301
13301
  }
13302
13302
  }
13303
13303
  videoEffectsEx.registerForVideoFrame = registerForVideoFrame;
13304
+ function createFrameProcessingTimeout() {
13305
+ const frameProcessingTimer = setTimeout(() => {
13306
+ notifyError(`Frame not processed in ${videoEffectsEx.frameProcessingTimeoutInMs}ms`, ErrorLevel.Warn);
13307
+ }, videoEffectsEx.frameProcessingTimeoutInMs);
13308
+ return function clearTimer() {
13309
+ clearTimeout(frameProcessingTimer);
13310
+ };
13311
+ }
13304
13312
  function createMonitoredVideoFrameHandler(videoFrameHandler, videoPerformanceMonitor) {
13305
13313
  return (receivedVideoFrame) => videoEffectsEx_awaiter(this, void 0, void 0, function* () {
13306
13314
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13307
13315
  const originalFrame = receivedVideoFrame.videoFrame;
13308
13316
  videoPerformanceMonitor.reportStartFrameProcessing(originalFrame.codedWidth, originalFrame.codedHeight);
13317
+ const clearProcessingTimeout = createFrameProcessingTimeout();
13309
13318
  const processedFrame = yield videoFrameHandler(receivedVideoFrame);
13319
+ clearProcessingTimeout();
13310
13320
  videoPerformanceMonitor.reportFrameProcessed();
13311
13321
  return processedFrame;
13312
13322
  });