fix video
This commit is contained in:
parent
79a86ee4c2
commit
efd71694c6
|
|
@ -90,11 +90,12 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
|
||||||
try {
|
try {
|
||||||
const roomName = `canvas-room-${shape.id.replace(/[^A-Za-z0-9-_]/g, "-")}`
|
const roomName = `canvas-room-${shape.id.replace(/[^A-Za-z0-9-_]/g, "-")}`
|
||||||
|
|
||||||
// Create room using the worker endpoint
|
// Create room using Daily.co API directly
|
||||||
const response = await fetch(`${WORKER_URL}/daily/rooms`, {
|
const response = await fetch(`https://api.daily.co/v1/rooms`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
Authorization: `Bearer ${import.meta.env.VITE_DAILY_API_KEY}`,
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
name: roomName,
|
name: roomName,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue