Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { Component } from 'react';
import injectWbResizeEvent from '/imports/ui/components/presentation/resize-wrapper/component';
import ReactPlayer from 'react-player';
import { sendMessage, onMessage, removeAllListeners } from './service';
import logger from '/imports/startup/client/logger';
import ArcPlayer from './custom-players/arc-player';
import { styles } from './styles';
const SYNC_INTERVAL_SECONDS = 2;
ReactPlayer.addCustomPlayer(ArcPlayer);
class VideoPlayer extends Component {
constructor(props) {
super(props);
const { isPresenter } = props;
this.player = null;
this.syncInterval = null;
this.state = {
mutedByEchoTest: false,
playing: false,
playbackRate: 1,
};
this.opts = {