Method signature MeetMediaApiClient.createMediaLayout
Creates a new media layout. Only media layouts that are created with this
function can be applied. Otherwise, the
applyLayout
function will throw an error. Once the media layout has been created, you can
construct a request and apply it with the
applyLayout
function. These media layout objects are meant to be reused (can be reassigned
to a different request) but are distinct per stream (need to be created for
each stream).
Signature
createMediaLayout(canvasDimensions: CanvasDimensions): MediaLayout;
Details
Parameters
Name |
Type |
Optional |
Description |
canvasDimensions |
CanvasDimensions |
No |
The dimensions of the canvas to render the layout on. |
Returns
MediaLayout
The new media layout.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-05 UTC.
[null,null,["Last updated 2025-02-05 UTC."],[[["This content is part of the Google Workspace Developer Preview Program, offering early access to new features."],["The `createMediaLayout` function is used to generate new media layouts, a prerequisite for applying them."],["Media layouts are reusable but must be created individually for each stream."],["The function requires `canvasDimensions` to define the layout's rendering size."],["The `createMediaLayout` function returns a `MediaLayout` object which can then be applied."]]],[]]