Skip to content

Commit

Permalink
Merge pull request #12834 from ramonlsouza/issue-12828
Browse files Browse the repository at this point in the history
fix: fullscreen webcam video crash - legacy layout
  • Loading branch information
antobinary committed Jul 27, 2021
2 parents 2e3b520 + ee56199 commit fd2cab0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
unsubscribeFromStreamStateChange,
} from '/imports/ui/services/bbb-webrtc-sfu/stream-state-service';
import deviceInfo from '/imports/utils/deviceInfo';
import { ACTIONS } from '../../../layout/enums';

const ALLOW_FULLSCREEN = Meteor.settings.public.app.allowFullscreen;

Expand Down Expand Up @@ -101,7 +100,7 @@ class VideoListItem extends Component {
}

onFullscreenChange() {
const { webcamDraggableDispatch, newLayoutContextDispatch } = this.props;
const { webcamDraggableDispatch } = this.props;
const { isFullscreen } = this.state;
const serviceIsFullscreen = FullscreenService.isFullScreen(this.videoContainer);

Expand All @@ -113,9 +112,6 @@ class VideoListItem extends Component {
value: serviceIsFullscreen,
},
);
newLayoutContextDispatch({
type: ACTIONS.SET_FULLSCREEN_ELEMENT
})
}
}

Expand Down

0 comments on commit fd2cab0

Please sign in to comment.