Don't render player controls for external player
This commit is contained in:
parent
82853aa017
commit
1afd650997
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue