Chromecast video controls

This commit is contained in:
DC
2016-03-14 23:01:35 -07:00
parent 7437e82eb5
commit 849bbed0ae
6 changed files with 322 additions and 89 deletions

View File

@@ -16,10 +16,12 @@ function App (state, dispatch) {
// Never hide the controls when:
// * The mouse is over the controls or we're scrubbing (see CSS)
// * The video is paused
// * The video is playing remotely on Chromecast or Airplay
var hideControls = state.url === 'player' &&
state.video.mouseStationarySince !== 0 &&
new Date().getTime() - state.video.mouseStationarySince > 2000 &&
!state.video.isPaused
!state.video.isPaused &&
state.video.location === 'local'
var cls = [
'view-' + state.url, /* e.g. view-home, view-player */