1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Don't play audio if the feed is local

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-08 14:32:53 +02:00
parent adb0877591
commit a3da5ee6e6

View File

@@ -68,7 +68,8 @@ export default class VideoFeed extends React.Component<IProps, IState> {
currentMedia.srcObject = this.props.feed.stream;
currentMedia.autoplay = true;
currentMedia.muted = false;
// Don't play audio if the feed is local
currentMedia.muted = this.props.feed.isLocal();
try {
if (audioOutput) {