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:
1.2 Push Stream
Please refer to:
1.3 Pull Stream
Please refer to:
2 Single player MV mode implementation process
2.1 Data flow example
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
- Log in to the KTV room, users in the same room can interact
- Start streaming
- Play accompaniment music MV, and sing along with the music
- Put the lyrics progress information into the media stream
General audience
- Log in to the KTV room
- 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
3.2 Data flow
The following figure describes the data flow diagram of the two-person KTV mode:
3.3 Overall process
Lead singer
- Log in to the KTV room, users in the same room can interact
- Play accompaniment music MV, and sing to the music
- 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
- Pull the main channel video stream of the vice vocalist, play silently and watch the vice vocal image
- Pull the a cappella audio stream of the vice vocal auxiliary channel, and chorus with the vice vocal
Vice singer (interactive audience)
- Log in to the KTV room
- 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
- 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
- Push your own a cappella audio stream from the auxiliary channel
General audience
- Log in to the KTV room
- 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
- 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
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
- Log in to the KTV room, users in the same room can interact
- Start streaming
- Play accompaniment music MV, and sing along with the music
- Put the lyrics progress information into the media stream
- The stream of Lamai, listen to comments
Maizhu
- Log in to the KTV room
- Pull the stream of the lead singer and extract the lyrics information
- Push stream to participate in comment interaction
General audience
- Log in to the KTV room
- Pull the stream of the lead singer and extract the lyrics
- The stream of Lamai, listen to comments