mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
add playinline for ios video player
This commit is contained in:
@@ -411,6 +411,8 @@ _ccsg.VideoPlayer.EventType = {
|
||||
video.style.left = "0px";
|
||||
video.className = "cocosVideo";
|
||||
video.setAttribute('preload', true);
|
||||
video.setAttribute('webkit-playsinline', '');
|
||||
video.setAttribute('playsinline', '');
|
||||
this._video = video;
|
||||
cc.game.container.appendChild(video);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user