Skip to content

Commit f96c36c

Browse files
Merge pull request #243951 from chriswhilar/patch-73
Update raw-media-access-javascript.md
2 parents fc5a10b + 2b34f23 commit f96c36c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

articles/communication-services/quickstarts/voice-video-calling/includes/raw-media/raw-media-access-javascript.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ console.log(localScreenSharingStream.mediaStreamType) // 'RawMedia'
300300
```
301301
302302
### Access the raw screen share stream from a screen, browser tab, or app, and apply effects to the stream
303-
303+
The following is an example on how to apply a black and white effect on the raw screen sharing stream from a screen, browser tab, or app.
304+
NOTE: The Canvas context filter = "grayscale(1)" API is not supported on Safari.
304305
```js
305306
let bwTimeout;
306307
let bwVideoElem;
@@ -322,6 +323,7 @@ const applyBlackAndWhiteEffect = function (stream) {
322323
try {
323324
let begin = Date.now();
324325
// start processing.
326+
// NOTE: The Canvas context filter API is not supported in Safari
325327
bwCtx.filter = "grayscale(1)";
326328
bwCtx.drawImage(bwVideoElem, 0, 0, width, height);
327329
const imageData = bwCtx.getImageData(0, 0, width, height);

0 commit comments

Comments
 (0)