瀏覽代碼

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.
master
Jaya Allamsetty 4 年之前
父節點
當前提交
2784c43a1b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      modules/UI/videolayout/RemoteVideo.js

+ 2
- 0
modules/UI/videolayout/RemoteVideo.js 查看文件

221
 
221
 
222
         streamElement.autoplay = !config.testing?.noAutoPlayVideo;
222
         streamElement.autoplay = !config.testing?.noAutoPlayVideo;
223
         streamElement.id = `remoteVideo_${stream.getId()}`;
223
         streamElement.id = `remoteVideo_${stream.getId()}`;
224
+        streamElement.mute = true;
225
+        streamElement.playsInline = true;
224
 
226
 
225
         // Put new stream element always in front
227
         // Put new stream element always in front
226
         streamElement = UIUtils.prependChild(this.container, streamElement);
228
         streamElement = UIUtils.prependChild(this.container, streamElement);

Loading…
取消
儲存