Hi folks, just question: Is there a way to change ...
# helpdesk
b
Hi folks, just question: Is there a way to change the way a user is publishing tracks mid-way through a presentation? For example I'm building a live-streaming feature to a website that looks very similar to the example you guys have but I want to add the capability of the streamer to share their screen and change from their camera to screen sharing mid-way through the stream. The problem I have right now is that if I set
screen
to
true
in the
LiveKitRoom
provider I can easily change the current track being used in the room while the streaming is happening but it has a weird behavior of asking the screen sharing permissions right when the streamer opens the room instead of when we change the current track shown to be the screen sharing. I also managed to make it work by rebuilding the
LiveKitRoom
provider when the streamer selects to share screen, this way they only have to give permission for their screen sharing when they actively select to do so but the problem is that the whole room seems to go down for a second when this happens, erasing the chat history completely for both streamer and users watching. So I wanted to know if there is any better way to handle this. Note: This is not super important, the first situation where we ask screen sharing permissions right off the bat is fine for me, it's mostly me trying to polishing some user experience points. NEVERMIND: Just found you can use
TrackToggle
to turn screen sharing from inside the room that was initiated without screen sharing permission.
👍 1
🚀 2