getAppState

TrueConfAbout 4 min

getAppState

Description: get information about the application state.

Request example:

{
    "method" : "getAppState",
    "requestId" : "1"
}

Response example:

{
    "method": "getAppState",
    "requestId" : "1",
    "embeddedHttpPort": 8766,
    "appState": 3,
    "extStatus": 2,
    "additionalStatus": "at lunch",
    "desktopSharing": {
        "running": true,
        "sourceType": 2,
        "id": 66910,
        "windowName": "WebSocket Test - Opera"
    },
    "broadcastPicture": {
        "running": false
    },
    "audioCaptureTest": false,
    "recording" : false,
    "result": true
}

Parameter description:

  • appState β€” Application state. It can be as follows:

    • 0 β€” no connection with the server

    • 1 - TrueConf Room API is attempting to connect to the server

    • 2 β€” Login is required

    • 3 - TrueConf Room API is connected to the server and logged in

    • 4 - TrueConf Room API is on hold: either they are calling someone or someone is calling them

    • 5 - TrueConf Room API is in a conference

    • 6 - TrueConf Room API ends the conference

  • extStatus - the extended status of the current user, which can take one of the following values:

    • -1 β€” Invalid user

    • 0 β€” Offline user

    • 1 - user is offline but was recently active

    • 2 β€” Available user

    • 3 - user is available on the phone

    • 4 - user is available from the terminal

    • 5 - user is available but has set the status to do not disturb

    • 6 - user is away

    • 7 β€” Busy user

    • 8 - user is busy on the phone

    • 9 - user is busy at the terminal

    • 10 β€” 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 string

  • embeddedHttpPort β€” Port number used by the built-in HTTP server

  • desktopSharing β€” Field that contains information about desktop sharing

  • running β€” the field indicating if content sharing has started

  • name β€” 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 off

  • broadcastPicture β€” Field that contains information about a picture being shared

  • fileName β€” 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 be true or false

  • requests β€” Field that is available when requests are made

  • incomingPodiumRequest β€” Incoming podium requests

  • outgoingPodiumRequest β€” Outgoing podium requests

  • incomingPodiumInvitation β€” Incoming podium invitations

  • outgoingPodiumInvitation β€” Outgoing podium invitations

  • incomingRecord - incoming requests for video and audio stream recording TrueConf Room API

  • outgoingRecord β€” outbound requests for recording audio and video streams

  • incomingJoinToMyConf - incoming requests to join the created TrueConf Room API conference

  • outgoingJoinToMyConf - outgoing invitations to participate in the created TrueConf Room API conference

  • incomingP2PCall β€” Incoming video call

  • outgoingP2PCall β€” Outgoing video call

  • incomingGroupConf β€” Incoming invitation to a group conference

  • outgoingGroupConf β€” Outgoing invitation to a group conference

  • incomingPtzControl - incoming requests to control the PTZ camera

  • outgoingPtzControl - outgoing requests for PTZ camera control

  • friendlyName β€” the name of the captured screen that will be used for content sharing; the name will be presented in a human-readable format.

  • sourceType β€” the type of the captured content. It can be one of the following types:

    • 1β€” desktop

    • 2β€” application window

  • windowName β€” the window name of the application captured for content sharing

  • requestId - a unique request identifier. You can find more details about it here.

  • recording - a flag indicating the recording status of the conference on the server

See also: