onPause method
Called by pause. Returns true if successfully paused.
If false, the state is not changed.
Implementation
@override
Future<bool> onPause() async {
_timer?.cancel();
await _bufferingStreamSubscription?.cancel();
return await super.onPause();
}