@googleworkspace/meet-addons

1.1.1 • Public • Published

Meet Addons Web SDK

Embed your app in Google Meet as an Add-on.

You can view the official documentation for add-ons here.

Usage

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.

Creating an add-on session

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.

Promoting an add-on through screen sharing

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.

Where's the source code?

Unfortunately, the code has some dependencies on Google proprietary libraries that mean we can't open source it at this time.

Package Sidebar

Install

npm i @googleworkspace/meet-addons

Weekly Downloads

1,314

Version

1.1.1

License

SEE LICENSE IN LICENSE

Unpacked Size

84.9 kB

Total Files

7

Last publish

Collaborators

  • google-wombot
  • jpoehnelt