constructor()

in amplify-video-frontend/src/components/VideoChat.js [36:54]


  constructor(props){
    super(props);
    this.state = {
      tmpMessage: "",
      messages: [],
      username: "",
      channelId: props.channelId,
      videoJsOptions: {
        autoplay: true,
        controls: true,
        sources: [
          {
            src: props.channelUrl,
            type: 'application/x-mpegURL',
          },
        ],
      }
    };
  }