mirror of
https://github.com/vector-im/element-web.git
synced 2024-12-02 17:36:44 +08: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:
parent
adb0877591
commit
a3da5ee6e6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user