Help Center/ Meeting/ Server API Reference/ Meeting Control/ APIs/ Customizing Continuous Presence
Updated on 2023-12-22 GMT+08:00

Customizing Continuous Presence

Description

This API is used to customize continuous presence in a meeting.

Debugging

You can debug this API in API Explorer.

Prototype

Table 1 Prototype

Request Method

PUT

Request Address

/v1/mmc/control/conferences/display/customMultiPicture

Transport Protocol

HTTPS

Request Parameters

Table 2 Parameters

Parameter

Mandatory

Type

Location

Description

conferenceID

Yes

String

Query

Meeting ID.

X-Conference-Authorization

Yes

String

Header

Meeting control token, which can be obtained by calling the API for Obtaining a Meeting Control Token.

manualSet

Yes

Integer

Body

Whether to manually customize continuous presence.

  • 0: no. The automatic continuous presence is used.
  • 1: yes.

picLayoutInfo

No

PicLayoutInfo object

Body

Custom continuous presence.

NOTE:

Reserved field. It cannot be used in the current version.

imageType

No

String

Body

Layout type. This parameter is valid when you manually configure continuous presence. For details about the mapping between imageType values and layouts, see Figure 1.

subscriberInPics

No

Array of SubscriberInPic objects

Body

Screen list. This parameter is mandatory when you manually configure continuous presence.

switchTime

No

Integer

Body

Interval of displaying participants. Value range: 10 to 120. The default value is 10. Unit: second.

This parameter is valid only for multi-screen layouts.

NOTE:

This parameter is valid only for professional meeting terminals and is invalid for soft clients.

multiPicSaveOnly

No

Boolean

Body

Whether to save continuous presence only.

  • true: Save continuous presence only.
  • false: Save and apply continuous presence.
NOTE:
  • Saving continuous presence only will not broadcast continuous presence.
  • Saving and applying continuous presence:

    1. When the meeting status is broadcasting continuous presence, voice-activated single screen, voice-activated continuous presence, or displaying continuous presence to the host, saving and applying continuous presence will change the screen layout without changing the meeting status.

    2. When a meeting is in other statuses, for example, automatic continuous presence, broadcasting a participant, or giving the floor to a participant, saving and applying continuous presence will change the meeting status to broadcasting continuous presence.

  • During broadcasting continuous presence, voice-activated continuous presence, or voice activated single screen, you cannot display continuous presence to the host.
Figure 1 imageType (layout type)

Values of imageType are displayed below layout diagrams. For example, to set the continuous presence layout to four screens of the same size, set imageType to Four.

Table 3 PicLayoutInfo data structure

Parameter

Mandatory

Type

Description

x

No

Integer

Width of the continuous presence layout.

y

No

Integer

Height of the continuous presence layout.

subPicLayoutInfoList

No

Array of SubPicLayoutInfo objects

List of screens in the layout.

Table 4 SubPicLayoutInfo data structure

Parameter

Mandatory

Type

Description

id

No

Integer

Screen ID.

left

No

Integer

Coordinates of the screen from left to right.

top

No

Integer

Coordinates of the screen from top to bottom.

xSize

No

Integer

Width of the screen.

ySize

No

Integer

Height of the screen.

Table 5 SubscriberInPic data structure

Parameter

Mandatory

Type

Description

index

No

Integer

Sequence number of each screen in continuous presence. The sequence number starts from 1.

Default value: 1.

subscriber

No

Array of strings

Participant numbers in each screen. Set this parameter to the value of phone obtained by calling the API for Querying Meeting Details in Real Time.

isAssistStream

No

Integer

Whether a stream is a presentation. Default value: 0.

  • 0: no.
  • 1: yes.

Status Codes

Table 6 Status codes

HTTP Status Code

Description

200

Operation successful.

400

Invalid parameters.

401

Authentication is not performed or fails.

403

Insufficient permissions.

500

Server exception.

Response Parameters

None

Example Request

PUT /v1/mmc/control/conferences/display/customMultiPicture?conferenceID=900967789
Connection: keep-alive
X-Conference-Authorization:stbaf8fa2ea8a1b0e3ab2e007a85a75f88c55d5f6d5c1912dfb
Content-Type: application/json
Content-Length: 27
Host: api.meeting.huaweicloud.com
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)

{
    "manualSet": 1,
    "subscriberInPics":[{
         "index": 2,
         "subscriber": ["+99111252010982686"]
   }],
    "imageType":"Six",
    "multiPicSaveOnly": false
}

Example Response

HTTP/1.1 200 
Date: Wed, 18 Dec 2019 06:20:40 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 39
Connection: keep-alive
http_proxy_id: 6346df97898dcd1e9cb205b75f24fe65
Server: api-gateway
X-Request-Id: 0294dd7aedd58db92a23de453cbcde0e

Error Codes

If an error code starting with MMC or USG is returned when you use this API, rectify the fault by following the instructions provided in Huawei Cloud API Error Center.

Example cURL Command

curl -k -i -H 'content-type: application/json' -X PUT -H 'X-Conference-Authorization:stb39b3f21898d4972fed86b3f22ac70914a77303def15e126a' -d '{"manualSet": 0}' 'https://api.meeting.huaweicloud.com/v1/mmc/control/conferences/display/customMultiPicture?conferenceID=900967789'