Vidyo.io Simple Room sample running on Google App Engine
This Google App Engine sample illustrates the use of Vidyo.io which lets endpoints join meeting rooms of their own choosing using the VidyoConnector.
For more information on Vidyo.io see the Developer section.
- Download this sample from the git repository
git clone https://github.com/Vidyo/gae-simple-room.git
- Grab your Developer Key and Appliation ID from Vidyo.io
- See API Key section in the Dashboard.
- Modify the
main.py
to add your Vidyo.io credentials- Change the value of
VIDYO_IO_DEVELOPER_KEY
to your Developer Key - Change the value of
VIDYO_IO_APPLICATION_ID
to your Appliation ID
- Change the value of
- Run the App
The application has two components, the index.html page and the room.html page.
This is the landing page which presents the user with a dialog box to enter their "Display Name" and "Room Name". Once the Join button is clicked, this page redirects to the room path ex:/demoRoom
which is served by the room.html
.
This page is served served by main.py
when the path contains a room name ex: /demoRoom
. The main.py
invokes the Room()
class and performs the following:
- Base64 and URL encodes the roomId ex:
demoRoom
in case it has spaces and special characters. - Checks the version number. When not provided as a query parameter, it will default to the
latest
version of theVidyoConnector.html
. - Creates a random
userName
. For this example only theDisplayName
is known so we create a random username for our Vidyo.io token. - Generates a Vidyo.io token from the
userName
using thegetVidyoIOToken()
function. - Creates a template variable
url_vidyoio
which contains a URL link to theVidyoConnector.html
with all the proper query parameters. - The Template engine will generate an HTML file with an IFRAME that points to the
url_vidyoio
described inroom.html
.
This sample can take the same parameters that are available for VidyoConnector.html
. See VidyoConnector
-> Web
section of Vidyo.io Developer documentation.
In Addition, the version number can be specified by the version
query parameters. ex: /demoRoom?version=4.1.4.7