The Vonage Voice and Video APIs remove the complexity of implementing reliable, high-quality A/V calling into your chat and collaboration applications. The video API specifically removes the need to set up a DIY webRTC solution. With Vonage Voice and Vonage Video, you can easily build applications that let users connect, invite one another to calls, and stream audio and video to one or more parties.
This integration lets you use PubNub and the Vonage Voice and Video APIs alongside one another to implement A/V calling in your chat application. Beyond supporting chat messaging, PubNub acts as a signaling layer to orchestrate video and VoIP calls of any size. PubNub also allows you to log chat events around the call itself to capture complete details and histories for later use.
This diagram shows how you can use PubNub and Vonage together to facilitate a private, one-to-one video call.
In our case, once User A requests a video call to User B, a few things happen:
The request is validated by the application server
The application server creates the video session, and passes it as a Video Session Object to User A.
At the same time, PubNub fulfills a crucial role by seamlessly passing the video invite to User B.
Once User B accepts the invite, the Video Session Object is passed directly to User B, and the video call begins.
PubNub plays a key role by reliably passing requests and invitations along within 250ms of the initial invite. This creates an instantaneous experience for your users, and reliably smooths out any lag they would experience otherwise.
The example above shows how you would put together straightforward one-to-one video chat. But with PubNub, one-to-many video calling and VoIP calls use these same principles.
With PubNub, publishing messages to multiple users at once, even at large scales, is simple. So, the basic one-to-one pattern can be extended to support group video invitations with ease.
When a user initiates a video (or voice) call, simply publish the invitation to any and all relevant members. All invitees will be prompted to join the video call at the same time, and your application server can then pass the video session object to those that accept the invitation.
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Analyze, detect, and censor images for adult content, validation and format
Learn moreEnterprise-level AI-powered content moderation platform
Learn more