Skip to content

Commit

Permalink
update: meeting 4.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxiaochang committed Sep 9, 2024
1 parent df88e79 commit 21ff643
Show file tree
Hide file tree
Showing 4 changed files with 13,606 additions and 7 deletions.
6,880 changes: 6,880 additions & 0 deletions SampleCode/H5/NEMeetingKit_h5_v4.8.0.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions SampleCode/H5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@
<!-- 预留一个dom用于挂载会议组件 -->
<div id="ne-web-meeting"></div>
<!-- 引入会议组件sdk -->
<script src="./NEMeetingKit_h5_v4.6.0.js"></script>
<script src="./NEMeetingKit_h5_v4.8.0.js"></script>
<script>
/**
* 先执行项目初始化,将会议初始化操作执行结束后,会依据初始化提供的宽高,进行占位
* 然后执行登陆,获取登陆人员信息
* 此时,根据需要,可以进行会议的创建或加入
*/
NEMeetingKit = NEMeetingKit.default.oldNEMeetingKit

/* 初始化
* @param width:宽度(px),为0则表示100%
Expand All @@ -63,7 +64,8 @@
*/
function init() {
const config = {
appKey: "", //云信服务appkey
appKey: "4649991c6ab7cc5a4309ccf25d8793e5", //云信服务appkey
serverUrl: 'https://roomkit-dev.netease.im',
};
// 检测浏览器兼容性 返回true表示支持,否则可能存在兼容问题
const result = NEMeetingKit.actions.checkSystemRequirements()
Expand Down
6,702 changes: 6,702 additions & 0 deletions SampleCode/Web/NEMeetingKit_v4.8.0.js

Large diffs are not rendered by default.

25 changes: 20 additions & 5 deletions SampleCode/Web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
<input class="meeting-id" type="text" placeholder="meetingId">
<button onclick="join()">加入</button>
<div id="ne-web-meeting"></div>
<script src="./NEMeetingKit_v4.6.0.js"></script>
<script src="./NEMeetingKit_v4.8.0.js"></script>
<script>
NEMeetingKit = NEMeetingKit.default.oldNEMeetingKit
/**
* 先执行项目初始化,将会议初始化操作执行结束后,会依据初始化提供的宽高,进行占位
* 然后执行登陆,获取登陆人员信息
Expand Down Expand Up @@ -54,10 +55,24 @@
}

function loginWithNEMeeting() { // 账号密码登陆
const username = '',password = '';
NEMeetingKit.actions.loginWithPassword({username, password}, function(e) {
console.log(e)
})
const username = 'wiewei01',password = 'Ww1234';
// NEMeetingKit.actions.loginWithPassword({username, password}, function(e) {
// console.log(e)
// })
//
NEMeetingKit.actions.anonymousJoinMeeting(
{
meetingNum: '790402924',
nickName: '123',
video: 0,
audio: 0,
showSubject: true,
showMeetingRemainingTip: true,
},
function (e) {
console.log(e);
}
);
}


Expand Down

0 comments on commit 21ff643

Please sign in to comment.