mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 15:57:47 +00:00
The container needs to store user's ID in order for the 'isOnLargeVideo' logic to work correctly when user has no stream (previously it was obtained from stream which can be null/undefined).
67 lines
1.4 KiB
JavaScript
67 lines
1.4 KiB
JavaScript
|
|
/**
|
|
* Base class for all Large containers which we can show.
|
|
*/
|
|
export default class LargeContainer {
|
|
|
|
/**
|
|
* Show this container.
|
|
* @returns Promise
|
|
*/
|
|
show () {
|
|
}
|
|
|
|
/**
|
|
* Hide this container.
|
|
* @returns Promise
|
|
*/
|
|
hide () {
|
|
}
|
|
|
|
/**
|
|
* Resize this container.
|
|
* @param {number} containerWidth available width
|
|
* @param {number} containerHeight available height
|
|
* @param {boolean} animate if container should animate it's resize process
|
|
*/
|
|
// eslint-disable-next-line no-unused-vars
|
|
resize (containerWidth, containerHeight, animate) {
|
|
}
|
|
|
|
/**
|
|
* Handler for "hover in" events.
|
|
*/
|
|
onHoverIn (e) { // eslint-disable-line no-unused-vars
|
|
}
|
|
|
|
/**
|
|
* Handler for "hover out" events.
|
|
*/
|
|
onHoverOut (e) { // eslint-disable-line no-unused-vars
|
|
}
|
|
|
|
/**
|
|
* Update video stream.
|
|
* @param {string} userID
|
|
* @param {JitsiTrack?} stream new stream
|
|
* @param {string} videoType video type
|
|
*/
|
|
setStream (userID, stream, videoType) {// eslint-disable-line no-unused-vars
|
|
}
|
|
|
|
/**
|
|
* Show or hide user avatar.
|
|
* @param {boolean} show
|
|
*/
|
|
showAvatar (show) { // eslint-disable-line no-unused-vars
|
|
}
|
|
|
|
/**
|
|
* Whether current container needs to be switched on dominant speaker event
|
|
* when the container is on stage.
|
|
* @return {boolean}
|
|
*/
|
|
stayOnStage () {
|
|
}
|
|
}
|