Lines Matching full:player
42 'player.getDuration()')))
52 return int(self._tab.EvaluateJavaScript('player.getCurrentTime()'))
56 """Returns the player status."""
69 'player.setPlaybackQuality("%s")' % quality)
74 return self._tab.EvaluateJavaScript('player.getPlaybackQuality()')
78 """Wait till the player status changes to expected_status.
90 'Video failed to load. Player expected status: %s'
109 'player.seekTo(%d, true)'
116 'Video is not playing. Player status: %s.' %
146 'player.getAvailableQualityLevels()')
150 'Player failed to return available video qualities.')
176 """Verify the player states like play, pause, ended and seek."""
177 logging.info('Verifying the player states.')
178 self._tab.ExecuteJavaScript('player.pauseVideo()')
180 self._tab.ExecuteJavaScript('player.playVideo()')
182 # We are seeking the player position to (video length - 2 seconds).
183 # Since the player waits for WAIT_TIMEOUT_S for the status change,
189 'player.seekTo(%d, true)' % (self._video_duration - 5))
195 self._tab.ExecuteJavaScript('player.seekTo(%d, true)'