[mirotalksfu] - add chat to query params, update widget
هذا الالتزام موجود في:
@@ -23,6 +23,7 @@ async function getJoin() {
|
||||
audio: false,
|
||||
video: false,
|
||||
screen: false,
|
||||
chat: false,
|
||||
hide: false,
|
||||
notify: true,
|
||||
duration: 'unlimited',
|
||||
|
||||
@@ -24,6 +24,7 @@ $data = array(
|
||||
"audio" => false,
|
||||
"video" => false,
|
||||
"screen" => false,
|
||||
"chat" => false,
|
||||
"hide" => false,
|
||||
"notify" => true,
|
||||
"duration" => "unlimited",
|
||||
|
||||
@@ -19,6 +19,7 @@ data = {
|
||||
"audio": "false",
|
||||
"video": "false",
|
||||
"screen": "false",
|
||||
"chat": "false",
|
||||
"hide": "false",
|
||||
"notify": "true",
|
||||
"duration": "unlimited",
|
||||
|
||||
@@ -15,6 +15,7 @@ REQUEST_DATA='{
|
||||
"audio": false,
|
||||
"video": false,
|
||||
"screen": false,
|
||||
"chat": false,
|
||||
"hide": false,
|
||||
"notify": true,
|
||||
"duration": "unlimited",
|
||||
|
||||
@@ -174,6 +174,9 @@ definitions:
|
||||
screen:
|
||||
type: boolean
|
||||
default: false
|
||||
chat:
|
||||
type: boolean
|
||||
default: false
|
||||
hide:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
@@ -64,7 +64,7 @@ dev dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.9.27
|
||||
* @version 1.9.28
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -674,10 +674,11 @@ function startServer() {
|
||||
|
||||
log.debug('Direct Join', req.query);
|
||||
|
||||
// http://localhost:3010/join?room=test&name=mirotalksfu&audio=0&video=0&screen=0¬ify=0&chat=1
|
||||
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0¬ify=1&duration=00:00:30
|
||||
// http://localhost:3010/join?room=test&roomPassword=0&name=mirotalksfu&audio=1&video=1&screen=0&hide=0¬ify=0&token=token
|
||||
|
||||
const { room, roomPassword, name, audio, video, screen, hide, notify, duration, token, isPresenter } =
|
||||
const { room, roomPassword, name, audio, video, screen, hide, notify, chat, duration, token, isPresenter } =
|
||||
checkXSS(req.query);
|
||||
|
||||
if (!room) {
|
||||
|
||||
@@ -76,7 +76,7 @@ module.exports = class ServerApi {
|
||||
|
||||
getJoinURL(data) {
|
||||
// Get data
|
||||
const { room, roomPassword, name, avatar, audio, video, screen, hide, notify, duration, token } = data;
|
||||
const { room, roomPassword, name, avatar, audio, video, screen, chat, hide, notify, duration, token } = data;
|
||||
|
||||
const roomValue = room || uuidV4();
|
||||
const roomPasswordValue = roomPassword || false;
|
||||
@@ -85,6 +85,7 @@ module.exports = class ServerApi {
|
||||
const audioValue = audio || false;
|
||||
const videoValue = video || false;
|
||||
const screenValue = screen || false;
|
||||
const chatValue = chat || false;
|
||||
const hideValue = hide || false;
|
||||
const notifyValue = notify || false;
|
||||
const durationValue = duration || 'unlimited';
|
||||
@@ -101,6 +102,7 @@ module.exports = class ServerApi {
|
||||
`&audio=${audioValue}` +
|
||||
`&video=${videoValue}` +
|
||||
`&screen=${screenValue}` +
|
||||
`&chat=${chatValue}` +
|
||||
`&hide=${hideValue}` +
|
||||
`¬ify=${notifyValue}` +
|
||||
`&duration=${durationValue}` +
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم