CN111683262A - Method, device, server, terminal and storage medium for determining continuous microphone time - Google Patents

Method, device, server, terminal and storage medium for determining continuous microphone time Download PDF

Info

Publication number
CN111683262A
CN111683262A CN202010501374.7A CN202010501374A CN111683262A CN 111683262 A CN111683262 A CN 111683262A CN 202010501374 A CN202010501374 A CN 202010501374A CN 111683262 A CN111683262 A CN 111683262A
Authority
CN
China
Prior art keywords
terminal
time
determining
heartbeat information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010501374.7A
Other languages
Chinese (zh)
Other versions
CN111683262B (en
Inventor
伍威威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202010501374.7A priority Critical patent/CN111683262B/en
Publication of CN111683262A publication Critical patent/CN111683262A/en
Application granted granted Critical
Publication of CN111683262B publication Critical patent/CN111683262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42203Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] sound input device, e.g. microphone

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a method and a device for determining duration of wheat connection, a server, a terminal and a storage medium, and belongs to the technical field of live video. The method comprises the following steps: receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of first heartbeat information; each first heartbeat message is sent by the first terminal in the process of connecting the microphone; any first heartbeat information comprises a first terminal identifier of the first terminal, a second terminal identifier and a first time for sending the first heartbeat information; determining a first time period for connecting the first terminal and the second terminal according to the plurality of first heartbeat information; and determining the first connecting time length of the first terminal and the second terminal according to the first time period. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first microphone connecting time length of the first terminal and the second terminal can be determined, the situation that the microphone connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the microphone connecting time length determining method is improved.

Description

