This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathindex.jsx
63 lines (59 loc) · 1.87 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React from "react";
import * as Cookies from "js-cookie";
import "./meeting.css";
import AgoraVideoCall from "../../components/AgoraVideoCall";
import { AGORA_APP_ID } from "../../agora.config";
class Meeting extends React.Component {
constructor(props) {
super(props);
this.videoProfile = Cookies.get("videoProfile").split(",")[0] || "480p_4";
this.channel = Cookies.get("channel") || "test";
this.transcode = Cookies.get("transcode") || "interop";
this.attendeeMode = Cookies.get("attendeeMode") || "video";
this.baseMode = Cookies.get("baseMode") || "avc";
this.appId = AGORA_APP_ID;
if (!this.appId) {
return alert("Get App ID first!");
}
this.uid = undefined;
}
render() {
return (
<div className="wrapper meeting">
<div className="ag-header">
<div className="ag-header-lead">
<img
className="header-logo"
src={require("../../assets/images/ag-logo.png")}
alt=""
/>
<span>AgoraWeb v2.1</span>
</div>
<div className="ag-header-msg">
Room: <span id="room-name">{this.channel}</span>
</div>
</div>
<div className="ag-main">
<div className="ag-container">
<AgoraVideoCall
videoProfile={this.videoProfile}
channel={this.channel}
transcode={this.transcode}
attendeeMode={this.attendeeMode}
baseMode={this.baseMode}
appId={this.appId}
uid={this.uid}
/>
</div>
</div>
<div className="ag-footer">
<a className="ag-href" href="https://www.agora.io">
<span>Powered By Agora</span>
</a>
<span>Talk to Support: 400 632 6626</span>
</div>
</div>
);
}
}
export default Meeting;