mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 01:22:11 +00:00
ovelay layer rendered on top of video to prevent context menu interraction
This commit is contained in:
parent
77a1d7658d
commit
d627d51741
1 changed files with 13 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import React, { Component } from 'react';
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import classnames from 'classnames';
|
||||
import ReactHTMLVideo from './stremio-video/ReactHTMLVideo';
|
||||
import ControlBar from './ControlBar';
|
||||
|
|
@ -92,15 +92,18 @@ class Player extends Component {
|
|||
}
|
||||
|
||||
return (
|
||||
<this.state.videoComponent
|
||||
ref={this.videoRef}
|
||||
className={classnames(styles['layer'], styles['video'])}
|
||||
onEnded={this.onEnded}
|
||||
onError={this.onError}
|
||||
onPropValue={this.onPropValue}
|
||||
onPropChanged={this.onPropChanged}
|
||||
observedProps={['paused', 'time', 'duration', 'volume']}
|
||||
/>
|
||||
<Fragment>
|
||||
<this.state.videoComponent
|
||||
ref={this.videoRef}
|
||||
className={classnames(styles['layer'], styles['video'])}
|
||||
onEnded={this.onEnded}
|
||||
onError={this.onError}
|
||||
onPropValue={this.onPropValue}
|
||||
onPropChanged={this.onPropChanged}
|
||||
observedProps={['paused', 'time', 'duration', 'volume']}
|
||||
/>
|
||||
<div className={styles['layer']} />
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue