use _player.rate=_speed in all locations
This commit is contained in:
parent
b18157ebee
commit
f6c835e3ce
|
@ -850,7 +850,7 @@
|
||||||
if (shouldResumePlayback) {
|
if (shouldResumePlayback) {
|
||||||
_player.actionAtItemEnd = originalEndAction;
|
_player.actionAtItemEnd = originalEndAction;
|
||||||
// TODO: This logic is almost duplicated in seek. See if we can reuse this code.
|
// TODO: This logic is almost duplicated in seek. See if we can reuse this code.
|
||||||
[_player play];
|
_player.rate = _speed;
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
|
@ -1072,7 +1072,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_playing) {
|
if (_playing) {
|
||||||
[_player play];
|
_player.rate = _speed;
|
||||||
}
|
}
|
||||||
_seekPos = kCMTimeInvalid;
|
_seekPos = kCMTimeInvalid;
|
||||||
[self broadcastPlaybackEvent];
|
[self broadcastPlaybackEvent];
|
||||||
|
@ -1083,7 +1083,15 @@
|
||||||
} else {
|
} else {
|
||||||
_seekPos = kCMTimeInvalid;
|
_seekPos = kCMTimeInvalid;
|
||||||
if (_playing) {
|
if (_playing) {
|
||||||
[_player play];
|
if (@available(iOS 10.0, *)) {
|
||||||
|
// NOTE: Re-enable this line only after figuring out
|
||||||
|
// how to detect buffering when buffered audio is not
|
||||||
|
// immediately available.
|
||||||
|
//[_player playImmediatelyAtRate:_speed];
|
||||||
|
_player.rate = _speed;
|
||||||
|
} else {
|
||||||
|
_player.rate = _speed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1106,7 +1114,11 @@
|
||||||
// 1. checkForDiscontinuity
|
// 1. checkForDiscontinuity
|
||||||
// 2. timeControlStatus
|
// 2. timeControlStatus
|
||||||
if (@available(iOS 10.0, *)) {
|
if (@available(iOS 10.0, *)) {
|
||||||
[_player playImmediatelyAtRate:_speed];
|
// NOTE: Re-enable this line only after figuring out how to
|
||||||
|
// detect buffering when buffered audio is not immediately
|
||||||
|
// available.
|
||||||
|
//[_player playImmediatelyAtRate:_speed];
|
||||||
|
_player.rate = _speed;
|
||||||
} else {
|
} else {
|
||||||
_player.rate = _speed;
|
_player.rate = _speed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue