소스 검색

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.
j8
Jaya Allamsetty 4 년 전
부모
커밋
2784c43a1b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      modules/UI/videolayout/RemoteVideo.js

+ 2
- 0
modules/UI/videolayout/RemoteVideo.js 파일 보기

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

Loading…
취소
저장