Why this code in not working for me ? I want set player in fullscreen mode on click...
jwplayer('player').setup({
file: 'file.mp4',
image: 'poster.jpg',
width: '600px',
aspectratio: '4:3'
});
$(document).ready(function() {
$('#player').click(function() {
jwplayer('player').setFullscreen(true);
});
});
Quoting from the JW Player API Reference:
Note there is no API call to set fullscreen, due to phishing-related security restrictions in both Flash and HTML5.