This message was deleted.
# helpdesk
s
This message was deleted.
i
Hey there LiveKit team, just want to follow up on this one! For Unity WebGL it would be super helpful to know: 1. What the default settings are for screen share. 2. How to fine-tune the video framerate, bitrate, and audio bitrate, etc specifically for screen share. Thanks! (P.S. - I am guessing @boundless-energy-78552 is the best person to ask about this?)
Also, if this API is going to change soon due to native Unity SDK being released and WebGL being wrapped into that, it may also be helpful to know if I should hold off on this sort of thing if that'll release soon. Thanks!
b
Hey sorry, for the late answer, you can edit the VideoSettings by creating a custom video track: Client.CreateLocalScreenTracks The Native SDK will not directly support WebGL at the release but this is planned to do
i
@boundless-energy-78552 Thanks for the recommendation! So for example, using C# how exactly would I use that to initiate a screen share with 60fps frame rate? Is there an example somewhere, or could you provide a code snippet? And also just wondering what the default values are set to. Thanks!
Hey @boundless-energy-78552, just want to follow up on this one. Rather than writing instructions in a Slack thread, maybe it would make the most sense for some official documentation to be written on the website for initiating a screen share (with audio) that has custom quality/framerate/bitrate settings for both video and audio, with example code for doing this in Unity C#. And maybe the documentation could share what the default settings are set to, and what some "good" settings might be for adjusting the quality/framerate/bitrate higher or lower than default. Would it be possible for you (or another LiveKit team member) to do this? Currently I just don't feel like I have enough information to be empowered to stray from the default screen share wrapper function. I could potentially experiment with the code and eventually arrive at a solution, however iteration is currently not very easy since I can't test in the Unity Editor and would have to make a build each time. It would be amazing to have some specific documentation that I could follow in order to initiate a screen share with specific audio/video settings and some code snippets for Unity C#. 🙂 By the way, we've gone ahead and launched our screen share feature just using the default LiveKit settings. It seems to work pretty well! But we would love to tune the audio/video quality settings since our platform will soon be hosting the virtual component of a film festival, where longer-format videos/films will be screened via the screen share feature.
I do see that there is an "Advanced track management" section in the docs under "Publishing Tracks". But I am not sure what the "right" way is to adjust audio/video settings specifically for screen share and then initiate screen share. Perhaps I could deep dive into the code to see what
yield return currentRoom.LocalParticipant.SetScreenShareEnabled(true);
is actually doing and try to mirror that but with adjusted settings... But it would be greatly helpful to have some specific documentation and example settings I could follow. As a beginner to LiveKit, some of this is a bit confusing/intimidating, or maybe not immediately obvious (even if it's actually easy). I just need a bit more help/direction to get going. Thanks!