onReset method

  1. @override
void onReset()
override

视频切换时重置内部状态(保持策略活跃)

Called when the video source changes. Reset internal counters/timers while keeping the strategy active.

Implementation

@override
void onReset() {
  _stutterCount = 0;
  _totalStutterMs = 0;
  _effectivePlayMs = 0;
  _loadingStartTimestamp = 0;
  _playStartTimestamp = 0;
  _isPlaying = false;
  _isLoading = false;
}