diff --git a/just_audio/lib/just_audio.dart b/just_audio/lib/just_audio.dart index 53a8d81..3e5a60c 100644 --- a/just_audio/lib/just_audio.dart +++ b/just_audio/lib/just_audio.dart @@ -513,10 +513,8 @@ class AudioPlayer { /// By default, this method will immediately start loading audio and return /// its duration as soon as it is known, or `null` if that information is /// unavailable. Set [preload] to `false` if you would prefer to delay loading - /// until some later point, either via an explicit call to [load] or - /// implicitly on demand when you use a method such as [play] which requires - /// audio to be loaded. If [preload] is `false`, a `null` duration will be - /// returned. + /// until some later point, via an explicit call to [load]. If [preload] is + /// `false`, a `null` duration will be returned. /// /// Optionally specify [initialPosition] and [initialIndex] to seek to an /// initial position within a particular item (defaulting to position zero of @@ -679,7 +677,7 @@ class AudioPlayer { Future play() async { if (_disposed) return; if (playing) return; - _setPlatformActive(_audioSource != null); + //_setPlatformActive(_audioSource != null); _playInterrupted = false; final audioSession = await AudioSession.instance; if (await audioSession.setActive(true)) { @@ -693,7 +691,7 @@ class AudioPlayer { Future pause() async { if (_disposed) return; if (!playing) return; - _setPlatformActive(true); + //_setPlatformActive(true); _playInterrupted = false; // Update local state immediately so that queries aren't surprised. _playbackEvent = _playbackEvent.copyWith(