mozCancelFullScreen()
메서드를 실행하여 전체 화면 모드를 종료하는 버튼을 만들었습니다. 나는 왜 그것이 달리지 않는지 잘 모르겠습니다. 오류는 표시되지 않습니다. mozRequestFullScreen()
나를 위해 잘 작동합니다.Mozilla Firefox에서 mozCancelFullScreen()이 작동하지 않습니다.
$('.screenChange').click(function() {
if (video.mozFullscreen) {
video.mozCancelFullScreen();
} else if (!video.mozFullscreen) {
video.mozRequestFullScreen();
}
});
이어야합니다. mozRequestFullScreen()을 호출하는 코드를 게시 할 수 있습니까? – 44maagnum
$ ('. screenChange'). 클릭 (함수() { 경우 (video.mozFullscreen) { \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t video.mozCancelFullScreen();,\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t} 다른 경우 (! video.mozFullscreen) { \t \t \t\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t video.mozRequestFullScreen(); \t \t \t \t \t \t \t \t \t \t \t \t \t \t }}); –