-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
[Question || Bug] How to replace 'placeScreenSharingCall' by 'setScreensharingEnabled' to initiate a screensharing call w/o using Electron desktopCapturer #1898
Comments
We removed @menturion, why do you want this feature? |
Thanks for your reply.
by a working snippet using the new method ...
I want to initiate a new screensharing call, using the browser's own screen picker.
So my question is whether this is a bug or how do I have to establish a NEW screensharing call by using the new method |
Ah, @menturion, could we perhaps move to #matrix-dev for faster communication...? Ping me there ( |
Again many thanks for your reply. In my experience, it is better to discuss such issues asynchronously here on GitHub. Issues are searchable for others who might have the same or similar issues, and on-topic discussion threads are not fragmented by other discussions (on Matrix) happening at the same time. I just filed another bug report here #1912. |
I tend to prefer to discuss on Matrix (possibly in a DM to avoid talking over each other) and then posting the solution to GH if necessary :) The way to do this should be something like: const call = client.createCall(roomId);
// You can also place a voice call but you won't be able to screen-share if the other side doesn't support MSC3077 - multi-stream VoIP
await call.placeVideoCall();
// You might want to wait for the other side to pick up here, so that the js-sdk uses a separate stream for screen-sharing if possible
call.setScreensharingEnabled(true); Does this explain the issues you're having? |
Thanks for sharing this. I was able to test it now. This ...
... is unfortunately not a replacement for the former The removal of the |
This was intended to be a breaking change behind which was reasoning:
Hopefully, the above explains why we did this change Also no need to ping me every time... |
I see. |
Okay, let's close this then. Let me know if you have more questions |
matrix-js-sdk: v12.4.0
Hi,
I am trying to replace the former
call.placeScreenSharingCall()
by the newly introducedcall.setScreensharingEnabled(true)
(see #1685) to initiate a screensharing call (i.e. not to add screensharing to an existing voice call).I am constantly getting an exception:
Previously (v12.2.0), I just needed to call
await call.placeScreenSharingCall()
and to select the browser's native screen selector to start a screensharing call.What is a simple replacement of ...
await call.placeScreenSharingCall();
using ...
in case of the absence of the Electron desktopCapturer?
The text was updated successfully, but these errors were encountered: