Fix changing playback rate with voice and video

This commit is contained in:
Eduard Kuzmenko 2022-02-16 00:59:49 +04:00
parent 39d36a9313
commit 9cd680ed1a
2 changed files with 5 additions and 3 deletions

View File

@ -145,6 +145,10 @@ class AppMediaPlaybackController {
this.playingMedia[key] = value;
}
if(key === 'playbackRate' && this.playingMediaType !== undefined) {
this.playbackRates[this.playingMediaType] = value as number;
}
this.dispatchPlaybackParams();
}
};
@ -627,8 +631,6 @@ class AppMediaPlaybackController {
this.mediaDetails.delete(media);
}
this.playbackRates[this.playingMediaType] = this.playbackRate;
this.playingMedia = undefined;
this.playingMediaType = undefined;

View File

@ -318,7 +318,7 @@ export default class PeerProfile {
const peerId = this.peerId;
const threadId = this.threadId;
if(!peerId || appPeersManager.isRestricted(peerId)) {
if(!peerId || appPeersManager.isRestricted(peerId) || peerId === rootScope.myId) {
return;
}