|
|
|
@ -41,6 +41,7 @@ const DEFAULT_STATE = { |
|
|
|
|
|
|
|
|
|
export interface IJitsiConference { |
|
|
|
|
addCommandListener: Function; |
|
|
|
|
addLobbyMessageListener: Function; |
|
|
|
|
addTrack: Function; |
|
|
|
|
authenticateAndUpgradeRole: Function; |
|
|
|
|
avModerationApprove: Function; |
|
|
|
@ -48,19 +49,25 @@ export interface IJitsiConference { |
|
|
|
|
createVideoSIPGWSession: Function; |
|
|
|
|
dial: Function; |
|
|
|
|
disableAVModeration: Function; |
|
|
|
|
disableLobby: Function; |
|
|
|
|
enableAVModeration: Function; |
|
|
|
|
enableLobby: Function; |
|
|
|
|
end: Function; |
|
|
|
|
getBreakoutRooms: Function; |
|
|
|
|
getLocalParticipantProperty: Function; |
|
|
|
|
getLocalTracks: Function; |
|
|
|
|
getMeetingUniqueId: Function; |
|
|
|
|
getMetadataHandler: Function; |
|
|
|
|
getName: Function; |
|
|
|
|
getParticipantById: Function; |
|
|
|
|
getParticipants: Function; |
|
|
|
|
getRole: Function; |
|
|
|
|
getSpeakerStats: () => ISpeakerStats; |
|
|
|
|
grantOwner: Function; |
|
|
|
|
isAVModerationSupported: Function; |
|
|
|
|
isCallstatsEnabled: Function; |
|
|
|
|
isE2EEEnabled: Function; |
|
|
|
|
isE2EESupported: Function; |
|
|
|
|
isEndConferenceSupported: Function; |
|
|
|
|
isLobbySupported: Function; |
|
|
|
|
isSIPCallingSupported: Function; |
|
|
|
@ -69,7 +76,11 @@ export interface IJitsiConference { |
|
|
|
|
join: Function; |
|
|
|
|
joinLobby: Function; |
|
|
|
|
kickParticipant: Function; |
|
|
|
|
leave: Function; |
|
|
|
|
lobbyApproveAccess: Function; |
|
|
|
|
lobbyDenyAccess: Function; |
|
|
|
|
lock: Function; |
|
|
|
|
markParticipantVerified: Function; |
|
|
|
|
muteParticipant: Function; |
|
|
|
|
myLobbyUserId: Function; |
|
|
|
|
myUserId: Function; |
|
|
|
@ -79,6 +90,7 @@ export interface IJitsiConference { |
|
|
|
|
removeTrack: Function; |
|
|
|
|
replaceTrack: Function; |
|
|
|
|
room: IJitsiConferenceRoom; |
|
|
|
|
sendApplicationLog: Function; |
|
|
|
|
sendCommand: Function; |
|
|
|
|
sendCommandOnce: Function; |
|
|
|
|
sendEndpointMessage: Function; |
|
|
|
@ -86,16 +98,21 @@ export interface IJitsiConference { |
|
|
|
|
sendFeedback: Function; |
|
|
|
|
sendLobbyMessage: Function; |
|
|
|
|
sendMessage: Function; |
|
|
|
|
sendPrivateTextMessage: Function; |
|
|
|
|
sendTextMessage: Function; |
|
|
|
|
sessionId: string; |
|
|
|
|
setDesktopSharingFrameRate: Function; |
|
|
|
|
setDisplayName: Function; |
|
|
|
|
setLocalParticipantProperty: Function; |
|
|
|
|
setMediaEncryptionKey: Function; |
|
|
|
|
setReceiverConstraints: Function; |
|
|
|
|
setSenderVideoConstraint: Function; |
|
|
|
|
setStartMutedPolicy: Function; |
|
|
|
|
setSubject: Function; |
|
|
|
|
startRecording: Function; |
|
|
|
|
startVerification: Function; |
|
|
|
|
stopRecording: Function; |
|
|
|
|
toggleE2EE: Function; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface IConferenceState { |
|
|
|
@ -107,8 +124,8 @@ export interface IConferenceState { |
|
|
|
|
e2eeSupported?: boolean; |
|
|
|
|
error?: Error; |
|
|
|
|
followMeEnabled?: boolean; |
|
|
|
|
joining?: Object; |
|
|
|
|
leaving?: Object; |
|
|
|
|
joining?: IJitsiConference; |
|
|
|
|
leaving?: IJitsiConference; |
|
|
|
|
localSubject?: string; |
|
|
|
|
locked?: string; |
|
|
|
|
membersOnly?: IJitsiConference; |
|
|
|
@ -116,7 +133,7 @@ export interface IConferenceState { |
|
|
|
|
obfuscatedRoomSource?: string; |
|
|
|
|
p2p?: Object; |
|
|
|
|
password?: string; |
|
|
|
|
passwordRequired?: Object; |
|
|
|
|
passwordRequired?: IJitsiConference; |
|
|
|
|
pendingSubjectChange?: string; |
|
|
|
|
room?: string; |
|
|
|
|
startAudioMutedPolicy?: boolean; |
|
|
|
@ -348,7 +365,7 @@ function _conferenceJoined(state: IConferenceState, { conference }: { conference |
|
|
|
|
* reduction of the specified action. |
|
|
|
|
*/ |
|
|
|
|
function _conferenceLeftOrWillLeave(state: IConferenceState, { conference, type }: |
|
|
|
|
{ conference: Object; type: string; }) { |
|
|
|
|
{ conference: IJitsiConference; type: string; }) { |
|
|
|
|
const nextState = { ...state }; |
|
|
|
|
|
|
|
|
|
// The redux action CONFERENCE_LEFT is the last time that we should be
|
|
|
|
@ -402,7 +419,7 @@ function _conferenceLeftOrWillLeave(state: IConferenceState, { conference, type |
|
|
|
|
* @returns {Object} The new state of the feature base/conference after the |
|
|
|
|
* reduction of the specified action. |
|
|
|
|
*/ |
|
|
|
|
function _conferenceWillJoin(state: IConferenceState, { conference }: { conference: Object; }) { |
|
|
|
|
function _conferenceWillJoin(state: IConferenceState, { conference }: { conference: IJitsiConference; }) { |
|
|
|
|
return assign(state, { |
|
|
|
|
error: undefined, |
|
|
|
|
joining: conference |
|
|
|
|