1-to-1 call flow
This page describes the flow of LINE Planet's 1-to-1 call.
In the diagrams below, app clients and the app server belong to the application domain, and PlanetKit and LINE Planet Cloud belong to the LINE Planet domain.
Tip
In the following diagrams, arrows in green color represent client APIs that are provided by PlanetKit SDK, and arrows in red color represent server callback APIs that are called by LINE Planet Cloud.
Starting a call
The following diagram shows the call setup flow of LINE Planet. Note that the call setup flow might differ depending on the requirements of the application.
- When the caller makes a call, the caller's app client calls
MakeCall()
. - Planet Cloud invokes the Notify callback to notify the app server of the new 1-to-1 call.
- The app server sends a push notification to the callee's app client.
- The
OnWaitAnswer
event occurs on the caller's app client. The caller's app client waits for the callee's answer. - The callee's app client calls
VerifyCall()
to verify the call. When the call is verified, theOnVerified
event occurs on the callee's app client. - When the callee accepts a call, the callee's app client calls
AcceptCall()
. When the call is connected, theOnConnected
event occurs on the app clients of both caller and callee.
Ending a call
The flow when a user ends the call is as follows:
- When the caller or the callee ends a call, an app client of the user who ended the call calls
EndCall()
. When the call is disconnected, theOnDisconnected
event occurs on the app clients of both caller and callee. - Planet Cloud invokes the 1-to-1 Call Event callback to notify the app server of the end of the call.
Related API
APIs related to 1-to-1 calls are as follows.