Re-enable screen sharing on Safari
Appears to work fine now, and no reason to think it shouldn't on Livekit.
This commit is contained in:
@@ -87,9 +87,6 @@ import {
|
|||||||
import { useOpenIDSFU } from "../livekit/openIDSFU";
|
import { useOpenIDSFU } from "../livekit/openIDSFU";
|
||||||
|
|
||||||
const canScreenshare = "getDisplayMedia" in (navigator.mediaDevices ?? {});
|
const canScreenshare = "getDisplayMedia" in (navigator.mediaDevices ?? {});
|
||||||
// There is currently a bug in Safari our our code with cloning and sending MediaStreams
|
|
||||||
// or with getUsermedia and getDisplaymedia being used within the same session.
|
|
||||||
// For now we can disable screensharing in Safari.
|
|
||||||
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
||||||
|
|
||||||
// How long we wait after a focus switch before showing the real participant list again
|
// How long we wait after a focus switch before showing the real participant list again
|
||||||
@@ -369,7 +366,7 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!reducedControls) {
|
if (!reducedControls) {
|
||||||
if (canScreenshare && !hideScreensharing && !isSafari) {
|
if (canScreenshare && !hideScreensharing) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
<ScreenshareButton
|
<ScreenshareButton
|
||||||
key="3"
|
key="3"
|
||||||
|
|||||||
Reference in New Issue
Block a user