Update setSpeed documentation.

This commit is contained in:
Ryan Heise 2020-10-24 19:53:44 +11:00
parent 3cf2f502fc
commit a8151cdf49
1 changed files with 2 additions and 5 deletions

View File

@ -585,11 +585,8 @@ class AudioPlayer {
}
/// Sets the playback speed of this player, where 1.0 is normal speed. Note
/// that on iOS, calls to [setSpeed] may ignored if the underlying media
/// doesn't support speed changes (e.g. live streams). On Android, values in
/// excess of 1.0 may result in stalls if the playback speed is faster than
/// the player is able to downloaded the audio (this should not happen with
/// locally-stored audio files).
/// that values in excess of 1.0 may result in stalls if the playback speed is
/// faster than the player is able to downloaded the audio.
Future<void> setSpeed(final double speed) async {
if (_disposed) return;
_playbackEvent = _playbackEvent.copyWith(