I use jwplayer.version = ‘5.10.2295’ and browser chrome 25.
My code:
jwplayer('container').setup({
file: 'path...',
width: '300px',
height: '100px',
autostart: true,
modes: [
{ type: 'html5' },
{ type: 'flash', src: 'path...' }
]
});
When page is loaded my resource (mp4 video file) starts to show correctrly – it is ok.
But there is no reaction on simple jwplayer JS API methods, suche as jwplayer().stop(), for example. And some controls are not available (play, top, seek), but ‘to full screen mode’ button works as well as volume button.
And the most interesting is that js api and control buttons available for a few seconds after video start to play (if browser cache is cleared), and then no response for interaction. But some method works all the time correctly (jwplayer().setFullscreen() for example).
p.s. I saw related question but the answer is not deep anough for me.
I found solution.
My video file have no specified extension in path (i have ‘path/to/file’ instead of ‘path/to/file.mp4’) and that fact brokes somethin in the depths of jwPlayer. We need to specify type of file we operate with:
That’s solution.