Fix changing playback rate with voice and video
This commit is contained in:
parent
39d36a9313
commit
9cd680ed1a
@ -145,6 +145,10 @@ class AppMediaPlaybackController {
|
|||||||
this.playingMedia[key] = value;
|
this.playingMedia[key] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(key === 'playbackRate' && this.playingMediaType !== undefined) {
|
||||||
|
this.playbackRates[this.playingMediaType] = value as number;
|
||||||
|
}
|
||||||
|
|
||||||
this.dispatchPlaybackParams();
|
this.dispatchPlaybackParams();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -627,8 +631,6 @@ class AppMediaPlaybackController {
|
|||||||
this.mediaDetails.delete(media);
|
this.mediaDetails.delete(media);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.playbackRates[this.playingMediaType] = this.playbackRate;
|
|
||||||
|
|
||||||
this.playingMedia = undefined;
|
this.playingMedia = undefined;
|
||||||
this.playingMediaType = undefined;
|
this.playingMediaType = undefined;
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ export default class PeerProfile {
|
|||||||
const peerId = this.peerId;
|
const peerId = this.peerId;
|
||||||
const threadId = this.threadId;
|
const threadId = this.threadId;
|
||||||
|
|
||||||
if(!peerId || appPeersManager.isRestricted(peerId)) {
|
if(!peerId || appPeersManager.isRestricted(peerId) || peerId === rootScope.myId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user