Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window screen share not working #55

Open
girish-d opened this issue Jul 4, 2024 · 0 comments
Open

Window screen share not working #55

girish-d opened this issue Jul 4, 2024 · 0 comments

Comments

@girish-d
Copy link

girish-d commented Jul 4, 2024

LiveKit Unity version: 1.5.1
Unity version: 2023.2.5 & 6.0.0.5

Steps to reproduce:

  1. Create a new WebGL project in Unity
  2. From the Package Manager import the LiveKit package (via the git URL)
  3. From the same Package Manager window, import the Livekit sample from the Samples tab
  4. In ExampleAssembly.asmdef under Assets\Samples\LiveKit WebGL SDK\1.5.1\Example\ExampleRoom, add the LiveKitBridge reference
  5. Generate a token in LiveKit Cloud
  6. In JoinScene.unity, copy the LiveKit Cloud project URL & token to the input fields under the UI Canvas
  7. Edit the ExampleRoom.cs file and add the following after line 50 (at the end of the Start() method):

yield return m_Room.LocalParticipant.SetScreenShareEnabled(true);

  1. Build and Run the project
  2. Accept all permission requests
  3. Click on the Connect button and accept the permission requests
  4. When the Screen Share dialog pops up, select the 'Window' tab and then select an open application window

Result:
The video track shows up momentarily and then disappears.

The track gets created via the HandleAddedTrack() method in ExampleRoom.cs and then HandleRemovedTrack() gets called immediately after & the video track is removed.

NOTE: This does not happen when selecting any Chrome tab or the Entire Screen option in the Screen Share dialog. This can be tested by clicking on the Disconnect button in the RoomScene and then connecting again.

Expected Behaviour:
Screen share video track is displayed like it is for the Chrome Tab and Entire Screen options.

Looks to be similar to this issue: livekit/client-sdk-flutter#463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant