const videojsEl = element(by.css('div.video-js'))
await browser.wait(browser.ExpectedConditions.elementToBeClickable(videojsEl))
+ // On Android, we need to click twice on "play" (BrowserStack particularity)
+ if (isMobileDevice) {
+ await browser.sleep(3000)
+ await videojsEl.click()
+ }
+
await browser.sleep(7000)
return videojsEl.click()
const options = {
forcePlay: false,
delay,
- seek: currentTime
+ seek: currentTime + (delay / 1000)
}
this.updateVideoFile(newVideoFile, options)
}
this.player.pause()
this.player.posterImage.show()
this.player.removeClass('vjs-has-autoplay')
+ this.player.removeClass('vjs-has-big-play-button-clicked')
return done()
})