Skip to content
This repository was archived by the owner on Feb 10, 2022. It is now read-only.

Commit 1755743

Browse files
committed
Add playsinline in video tag
1 parent 9a8c93c commit 1755743

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/utils/domUtil.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export function createAudio({ id, className, autoplay, muted, remote } = {}) {
5555
}
5656

5757
export function createVideo({ id, className, autoplay, muted, remote } = {}) {
58-
const attrs = {};
58+
const attrs = {
59+
playsinline: ''
60+
};
61+
5962
const element = _createElement({ tagName: 'video', id: id, className: className, attrs: attrs });
6063

6164
element.autoplay = autoplay;

0 commit comments

Comments
 (0)