bug fix for audio seek when playback speed > 1.0 (#176)

* bug fix for audio seek when playback speed > 1.0

* rate fix for iOS < 10

* rm play
This commit is contained in:
subhash279 2020-09-13 18:08:26 +05:30 committed by GitHub
parent 65912ec4e0
commit b18157ebee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1105,7 +1105,11 @@
// If playing, buffering will be detected either by: // If playing, buffering will be detected either by:
// 1. checkForDiscontinuity // 1. checkForDiscontinuity
// 2. timeControlStatus // 2. timeControlStatus
[_player play]; if (@available(iOS 10.0, *)) {
[_player playImmediatelyAtRate:_speed];
} else {
_player.rate = _speed;
}
} else { } else {
// If not playing, there is no reliable way to detect // If not playing, there is no reliable way to detect
// when buffering has completed, so we use // when buffering has completed, so we use