appStateChanged
appStateChanged
Description: the notification indicating that the application state was changed.
The parameters related to the state change are also returned.
Example:
{
"embeddedHttpPort": 8766,
"appState": 3,
"extStatus": 5,
"additionalStatus": "at lunch",
"desktopSharing": {
"running": true,
"sourceType": 2,
"id": 66910,
"windowName": "WebSocket Test - Opera"
},
"broadcastPicture": {
"running": false
},
"audioCaptureTest": false,
"recording" : true,
"method" : "event",
"event" : "appStateChanged"
}Parameter description:
appState— Application state. It can be as follows:0— no connection with the server1- TrueConf Room API is attempting to connect to the server2— authorization is needed (as a user)3- TrueConf Room API is connected to the server and logged in. Available for call4- TrueConf Room API is on hold: either they are calling someone or someone is calling them5- TrueConf Room API is in a conference6- TrueConf Room API ends the conference
extStatus- the extended status of the current user, which can take one of the following values:-1— Invalid user0— Offline user1- user is offline but was recently active2— Available user3- user is available on the phone4- user is available from the terminal5- user is available but has set the status to do not disturb6- user is away7— Busy user8- user is busy on the phone9- user is busy at the terminal10— A user is in a group conference that they created and that can be joined at request.
additionalStatus- additional status of the current user as a stringembeddedHttpPort— Port number used by the built-in HTTP serverdesktopSharing— Field that contains information about desktop sharingrunning— the field indicating if content sharing has startedname— the name of the screen which is being shared. The field is unavailable when content sharing is off.id— Unique identifier of a window or screen being shared. The field is unavailable when content sharing is offbroadcastPicture— Field that contains information about a picture being sharedfileName— Name of the picture being shared. The field is unavailable when picture sharing is off.fileId- a unique file identifier on the built-in HTTP server, which is displayed. The field is absent when the image display is turned off.audioCaptureTest— Field showing whether a microphone test has been started. It can betrueorfalserequests— Field that is available when requests are madeincomingPodiumRequest— Incoming podium requestsoutgoingPodiumRequest— Outgoing podium requestsincomingPodiumInvitation— Incoming podium invitationsoutgoingPodiumInvitation— Outgoing podium invitationsincomingRecord- incoming requests for video and audio stream recording TrueConf Room APIoutgoingRecord— outbound requests for recording audio and video streamsincomingJoinToMyConf- incoming requests to join the created TrueConf Room API conferenceoutgoingJoinToMyConf- outgoing invitations to participate in the created TrueConf Room API conferenceincomingP2PCall— Incomingvideo calloutgoingP2PCall— Outgoingvideo callincomingGroupConf— Incoming invitation to a group conferenceoutgoingGroupConf— Outgoing invitation to a group conferenceincomingPtzControl- incoming requests to control the PTZ cameraoutgoingPtzControl- outgoing requests for PTZ camera controlfriendlyName— the name of the captured screen used for content sharingsourceType— the type of the captured content. It can be one of the following types:1— desktop2— application window
windowName— the name of the captured application window (used for content sharing)recording- a flag indicating the recording status of the conference on the server
See also: