Skip to main content
Version: 1.0

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.

1-to-1 call setup sequence diagram
  1. When the caller makes a call, the caller's app client calls makeCall().
  2. Planet Cloud invokes the Notify callback to notify the app server of the new 1-to-1 call.
  3. The app server sends a push notification to the callee's app client.
  4. The onWaitConnected event occurs on the caller's app client. The caller's app client waits for the callee's answer.
  5. The callee's app client calls verifyCall() to verify the call. When the call is verified, the onVerified event occurs on the callee's app client.
  6. When the callee accepts a call, the callee's app client calls acceptCall(). When the call is connected, the onConnected 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:

1-to-1 call end sequence diagram
  1. 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, the onDisconnected event occurs on the app clients of both caller and callee.
  2. Planet Cloud invokes the 1-to-1 Call Event callback to notify the app server of the end of the call.

APIs related to 1-to-1 calls are as follows.

Client API

Methods

Events

Server API