This code demonstrates video conference for multiple users. Note that PHP interpretation is required for proper work of this demo.
Deploy instructions:
- Register or login at https://manage.voximplant.com/
- Create a new application and name it "videoconf".
- Rent a conference phone number from "phone numbers" menu.
- Add "VideoConferenceP2P" scenario with source code from
VideoConferenceP2P.js
- Add "VideoConferenceGatekeeper" scenario with source code from
VideoConferenceGatekeeper.js
- Add "VideoConferencePSTNgatekeeper" scenario with source code from
VideoConferencePSTNgatekeeper.js
- Add "VideoConference", scenario with source code from
VideoConference.js
, changeaccount_name
andapi_key
to values specified in yourvoximplant
account. - Add rule to application with
name
set to "InboundFromPSTN",pattern
set to conference phone number andscenario
set to "VideoConferencePSTNgatekeeper" - Add rule to application with
name
set to "InboundCall",pattern
set to "joinconf" andscenario
set to "VideoConferenceGatekeeper" - Add rule to application with
name
set to "Fwd",pattern
set to "conf_[A-Za-z0-9]+" andscenario
set to "VideoConference" - Add rule to application with
name
set to "P2P",pattern
set to ".*" andscenario
set to "VideoConferenceP2P" - Modify
auth.php
and setAPI_KEY
andACCOUNT_NAME
to values specified in yourvoximplant
account. - Host
auth.php
andindex.html
on some web server. Each user that navigatesindex.html
will be able to select a user name and join a conference.