Embed your app in Google Meet as an Add-on.
You can view the official documentation for add-ons here.
First, install the package:
npm install @googleworkspace/meet-addons
For TypeScript users, TypeScript definitions are packaged with the module. There is no need to install any modules from DefinitelyTyped.
import {meet} from '@googleworkspace/meet-addons/meet.addons';
...
await meet.addon.createAddonSession({
// TODO: Replace the Cloud project number.
cloudProjectNumber: "YOUR_CLOUD_PROJECT_NUMBER"
});
For more detail, see the developer guide on creating a side panel page.
import {
meet as meetScreenshare
} from '@googleworkspace/meet-addons/meet.addons.screenshare';
...
meetScreenshare.addon.screensharing.exposeToMeetWhenScreensharing({
// TODO: Replace the Cloud project number.
cloudProjectNumber: "YOUR_CLOUD_PROJECT_NUMBER",
startActivityOnOpen: true,
// Replace this with the URL to the site to iframe in the main stage.
mainStageUrl: "MAIN_STAGE_URL",
});
For more detail, see the developer guide on promoting an add-on through screen sharing.
Unfortunately, the code has some dependencies on Google proprietary libraries that mean we can't open source it at this time.