Agora Video, Voice, and Interactive Live-Streaming Video APIs allow you to easily implement reliable, high-quality A/V engagement directly into your application. With this integration, you can deliver 1:1 and group calling, as well as voice and video streaming for communal, large-scale use cases like online gaming, dating, and virtual events. With this suite of Agora APIs, you can easily build virtual experiences that capture the energy, sense of community, and liveliness of in-person interactions through high-quality voice and video.
This integration lets you implement A/V communications directly into your application by bringing PubNub together with the Agora Voice, Video Call, and Live Interactive Video Streaming APIs.
Beyond supporting in-app chat messaging, PubNub acts as a signaling layer to orchestrate video and VoIP calls of any size, and to underpin live-streaming, large-audience events. PubNub also allows you to log chat events around the call itself to capture complete details and histories for later use.
This diagram offers a simplified blueprint that demonstrates how PubNub and Agora work hand-in-hand to orchestrate a private, one-to-one video call.
In this sample 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.
Simultaneously, 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.
In this chain of events, PubNub acts as a reliable broker of communications. It connects both users by passing along requests within 100ms of the initial invite. Using PubNub greatly simplifies the process of securely connecting tenants, and supports an instantaneous, lag-free experience for your users.
The above demonstration offers a straightforward example of one-to-one video chat. But with this integration, you can also build in-app one-to-many video calls and communal live-streaming events using exactly the same principles.
PubNub lets you easily publish messages to multiple users at once, even at large scale. So, extending the basic one-to-one pattern to support group video calls is simple.
When a user initiates a video (or voice) call, simply publish the invitation to any and all relevant users. 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.