Lines Matching full:player
42 'player.getDuration()')))
51 return int(self._tab.EvaluateJavaScript('player.getCurrentTime()'))
54 """Returns the player status."""
61 return self._tab.EvaluateJavaScript('player.getPlaybackQuality()')
64 """Wait till the player status changes to expected_status.
76 'Video failed to load. Player expected status: %s'
95 'player.seekTo(%d, true)'
102 'Video is not playing. Player status: %s.' %
108 """Verify the player states like play, pause, ended and seek."""
109 logging.info('Verifying the player states.')
110 self._tab.ExecuteJavaScript('player.pauseVideo()')
112 self._tab.ExecuteJavaScript('player.playVideo()')
114 # We are seeking the player position to (video length - 2 seconds).
115 # Since the player waits for WAIT_TIMEOUT_S for the status change,
121 'player.seekTo(%d, true)' % (self._video_duration - 5))
127 self._tab.ExecuteJavaScript('player.seekTo(%d, true)'