# 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
- the unique identifier of the first video slot in the layout that needs to be switched. Use the ones obtained from the methods: videoMatrixChanged, getVideoMatrix. Applicability:PeerId - not supported
CallId - not supported
InstanceId - supported
callId2
- is the unique identifier of the second video slot in the layout that should be switched. It is advisable to use those obtained from the methods: videoMatrixChanged, getVideoMatrix. Applicability:PeerId - not supported
CallId - not supported
InstanceId - supported
requestId
- a unique request identifier. You can learn more about it here.
See also: