})
/** * 视频通话页面 */ import React, { Component } from "react"; import { connect } from "dva"; import { Pagination, Drawer, Tooltip, Modal, Row, Col, Button } from "antd"; import "./video.less"; import CheckRTC from "./checkRTC"; import "./popper"; // import Presetting from './presetting'; import Common from "./common"; // import { imKey } from "../../../utils/config"; import { trtcVideoRoom, getTencentYspSig } from "../../../services/api"; @connect((state) => ({ // imIsLogin: state.im.imIsLogin })) export default class Video extends Component { constructor(props) { super(props); this.common = Common.call(this); this.state = { RTC: null, Room_No: props.Room_No, //房间号 // MemberList: props.MemberList, mobilePhone: props.mobilePhone, imSig: props.imSig, height: null, schedulingName: props.schedulingName, //调度任务名称 rtc: null, isCamOn: true, isMicOn: true, }; } componentDidMount() { CheckRTC(); const height = document.documentElement.clientHeight - 5; this.setState({ height, }); this.common.login(this.state.Room_No, this.state.mobilePhone); } //解散房间 dissolutionRoom() { // window.close(); trtcVideoRoom({ Room_No: this.state.Room_No }).then((res) => { console.log(res); }); } render() { return (