我不希望在JWplayer中清除全屏按钮。什么部分应该更改,直到全屏按钮被禁用?这是我的代码:
<script type="text/javascript"
<script data-cfasync='false' src='http://jwpsrv.com/library/SakQCEfSEeOHhRIxOQfUww.js'></script>
<div id='playerjxJRqLMFuJaA'></div>
<script data-cfasync='false' type='text/javascript'>
jwplayer('playerjxJRqLMFuJaA').setup({
file: 'http://TV.b-c-e.us@cdn-01.bonus-tv.ru:8080/matchtv/index.m3u8',
aboutlink: 'http://tv.b-c-e.us',
enableFullscreen: 'false',
title: 'Live Stream',
width: '890',
height: '640',
stretching: 'exactfit',
autostart: 'true',
primary: 'flash',
skin: 'bekle',
androidhls: 'true',
});
</script>
答案 0 :(得分:0)
要使全屏按钮消失,请使用此css:
.jw-icon-fullscreen {
display: none;
}
但要注意不会禁用按钮,只是隐藏。
@Edit: 也许你可以使用javascript来阻止它:
var fullScreenBtns = document.getElementsByClassName('jw-icon-fullscreen');
for(var i in fullScreenBtns){
var btn = fullScreenBtns[i];
btn.onclick = function(e){
e.preventDefault();
e.stopPropagation();
alert('Full screen is blocked');
return false;
};
}
我在文档中找不到它......