Closed misterdebug closed 1 week ago
Hey @misterdebug , thank you!
Screensharing is enabled for everyone by default. Can you clarify what you are trying to do?
Closing due to no activity, please reopen if the issue persists.
Hi @tommygaessler, I always have the same problem when I open a discussion between 2 people: one has the share button (blue button that triggers sharing) and the other has the greyed-out button (and when clicked, nothing happens).
Hey @misterdebug , can you please share a screenshot of the grayed-out button?
Hi @tommygaessler, here a screenshot, 1st person (on the left) has blue button but the 2nd one (on the right) has grey button
Hey @misterdebug , the button will be disabled if the host has disabled screen sharing.
Have you disabled screensharing via any Video SDK function?
Hi @tommygaessler, I didn't even know it was possible haha. No, I only use the kit.
Hi,
First of all, congratulations on all the work done for this toolkit :) I would like to enable screen sharing for everyone, and from what I understand of the code, only the host can do it
sharePrivilege: vo.OnlyHost
.I found this part to change the button back to blue:
$("ngClass", 1 !== o.videoSdkService.stream.getSharePrivilege() || null != (e = Yi(1, 2, o.currentUser$)) && e.isHost ? "ctrl-btn" : "ctrl-btn grey")("disabled", 1 === o.videoSdkService.stream.getSharePrivilege() && !(null != (n = Yi(2, 4, o.currentUser$)) && n.isHost))
And I found this part too :if (S === vo.OnlyHost && !K) return Promise.reject({ type: to, reason: "only host can start screen share" });
There is a more elegant way to do it? Or is it possible to add this feature? Thanks