Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 3f0da50

Browse files
authored
Allow creating screen sharing stream on Safari. (#335)
Safari supports getDisplayMedia.
1 parent 1b72684 commit 3f0da50

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sdk/base/mediastream-factory.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ export class MediaStreamFactory {
149149
return Promise.reject(
150150
new TypeError('Cannot share screen without video.'));
151151
}
152-
if (isVideoConstrainsForScreenCast(constraints) && !utils.isChrome() &&
153-
!utils.isFirefox()) {
154-
return Promise.reject(
155-
new TypeError('Screen sharing only supports Chrome and Firefox.'));
156-
}
157152
if (isVideoConstrainsForScreenCast(constraints) &&
158153
typeof constraints.audio === 'object' &&
159154
constraints.audio.source !==

0 commit comments

Comments
 (0)