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
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
currentMedia.srcObject = this.props.feed.stream;
|
currentMedia.srcObject = this.props.feed.stream;
|
||||||
currentMedia.autoplay = true;
|
currentMedia.autoplay = true;
|
||||||
currentMedia.muted = false;
|
// Don't play audio if the feed is local
|
||||||
|
currentMedia.muted = this.props.feed.isLocal();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (audioOutput) {
|
if (audioOutput) {
|
||||||
|
|
Loading…
Reference in a new issue