/**
 * [[VideoPriorityBasedPolicyConfig]] contains the network issue response delay and network issue recovery delay.
 */ export default class VideoPriorityBasedPolicyConfig { static readonly Default = new VideoPriorityBasedPolicyConfig ( 0 , 0 ) ; static readonly UnstableNetworkPreset = new VideoPriorityBasedPolicyConfig ( 0 , 1 ) ; static readonly StableNetworkPreset = new VideoPriorityBasedPolicyConfig ( 1 , 0 ) ; param networkIssueResponseDelayFactor param networkIssueRecoveryDelayFactor constructor ( public networkIssueResponseDelayFactor = 0 , public networkIssueRecoveryDelayFactor = 0 ) { if ( networkIssueResponseDelayFactor < 0 ) { networkIssueResponseDelayFactor = 0 ; } else if ( networkIssueResponseDelayFactor > 1 ) { networkIssueResponseDelayFactor = 1 ; } this . networkIssueResponseDelayFactor = networkIssueResponseDelayFactor ; if ( networkIssueRecoveryDelayFactor < 0 ) { networkIssueRecoveryDelayFactor = 0 ; } else if ( networkIssueRecoveryDelayFactor > 1 ) { networkIssueRecoveryDelayFactor = 1 ; } this . networkIssueRecoveryDelayFactor = networkIssueRecoveryDelayFactor ; } }