Skip to content

Commit

Permalink
Merge pull request #58 from netease-im/web_sdk
Browse files Browse the repository at this point in the history
Web sdk
  • Loading branch information
liuqijun authored Nov 16, 2020
2 parents 678d838 + fd8cf63 commit 9d02769
Show file tree
Hide file tree
Showing 6 changed files with 546 additions and 165 deletions.
97 changes: 97 additions & 0 deletions SampleCode/Web/NeWebMeeting_V1.2.8.js

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions SampleCode/Web/NeWebMeeting_V1.3.0.js

Large diffs are not rendered by default.

97 changes: 97 additions & 0 deletions SampleCode/Web/NeWebMeeting_V1.3.1.js

Large diffs are not rendered by default.

27 changes: 25 additions & 2 deletions SampleCode/Web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>neWebMeeting demo</title>
<script src="./NeWebMeeting_V1.2.6.js"></script>
<script src="./NeWebMeeting_V1.3.1.js"></script>
</head>
<body>
<button onclick="init()">初始化</button>
<button onclick="destory()">销毁</button>
<button onclick="login()">登陆</button>
<button onclick="loginWithNEMeeting()">账号密码登陆</button>
<button onclick="loginWithSSOToken()">SSO登陆</button>
<button onclick="create()">创建</button>
<input class="meeting-id" type="text" placeholder="meetingId">
<button onclick="join()">加入</button>
Expand All @@ -24,7 +26,14 @@
*/

function init() {
neWebMeeting.actions.init(800, 600); // (width,height)单位px 建议比例4:3
const config = {
appkey: '', //云信服务appkey
meetingServerDomain: '', //会议服务器地址,支持私有化部署
NIMConf: {
// IM私有化配置
}
}
neWebMeeting.actions.init(800, 600, config); // (width,height)单位px 建议比例4:3
neWebMeeting.actions.afterLeave(() => {
console.log('离开会议回调')
})
Expand All @@ -42,6 +51,20 @@
console.log(e)
})
}

function loginWithNEMeeting() { // 账号密码登陆
const account = '',password = '';
neWebMeeting.actions.loginWithNEMeeting(account, password, function(e) {
console.log(e)
})
}

function loginWithSSOToken() { // ssoToken登陆
const ssoToken = '';
neWebMeeting.actions.loginWithSSOToken(ssoToken, function(e) {
console.log(e)
})
}

function create() { // 创建
neWebMeeting.actions.create({
Expand Down
19 changes: 19 additions & 0 deletions 开发文档/SDK集成/Web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CHANGELOG

# 2020-11-13 @ v1.3.1

## Added

* 新增会议初始化信息配置

- 额外增加config配置项 `neWebMeeting.actions.init(width, height, config)`

* 新增获取会议短号信息

- `neWebMeeting.actions.NEMeetingInfo.shortMeetingId`

* 新增两种登陆方式

- 账密登陆:`neWebMeeting.actions.loginWithNEMeeting`

- SSO登陆:`neWebMeeting.actions.loginWithSSOToken`
Loading

0 comments on commit 9d02769

Please sign in to comment.