Applies the given media layout requests. This is required to be able to request
a video stream. Only accepts media layouts that have been created with the
createMediaLayout
function.
Signature
applyLayout(requests: MediaLayoutRequest[]): Promise<MediaApiResponseStatus>;
Details
Optional | No |
---|
Parameters
Name | Type | Optional | Description |
---|---|---|---|
requests |
MediaLayoutRequest[] |
No | The requests to apply. |
Returns
Promise<MediaApiResponseStatus>
A promise that resolves when the request has been accepted. NOTE: The promise resolving on the request does not mean the layout has been applied. It means that the request has been accepted and you may need to wait a short amount of time for these layouts to be applied.