steep-balloon-41261
08/30/2023, 9:34 AMadorable-house-73941
08/30/2023, 9:35 AMEG_CzEGgWbRBoS7 on cloud.livekit.io.adorable-house-73941
08/30/2023, 9:36 AMadorable-house-73941
08/30/2023, 9:38 AMable-gigabyte-21598
08/30/2023, 7:53 PMCAMERA track per participant. For now you would need to modify the template (found at https://github.com/livekit/egress/tree/main/template-default), host it, and use the custom_base_url in your requestdry-elephant-14928
08/30/2023, 8:56 PMadorable-house-73941
08/31/2023, 8:12 AMGridLayout without much modification. Checking in meet.livekit.io shows the same duplicate-stream behavior. I assume meet.livekit.io uses the same GridLayoutadorable-house-73941
08/31/2023, 8:14 AMTrackPublicationOptions we haven't set a Source, but looking at the TrackReference[] in the webapp I see that it has set source: "camera" for the video tracks. So I assume it defaults to 'camera'?adorable-house-73941
08/31/2023, 8:14 AMdry-elephant-14928
08/31/2023, 5:45 PMdry-elephant-14928
08/31/2023, 5:45 PMadorable-house-73941
09/01/2023, 8:08 AMbuffer := NewBufferReader(10, track.ctx)
localTrack, err = lksdk.NewLocalReaderTrack(buffer, webrtc.MimeTypeH264,
lksdk.ReaderTrackWithFrameDuration(time.Second/15),
lksdk.ReaderTrackWithOnWriteComplete(track.onTrackFinished),
)
_, err = room.LocalParticipant.PublishTrack(localTrack, &lksdk.TrackPublicationOptions{
Name: track.name,
VideoWidth: 1280,
VideoHeight: 720,
})
The track.name is a unique value for every video string. For example thermal, left, right and back. Attaching a screenshot of our own web-layout where these names are seen being used.
NewBufferReader creates a thread-safe buffer that implements ReadCloser . It is simultaneously filled up by the incoming h264 packets over RTSP while livekit reads from it. Sometimes packets are split-up when the H264 packets are bigger than what livekit requests to read. Let me know if you need this code as well.adorable-house-73941
09/01/2023, 8:10 AMeager-zoo-16408
09/01/2023, 9:26 AMadorable-house-73941
09/01/2023, 9:27 AMdry-elephant-14928
09/01/2023, 5:30 PMeager-zoo-16408
09/05/2023, 8:52 AM