powerful-student-91462
04/19/2024, 7:53 PMhost
↔️ host
WebRTC connection.
Can we get best of both world ? host
↔️ host
whenever possible and cloud SFU
if not ?narrow-refrigerator-78531
04/19/2024, 10:50 PMgreat-piano-33741
04/20/2024, 9:28 AMError: could not establish Publisher connection, state: new
cannot send signal request before connected, type: trickle
Is there anything we missed on the migration guide for the track publishment?
We created the room as mentioned below:-
const room: Room = new Room({
adaptiveStream: true,
dynacast: true,
publishDefaults: {
screenShareEncoding: new VideoPreset(1280, 720, 750_000, 5, "medium")
.encoding,
},
});
room.prepareConnection(process.env.NEXT_PUBLIC_LIVEKIT_URL || "", updatedRoom.token);
await room
.connect(process.env.NEXT_PUBLIC_LIVEKIT_URL || "", updatedRoom.token)
.then((res) => {
room?.on(RoomEvent.Disconnected, () => {
router.push("/dashboard/rooms");
});
})
.catch((err) => {});
};
We have implemented tracks publishment as mentioned below
const { localParticipant, isScreenShareEnabled } = useLocalParticipant();
localParticipant
.setScreenShareEnabled(!isScreenShareEnabled, { audio: true , systemAudio:"include",contentHint: "motion"})
.then(() => {
localParticipant.setCameraEnabled(false);
const message = {
user: userDetails,
source: "screen_share",
stopStream: isScreenShareEnabled,
identity: localParticipant.identity,
messageBody: "",
createdAt: Date.now(),
type: "handleScreenShare",
};
localParticipant.publishData(encoder.encode(message), { reliable: true});
})
We are using below versions :-
"livekit-client": "^2.0.10",
"@livekit/components-react": "^2.0.6",
"@livekit/components-styles": "^1.0.11",
"@livekit/egress-sdk": "^0.2.0",
Chrome version: 124
This issue we faced while updating the chorme and migrated to livekit - V2. Before this migration (V1) all things are working fine with the tracks and connectionwide-ghost-45455
04/20/2024, 6:32 PMwide-ghost-45455
04/20/2024, 6:32 PMpowerful-student-91462
04/20/2024, 8:29 PMkind-country-24402
04/22/2024, 1:18 AMbetter-fireman-37968
04/22/2024, 3:26 AMgreat-piano-33741
04/22/2024, 2:18 PMsteep-balloon-41261
04/22/2024, 3:17 PMnice-umbrella-60708
04/22/2024, 6:12 PMcrooked-eye-39789
04/22/2024, 6:39 PMstale-apple-21922
04/22/2024, 11:50 PMlate-eve-49652
04/23/2024, 9:48 AMpowerful-pizza-52616
04/24/2024, 5:20 AMroomJoin, roomRecord, recorder, hidden
grants set to true and expiration > remaining meeting duration
.
This works as I expect it to work, until today when during one of my meetings, this "recorder-bot" user wasn't able to join. Looking at the events of the session, I see participant joined, participant active and participant left, events for "recorder-bot" in quick succession. Didn't specifically see a reason why the disconnect happened. Egress was active till the end of the meeting but obviously didn't record anything other then a "Disconnected" state message.
I am currently evaluating the app on livekit cloud free plan and my usage limits are under 50GB of bandwidth and 1 active egress. (Update: It was probably because egress usage limit was exceeded, upgraded to paid plan. Will check back in case I see the issue again, thank you)
1. Since the whiteboard is created/shared using a different tech, i.e. yjs + tldraw, I am not sure if even a custom template in room composite would help. That was the assumption that led me to use web egress, please help clarify in case this assumption is incorrect.
2. Is there more info I can gather to determine why the "recorder-bot" was not able to join the room in order to avoid it from happening again?
Thank you!ancient-cpu-94526
04/24/2024, 4:41 PMbetter-fireman-37968
04/25/2024, 3:57 AM{"asctime": "2024-04-25 03:46:24,009", "level": "INFO", "name": "livekit.agents", "message": "worker is at full capacity, marking as unavailable", "load": 3.40093994140625, "threshold": 0.8}
{"asctime": "2024-04-25 03:46:24,012", "level": "INFO", "name": "livekit.agents", "message": "registered worker", "id": "AW_XPqS6a4ENJcV", "server_info": "edition: Cloud\nversion: \"1.5.3\"\nprotocol: 13\nregion: \"Japan\"\nnode_id: \"NC_OTOKYO1A_ZGcWGZJT2x4a\"\n"}
{"asctime": "2024-04-25 03:47:54,062", "level": "INFO", "name": "livekit.agents", "message": "worker is below capacity, marking as available", "load": 0.7567138671875, "threshold": 0.8}
late-gold-50074
04/25/2024, 10:49 AMancient-cpu-94526
04/25/2024, 12:27 PMcrooked-eye-39789
04/25/2024, 4:26 PMshy-account-19030
04/25/2024, 6:44 PMswift-room-83617
04/25/2024, 8:20 PMlate-gold-50074
04/26/2024, 5:56 AMpolite-nest-45611
04/26/2024, 7:09 AMlate-gold-50074
04/26/2024, 7:43 AMgorgeous-elephant-19666
04/26/2024, 8:55 PMcrooked-eye-39789
04/27/2024, 4:29 PMshy-account-19030
04/27/2024, 5:07 PMshy-account-19030
04/27/2024, 5:30 PMimportant-boots-3535
04/28/2024, 7:56 PM