Configuration
SDK Version Information
You can retrieve the current version of EyesonJS using the following code:
console.log(eyeson.config.version);
// -> "1.8.9"
Screen Capture Configuration
If your application doesn't require screen sharing functionality, you can disable this feature:
eyeson.config.screencapture = false;
Safari SFU Mode Support
Since v1.5.1, Eyeson supports SFU mode in Safari (both desktop and mobile). If you encounter compatibility issues, you can revert to the previous behavior:
eyeson.config.allowSafariSFU = false; // default is true
Advanced Configuration Options
Version 1.8.9 introduced additional configuration options:
Option | Description |
---|---|
verbose | Controls logging output for Logger.info() and Logger.debug() messages |
vbgScriptPath | Specifies the path to Virtual Background scripts |
eyeson.config.verbose = true;
eyeson.config.vbgScriptPath = 'vendor/tflite/';
Camera Quality Settings
EyesonJS v1.9.5 introduces "Dynamic HD," which automatically sends camera feed in HD quality when possible. You can disable this feature to consistently use SD resolution:
eyeson.config.hdCamera = false; // default is true