Skip to main content

Introduction

You can use the methods from the Embed SDK to control the Metered Embed iFrame.

Following the latest version of the Metered Embed Frame SDK:

<script src="https://cdn.metered.ca/sdk/frame/1.4.3/sdk-frame.min.js"></script>

To initialize the frame SDK, first create instance of the frame SDK and then call the init method.

var frame = new MeteredFrame(); 

The init methods takes two parameters, one is the options object and another one is the DOM element where you want to Embed the iFrame.

frame.init({
roomURL: "appname.metered.live/my-room",
}, document.getElementById("metered-frame"));

List of Methods