forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Additional setting to order participants in speaker stats (jits…
…i#9751) * Additional setting to order participants in speaker stats jitsi#9742 * Setting to order speaker stats optimisations jitsi#9742 * Lint fixes jitsi#9742 * Replace APP references jitsi#9742 * Lint fixes jitsi#9742 * Setting to order speaker stats optimisations 2 jitsi#9742 * Lint fixes jitsi#9742 * Remove unnecessary param jitsi#9742 * Add more speaker-stats reducer _updateStats docs jitsi#9742
- Loading branch information
1 parent
db473df
commit 5e152b4
Showing
12 changed files
with
494 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// @flow | ||
|
||
/** | ||
* Action type to start search. | ||
* | ||
* { | ||
* type: INIT_SEARCH | ||
* } | ||
*/ | ||
export const INIT_SEARCH = 'INIT_SEARCH'; | ||
|
||
/** | ||
* Action type to start stats retrieval. | ||
* | ||
* { | ||
* type: INIT_UPDATE_STATS, | ||
* getSpeakerStats: Function | ||
* } | ||
*/ | ||
export const INIT_UPDATE_STATS = 'INIT_UPDATE_STATS'; | ||
|
||
/** | ||
* Action type to update stats. | ||
* | ||
* { | ||
* type: UPDATE_STATS, | ||
* stats: Object | ||
* } | ||
*/ | ||
export const UPDATE_STATS = 'UPDATE_STATS'; | ||
|
||
/** | ||
* Action type to initiate reordering of the stats. | ||
* | ||
* { | ||
* type: INIT_REORDER_STATS | ||
* } | ||
*/ | ||
export const INIT_REORDER_STATS = 'INIT_REORDER_STATS'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// @flow | ||
|
||
import { | ||
INIT_SEARCH, | ||
INIT_UPDATE_STATS, | ||
UPDATE_STATS, | ||
INIT_REORDER_STATS | ||
} from './actionTypes'; | ||
|
||
/** | ||
* Starts a search by criteria. | ||
* | ||
* @param {string} criteria - The search criteria. | ||
* @returns {Object} | ||
*/ | ||
export function initSearch(criteria: string) { | ||
return { | ||
type: INIT_SEARCH, | ||
criteria | ||
}; | ||
} | ||
|
||
/** | ||
* Gets the new stats and triggers update. | ||
* | ||
* @param {Function} getSpeakerStats - Function to get the speaker stats. | ||
* @returns {Object} | ||
*/ | ||
export function initUpdateStats(getSpeakerStats: Function) { | ||
return { | ||
type: INIT_UPDATE_STATS, | ||
getSpeakerStats | ||
}; | ||
} | ||
|
||
/** | ||
* Updates the stats with new stats. | ||
* | ||
* @param {Object} stats - The new stats. | ||
* @returns {Object} | ||
*/ | ||
export function updateStats(stats: Object) { | ||
return { | ||
type: UPDATE_STATS, | ||
stats | ||
}; | ||
} | ||
|
||
/** | ||
* Initiates reordering of the stats. | ||
* | ||
* @returns {Object} | ||
*/ | ||
export function initReorderStats() { | ||
return { | ||
type: INIT_REORDER_STATS | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SPEAKER_STATS_RELOAD_INTERVAL = 1000; |
Oops, something went wrong.