Merge pull request #823 from feross/m/external-controls

Don't render player controls when using external player
This commit is contained in:
Feross Aboukhadijeh
2016-08-24 02:08:58 +02:00
committed by GitHub

View File

@@ -14,13 +14,14 @@ module.exports = class Player extends React.Component {
// If the video is on Chromecast or Airplay, show a title screen instead
var state = this.props.state
var showVideo = state.playing.location === 'local'
var showControls = state.playing.location !== 'external'
return (
<div
className='player'
onWheel={handleVolumeWheel}
onMouseMove={dispatcher('mediaMouseMoved')}>
{showVideo ? renderMedia(state) : renderCastScreen(state)}
{renderPlayerControls(state)}
{showControls ? renderPlayerControls(state) : null}
</div>
)
}