fix(UI): Add playsinline attribute for remote video.

For the video to play on Safari mobile browser, the playsInline attribute needs to be set to true. Set the mute attribute as well which was accidentally removed in code refactor.
This commit is contained in:
Jaya Allamsetty 2021-03-10 17:37:33 -05:00 committed by Jaya Allamsetty
parent f5a34183e9
commit 2784c43a1b
1 changed files with 2 additions and 0 deletions
modules/UI/videolayout

View File

@ -221,6 +221,8 @@ export default class RemoteVideo extends SmallVideo {
streamElement.autoplay = !config.testing?.noAutoPlayVideo;
streamElement.id = `remoteVideo_${stream.getId()}`;
streamElement.mute = true;
streamElement.playsInline = true;
// Put new stream element always in front
streamElement = UIUtils.prependChild(this.container, streamElement);