Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Getting an error: Cannot read property 'minDvrWindow' of null

Hi Team

Have an application which uses JW Player to play the videos. Have to automate the video's related scenarios via Selenium. In application, most of the videos will take minimum 3 minutes to complete. To wait for 3 mins. in automation execution is not a wise way to do. Have thought to control the JW video player by using the JW Player JavaScript API's.

Have used below code to fast forward the video of the JW Player via Selenium & Java. While seek the video am getting an error.

//Selenium + Java Code
WebDriver driver = new FirefoxDriver();
JavascriptExecutor executor = (JavascriptExecutor) driver;
String duration = executor.executeScript("return "+"jwplayer().getDuration();");
executor.executeScript(jwplayer().seek(" + duration + ");");

While execute the above code, am getting an error 'Cannot read property 'minDvrWindow' of null " when the seek() method executes.
Can you please suggest me, is there any workaround to resolve this error. Or Is there anyway to end the currently playing video?

1 Community Answers


JW Player Support Agent  
0 rated :

For me to reproduce this issue reliably I will need the following information:

Browser name and version:
Operating System name and version:
Device make and model:
Provide step by step instructions on how to reproduce the issue on your page:
A test page replicating the issue as described in the document below:

The test page must not contain any additional code or CSS, it must only contain the player and concrete steps to reproduce with expected and actual behavior.

On the test page use the JWPlayer API directly on the page since I won’t be able to test your Selenium setup.

This question has received the maximum number of answers.