JITSI 视频会议 - 是否有任何配置或 API 可以在 host/moderator 离开会议时踢出所有参与者?
JITSI video meet - Is there any config or API to kick out all the participants when the host/moderator leaves the meeting?
我安装了JITSI,创建了一个视频会议平台。我创建了一个会议并与我的朋友分享。
我是会议的host/moderator。我加入会议的朋友都是参与者。现在,当我 leave/disconnect 开会时,与会者并没有断开连接,而且他们仍在没有我(主持人(或)主持人)的情况下访问会议室。
现在,我正在寻找一种解决方案来在主持人离开会议时删除参与者。
提前致谢。
主持人在离开会议后不能踢出参会者。第一个加入会议的参与者将在实际主持人离开会议后成为主持人。
我使用了Laravelphp框架。
您可以指定特定用户作为版主。您可以使用 readyToClose api 方法来传递重定向 url.
在我的示例中,我通过控制器传递会议结束 url。当主持人结束会议时,我使用套接字将信号发送给所有其他参与者。
<script>
var domain = "meet.example.com";
if(isModerator == true) {
var options = {
userInfo: {
moderator: true,
},
roomName: "123",
width: "100%",
height: "100%",
parentNode: document.querySelector('#container'),
}
} else {
var options = {
userInfo: {
moderator: false,
},
roomName: "123",
width: "100%",
height: "100%",
parentNode: document.querySelector('#container'),
}
}
var api = new JitsiMeetExternalAPI(domain, options);
api.on('readyToClose', () => {
window.location.href = '{{ $meeting_end_url }}';
});
</script>
//pusher
channel.bind('meeting ended', function (meeting) {
window.setTimeout(function() {
window.location.href = '/'; <-- redirect path
}, 5000);
});
在按钮 onclick() 中使用它
endMeetingForAll () {
const { _allParticipant,_changeNotification} = this.props;
_allParticipant.map((participant) => {
if( !participant.local) {
APP.store.dispatch(kickParticipant(participant.id));
}
});
window.APP.conference.hangup(false);
executeCommand('hangup');
window.close();
}
像这样使用来自 mapstateToProps return 的所有参与者:
_allParticipant: getParticipants(state)
我安装了JITSI,创建了一个视频会议平台。我创建了一个会议并与我的朋友分享。 我是会议的host/moderator。我加入会议的朋友都是参与者。现在,当我 leave/disconnect 开会时,与会者并没有断开连接,而且他们仍在没有我(主持人(或)主持人)的情况下访问会议室。
现在,我正在寻找一种解决方案来在主持人离开会议时删除参与者。
提前致谢。
主持人在离开会议后不能踢出参会者。第一个加入会议的参与者将在实际主持人离开会议后成为主持人。
我使用了Laravelphp框架。 您可以指定特定用户作为版主。您可以使用 readyToClose api 方法来传递重定向 url.
在我的示例中,我通过控制器传递会议结束 url。当主持人结束会议时,我使用套接字将信号发送给所有其他参与者。
<script>
var domain = "meet.example.com";
if(isModerator == true) {
var options = {
userInfo: {
moderator: true,
},
roomName: "123",
width: "100%",
height: "100%",
parentNode: document.querySelector('#container'),
}
} else {
var options = {
userInfo: {
moderator: false,
},
roomName: "123",
width: "100%",
height: "100%",
parentNode: document.querySelector('#container'),
}
}
var api = new JitsiMeetExternalAPI(domain, options);
api.on('readyToClose', () => {
window.location.href = '{{ $meeting_end_url }}';
});
</script>
//pusher
channel.bind('meeting ended', function (meeting) {
window.setTimeout(function() {
window.location.href = '/'; <-- redirect path
}, 5000);
});
在按钮 onclick() 中使用它
endMeetingForAll () {
const { _allParticipant,_changeNotification} = this.props;
_allParticipant.map((participant) => {
if( !participant.local) {
APP.store.dispatch(kickParticipant(participant.id));
}
});
window.APP.conference.hangup(false);
executeCommand('hangup');
window.close();
}
像这样使用来自 mapstateToProps return 的所有参与者:
_allParticipant: getParticipants(state)