Getting an error: Cannot read property 'minDvrWindow' of null
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();
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?