Add videos to be played across all pages. #1523

Closed
dan1d wants to merge 13 commits from video-overlay-new into master
Showing only changes of commit bc262481a1 - Show all commits

View file

@ -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;