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_nameandapi_keyto values specified in yourvoximplantaccount. - Add rule to application with
nameset to "InboundFromPSTN",patternset to conference phone number andscenarioset to "VideoConferencePSTNgatekeeper" - Add rule to application with
nameset to "InboundCall",patternset to "joinconf" andscenarioset to "VideoConferenceGatekeeper" - Add rule to application with
nameset to "Fwd",patternset to "conf_[A-Za-z0-9]+" andscenarioset to "VideoConference" - Add rule to application with
nameset to "P2P",patternset to ".*" andscenarioset to "VideoConferenceP2P" - Modify
auth.phpand setAPI_KEYandACCOUNT_NAMEto values specified in yourvoximplantaccount. - Host
auth.phpandindex.htmlon some web server. Each user that navigatesindex.htmlwill be able to select a user name and join a conference.