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
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790

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) {