Video player polish

No header on Linux and OSX, just a back button on mouseover

ESC exits fullscreen, or if already not in fullscreen, goes back

More accurate scrub position

Removed the calc(100% -38x) hack, replaced with flexbox
This commit is contained in:
DC
2016-03-05 06:12:02 -08:00
parent 59b3bd04a9
commit e4f2716d06
4 changed files with 49 additions and 5 deletions

View File

@@ -17,7 +17,12 @@ function App (state, dispatch) {
}
}
var header = state.view.isFullScreen ? null : Header(state, dispatch)
// Show the header only when we're outside of fullscreen
// Also don't show it in the video player except in OSX
var isOSX = process.platform === 'darwin'
var isVideo = state.view.url === '/player'
var isFullScreen = state.view.isFullScreen
var header = !isFullScreen && (!isVideo || isOSX) ? Header(state, dispatch) : null
return hx`
<div class="app">