Skip to content
Snippets Groups Projects
Unverified Commit c7d481c0 authored by Chad Pilkey's avatar Chad Pilkey Committed by GitHub
Browse files

Merge pull request #8110 from lfzawacki/fix-8044

Detect presenter change and reassign external video to new presenter
parents 830b2d1d 4f7cfb81
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,15 @@ class VideoPlayer extends Component {
this.player = null;
}
componentDidUpdate(prevProp, prevState) {
// Detect presenter change and redo the sync and listeners to reassign video to the new one
if (this.props.isPresenter !== prevProp.isPresenter) {
this.clearVideoListeners();
clearInterval(this.syncInterval);
this.registerVideoListeners();
}
}
static getDerivedStateFromProps(props) {
const { inEchoTest } = props;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment