Fixed audio playback after login

QuickLook document preview
Contact management for iOS 8
Fixed bot start payload
Fixed URL handling after launch
This commit is contained in:
Peter
2018-10-06 01:19:54 +04:00
parent 2b72e06ffe
commit e81edfb85e
29 changed files with 455 additions and 177 deletions

View File

@@ -101,7 +101,7 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
}
case .playbackStatus:
if let account = self.account, let applicationContext = account.applicationContext as? TelegramApplicationContext, let message = self.message, let type = peerMessageMediaPlayerType(message) {
applicationContext.mediaManager.playlistControl(.playback(.togglePlayPause), type: type)
applicationContext.mediaManager?.playlistControl(.playback(.togglePlayPause), type: type)
}
}
}
@@ -418,7 +418,7 @@ final class ChatMessageInteractiveFileNode: ASDisplayNode {
waveformScrubbingNode.hitTestSlop = UIEdgeInsetsMake(-10.0, 0.0, -10.0, 0.0)
waveformScrubbingNode.seek = { timestamp in
if let strongSelf = self, let account = strongSelf.account, let message = strongSelf.message, let type = peerMessageMediaPlayerType(message) {
account.telegramApplicationContext.mediaManager.playlistControl(.seek(timestamp), type: type)
account.telegramApplicationContext.mediaManager?.playlistControl(.seek(timestamp), type: type)
}
}
waveformScrubbingNode.status = strongSelf.playbackStatus.get()