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

Commit 55cf03a

Browse files
committed
Allow creating screen sharing stream on Safari. (#335)
Safari supports getDisplayMedia. (cherry picked from commit 3f0da50)
1 parent 6fac19e commit 55cf03a

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
@@ -150,11 +150,6 @@ export class MediaStreamFactory {
150150
return Promise.reject(
151151
new TypeError('Cannot share screen without video.'));
152152
}
153-
if (isVideoConstrainsForScreenCast(constraints) && !utils.isChrome() &&
154-
!utils.isFirefox()) {
155-
return Promise.reject(
156-
new TypeError('Screen sharing only supports Chrome and Firefox.'));
157-
}
158153
if (isVideoConstrainsForScreenCast(constraints) &&
159154
typeof constraints.audio === 'object' &&
160155
constraints.audio.source !==

0 commit comments

Comments
 (0)