Documentation
KTVOline Online Karaoke
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Online Karaoke
  • Solution Implementation
  • iOS

KTV implementation process

Last updated:2022-03-22 13:06

This section mainly introduces the main processes of several common scenarios

1 Basic function realization

1.1 Initialization

After the SDK is integrated, if you want to use the functions of the SDK, you also need to initialize the SDK. Please refer to:

  • Quick Start - Implementation

1.2 Push Stream

Please refer to:

  • Quick Start - Implementation - 2.3

1.3 Pull Stream

Please refer to:

  • Quick Start - Implementation - 2.4

2 Single player MV mode implementation process

2.1 Data flow example

ktv-sdk-arch-2
In this mode, the single-host live broadcast mode is extended, and only the accompaniment music playback push part is added at the host side.

2.2 Overall process

Lead singer
  1. Log in to the KTV room, users in the same room can interact
  2. Start streaming
  3. Play accompaniment music MV, and sing along with the music
  4. Put the lyrics progress information into the media stream
General audience
  1. Log in to the KTV room
  2. Pull the audio and video stream of the lead singer, watch the MV screen and the lead singer KTV live broadcast

3 Two-person KTV realization process

3.1 Overall implementation process

ktv_business_process

3.2 Data flow

The following figure describes the data flow diagram of the two-person KTV mode:

/Pics/iOS/Applications-Ktv/zego-ktv-arch-data_flow_hechang.jpg

3.3 Overall process

Lead singer

  1. Log in to the KTV room, users in the same room can interact
  2. Play accompaniment music MV, and sing to the music
  3. Mix the accompaniment music with your own singing voice, inject the lyrics information, and launch it from the main channel together with your own video screen
  4. Pull the main channel video stream of the vice vocalist, play silently and watch the vice vocal image
  5. Pull the a cappella audio stream of the vice vocal auxiliary channel, and chorus with the vice vocal

Vice singer (interactive audience)

  1. Log in to the KTV room
  2. Pull the audio and video stream of the main channel of the lead singer, watch the lead singer's picture, listen to the lead singer's voice, and extract the lyrics information
  3. Mix the audio of the lead singer into your own push stream, inject the lyrics information and push it out from the main channel together with your own video picture
  4. Push your own a cappella audio stream from the auxiliary channel

General audience

  1. Log in to the KTV room
  2. Pull the audio and video stream of the main channel of the vice vocalist, watch the assistant vocal screen, listen to the effect of the chorus and extract the lyrics information
  3. Pull the main channel audio and video stream of the lead singer, play silently, and watch the lead singer's video screen

4 Realization process of Duomai live broadcast mode

4.1 Data flow example

ktv-sdk-arch-2
This mode is an extension of the co-hosting live broadcast mode, only adding the accompaniment music playback and streaming part to the lead singer.

4.2 Overall process

Lead singer
  1. Log in to the KTV room, users in the same room can interact
  2. Start streaming
  3. Play accompaniment music MV, and sing along with the music
  4. Put the lyrics progress information into the media stream
  5. The stream of Lamai, listen to comments
Maizhu
  1. Log in to the KTV room
  2. Pull the stream of the lead singer and extract the lyrics information
  3. Push stream to participate in comment interaction
General audience
  1. Log in to the KTV room
  2. Pull the stream of the lead singer and extract the lyrics
  3. The stream of Lamai, listen to comments
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code