mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-16 08:47:49 +00:00
Changed screen capture to non effect. Effects are used to alter the stream, this feature does not need to alter the stream, it just needs access to it Changed image diff library. Previous library diff’ed the whole image, the new one has en early return threshold Use ImageCaptureAPI to take the screenshot. Added polyfill for it and polyfill for createImageBitmap Added analytics
43 lines
908 B
JavaScript
43 lines
908 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* Percent of pixels that signal if two images should be considered different.
|
|
*/
|
|
export const PERCENTAGE_LOWER_BOUND = 5;
|
|
|
|
/**
|
|
* Number of milliseconds that represent how often screenshots should be taken.
|
|
*/
|
|
export const POLL_INTERVAL = 2000;
|
|
|
|
/**
|
|
* SET_INTERVAL constant is used to set interval and it is set in
|
|
* the id property of the request.data property. timeMs property must
|
|
* also be set. request.data example:
|
|
*
|
|
* {
|
|
* id: SET_INTERVAL,
|
|
* timeMs: 33
|
|
* }
|
|
*/
|
|
export const SET_INTERVAL = 1;
|
|
|
|
/**
|
|
* CLEAR_INTERVAL constant is used to clear the interval and it is set in
|
|
* the id property of the request.data property.
|
|
*
|
|
* {
|
|
* id: CLEAR_INTERVAL
|
|
* }
|
|
*/
|
|
export const CLEAR_INTERVAL = 2;
|
|
|
|
/**
|
|
* INTERVAL_TIMEOUT constant is used as response and it is set in the id property.
|
|
*
|
|
* {
|
|
* id: INTERVAL_TIMEOUT
|
|
* }
|
|
*/
|
|
export const INTERVAL_TIMEOUT = 3;
|