Managing Meetings


You can use WebView to join or leave a meeting by sending post messages to join and leave meeting methods. The details are included in the following subsection.

Join Meeting

After the WebView has been set up and loaded, you can join a meeting by sending a Post Message to the Embed Proxy Layer, which will instruct the Embed SDK to invoke the joinMeeting method.

{
    "type": "embedProxy.toProxy",
    "method" : "joinMeeting",
    "args": [{
	"meetingInfo": {
	    "meetingId": "",
	    "passcode": "",
	    "name": ""
	},
	"iFrameProps": {
	    "width": "100vw",
	    "height": "100vh",
	    "selectorId": ".iframeHolder"
	},
	"uiProps": {
	    "hideChatPanel": false,
	    "lockMeetingControls": false,
	    "hideCopyLink": false,
	    "hideRatingScreen": false,
	    "inMeetingBGConfig": {
		"audioTileColor": "",
		"containerColorOfAllTiles": ""
	    },
	    "locale": "en",
	    "teleHealthConfig": {
		"skipCheckIn": true,
		"backgroundColor": "linear-gradient(#6600CC, #6600FF)",
		"welcomeText": "Welcome to the clinic!",
		"waitingText": "Please wait for your provider",
  "resources": {
                "videos": {
                    "data": [
                        {
                            "title": "General Care",
                            "thumbnailUrl": "https://Your thumbnail URL(mp4)",
                            "url": "Your Video URL",
                            "duration": "10:33"
                        }
                    ]
                },
                "articles": {
                    "data": [
                        {
                            "title": "Article-1",
                            "thumbnailUrl": "https://Your thumbnail URL(pdf)",
                            "url": "https://Your Article URL"
                        }
	    }
	}
    }]
}

Note

You must use your meeting id, passcode, and display name. To see the arguments passed to joinMeeting method and how you can customize the meeting experience, refer to join parameters. Also, check for Supported Properties for Mobile  to see which customization properties are applicable to meetings in mobile browsers.

Leave Meeting

If you want to end the call using a native application instead of the Exit button provided by the embedded SDK UI, run the following JavaScript on your WebView instance.

let script = """
        window.postMessage({ "type": "embedProxy.toProxy", method: "leave", "args": [] }, "*")
        """