The Embed API lets you add a Gruveo embed to your page and control the embed using JavaScript. Using the methods exposed by the API, you can make the embed perform functions like starting or ending a call. You can also add event listeners that will get triggered in response to certain embed events, such as a state change.
Below is an example of a basic Gruveo embed with a pre-populated room name. (For more, check out the Examples section.)
Gruveo must be embedded in an HTTPS page of your web application. Due to security restrictions in certain browsers (e.g. Chrome), the embed WILL NOT work if inserted in a non-secure HTTP page.
The Embed API supports the following devices and platforms:
The Embed API supports outgoing screen sharing in Chrome and Firefox on desktop. For implementation details, please see see the description of the embed.toggleVideo()
method as well as the screenSharingAvailability
and streamStateChange
events in the JavaScript API Reference. Our Basic Demo also provides an example of accessing the screen sharing functionality through the Embed API.
Use the table of contents to the right to dig deeper and learn how to use the Gruveo Embed API to add video and voice calling functionality to your web app.