Browse Source

Fix setting playback rate to loading voice

master
Eduard Kuzmenko 3 years ago
parent
commit
eefeca23a1
  1. 4
      src/components/appMediaPlaybackController.ts

4
src/components/appMediaPlaybackController.ts

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

Loading…
Cancel
Save