diff --git a/cocos2d/core/videoplayer/CCSGVideoPlayer.js b/cocos2d/core/videoplayer/CCSGVideoPlayer.js index b18dd2c46e..3f33082d37 100644 --- a/cocos2d/core/videoplayer/CCSGVideoPlayer.js +++ b/cocos2d/core/videoplayer/CCSGVideoPlayer.js @@ -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); };