Fix setting playback rate to loading voice

This commit is contained in:
Eduard Kuzmenko 2022-02-09 18:03:11 +04:00
parent 18aef3a921
commit eefeca23a1

View File

@ -294,6 +294,10 @@ class AppMediaPlaybackController {
// setTimeout(() => {
const cacheContext = appDownloadManager.getCacheContext(doc);
media.src = cacheContext.url;
if(this.playingMedia === media) {
media.playbackRate = this.playbackRate;
}
// }, doc.supportsStreaming ? 500e3 : 0);
const set = this.waitingDocumentsForLoad[doc.id];