Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

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

$
0
0
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?

Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>