2013-08-16 4 views
6

마우스를 움직일 때 표시되는 전체 화면 모드 표준 컨트롤로 변경하면 Google 크롬 브라우저에서 표시됩니다. 또한 항상 마우스 오른쪽 버튼 메뉴 (전체 화면에서만)에서 기능 표시 제어 기능을 사용할 수 없도록 설정할 수 없습니다. 그래서 나는이 js 함수를 트레이닝했지만 작동하지 않습니다. JS : 나는 SRC 과정이 매우 긴 변경HTML5 비디오는 Chrome의 전체 화면 모드에서 컨트롤을 숨기지 않습니다.

<video id="bcVideo" src="anotherhost.com/video.mp4" style="position: absolute;" poster="poster.gif"></video> 

하지만 비디오가 다른 도메인에서 점점 :

$('.gp_nav_fc').click(function() { 
    elem = $('#bcVideo')[0]; 
    if (elem.requestFullscreen) { 
     elem.requestFullscreen(); 
    } else if (elem.mozRequestFullScreen) { 
     elem.mozRequestFullScreen(); 
    } else if (elem.webkitRequestFullscreen) { 
     elem.webkitRequestFullscreen(); 
    } 
    $('.gp_buttons').attr('class', 'gp_buttons fullscreen'); 
     elem.controls = false; 
     $('#bcVideo')[0].removeAttribute("controls"); 
     $('#bcVideo').controls = false; 
}); 

HTML.

+1

당신이 (두 줄보다) 몇 가지 코드를 보여줄 수 : 링크를

video::-webkit-media-controls { display:none !important; } 

자세한 내용은 : CSS의 필요에

다음 규칙을 추가하려면? – putvande

+0

내 질문을 편집하십시오 – user2633669

+0

전체 화면에서 컨트롤을 사용할 수 없게하는 것처럼 보입니다. – putvande

답변

관련 문제