2016-10-20 3 views
0

플러그인에 문제가 있습니다. 제어판에서 ipad safari의 화면 크기를 조정해도 크기가 조정되지 않습니다. 다른 모든 브라우저에서는 모두 정상입니다. 페이지에 둘 이상의 비디오가있는 경우 문제가 발생합니다. 비디오가 모든 것이 OK 인 경우. 제어 패널은 크기를 조정하지Ipad safari에서 Mediaelement.js 제어판의 크기가 조절되지 않습니다.

패널의 크기를 조정 :

Panel not resize

초기화 플레이어 :

Init player

$(".one-item video").each(function (i, item) { 
    $(item).mediaelementplayer({ 
    videoWidth: "100%", 
    videoHeight: height, 
    alwaysShowControls: true, 
    enableAutosize: false, 
    features: ['playpause', 'current', 'progress', 'duration', 'tracks', 'volume', 'fullscreen', 'loop'], 
    success: function (mediaElement, domObject) { 
    } 
    }); 
}); 

답변

0

내가 그런 결정을 내릴. 어쨌든 setTimeout을 사용하면 2662 행 앞의 mediaelement-and-player.js 메소드를 추가 할 수 있습니다. ipad에서 작업

t.globalBind('orientationchange', function(){ 
       setTimeout(function(){ 
        // Look at the value of window.orientation: 
        // alert('ok') 
        if (!(t.isFullScreen || (mejs.MediaFeatures.hasTrueNativeFullScreen && document.webkitIsFullScreen))) { 
         t.setPlayerSize(t.width, t.height); 
        } 
        // always adjust controls 
        t.setControlsSize(); 
       },500); 
      }); 
관련 문제