# swapVideoSlots
Description: swap video slots in the layout.
This command does not apply to the video window taken outside the layout and to the self-view in overlay mode
.
Request example:
{
"method" : "swapVideoSlots",
"requestId" : "1",
"callId1" : "user@some.server/InstancePart",
"callId2" : "user2@some.server/InstancePart"
}
Response example:
{
"method" : "swapVideoSlots",
"requestId" : "1",
"result" : true
}
Parameter description:
callId1
- unique identifier of the first video slot in the layout, which needs to be changed. It is recommended to use the ones obtained from the methods: videoMatrixChanged, getVideoMatrix. Applicability:PeerId - not supported.
CallId - not supported
InstanceId - supported.
callId2
- unique identifier of the second video slot in the layout, which needs to be changed. You should use the ones obtained from the methods: videoMatrixChanged, [getVideoMatrix]. Applicability:PeerId - not supported.
CallId - not supported
InstanceId - supported.
requestId
- unique request identifier. More details can be found here
See also: