Allow scrubbing while another track is playing
This commit is contained in:
parent
112e84aaa1
commit
bb8af80826
@ -109,12 +109,10 @@ public class CVAudioPlayer: NSObject {
|
||||
forAttachmentStream attachmentStream: TSAttachmentStream) {
|
||||
AssertIsOnMainThread()
|
||||
|
||||
guard let audioPlayback = ensurePlayback(forAttachmentStream: attachmentStream) else {
|
||||
owsFailDebug("Could not play audio attachment.")
|
||||
return
|
||||
}
|
||||
progressCache[attachmentStream.uniqueId] = progress
|
||||
audioPlayback.setProgress(progress)
|
||||
if let audioPlayback = audioPlayback, audioPlayback.attachmentId == attachmentStream.uniqueId {
|
||||
audioPlayback.setProgress(progress)
|
||||
}
|
||||
}
|
||||
|
||||
@objc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user