mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* fix(subtitles): Handle errors to revert to default state. * fix(transcribing): Handle transcriber status changed. Drops potential transcribers and hidden participant actions and handling. Expect ljm to detect transcriptions on and off. * feat(transcriptions): Adds a notification if transcriber leaves abruptly. * squash: Renames action. * chore(deps) lib-jitsi-meet@latest https://github.com/jitsi/lib-jitsi-meet/compare/v1869.0.0+5671c5d6...v1872.0.0+8940b5c9
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import {
|
|
TRANSCRIBER_JOINED,
|
|
TRANSCRIBER_LEFT
|
|
} from './actionTypes';
|
|
|
|
/**
|
|
* Notify that the transcriber, with a unique ID, has joined.
|
|
*
|
|
* @param {string} participantId - The participant id of the transcriber.
|
|
* @returns {{
|
|
* type: TRANSCRIBER_JOINED,
|
|
* participantId: string
|
|
* }}
|
|
*/
|
|
export function transcriberJoined(participantId: string) {
|
|
return {
|
|
type: TRANSCRIBER_JOINED,
|
|
transcriberJID: participantId
|
|
};
|
|
}
|
|
|
|
/**
|
|
* Notify that the transcriber, with a unique ID, has left.
|
|
*
|
|
* @param {string} participantId - The participant id of the transcriber.
|
|
* @param {boolean} abruptly - The transcriber did not exit the conference gracefully with switching off first.
|
|
* It maybe there was some backend problem, like network.
|
|
* @returns {{
|
|
* type: TRANSCRIBER_LEFT,
|
|
* participantId: string,
|
|
* abruptly: boolean
|
|
* }}
|
|
*/
|
|
export function transcriberLeft(participantId: string, abruptly: boolean) {
|
|
return {
|
|
type: TRANSCRIBER_LEFT,
|
|
transcriberJID: participantId,
|
|
abruptly
|
|
};
|
|
}
|