From 6e287b1a00efa60912736dd5f5f228677439445f Mon Sep 17 00:00:00 2001 From: Henry Smith Date: Mon, 6 May 2024 12:49:31 -0700 Subject: [PATCH] Fix for comments --- docs/classes/videoadaptiveprobepolicy.html | 15 ++++----------- .../VideoAdaptiveProbePolicy.ts | 6 ++---- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/docs/classes/videoadaptiveprobepolicy.html b/docs/classes/videoadaptiveprobepolicy.html index 61337a42b..bf4f20664 100644 --- a/docs/classes/videoadaptiveprobepolicy.html +++ b/docs/classes/videoadaptiveprobepolicy.html @@ -71,13 +71,6 @@

Class VideoAdaptiveProbePolicy

VideoAdaptiveProbePolicy wraps VideoPriorityBasedPolicy with customized behavior to automatically assign a high preference to content share.

-
-
deprecated
-

This class is not compatible with latest priority policy features (i.e. server side network adaptation), - VideoPriorityBasedPolicy should be used instead. If high priority for content is desired it can be done trivially - by the application.

-
-
@@ -157,7 +150,7 @@

constructor

Parameters

@@ -369,7 +362,7 @@

chooseRemoteVideoSources

@@ -570,7 +563,7 @@

reset

@@ -714,7 +707,7 @@

updateIndex

diff --git a/src/videodownlinkbandwidthpolicy/VideoAdaptiveProbePolicy.ts b/src/videodownlinkbandwidthpolicy/VideoAdaptiveProbePolicy.ts index a341473a1..8c9034766 100644 --- a/src/videodownlinkbandwidthpolicy/VideoAdaptiveProbePolicy.ts +++ b/src/videodownlinkbandwidthpolicy/VideoAdaptiveProbePolicy.ts @@ -13,10 +13,6 @@ import VideoPriorityBasedPolicyConfig from './VideoPriorityBasedPolicyConfig'; /** [[VideoAdaptiveProbePolicy]] wraps [[VideoPriorityBasedPolicy]] with customized behavior to automatically * assign a high preference to content share. - * - * @deprecated This class is not compatible with latest priority policy features (i.e. server side network adaptation), - * [[VideoPriorityBasedPolicy]] should be used instead. If high priority for content is desired it can be done trivially - * by the application. */ export default class VideoAdaptiveProbePolicy extends VideoPriorityBasedPolicy { private static createConfig(): VideoPriorityBasedPolicyConfig { @@ -26,6 +22,8 @@ export default class VideoAdaptiveProbePolicy extends VideoPriorityBasedPolicy { } constructor(protected logger: Logger) { + // We use a static function to create config because Typescript requires + // super(...) calls to be the first line in constructors super(logger, VideoAdaptiveProbePolicy.createConfig()); super.shouldPauseTiles = false; this.videoPreferences = undefined;