Add videos to be played across all pages. #1523
1 changed files with 4 additions and 4 deletions
|
@ -22,10 +22,10 @@ class VideoPlayer extends React.PureComponent {
|
||||||
this.toggleFullScreenVideo = this.toggleFullScreen.bind(this);
|
this.toggleFullScreenVideo = this.toggleFullScreen.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
// componentWillReceiveProps(nextProps) {
|
||||||
const el = this.refs.media.children[0];
|
// const el = this.refs.media.children[0];
|
||||||
if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
|
// if (!this.props.paused && nextProps.paused && !el.paused) el.pause();
|
||||||
}
|
// }
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const container = this.media;
|
const container = this.media;
|
||||||
|
|
Loading…
Add table
Reference in a new issue