onPause method
Callback when this executor is paused. Returns true if successfully paused, false otherwise.
Implementation
@override
Future<bool> onPause() async {
_durationTimer?.cancel();
await _bufferingStreamSubscription?.cancel();
return await super.onPause();
}