Skip to main content

Feature Detector

Detect user agents capabilities in order to provide user friendly notifications, messages, and fallbacks instead of relying on browser identification techniques.

import { FeatureDetector } from 'eyeson';

FeatureDetector.canUseEyeson();
FeatureDetector.canScreenCapture();
FeatureDetector.inIframe();
FeatureDetector.hasMobileDevice();

The Feature Detector also provides lower level checks that are used in the library itself or to provide specific advises to an end-user. You propably won't need them, but for the sake of completeness:

FeatureDetector.canToggleCamera();
FeatureDetector.canFullscreen();
FeatureDetector.canPip();
FeatureDetector.canSFU();
FeatureDetector.canVirtualBackground();
FeatureDetector.canChangeAudioOutput();
FeatureDetector.canChooseDisplaySurface();
FeatureDetector.canVirtualBackground();