Method, device, server, terminal and storage medium for determining continuous microphone time
Technical Field
The invention relates to the technical field of live video, in particular to a method, a device, a server, a terminal and a storage medium for determining a microphone connection time length.
Background
With the development of video live broadcast technology, interaction between a main broadcast user and other users (other main broadcasts or audiences) can be carried out through live broadcast and microphone connection in the live broadcast process. After interaction between the anchor user and other users is finished, the duration of the microphone connection between the anchor user and other users needs to be determined, and the popularity of the anchor user is determined through the duration of the microphone connection.
In the related technology, a terminal used by a main broadcasting user sends a first time for starting a microphone connection to a server when the main broadcasting user starts the microphone connection with a spectator user; and the terminal sends the second time of the connection to the server when the connection between the main broadcasting user and the audience user is finished. The server receives the first time and the second time sent by the terminal; and determining the duration of the connection between the main broadcasting user and other users through the time difference between the first time and the second time.
However, in the above related art, the start and the end of the wheat connection are all one-time events, and a network packet loss may occur in the process of reporting to the server at the first time and the second time, and if the server receives only one of the first time and the second time, the wheat connection time length cannot be determined, so the fault tolerance of the method for determining the wheat connection time length is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a server, a terminal and a storage medium for determining the duration of continuous wheat, which can improve the fault tolerance of the method for determining the duration of continuous wheat. The technical scheme is as follows:
in a first aspect, a method for determining a duration of connecting to a wheat is provided, where the method includes:
receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of pieces of first heartbeat information, wherein each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal with a second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information;
determining a first time period for connecting the first terminal and the second terminal according to the plurality of pieces of first heartbeat information;
and determining a first connecting time length of the first terminal and the second terminal according to the first time period.
In a possible implementation manner, the determining, according to the plurality of pieces of first heartbeat information, a first time period in which the first terminal and the second terminal are connected to the internet includes:
determining a first target time in the first heartbeat information received for the first time according to a plurality of first times included in the plurality of first heartbeat information, and determining a second target time in the first heartbeat information received for the last time;
and determining the first time period according to the first target time and the second target time.
In another possible implementation manner, after determining, according to the first time period, a first connection duration between the first terminal and the second terminal, the method further includes:
generating first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification;
and the first connecting duration and the first connecting anchor information form the first connecting information.
In another possible implementation manner, the method further includes:
receiving second heartbeat information periodically sent by a third terminal to obtain a plurality of second heartbeat information, wherein each second heartbeat information is sent by the third terminal in the process of connecting the third terminal and the second terminal; any second heartbeat information comprises a third terminal identification of the third terminal, the second terminal identification and a second time for sending the second heartbeat information;
determining a second time period for connecting the third terminal and the second terminal according to the plurality of second heartbeat information;
and determining a second connecting duration of the first terminal, the third terminal and the second terminal according to the first time period and the second time period.
In another possible implementation manner, the determining, according to the first time period and the second time period, a second microphone connecting duration of the first terminal, the third terminal, and the second terminal includes:
determining an intersection time period of the first time period and the second time period;
and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
In another possible implementation manner, after determining, according to the crossing time period, a second duration of the first terminal, the third terminal, and the second terminal, the method further includes:
generating second connected-to-line multicast information according to the first terminal identification, the second terminal identification and the third terminal identification;
and forming second connecting duration and the second connecting main broadcasting information into second connecting information.
In another possible implementation manner, before determining the first time period according to the first target time and the second target time, the method further includes:
determining a time sequence of the second target time and a third target time; the third target time is the first time in the first heartbeat information received last time;
in response to the chronological order being that the second target time is after the third target time, performing the step of determining the first time period according to the first target time and the second target time.
In another possible implementation manner, after determining, according to the first time period, a first connection duration between the first terminal and the second terminal, the method further includes:
determining the heat degree of a first anchor user corresponding to the first terminal according to the first connecting time length;
and determining first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
In another possible implementation manner, before determining, according to the plurality of pieces of first heartbeat information, a first time period during which the first terminal and the second terminal are connected to the internet, the method further includes:
responding to that first heartbeat information sent by the first terminal is not received within a first preset time length, determining that the connection between the first terminal and the second terminal is finished, and executing a step of determining a first time period for the connection between the first terminal and the second terminal according to the plurality of first heartbeat information; alternatively, the first and second electrodes may be,
and in the process of connecting the first terminal and the second terminal, when receiving a first heartbeat message, executing the step of determining a first time period for connecting the first terminal and the second terminal according to the plurality of first heartbeat messages.
In a second aspect, a method for determining a duration of continuous wheat is provided, where the method includes:
in the process of connecting a first terminal and a second terminal, periodically acquiring a first terminal identifier of the first terminal, a second terminal identifier of the second terminal and current first time;
generating first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sending the first heartbeat information to a server;
and when the first terminal and the second terminal are determined to be connected with the microphone, stopping sending the first heartbeat information to the server.
In one possible implementation, the method further includes:
receiving first popularity ranking information of a first anchor user of the first terminal, which is returned by the server, wherein the first popularity ranking information is determined by the server according to the first heartbeat information;
and displaying the first popularity ranking information in a live broadcast interface of the first terminal.
In another possible implementation manner, the displaying the first popularity ranking information in a live interface of the first terminal includes:
responding to that the user corresponding to the second terminal is a second anchor user, and receiving second popularity ranking information sent by the server to the second anchor user;
displaying the first popularity ranking information in a first display area in the live interface, and displaying the second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
In a third aspect, a device for determining duration of wheat connecting is provided, the device comprising:
the first receiving module is used for receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of pieces of first heartbeat information, and each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal with a second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information;
the first determining module is used for determining a first time period for connecting the first terminal and the second terminal according to the plurality of pieces of first heartbeat information;
and the second determining module is used for determining the first microphone connecting time length of the first terminal and the second terminal according to the first time period.
In one possible implementation manner, the first determining module includes:
a first determining unit, configured to determine, according to a plurality of first times included in the plurality of first heartbeat information, a first target time in first heartbeat information received for a first time, and determine a second target time in first heartbeat information received for a last time;
a second determining unit, configured to determine the first time period according to the first target time and the second target time.
In another possible implementation manner, the apparatus further includes:
the first generation module is used for generating first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification;
and the first composing module is used for composing the first connecting duration and the first connecting anchor information into the first connecting information.
In another possible implementation manner, the apparatus further includes:
the first receiving module is further configured to receive second heartbeat information periodically sent by a third terminal to obtain a plurality of second heartbeat information, where each second heartbeat information is sent by the third terminal in a process of connecting the third terminal and the second terminal; any second heartbeat information comprises a third terminal identification of the third terminal, the second terminal identification and a second time for sending the second heartbeat information;
the first determining module is further configured to determine a second time period in which the third terminal and the second terminal are connected to each other according to the plurality of second heartbeat information;
and a third determining module, configured to determine, according to the first time period and the second time period, a second microphone connecting duration of the first terminal, the third terminal, and the second terminal.
In another possible implementation manner, the third determining module is configured to determine a crossing time period of the first time period and the second time period; and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
In another possible implementation manner, the apparatus further includes:
the second generation module is used for generating second continuous playing anchor information according to the first terminal identification, the second terminal identification and the third terminal identification;
and the second forming module is used for forming second connecting duration and the second connecting main broadcasting information into second connecting information.
In another possible implementation manner, the apparatus further includes:
a fourth determining module, configured to determine a time order of the second target time and the third target time; the third target time is the first time in the first heartbeat information received last time;
the second determining unit is configured to determine the first time period according to the first target time and the second target time in response to the time sequence being that the second target time is after the third target time.
In another possible implementation manner, the apparatus further includes:
a fifth determining module, configured to determine, according to the first microphone connecting duration, a heat degree of a first anchor user corresponding to the first terminal; and determining first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
In another possible implementation manner, the apparatus further includes:
a sixth determining module, configured to determine that the connection between the first terminal and the second terminal is finished in response to that the first heartbeat information sent by the first terminal is not received within a first preset time period;
the first determining module is configured to determine a first time period in which the first terminal and the second terminal are connected to each other according to the plurality of pieces of first heartbeat information; alternatively, the first and second electrodes may be,
the first determining module is configured to determine, according to the plurality of pieces of first heartbeat information, a first time period for the first terminal to connect to the second terminal when the first terminal and the second terminal receive one piece of first heartbeat information each time in a connecting process between the first terminal and the second terminal.
In a fourth aspect, a continuous wheat time determining device is provided, the device includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for periodically acquiring a first terminal identifier of a first terminal, a second terminal identifier of a second terminal and current first time in the process of connecting a first terminal and a second terminal;
a sending module, configured to generate first heartbeat information according to the first terminal identifier, the second terminal identifier, and the first time, and send the first heartbeat information to a server;
and the stopping module is used for stopping sending the first heartbeat information to the server when the first terminal and the second terminal are determined to be connected with the microphone.
In one possible implementation, the apparatus further includes:
the second receiving module is used for receiving first popularity ranking information of a first anchor user of the first terminal, which is returned by the server, wherein the first popularity ranking information is determined by the server according to the first heartbeat information;
and the display module is used for displaying the first popularity ranking information in a live broadcast interface of the first terminal.
In another possible implementation manner, the display module is configured to receive, in response to that a user corresponding to the second terminal is a second anchor user, second popularity ranking information that is sent by the server to the second anchor user; displaying the first popularity ranking information in a first display area in the live interface, and displaying the second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
In a fifth aspect, a server is provided, where the server includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed in the method for determining a duration of a connected wheat as described above.
In a sixth aspect, a terminal is provided, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operation performed in the method for determining a duration of connected wheat as described above.
In a seventh aspect, a computer-readable storage medium is provided, where at least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by a processor to implement the operations performed in the method for determining a duration of connected wheat as described above.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting a first terminal and a second terminal is received; and then determining a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information, and determining a first connecting time length of the first terminal and the second terminal according to the first time period. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first microphone connecting time length of the first terminal and the second terminal can be determined, the situation that the microphone connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the microphone connecting time length determining method is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the invention;
fig. 2 is a flowchart of a method for determining a duration of connecting to a microphone according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention;
fig. 5 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention;
fig. 6 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention;
fig. 7 is a block diagram of a structure of a device for determining duration of wheat-connecting provided in an embodiment of the present invention;
fig. 8 is a block diagram of another structure of a device for determining duration of wheat-connecting time according to an embodiment of the present invention;
fig. 9 is a block diagram of another structure of a device for determining duration of wheat-connecting time according to an embodiment of the present invention;
fig. 10 is a block diagram of another setup of the device for determining duration of wheat-connecting time according to the embodiment of the present invention;
fig. 11 is a block diagram of a terminal according to an embodiment of the present invention;
fig. 12 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a first terminal 101, a second terminal 102, and a server 103. The second terminal 102 is a terminal used by a second user, the second user may be an anchor user in a live broadcast room, the first terminal 101 is a terminal used by a first user, and the first user may be another user except the anchor user in the live broadcast room.
The first terminal 101 and the server 103 are connected through a wireless or wired network; the second terminal 102 and the server 102 are connected via a wireless or wired network. Moreover, the first terminal 101 and the second terminal 102 may be installed with a client that the server 103 provides services, a first user of the first terminal 101 may implement functions such as data transmission and message interaction between the client and the server 104, and a second user of the second terminal 102 may implement functions such as data transmission and message interaction between the client and the server 104; a first user of the first terminal 101 and a second user of the second terminal 102 may perform a microphone connection interaction through the client, so that the server 103 may determine microphone connection information between the first terminal 101 and the second terminal 102.
The client can be any client capable of conducting live broadcast. For example, the client may be a live client or a short video client. The first terminal 101 and the second terminal 102 may be mobile phones, tablet computers or other electronic devices. The server 103 may be a server, a server cluster composed of several servers, or a cloud computing service center.
Moreover, the method for determining the duration of the wheat-connecting period in the embodiment of the present application can be widely applied to various practical application scenarios, and practical technical effects of the embodiment of the present application are explained by combining three exemplary application scenarios as follows:
(1) may be applied in the scenario of determining whether anchor performance is up to standard: receiving a plurality of first heartbeat messages sent by a first terminal; the first heartbeat information is periodically sent by the first terminal in the process of connecting the first terminal and the second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information; determining a first time period for connecting the first terminal and the second terminal according to the plurality of first heartbeat information; and determining the first connecting time length of the first terminal and the second terminal according to the first time period. And further determining whether the performance of the second user reaches the standard or not according to the first wheat connecting time length.
(2) The method can be applied to a scene of ranking the popularity of multiple anchor in the anchor popularity ranking list: determining a first microphone connecting time length of the first terminal and the second terminal through the microphone connecting time length determining method; determining the popularity of the anchor user corresponding to the second terminal according to the first connecting time length; and ranking the popularity of the anchor user according to the popularity of the anchor user.
(3) The method can be applied to the scene of the anchor bride: receiving a plurality of pieces of first heartbeat information sent by a first terminal, and determining a first time period for connecting the first terminal with a second terminal according to the plurality of pieces of first heartbeat information; receiving a plurality of second heartbeat messages sent by a third terminal; determining a second time period for connecting the third terminal and the second terminal according to the plurality of second heartbeat information; determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the first time period and the second time period; the third terminal is a terminal used by a third user, and the third user can be other users except for the anchor user in the live broadcast room. Wherein the second user is a main broadcasting bride; the second wheat connecting duration is the wheat connecting duration of the main broadcasting bride, the first user and the third user; and determining the performance of the main broadcasting bride through the duration of the three connected lines.
Fig. 2 is a flowchart of a method for determining a duration of a microphone connection according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is a server, and referring to fig. 2, the method includes:
201. receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of pieces of first heartbeat information, wherein each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal with a second terminal; and any first heartbeat information comprises a first terminal identifier of the first terminal, a second terminal identifier of the second terminal and a first time for sending the first heartbeat information.
202. And determining a first time period for connecting the first terminal and the second terminal according to the plurality of pieces of first heartbeat information.
203. And determining the first connecting time length of the first terminal and the second terminal according to the first time period.
In a possible implementation manner, determining a first time period for the first terminal to connect to the second terminal according to a plurality of pieces of first heartbeat information includes:
determining a first target time in first heartbeat information received for the first time and determining a second target time in first heartbeat information received for the last time according to a plurality of first times included in the plurality of first heartbeat information;
and determining a first time period according to the first target time and the second target time.
In another possible implementation manner, after determining, according to the first time period, a first connection duration between the first terminal and the second terminal, the method further includes:
generating first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification;
and forming first connecting information by the first connecting duration and the first connecting anchor information.
In another possible implementation manner, the method further includes:
receiving second heartbeat information periodically sent by a third terminal to obtain a plurality of second heartbeat information, wherein each second heartbeat information is sent by the third terminal in the process of connecting the third terminal with the second terminal; any second heartbeat information comprises a third terminal identifier of the third terminal, a second terminal identifier and a second time for sending the second heartbeat information;
determining a second time period for connecting the third terminal and the second terminal according to the plurality of second heartbeat information;
and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the first time period and the second time period.
In another possible implementation manner, determining a second connecting duration of the first terminal, the third terminal, and the second terminal according to the first time period and the second time period includes:
determining an intersection time period of the first time period and the second time period;
and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
In another possible implementation manner, after determining, according to the crossing time period, a second duration of the first terminal, the third terminal, and the second terminal, the method further includes:
generating second connected-to-broadcasting information according to the first terminal identification, the second terminal identification and the third terminal identification;
and forming second connecting time length and second connecting main broadcasting information into second connecting information.
In another possible implementation manner, before determining the first time period according to the first target time and the second target time, the method further includes:
determining the time sequence of the second target time and the third target time; the third target time is the first time in the first heartbeat information received last time;
and in response to the chronological order being that the second target time is after the third target time, performing the step of determining the first time period based on the first target time and the second target time.
In another possible implementation manner, after determining, according to the first time period, a first connecting duration between the first terminal and the second terminal, the method further includes:
determining the heat degree of a first anchor user corresponding to the first terminal according to the first connecting time length;
and determining first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
In another possible implementation manner, before determining, according to a plurality of pieces of first heartbeat information, a first time period during which the first terminal and the second terminal are connected to the internet, the method further includes:
responding to that first heartbeat information sent by a first terminal is not received within a first preset time length, determining that the connection between the first terminal and a second terminal is finished, and executing a step of determining a first time period for the connection between the first terminal and the second terminal according to a plurality of first heartbeat information; alternatively, the first and second electrodes may be,
in the process of connecting the first terminal and the second terminal, when one piece of first heartbeat information is received, a step of determining a first time period for connecting the first terminal and the second terminal according to a plurality of pieces of first heartbeat information is executed.
In the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting a first terminal and a second terminal is received; and then determining a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information, and determining a first connecting time length of the first terminal and the second terminal according to the first time period. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first microphone connecting time length of the first terminal and the second terminal can be determined, the situation that the microphone connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the microphone connecting time length determining method is improved.
Fig. 3 is a flowchart of a method for determining a duration of continuous microphone according to an embodiment of the present invention. The execution subject of the embodiment of the present invention is the first terminal, and referring to fig. 3, the method includes:
301. in the process of connecting the first terminal and the second terminal, a first terminal identification of the first terminal, a second terminal identification of the second terminal and the current first time are periodically obtained.
302. And generating first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sending the first heartbeat information to the server.
303. And when the connection of the first terminal and the second terminal is determined to be finished, stopping sending the first heartbeat information to the server.
In one possible implementation, the method further includes:
receiving first popularity ranking information of a first anchor user of a first terminal, which is returned by a server, wherein the first popularity ranking information is determined by the server according to first heartbeat information;
and displaying the first popularity ranking information in a live broadcasting interface of the first terminal.
In another possible implementation manner, displaying the first hotness ranking information in a live interface of the first terminal includes:
responding to that the user corresponding to the second terminal is a second anchor user, and receiving second popularity ranking information sent by the server to the second anchor user;
the method comprises the steps of displaying first popularity ranking information in a first display area in a live interface, and displaying second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
In the embodiment of the application, in the process of connecting a first terminal and a second terminal, a first terminal identifier of the first terminal, a second terminal identifier of the second terminal and a current first time are periodically acquired; generating first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sending the first heartbeat information to a server; due to the fact that the first heartbeat information is obtained, generated and sent periodically, even if short-time network packet loss occurs in the sending process, the first connecting time length of the first terminal and the second terminal can be determined, the situation that the connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the method for determining the connecting time length is improved.
Fig. 4 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention. In the embodiment of the present invention, the first microphone connecting time length is determined as an example. Referring to fig. 4, the method includes:
401. the method comprises the steps that a first terminal periodically obtains a first terminal identification of the first terminal, a second terminal identification of a second terminal and current first time in the process of connecting the first terminal and the second terminal.
In this step, the second terminal is a terminal used by the anchor user, and the first terminal is a terminal used by a user other than the anchor user in the live broadcast room. In the process of connecting the first terminal and the second terminal, other users can invite the anchor user to connect the microphone. The first terminal identifier may be a user name of another user, or may be an ID (Identity document) of the first terminal; the second terminal identification may be the user name of the anchor or may be the ID of the second terminal.
In a possible implementation manner, the display interface of the first terminal is a live broadcast room interface of a main broadcast user; a wheat connection request button is arranged in the live broadcast room interface; accordingly, the first terminal sends a microphone connecting request to a main broadcasting user using the second terminal in response to detecting the trigger operation on the microphone connecting request button. The second terminal receives the wheat connecting request; displaying an answering button and a hanging-up button in a display interface of the second terminal; and responding to the received trigger operation on the 'answer' button, and the first terminal and the second terminal are successfully connected.
In a possible implementation manner, when the first terminal and the second terminal successfully connect to the microphone, the first terminal acquires the first terminal identifier, the second terminal identifier and the current first time for the first time. In another possible implementation manner, when the first terminal sends a request for connecting to the second terminal, the first terminal acquires the first terminal identifier, the second terminal identifier and the current first time for the first time.
The periodic time for periodically acquiring the first terminal identifier, the second terminal identifier and the current first time can be any numerical value within 2-15 s; for example, 3s, 4s, 5s, etc.
In one possible implementation, the cycle time may be a preset fixed time; for example, the cycle time may be set to 3s, and the first terminal acquires the first terminal identifier, the second terminal identifier and the current first time every 3 s.
In another possible implementation, the cycle time may also be an unfixed time. Wherein the cycle time may be related to a current state of the first terminal. In one possible implementation, the cycle time is related to a current power level of the first terminal. Correspondingly, the first terminal may store a corresponding relationship between the cycle time and the current electric quantity of the first terminal; and determining the cycle time according to the current electric quantity. The more the electric quantity of the first terminal is, the shorter the cycle time is; the less the power of the first terminal, the longer the cycle time.
In the embodiment of the application, the cycle time is determined according to the current electric quantity; when the electric quantity of the first terminal is small, the cycle time is prolonged, so that the energy consumption of the first terminal can be reduced, and the intelligence of the first terminal is improved.
In another possible implementation, the cycle time may be related to the level of the anchor user. Correspondingly, the first terminal may store a corresponding relationship between the cycle time and the level of the anchor user; the cycle time is determined according to the level of the anchor user. Wherein, the higher the level of the anchor user, the shorter the cycle time; the lower the level of the anchor user, the longer the cycle time.
In the embodiment of the application, the cycle time is determined according to the level of the anchor user; when the level of the anchor user is high, the cycle time is short; therefore, the accuracy of obtaining the first terminal identification of the first terminal, the second terminal identification of the second terminal and the current first time is improved, and the accuracy of the first microphone connecting time length is further improved.
In another possible implementation, the cycle time may be related to a live scene of the live room; for example, when the live broadcast scene is a game scene, a competition scene, or the like, which has a high requirement on the accuracy of the first microphone connecting time length, the cycle time is short. Correspondingly, the first terminal can store the corresponding relation between the period time and the live broadcast scene of the live broadcast room; in response to the live view being a game view or a match view, the cycle time is shortened.
In the embodiment of the application, the period time is determined according to the live broadcast scene of the live broadcast room; when the live broadcast scene is a game scene, a competition scene and the like with high requirements on the accuracy of the first microphone connecting time length, the period time is short; therefore, the accuracy of obtaining the first terminal identification of the first terminal, the second terminal identification of the second terminal and the current first time is improved, and the accuracy of the first microphone connecting time length is further improved.
402. The first terminal generates first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sends the first heartbeat information to the server.
In this step, the first terminal may directly generate the first heartbeat information when acquiring the first terminal identifier of the first terminal, the second terminal identifier of the second terminal, and the current first time, and send the first heartbeat information to the server. The cycle time of the first terminal sending the first heartbeat information to the server is the same as the cycle time of the first terminal obtaining the first terminal identification of the first terminal, the second terminal identification of the second terminal and the current first time.
In one possible implementation manner, the first heartbeat information includes a first terminal identifier, a second terminal identifier, and a first time. The first heartbeat information may be relation list information of a first terminal identifier, a second terminal identifier and first time; accordingly, the step may include: the first terminal generates relation list information of the first terminal identification, the second terminal identification and the first time according to the first terminal identification, the second terminal identification and the first time; the first terminal sends the relation list information of the first terminal identification, the second terminal identification and the first time to the server.
In the embodiment of the application, the relationship list information of the first terminal identifier, the second terminal identifier and the first time is generated according to the first terminal identifier, the second terminal identifier and the first time, and because the information in the relationship list information is correlated with each other, the information is not easy to lose, and the integrity of the first heartbeat information is improved.
In another possible implementation manner, the first heartbeat information may further include level information corresponding to the first terminal identifier, and the level information corresponding to the second terminal identifier. Accordingly, the step may include: the first terminal generates relation list information of the first terminal identifier, the second terminal identifier, the grade information corresponding to the first terminal identifier, the grade information corresponding to the second terminal identifier and the first time according to the first terminal identifier, the second terminal identifier, the grade information corresponding to the first terminal identifier, the grade information corresponding to the second terminal identifier and the first time; the first terminal sends the relationship list information to the server.
It should be noted that, after the first terminal generates the first heartbeat information, the first heartbeat information may be processed first and then sent to the server. In a possible implementation manner, after the first terminal generates the first heartbeat information, the first terminal identifier and/or the second terminal identifier in the first heartbeat information are encrypted, and then the first heartbeat information is sent to the server. The encryption process may be to hide part of the terminal identifier or hide all the terminal identifiers. For example: the first terminal identification is 'Xiaoming', and the first terminal identification is 'Minming' after the first terminal identification is encrypted.
In the embodiment of the application, the first terminal identification and/or the second terminal identification in the first heartbeat information are/is encrypted, so that the information security of a user is improved.
403. And the first terminal stops sending the first heartbeat information to the server when determining that the connection between the first terminal and the second terminal is finished.
In this step, the first terminal receives an end instruction of the end of the connection of the first terminal and the second terminal, and determines that the connection of the first terminal and the second terminal is ended.
In a possible implementation manner, the display interface of the first terminal is a live broadcast room interface of a main broadcast user; a wheat connecting ending button is arranged in the direct broadcast room interface; correspondingly, the first terminal responds to the trigger operation on the microphone connecting ending button and generates an ending instruction; and the first terminal receives an end instruction of the connection completion of the first terminal and the second terminal.
In another possible implementation manner, the display interface of the second terminal is a live broadcast room interface of the anchor user; and a connecting wheat ending button is arranged in the live broadcast room interface. Correspondingly, the second terminal responds to the trigger operation on the microphone connecting ending button and generates an ending instruction; and the first terminal receives an end instruction of the connection completion of the first terminal and the second terminal.
404. The server receives first heartbeat information periodically sent by the first terminal to obtain a plurality of first heartbeat information.
In this step, each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal and the second terminal, and any piece of first heartbeat information includes the first terminal identifier of the first terminal, the second terminal identifier of the second terminal, and the first time for sending the first heartbeat information.
It should be noted that the cycle time of the first terminal sending the first heartbeat information is the same as the cycle time of the server receiving the first heartbeat information. That is, the first terminal periodically sends the first heartbeat information, and the server periodically receives the first heartbeat information to obtain a plurality of first heartbeat information.
405. The server determines a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information.
In this step, the plurality of first heartbeat information includes first heartbeat information transmitted by the first terminal for the first time and first heartbeat information transmitted last time.
In one possible implementation, the step may include: the server determines a first target time in the first heartbeat information received for the first time and determines a second target time in the first heartbeat information received for the last time according to a plurality of first times included in the plurality of first heartbeat information; and determining a first time period according to the first target time and the second target time.
In a possible implementation manner, the server receives the first heartbeat information for the first time, extracts the first time from the first heartbeat information, and determines the first time as the first target time.
In a possible implementation manner, the server receives the first heartbeat information for the second time, extracts the first time from the first heartbeat information received for the second time, and determines the first time as a second target time; in response to receiving the first heartbeat information again, a first time is extracted from the first heartbeat information received again, the first time being determined to be a second target time. That is, the server updates the second target time when receiving the new first heartbeat information.
In the embodiment of the application, when the server receives the new first heartbeat information, the second target time is updated, and the second target time is determined to be the first time in the first heartbeat information received by the server last time, so that the accuracy of the second target time is improved.
In another possible implementation manner, the server determines the second target time in the first heartbeat information received last time through the time sequence of the first times in the plurality of first heartbeat information. Correspondingly, the server determines a second target time in the first heartbeat information received last time, and the method comprises the following steps: the server determines a plurality of first times in the plurality of first heartbeat messages, and determines the last first time in the time sequence as a second target time according to the time sequence in the plurality of first times.
In the embodiment of the application, the server determines the second target time in the first heartbeat information received last time through the time sequence of the first time in the plurality of first heartbeat information, and ensures that the second target time is the last time in the time sequence, so that the effectiveness of the second target time is improved.
In this step, the server may record the first target time and the second target time, and generate time record information; the server determines a first time period according to the time record information. Wherein the first time period may be a time difference between the first target time and the second target time; correspondingly, the server determines the first time period according to the first target time and the second target time, and the method comprises the following steps: the server determines the first time difference to be a first time period according to the first time difference between the first target time and the second target time.
It should be noted that, before determining the first time period according to the first target time and the second target time, the server needs to verify the validity of the second target time.
In one possible implementation, the server determines a time sequence of the second target time and the third target time; the third target time is the first time in the first heartbeat information received last time; in response to the chronological order being that the second target time is after the third target time, performing a step of determining a first time period from the first target time and the second target time; i.e. it is determined that the second target time is valid.
In another possible implementation manner, the server determines a time sequence of the second target time and the third target time; deleting the second target time in response to the chronological order being that the second target time precedes the third target time; i.e., determining that the second target time is invalid.
In the embodiment of the application, the server verifies the validity of the second target time, so that the second target time is prevented from being messy code time or invalid time; thereby improving the effectiveness of the second target time.
Another point to be noted is that, according to different requirements on the first connecting time length, the server may periodically determine a first time period for the first terminal to connect to the second terminal in the connecting process between the first terminal and the second terminal; the server can also determine a first time period for the first terminal to connect with the second terminal when the first terminal and the second terminal are connected with each other.
In a possible implementation manner, a server periodically determines a first time period for connecting the first terminal and the second terminal in the process of connecting the first terminal and the second terminal; correspondingly, in the process of connecting the first terminal and the second terminal to the microphone, the server executes the step of determining the first time period for connecting the first terminal and the second terminal to the microphone according to the plurality of first heartbeat information every time when receiving one first heartbeat information.
In the embodiment of the application, when the server receives a first heartbeat message, a first time period for the first terminal to connect with the second terminal is determined, and then the first connection time length of the first terminal and the second terminal is determined, so that the instantaneity of the first connection time length is improved.
In another possible implementation manner, the server determines a first time period for the first terminal to connect to the second terminal when the first terminal and the second terminal end to connect to the other terminal. Correspondingly, the server responds to that the first heartbeat information sent by the first terminal is not received within the first preset time length, the end of the connection between the first terminal and the second terminal is determined, and the step of determining the first time period for the connection between the first terminal and the second terminal according to the plurality of first heartbeat information is executed. Wherein, the first preset time length can be any value within 10-15 s; for example, 10s, 11s, 12s, etc.; in the embodiment of the present application, the time of the first preset duration is not specifically limited, and may be set and changed as needed.
In the embodiment of the application, when the connection of the first terminal and the second terminal is finished, the server determines the first time period for the connection of the first terminal and the second terminal, and further determines the first connection time length of the first terminal and the second terminal, so that the frequency of determining the first time period is reduced, the application rate of the first time period is improved, and the energy consumption loss of the server is reduced.
406. The server determines a first connecting time length of the first terminal and the second terminal according to the first time period.
In one possible implementation, the step may include: the server determines the duration of the first time period, and the duration of the first time period is determined as the first microphone connecting duration of the first terminal and the second terminal.
It should be noted that, after determining the first microphone connecting time length between the first terminal and the second terminal according to the first time period, the server may further generate a relationship list of the anchor user, the audience user, and the microphone connecting time length according to the first microphone connecting time length. Correspondingly, the server generates first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification; and forming first connecting information by the first connecting duration and the first connecting anchor information.
In a possible implementation manner, the first microphone connecting anchor information may be a relationship list between the first microphone connecting anchor information and the first microphone connecting time length. The first connecting-to-broadcasting information comprises a first terminal identification and a second terminal identification. The first contact multicast information may be a relationship list of the second terminal identifier, the first terminal identifier, and the first contact duration.
It should be noted that the number of the first terminal identifiers may be one or more; accordingly, the number of the first microphone connecting time periods can be one or more. That is, the second terminal can connect with a plurality of first terminals simultaneously; at this time, the first contact multicast information may be a relationship list of the second terminal identifier, the plurality of first terminal identifiers, and the plurality of first contact durations.
In the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting a first terminal and a second terminal is received; and then determining a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information, and determining a first connecting time length of the first terminal and the second terminal according to the first time period. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first microphone connecting time length of the first terminal and the second terminal can be determined, the situation that the first microphone connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the first microphone connecting time length determining method is improved.
Fig. 5 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention. In the embodiment of the present invention, the determination of the anchor popularity ranking information according to the first microphone connecting duration is taken as an example for description. Referring to fig. 5, the method includes:
501. the method comprises the steps that a first terminal periodically obtains a first terminal identification of the first terminal, a second terminal identification of a second terminal and current first time in the process of connecting the first terminal and the second terminal.
In the embodiment of the present application, a description will be given by taking, as an example, a first terminal as a terminal used by a anchor user, and a second terminal as a terminal used by another user other than the anchor user in a live broadcast room. Where the other users may be other anchor or viewers.
Step 501 is the same as step 401, and is not described herein again.
502. The first terminal generates first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sends the first heartbeat information to the server.
Step 502 is the same as step 402, and will not be described herein again.
503. And the first terminal stops sending the first heartbeat information to the server when determining that the connection between the first terminal and the second terminal is finished.
Step 503 is the same as step 403, and will not be described herein again.
504. The server receives first heartbeat information periodically sent by the first terminal to obtain a plurality of first heartbeat information.
Step 504 is the same as step 404, and will not be described herein again.
505. The server determines a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information.
Step 505 is the same as step 405, and will not be described herein again.
506. The server determines a first connecting time length of the first terminal and the second terminal according to the first time period.
Step 506 is the same as step 406, and will not be described herein.
507. And the server determines the heat degree of a first anchor user corresponding to the first terminal according to the first connecting time length.
In this step, the number of the second terminals connected to the first terminal may be one or more.
In a possible implementation manner, the number of the second terminals connected with the first terminal is one, and the server can determine the heat degree of the first anchor user corresponding to the first terminal according to the connecting time length of the first terminal and the second terminal; accordingly, the step may include: the server determines a first microphone connecting time length of a second terminal connected with the first terminal; and determining the heat degree of a first anchor user corresponding to the first terminal according to the first connecting time length.
In a possible implementation mode, the server stores the corresponding relation between the duration of the continuous wheat and the heat value of the first anchor user; correspondingly, the server may determine, according to the first microphone connecting duration, the heat degree of the first multicast user corresponding to the first terminal from the correspondence between the microphone connecting duration stored in the server and the heat degree value of the first multicast user. The larger the first connecting duration is, the higher the popularity of the first anchor user is.
It should be noted that the first duration of connecting to the microphone may be a duration of connecting to the microphone by the first terminal and the second terminal this time, or may be a total duration of connecting to the microphone by the first terminal and the second terminal multiple times within a second preset duration. Wherein, the second preset time period may be 1 day, 2 days or 1 week, etc. In the embodiment of the present application, the time of the second preset duration is not specifically limited, and may be set and changed as needed.
In another possible implementation manner, the first duration of connecting to the mobile terminal may also be a total effective duration of multiple times of connecting to the mobile terminal by the first terminal and the second terminal.
In a possible implementation manner, the server may determine whether the duration of the wheat connecting is valid according to the signal strength in the process of the wheat connecting; correspondingly, the server responds that the signal intensity in the process of connecting the first terminal and the second terminal is greater than the signal intensity threshold value, and the connecting time length is determined to be effective; and determining that the microphone connecting duration is invalid in response to the fact that the signal strength in the microphone connecting process of the first terminal and the second terminal is not greater than the signal strength threshold.
In another possible implementation manner, the server may determine whether the duration of the connecting to the wheat is valid according to the signal strength and the duration of the connecting to the wheat in the process of connecting to the wheat; correspondingly, the server responds to the fact that the signal intensity is larger than the signal intensity threshold value or the microphone connecting duration is larger than a third preset duration in the microphone connecting process of the first terminal and the second terminal, and determines that the microphone connecting duration is effective; and determining that the microphone connecting time length is invalid in response to the fact that the signal strength in the microphone connecting process of the first terminal and the second terminal is not greater than the signal strength threshold value and the microphone connecting time length is not greater than a third preset time length.
The third preset time period may be any value between 10s and 60s, for example, 10s, 15s, 20s, and the like. In the embodiment of the present application, the time of the third preset duration is not specifically limited, and may be set and changed as needed.
In the embodiment of the application, the server judges the validity of the duration of the microphone connecting time, and does not count the invalid duration, so that the objectivity of the first microphone connecting time is improved.
In another possible implementation manner, the number of the second terminals connected to the first terminal is multiple, and the server may determine the heat degree of the first anchor user corresponding to the first terminal according to the total connected-to-the-wheat time of the first terminal and the multiple second terminals.
In a possible implementation manner, the total duration of connecting to the microphone may be the total duration of connecting to the microphone between the first terminal and the plurality of second terminals within a fourth preset duration; the total duration of connecting the microphone may also be a duration of connecting the microphone between the first terminal and the plurality of second terminals within a fourth preset duration. Wherein, the fourth preset time period may be 1 day, 2 days, 1 week, etc. In the embodiment of the present application, the time of the fourth preset duration is not specifically limited, and may be set and changed as needed.
In the embodiment of the application, the server determines the heat degree of the first anchor user through the total duration of the connection of the first terminal and the plurality of second terminals, so that the comprehensiveness of the heat degree of the first anchor user is improved.
In another possible implementation manner, the total duration of connecting the microphones is a total effective duration of connecting the microphones of the first terminal and the plurality of second terminals within a fourth preset duration. The server can determine whether the microphone connecting time length of the first terminal and the second terminal is effective or not according to the user corresponding to each second terminal. In one possible implementation manner, the server responds to that a user using the second terminal is an audience user, and determines that the microphone connecting time length of the first terminal and the second terminal is effective; and responding to the situation that the user using the second terminal is other anchor users, and determining that the microphone connecting time length of the first terminal and the second terminal is invalid.
In the embodiment of the application, the server only counts the microphone connecting time length of the anchor user and the audience user, and determines the heat degree of the first anchor user according to the total microphone connecting time length of the first anchor user, so that the objectivity of the heat degree of the first anchor user is improved.
The server stores a corresponding relation between the total connected wheat time and the heat value of the first anchor user; correspondingly, the server may determine the heat degree of the first anchor user corresponding to the first terminal from the correspondence between the total microphone connecting duration stored in the server and the heat degree value of the first anchor user according to the total microphone connecting duration. The larger the total duration of the connected wheat is, the higher the heat of the first anchor user corresponding to the first terminal is.
508. The server determines first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
In one possible implementation, the first popularity ranking information may be a list of relationships of the popularity of the first anchor user with the first anchor user.
In another possible implementation, the first popularity ranking information may be a position of the first anchor user in a list of relationships of anchor users to popularity. Accordingly, the step may include: the server determines a first position of the first anchor user in a relationship list of the anchor user and the popularity according to the popularity of the first anchor user, and determines first popularity ranking information of the first anchor user according to the first position.
In a possible implementation manner, the server may determine, according to the popularity of the first anchor user and ranking information of the popularity in the relationship list of anchor users and popularity, a first position of the first anchor user in the relationship list of anchor users and popularity.
Wherein, the heat degree may be a specific value; for example, the popularity of the first anchor user is 100, and the ranking information of the popularity in the relationship list between the anchor user and the popularity is: 80. 81, 90, 95, 105, 110, etc.; the server determines that the first anchor user is between 95 and 105 in the anchor user and popularity relationship list based on the popularity of the first anchor user and ranking information of the popularity in the anchor user and popularity relationship list.
509. The server sends first popularity ranking information of the first anchor user to the first terminal.
510. The first terminal receives first popularity ranking information of the first anchor user returned by the server.
511. The first terminal displays first popularity ranking information in a live broadcast interface of the first terminal.
In a possible implementation manner, the user corresponding to the second terminal is a second anchor user; wherein the second anchor user may be one or more. Accordingly, the step may include: the first terminal receives second popularity ranking information sent by the server and of a second anchor user; the method comprises the steps of displaying first popularity ranking information in a first display area in a live interface, and displaying second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
The first popularity ranking information can be a relation list of popularity of the first anchor user and the first anchor user; the second popularity ranking information may be a list of relationships of popularity of the second anchor user with the second anchor user.
In another possible implementation manner, the first popularity ranking information may be the positions of the first anchor user and the second anchor user in a relation list of the anchor users and the popularity. Accordingly, the step may include: the first terminal receives second popularity ranking information sent by the server and of a second anchor user; determining the positions of the first anchor user and the second anchor user in a relationship list of the anchor users and the popularity according to the second popularity ranking information; and displaying the first popularity ranking information in a first display area in the live interface. In the embodiment of the present application, the position and size of the first display area in the live interface are not limited.
In the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting a first terminal and a second terminal is received; and then determining a first time period for connecting the first terminal and the second terminal to the microphone according to the plurality of first heartbeat information, determining a first microphone connecting time length of the first terminal and the second terminal according to the first time period, and further determining first heat ranking information according to the first microphone connecting time length. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first heat ranking information can be determined, the situation that the first heat ranking information cannot be determined due to the network packet loss is avoided, and the fault tolerance of the first heat ranking information is improved.
Fig. 6 is a flowchart of another method for determining a duration of continuous microphone according to an embodiment of the present invention. In the embodiment of the present invention, the determination of the second microphone connecting time period is taken as an example for explanation. Referring to fig. 6, the method includes:
601. the method comprises the steps that a first terminal periodically obtains a first terminal identification of the first terminal, a second terminal identification of a second terminal and current first time in the process of connecting the first terminal and the second terminal.
In the embodiment of the present application, the second terminal is taken as a terminal used by a host user, and the first terminal is taken as a terminal used by another user. Where the other users may be other anchor or viewers.
The method of step 601 is the same as that of step 401, and is not described herein again.
602. The first terminal generates first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sends the first heartbeat information to the server.
Step 602 is the same as step 402, and will not be described herein again.
603. And the first terminal stops sending the first heartbeat information to the server when determining that the connection between the first terminal and the second terminal is finished.
Step 603 is the same as step 403, and will not be described herein again.
604. The server receives first heartbeat information periodically sent by the first terminal to obtain a plurality of first heartbeat information.
Step 604 is the same as step 404, and will not be described herein again.
605. The server determines a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information.
Step 605 is the same as step 405, and will not be described herein again.
606. The server determines a first connecting time length of the first terminal and the second terminal according to the first time period.
The method of step 606 is the same as that of step 406, and is not described herein again.
607. And the third terminal periodically acquires a third terminal identifier of the third terminal, a second terminal identifier of the second terminal and the current second time in the process of connecting the third terminal and the second terminal.
Step 607 is the same as step 401, and will not be described herein again.
608. And the third terminal generates second heartbeat information according to the third terminal identification, the second terminal identification and the second time, and sends the second heartbeat information to the server.
The method for generating the second heartbeat information in step 608 is the same as the method for generating the first heartbeat information in step 402, and is not described herein again.
609. And the server receives second heartbeat information periodically sent by the third terminal to obtain a plurality of second heartbeat information.
In this step, each second heartbeat message is sent by the third terminal in the process of connecting the third terminal and the second terminal; and any second heartbeat information comprises a third terminal identifier of the third terminal, a second terminal identifier and a second time for sending the second heartbeat information.
It should be noted that the cycle time of the third terminal sending the second heartbeat information is the same as the cycle time of the server receiving the second heartbeat information. That is, the third terminal periodically sends the second heartbeat information, and the server periodically receives the second heartbeat information to obtain a plurality of second heartbeat information.
610. And the server determines a second time period for connecting the third terminal and the second terminal according to the plurality of second heartbeat information.
The method for determining the second time period in step 610 is the same as the method for determining the first time period in step 404, and is not repeated here.
It should be noted that, there is no chronological order between step 601 and step 606, and between step 607 and step 610. The server may first perform steps 601-606, and then perform steps 607-610; alternatively, steps 607 to 610 may be performed first, and steps 601 to 606 may be performed.
The server may also perform steps 601 to 606 and steps 607 to 610 at the same time. At this time, the server receives a plurality of second heartbeat information transmitted by the third terminal and a plurality of first heartbeat information transmitted by the first terminal at the same time.
611. And the server determines a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the first time period and the second time period.
In a possible implementation manner, the second duration of connecting to the microphone may be a duration of connecting to the microphone simultaneously by the first terminal identifier, the second terminal identifier, and the third terminal identifier. Accordingly, the step may include: the server determines a crossed time period of the first time period and the second time period; and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
It should be noted that the number of the third terminals may be one or more; when the number of the third terminals is one, the second microphone connecting time length is the microphone connecting time length of the first terminal, the second terminal and the third terminal. The crossing time period is a crossing time period of the first time period and one second time period.
In another possible implementation manner, the number of the third terminals is multiple, and the second microphone connecting duration is duration for which the first terminal, the second terminal, and the multiple third terminals simultaneously connect to the microphone. The crossing time period is a crossing time period of the first time period and the plurality of second time periods.
It should be noted that, after determining the second microphone connecting time lengths of the first terminal, the third terminal and the second terminal according to the first time period and the second time period, the server may further generate a relationship list for simultaneously connecting microphones of the first terminal and the second terminal, and the third terminal and the second terminal according to the second microphone connecting time lengths. Correspondingly, the server generates second connected-to-broadcasting information according to the first terminal identification, the second terminal identification and the third terminal identification; and forming second connecting time length and second connecting main broadcasting information into second connecting information.
The second microphone connecting information may be a relationship list of the first terminal identifier, the second terminal identifier, the third terminal identifier, and the second microphone connecting time length.
In the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting the first terminal with a second terminal is received, and second heartbeat information periodically sent by a third terminal in the process of connecting the third terminal with the second terminal is received. The method comprises the steps that a plurality of first heartbeat messages sent by a first terminal and a plurality of second heartbeat messages sent by a third terminal are received; even if short-time network packet loss occurs in the receiving process, the second microphone connecting time length can be determined, and the fault tolerance of determining the second microphone connecting time length is improved.
Fig. 7 is a block diagram of a structure of a device for determining a duration of wheat-connecting provided in an embodiment of the present invention, and referring to fig. 7, the device includes:
a first receiving module 701, configured to receive first heartbeat information periodically sent by a first terminal, to obtain multiple pieces of first heartbeat information, where each piece of first heartbeat information is sent by the first terminal in a process of connecting the first terminal to a second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information;
a first determining module 702, configured to determine, according to the multiple pieces of first heartbeat information, a first time period for a first terminal to connect to a second terminal;
the second determining module 703 is configured to determine a first connecting duration between the first terminal and the second terminal according to the first time period.
In one possible implementation, referring to fig. 8, the first determining module 702 includes:
a first determining unit 7021, configured to determine, according to a plurality of first times included in the plurality of first heartbeat information, a first target time in the first heartbeat information received for the first time, and a second target time in the first heartbeat information received for the last time;
a second determining unit 7022 is configured to determine the first time period according to the first target time and the second target time.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
a first generating module 704, configured to generate first linkman anchor information according to the first terminal identifier and the second terminal identifier;
a first forming module 705, configured to form the first connecting duration and the first connecting multicast information into first connecting information.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
the first receiving module 701 is further configured to receive second heartbeat information sent by a third terminal to obtain a plurality of second heartbeat information, where each second heartbeat information is sent by the third terminal in a process of connecting the third terminal and the second terminal; any second heartbeat information comprises a third terminal identifier of the third terminal, a second terminal identifier and a second time for sending the second heartbeat information;
the first determining module 702 is further configured to determine, according to the plurality of second heartbeat information, a second time period in which the third terminal and the second terminal are connected to each other;
a third determining module 706, configured to determine, according to the first time period and the second time period, a second duration of the first terminal, the third terminal, and the second terminal.
In another possible implementation manner, the third determining module 706 is configured to determine an intersection time period of the first time period and the second time period; and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
a second generating module 707, configured to generate second online multicast information according to the first terminal identifier, the second terminal identifier, and the third terminal identifier;
a second forming module 708, configured to form the second duration of the second barley connecting and the second information of the second barley connecting anchor into second barley connecting information.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
a fourth determining module 709, configured to determine a time sequence between the second target time and the third target time; the third target time is the first time in the first heartbeat information received last time;
a second determining unit 7022, configured to determine, in response to the time sequence being that the second target time is after the third target time, the first time period according to the first target time and the second target time.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
a fifth determining module 710, configured to determine, according to the first connecting duration, a heat degree of a first anchor user corresponding to the first terminal; and determining first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
In another possible implementation, with continuing reference to fig. 8, the apparatus further comprises:
a sixth determining module 711, configured to determine that the connection between the first terminal and the second terminal is finished in response to that the first heartbeat information sent by the first terminal is not received within the first preset time period;
a first determining module 702, configured to determine, according to the multiple pieces of first heartbeat information, a first time period for a first terminal to connect to a second terminal; alternatively, the first and second electrodes may be,
a first determining module 702, configured to determine, when a first heartbeat message is received during a connection process between a first terminal and a second terminal, a first time period for the first terminal to connect to the second terminal according to multiple first heartbeat messages.
Fig. 9 is a block diagram of another setup of a device for determining duration of connected wheat according to an embodiment of the present invention, and referring to fig. 9, the device includes:
an obtaining module 901, configured to periodically obtain a first terminal identifier of a first terminal, a second terminal identifier of a second terminal, and a current first time in a process of connecting a first terminal and a second terminal to a microphone;
a sending module 902, configured to generate first heartbeat information according to the first terminal identifier, the second terminal identifier, and the first time, and send the first heartbeat information to the server;
a stopping module 903, configured to stop sending the first heartbeat information to the server when it is determined that the first terminal and the second terminal complete the connection.
In one possible implementation, referring to fig. 10, the apparatus further includes:
a second receiving module 904, configured to receive first popularity ranking information of the first anchor user of the first terminal, which is returned by the server, where the first popularity ranking information is determined by the server according to the first heartbeat information;
the display module 905 is configured to display the first hotness ranking information in a live interface of the first terminal.
In another possible implementation manner, the display module 905 is configured to, in response to that a user corresponding to the second terminal is a second anchor user, receive second popularity ranking information sent by the server to the second anchor user; the method comprises the steps of displaying first popularity ranking information in a first display area in a live interface, and displaying second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
In the embodiment of the application, first heartbeat information periodically sent by a first terminal in the process of connecting a first terminal and a second terminal is received; and then determining a first time period for the first terminal to connect with the second terminal according to the plurality of first heartbeat information, and determining a first connecting time length of the first terminal and the second terminal according to the first time period. Due to the fact that the plurality of first heartbeat messages sent by the first terminal are received, even if short-time network packet loss occurs in the receiving process, the first microphone connecting time length of the first terminal and the second terminal can be determined, the situation that the microphone connecting time length cannot be determined due to the network packet loss is avoided, and the fault tolerance of the microphone connecting time length determining method is improved.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: when the device for determining duration of connecting to wheat provided in the above embodiment determines the information of connecting to wheat, only the division of the above functional modules is taken as an example, in practical application, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the classification device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the embodiments of the device and the method for determining duration of connecting to wheat provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the methods and are not described herein again.
Fig. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal 1100 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group audio Layer III, motion Picture Experts compression standard audio Layer 3), an MP4 player (Moving Picture Experts Group audio Layer IV, motion Picture Experts compression standard audio Layer 4), a notebook computer, a desktop computer, a head-mounted device, or any other intelligent terminal. Terminal 1100 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, terminal 1100 includes: a processor 1101 and a memory 1102.
Processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1101 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor, the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit, image Processing interactor) for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1102 may include one or more computer-readable storage media, which may be non-transitory. Memory 1102 can also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1102 is used to store at least one instruction for being possessed by processor 1101 to implement the audio data acquisition methods provided by method embodiments herein.
In some embodiments, the terminal 1100 may further include: a peripheral interface 1103 and at least one peripheral. The processor 1101, memory 1102 and peripheral interface 1103 may be connected by a bus or signal lines. Various peripheral devices may be connected to the peripheral interface 1103 by buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1104, touch display screen 1105, camera 1106, audio circuitry 1107, positioning component 1108, and power supply 1109.
The peripheral interface 1103 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, memory 1102, and peripheral interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102 and the peripheral device interface 1103 may be implemented on separate chips or circuit boards, which is not limited by this embodiment.
The Radio Frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 8G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1104 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to capture touch signals on or over the surface of the display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. At this point, the display screen 1105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1105 may be one, providing the front panel of terminal 1100; in other embodiments, the display screens 1105 can be at least two, respectively disposed on different surfaces of the terminal 1100 or in a folded design; in still other embodiments, display 1105 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1100. Even further, the display screen 1105 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display screen 1105 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
Camera assembly 1106 is used to capture images or video. Optionally, camera assembly 1106 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1106 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1107 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1101 for processing or inputting the electric signals to the radio frequency circuit 1104 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1100. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1101 or the radio frequency circuit 1104 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1107 may also include a headphone jack.
Positioning component 1108 is used to locate the current geographic position of terminal 1100 for purposes of navigation or LBS (location based Service). The positioning component 1108 may be a positioning component based on the united states GPS (global positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
Power supply 1109 is configured to provide power to various components within terminal 1100. The power supply 1109 may be alternating current, direct current, disposable or rechargeable. When the power supply 1109 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1100 can also include one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: acceleration sensor 1111, gyro sensor 1112, pressure sensor 1113, fingerprint sensor 1114, optical sensor 1115, and proximity sensor 1116.
Acceleration sensor 1111 may detect acceleration levels in three coordinate axes of a coordinate system established with terminal 1100. For example, the acceleration sensor 1111 may be configured to detect components of the gravitational acceleration in three coordinate axes. The processor 1101 may control the touch display screen 1105 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1112 may detect a body direction and a rotation angle of the terminal 1100, and the gyro sensor 1112 may cooperate with the acceleration sensor 1111 to acquire a 3D motion of the user with respect to the terminal 1100. From the data collected by gyroscope sensor 1112, processor 1101 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1113 may be disposed on a side bezel of terminal 1100 and/or on an underlying layer of touch display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the terminal 1100, the holding signal of the terminal 1100 from the user can be detected, and the processor 1101 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is disposed at the lower layer of the touch display screen 1105, the processor 1101 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1105. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1114 is configured to collect a fingerprint of the user, and the processor 1101 identifies the user according to the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1101 to have associated sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1114 may be disposed on the front, back, or side of terminal 1100. When a physical button or vendor Logo is provided on the terminal 1100, the fingerprint sensor 1114 may be integrated with the physical button or vendor Logo.
Optical sensor 1115 is used to collect ambient light intensity. In one embodiment, the processor 1101 may control the display brightness of the touch display screen 1105 based on the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is turned down. In another embodiment, processor 1101 may also dynamically adjust the shooting parameters of camera assembly 1106 based on the ambient light intensity collected by optical sensor 1115.
Proximity sensor 1116, also referred to as a distance sensor, is typically disposed on a front panel of terminal 1100. Proximity sensor 1116 is used to capture the distance between the user and the front face of terminal 1100. In one embodiment, the touch display screen 1105 is controlled by the processor 1101 to switch from a bright screen state to a dark screen state when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 is gradually decreasing; when the proximity sensor 1116 detects that the distance between the user and the front face of the terminal 1100 becomes gradually larger, the touch display screen 1105 is controlled by the processor 1101 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 11 does not constitute a limitation of terminal 1100, and may include more or fewer components than those shown, or may combine certain components, or may employ a different arrangement of components.
Fig. 12 is a block diagram of a server 1200, where the server 1200 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1201 and one or more memories 1202, where the memory 1002 is used for storing executable instructions, and the processor 1201 is configured to execute the executable instructions to implement the method for determining a duration of a microphone attachment provided by each method embodiment described above. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
In an exemplary embodiment, there is also provided a storage medium comprising instructions, such as a memory comprising instructions, executable by a server of an apparatus to perform the method described above. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact disc-Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The invention is not to be considered as limited to the particular embodiments shown and described, but is to be understood that various modifications, equivalents, improvements and the like can be made without departing from the spirit and scope of the invention.

Claims (20)

1. A method for determining duration of continuous wheat, comprising:
receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of pieces of first heartbeat information, wherein each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal with a second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information;
determining a first time period for connecting the first terminal and the second terminal according to the plurality of pieces of first heartbeat information;
and determining a first connecting time length of the first terminal and the second terminal according to the first time period.
2. The method of claim 1, wherein the determining the first time period for the first terminal to get connected to the second terminal according to the plurality of first heartbeat information comprises:
determining a first target time in the first heartbeat information received for the first time according to a plurality of first times included in the plurality of first heartbeat information, and determining a second target time in the first heartbeat information received for the last time;
and determining the first time period according to the first target time and the second target time.
3. The method according to claim 1 or 2, wherein after determining the first connection duration between the first terminal and the second terminal according to the first time period, the method further comprises:
generating first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification;
and forming first connecting information by the first connecting duration and the first connecting anchor information.
4. The method of claim 1, further comprising:
receiving second heartbeat information periodically sent by a third terminal to obtain a plurality of second heartbeat information, wherein each second heartbeat information is sent by the third terminal in the process of connecting the third terminal and the second terminal; any second heartbeat information comprises a third terminal identification of the third terminal, the second terminal identification and a second time for sending the second heartbeat information;
determining a second time period for connecting the third terminal and the second terminal according to the plurality of second heartbeat information;
and determining a second connecting duration of the first terminal, the third terminal and the second terminal according to the first time period and the second time period.
5. The method of claim 4, wherein the determining a second duration of the first terminal, the third terminal, and the second terminal according to the first time period and the second time period comprises:
determining an intersection time period of the first time period and the second time period;
and determining a second microphone connecting time length of the first terminal, the third terminal and the second terminal according to the cross time period.
6. The method of claim 5, wherein after determining a second duration of the first terminal, the third terminal, and the second terminal according to the crossing time period, the method further comprises:
generating second connected-to-line multicast information according to the first terminal identification, the second terminal identification and the third terminal identification;
and forming second connecting duration and the second connecting main broadcasting information into second connecting information.
7. The method of claim 2, wherein the determining the first time period is preceded by determining the first time period based on the first target time and the second target time, the method further comprising:
determining a time sequence of the second target time and a third target time; the third target time is the first time in the first heartbeat information received last time;
in response to the chronological order being that the second target time is after the third target time, performing the step of determining the first time period according to the first target time and the second target time.
8. The method of claim 1, wherein after determining the first connection duration between the first terminal and the second terminal according to the first time period, the method further comprises:
determining the heat degree of a first anchor user corresponding to the first terminal according to the first connecting time length;
and determining first popularity ranking information of the first anchor user according to the popularity of the first anchor user.
9. The method of claim 1, wherein before determining the first time period for the first terminal to connect to the second terminal according to the plurality of first heartbeat information, the method further comprises:
responding to that first heartbeat information sent by the first terminal is not received within a first preset time length, determining that the connection between the first terminal and the second terminal is finished, and executing a step of determining a first time period for the connection between the first terminal and the second terminal according to the plurality of first heartbeat information; alternatively, the first and second electrodes may be,
and in the process of connecting the first terminal and the second terminal, when receiving a first heartbeat message, executing the step of determining a first time period for connecting the first terminal and the second terminal according to the plurality of first heartbeat messages.
10. A method for determining duration of continuous wheat, comprising:
in the process of connecting a first terminal and a second terminal, periodically acquiring a first terminal identifier of the first terminal, a second terminal identifier of the second terminal and current first time;
generating first heartbeat information according to the first terminal identification, the second terminal identification and the first time, and sending the first heartbeat information to a server;
and when the first terminal and the second terminal are determined to be connected with the microphone, stopping sending the first heartbeat information to the server.
11. The method of claim 10, further comprising:
receiving first popularity ranking information of a first anchor user of the first terminal, which is returned by the server, wherein the first popularity ranking information is determined by the server according to the first heartbeat information;
and displaying the first popularity ranking information in a live broadcast interface of the first terminal.
12. The method of claim 11, wherein the displaying the first hotness ranking information in a live interface of the first terminal comprises:
responding to that the user corresponding to the second terminal is a second anchor user, and receiving second popularity ranking information sent by the server to the second anchor user;
displaying the first popularity ranking information in a first display area in the live interface, and displaying the second popularity ranking information in a second display area in the live interface, wherein the first display area is a display area corresponding to a first anchor user, and the second display area is a display area corresponding to a second anchor user.
13. A duration determination apparatus for continuous wheat, the apparatus comprising:
the first receiving module is used for receiving first heartbeat information periodically sent by a first terminal to obtain a plurality of pieces of first heartbeat information, and each piece of first heartbeat information is sent by the first terminal in the process of connecting the first terminal with a second terminal; any first heartbeat information comprises a first terminal identification of the first terminal, a second terminal identification of the second terminal and a first time for sending the first heartbeat information;
the first determining module is used for determining a first time period for connecting the first terminal and the second terminal according to the plurality of pieces of first heartbeat information;
and the second determining module is used for determining the first microphone connecting time length of the first terminal and the second terminal according to the first time period.
14. The apparatus of claim 13, wherein the first determining module comprises:
a first determining unit, configured to determine, according to a plurality of first times included in the plurality of first heartbeat information, a first target time in first heartbeat information received for a first time, and determine a second target time in first heartbeat information received for a last time;
a second determining unit, configured to determine the first time period according to the first target time and the second target time.
15. The apparatus of claim 13 or 14, further comprising:
the first generation module is used for generating first connecting-to-broadcasting information according to the first terminal identification and the second terminal identification;
and the first composing module is used for composing the first connecting duration and the first connecting anchor information into the first connecting information.
16. The apparatus of claim 13, further comprising:
the first receiving module is further configured to receive second heartbeat information periodically sent by a third terminal to obtain a plurality of first heartbeat information, where each second heartbeat information is sent by the third terminal in a process of connecting the third terminal and the second terminal; any second heartbeat information comprises a third terminal identification of the third terminal, the second terminal identification and a second time for sending the second heartbeat information;
the first determining module is further configured to determine a second time period in which the third terminal and the second terminal are connected to each other according to the plurality of second heartbeat information;
and a third determining module, configured to determine, according to the first time period and the second time period, a second microphone connecting duration of the first terminal, the third terminal, and the second terminal.
17. A duration determination apparatus for continuous wheat, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for periodically acquiring a first terminal identifier of a first terminal, a second terminal identifier of a second terminal and current first time in the process of connecting a first terminal and a second terminal;
a sending module, configured to generate first heartbeat information according to the first terminal identifier, the second terminal identifier, and the first time, and send the first heartbeat information to a server;
and the stopping module is used for stopping sending the first heartbeat information to the server when the first terminal and the second terminal are determined to be connected with the microphone.
18. A server, comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed in the method for determining duration of connected wheat according to any one of claims 1 to 9.
19. A terminal, comprising a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed in the method for determining duration of connected wheat according to any one of claims 10 to 12.
20. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the operations performed in the method for determining duration of connected wheat according to any one of claims 1 to 12.
CN202010501374.7A 2020-06-04 2020-06-04 Method, device, server, terminal and storage medium for determining continuous microphone time Active CN111683262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010501374.7A CN111683262B (en) 2020-06-04 2020-06-04 Method, device, server, terminal and storage medium for determining continuous microphone time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010501374.7A CN111683262B (en) 2020-06-04 2020-06-04 Method, device, server, terminal and storage medium for determining continuous microphone time

Publications (2)

Publication Number Publication Date
CN111683262A true CN111683262A (en) 2020-09-18
CN111683262B CN111683262B (en) 2022-03-15

Family

ID=72453402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010501374.7A Active CN111683262B (en) 2020-06-04 2020-06-04 Method, device, server, terminal and storage medium for determining continuous microphone time

Country Status (1)

Country Link
CN (1) CN111683262B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004015750A (en) * 2002-06-11 2004-01-15 Ntt Comware Corp Live distribution server and live distribution method
CN107743250A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Realize that main broadcaster connects wheat PK method, storage medium, equipment and system on PC
CN108184140A (en) * 2018-01-10 2018-06-19 武汉斗鱼网络科技有限公司 A kind of live streaming connects wheat method and device
CN108513145A (en) * 2018-03-19 2018-09-07 武汉斗鱼网络科技有限公司 A kind of control method and device of even wheat live streaming
CN110677447A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 User stay time length determining method, device, equipment and storage medium
CN110971922A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast and microphone connecting state monitoring method, device, storage medium and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004015750A (en) * 2002-06-11 2004-01-15 Ntt Comware Corp Live distribution server and live distribution method
CN107743250A (en) * 2017-10-10 2018-02-27 武汉斗鱼网络科技有限公司 Realize that main broadcaster connects wheat PK method, storage medium, equipment and system on PC
CN108184140A (en) * 2018-01-10 2018-06-19 武汉斗鱼网络科技有限公司 A kind of live streaming connects wheat method and device
CN108513145A (en) * 2018-03-19 2018-09-07 武汉斗鱼网络科技有限公司 A kind of control method and device of even wheat live streaming
CN110677447A (en) * 2018-07-03 2020-01-10 百度在线网络技术(北京)有限公司 User stay time length determining method, device, equipment and storage medium
CN110971922A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast and microphone connecting state monitoring method, device, storage medium and system

Also Published As

Publication number Publication date
CN111683262B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN108810576B (en) Live wheat-connecting method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN111083516B (en) Live broadcast processing method and device
CN110149332B (en) Live broadcast method, device, equipment and storage medium
CN109246123B (en) Media stream acquisition method and device
CN109525883B (en) Interactive special effect display method and device, electronic equipment, server and storage medium
CN110139116B (en) Live broadcast room switching method and device and storage medium
CN112118477B (en) Virtual gift display method, device, equipment and storage medium
CN111327953B (en) Live broadcast voting method and device and storage medium
CN110213612B (en) Live broadcast interaction method and device and storage medium
CN111107389B (en) Method, device and system for determining live broadcast watching time length
CN111355974A (en) Method, apparatus, system, device and storage medium for virtual gift giving processing
CN111913679A (en) Method, device, equipment and storage medium for establishing wireless screen projection connection
CN110740340B (en) Video live broadcast method and device and storage medium
CN110418152B (en) Method and device for carrying out live broadcast prompt
CN107896337B (en) Information popularization method and device and storage medium
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN111045945B (en) Method, device, terminal, storage medium and program product for simulating live broadcast
CN113271470B (en) Live broadcast wheat connecting method, device, terminal, server and storage medium
CN108579075B (en) Operation request response method, device, storage medium and system
CN113204671A (en) Resource display method, device, terminal, server, medium and product
CN108401194B (en) Time stamp determination method, apparatus and computer-readable storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN108260023B (en) Live broadcast method and device
CN114826799B (en) Information acquisition method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant