twilio / twilio-video-processors.js

Twilio Video Processors is a collection of video processing tools which can be used with Twilio Video JavaScript SDK to apply transformations and filters to a video track.
Other
33 stars 21 forks source link

VIDEO-4475- Adding isSupported error modal #15

Closed PikaJoyce closed 3 years ago

PikaJoyce commented 3 years ago

I've added a bootstrap modal to display whenever chrome is not the browser in use.

Here is the modal on Safari : image

on Firefox : image

I was originally using Video.isSupported but since we support multiple browsers on the SDK, and we only support chrome for video-processors, I am using window.chrome to do this check. However, this works on Microsoft Edge.

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

Pull Request Details

Description

A description of what this PR does.

Burndown

Before review

charliesantos commented 3 years ago

Hey @PikaJoyce , sorry if it wasn't clear, but we want to add the isSupported flag in the SDK so that you can do something like

import { isSupported } from '@twilio/video-processors-sdk';

Then use that flag in your example app.

The isSupported flag should return true if OffscreenCanvas is available and you are not running on a mobile device. We should also add unit tests for this flag.

PikaJoyce commented 3 years ago

Going to close this for now :D