[mirotalksfu] - Add Support for Custom Avatar via Options Object

هذا الالتزام موجود في:
Miroslav Pejic
2025-04-08 03:30:10 +02:00
الأصل ff493e278c
التزام f69b201ecc
16 ملفات معدلة مع 233 إضافات و77 حذوفات

عرض الملف

@@ -19,9 +19,10 @@ async function getJoin() {
room: 'test',
roomPassword: false,
name: 'mirotalksfu',
audio: true,
video: true,
screen: true,
avatar: false,
audio: false,
video: false,
screen: false,
hide: false,
notify: true,
duration: 'unlimited',

عرض الملف

@@ -20,9 +20,10 @@ $data = array(
"room" => "test",
"roomPassword" => false,
"name" => "mirotalksfu",
"audio" => true,
"video" => true,
"screen" => true,
"avatar" => false,
"audio" => false,
"video" => false,
"screen" => false,
"hide" => false,
"notify" => true,
"duration" => "unlimited",

عرض الملف

@@ -15,9 +15,10 @@ data = {
"room": "test",
"roomPassword": "false",
"name": "mirotalksfu",
"audio": "true",
"video": "true",
"screen": "true",
"avatar": "false",
"audio": "false",
"video": "false",
"screen": "false",
"hide": "false",
"notify": "true",
"duration": "unlimited",

عرض الملف

@@ -1,11 +1,33 @@
#!/bin/bash
# Configuration
API_KEY_SECRET="mirotalksfu_default_secret"
MIROTALK_URL="https://sfu.mirotalk.com/api/v1/join"
# Alternative URL for local testing:
# MIROTALK_URL="http://localhost:3010/api/v1/join"
curl $MIROTALK_URL \
--header "authorization: $API_KEY_SECRET" \
--header "Content-Type: application/json" \
--data '{"room":"test","roomPassword":"false","name":"mirotalksfu","audio":"true","video":"true","screen":"false","hide":"false","notify":"true","duration":"unlimited","token":{"username":"username","password":"password","presenter":"true", "expire":"1h"}}' \
--request POST
# Request data with proper JSON formatting
REQUEST_DATA='{
"room": "test",
"roomPassword": false,
"name": "mirotalksfu",
"avatar": false,
"audio": false,
"video": false,
"screen": false,
"hide": false,
"notify": true,
"duration": "unlimited",
"token": {
"username": "username",
"password": "password",
"presenter": true,
"expire": "1h"
}
}'
# Make the API request
curl -X POST "$MIROTALK_URL" \
-H "Authorization: $API_KEY_SECRET" \
-H "Content-Type: application/json" \
-d "$REQUEST_DATA"

عرض الملف

@@ -162,6 +162,9 @@ definitions:
name:
type: string
default: 'mirotalksfu'
avatar:
type: ['boolean', 'string'] # Allow boolean or string type
default: false
audio:
type: boolean
default: false
@@ -212,6 +215,8 @@ definitions:
properties:
name:
type: string
avatar:
type: string
presenter:
type: boolean
video: