Player fails to load second time in lightbox
Hi I've been searching the web with no luck to this issue.
We are using JS player to play videos on our site. the video loads with a light box and works perfectly the first time the video is called. However if you try and call the video a second time the lightbox opens but no video appears. In the console I can see the following error:
There was an error calling back an event handler for "ready". Error: Cannot read property 'clientWidth' of null
jwpsrv.js:1 Uncaught TypeError: Cannot read property 'ownerDocument' of null.
I'm calling JWPlayer with the following bulk standard code.
var player = new jwplayer(div);
file: video, // variable containing video url