CN114302154A - Live broadcast room display method and device and electronic equipment - Google Patents

Live broadcast room display method and device and electronic equipment Download PDF

Info

Publication number
CN114302154A
CN114302154A CN202111494772.1A CN202111494772A CN114302154A CN 114302154 A CN114302154 A CN 114302154A CN 202111494772 A CN202111494772 A CN 202111494772A CN 114302154 A CN114302154 A CN 114302154A
Authority
CN
China
Prior art keywords
live broadcast
broadcast room
room
sequence
live
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.)
Pending
Application number
CN202111494772.1A
Other languages
Chinese (zh)
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202111494772.1A priority Critical patent/CN114302154A/en
Publication of CN114302154A publication Critical patent/CN114302154A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a live broadcast room display method, a live broadcast room display device and electronic equipment, wherein the method comprises the following steps: receiving a first inter-direct-broadcasting sequence transmitted by a server; acquiring a live broadcast picture of a first live broadcast room in a first live broadcast room sequence from a server, and determining an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture; removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence; and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence. The terminal side can determine an abnormal live broadcast room influencing the watching experience of a user from the first live broadcast room sequence, removes the abnormal live broadcast room from the first live broadcast room sequence, obtains and displays a second live broadcast room sequence, reduces the probability of the abnormal live broadcast room contained in a live broadcast room display result, and reduces the operation pressure of the server side for updating the first live broadcast room sequence.

Description

Live broadcast room display method and device and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of live broadcasting, in particular to a live broadcasting room display method and device, electronic equipment, a computer readable storage medium and a computer program product.
Background
With the development of the internet and the improvement of science and technology, more and more users watching video live broadcasts can select a heart instrument live broadcast room to watch in a live broadcast room display page of a live broadcast platform, and therefore, how to sequence and display the live broadcast room becomes an important problem.
In the related art, a live-broadcast-room sequence including a live-broadcast-room display sequence is generally generated at a server, and after receiving the live-broadcast-room sequence, a user displays each live broadcast according to the live-broadcast-room display sequence in the live-broadcast-room sequence. Because live video broadcast has real-time performance, the state of a live broadcast room may change constantly, so that some live broadcast rooms in the live broadcast room sequence cannot be watched normally, a user can also manually send a sequence refreshing instruction to a server, the server updates the live broadcast room sequence and resends the updated live broadcast room sequence to a user side, and the live broadcast room displays the live broadcast room according to the updated sequence.
In order to avoid opening a live broadcast room which cannot be watched, a user can refresh the live broadcast room sequence frequently, and a large number of users refresh the live broadcast room sequence frequently, so that a large number of server resources are occupied, and the operation efficiency of a server is influenced.
Disclosure of Invention
The embodiment of the application provides a live broadcast room display method and device, electronic equipment, a computer readable storage medium and a computer program product, and aims to solve the problem that in the related art, in order to avoid opening a live broadcast room which cannot be watched by a user, the live broadcast room sequence is actively refreshed, so that the load of a server is too high.
In a first aspect, an embodiment of the present application provides a live broadcast room display method, including:
receiving a first inter-direct-broadcasting sequence issued by a server;
acquiring a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server, and determining an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture;
removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence;
and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
In an optional implementation, the determining, according to the live view, an abnormal live view in the first live view sequence includes:
and determining a first live broadcast room with no content in the live broadcast picture and/or static live broadcast picture as an abnormal live broadcast room.
In an optional implementation manner, the determining that the first live room with no content in the live pictures is an abnormal live room includes:
acquiring first average gray values of at least two video frames in the live broadcast picture;
under the condition that the first average gray values of the at least two video frames are smaller than or equal to a first preset gray value, determining that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room without content of the live broadcast picture;
and determining the first live broadcast room with no content in the live broadcast picture as the abnormal live broadcast room.
In an optional implementation, the determining that the first live room with the still live picture is an abnormal live room includes:
determining a frame difference image between two adjacent video frames in the live broadcast picture, wherein the frame difference image is determined according to a difference value between the adjacent video frames;
acquiring a second average gray value of the frame difference image;
under the condition that the second average gray value is smaller than or equal to a second preset gray value, determining that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with a static live broadcast picture;
and determining a first live broadcast room with the static live broadcast picture as the abnormal live broadcast room.
In an optional implementation, the determining, according to the live view, an abnormal live view in the first live view sequence includes:
and under the condition that the live broadcast picture of the first live broadcast room sent by the server is not received, determining that the live broadcast picture of the first live broadcast room is lost, and determining the first live broadcast room with the lost live broadcast picture as an abnormal live broadcast room.
In an optional implementation manner, the receiving a first inter-broadcast sequence sent by a server includes:
acquiring a search word input by a user, and sending the search word to the server, wherein the search word is used for indicating the server to search a live broadcast room database according to the search word, acquiring a live broadcast room set matched with the search word, and sequencing a first live broadcast room in the live broadcast room set to obtain a first live broadcast room sequence;
and receiving the first inter-direct-broadcasting sequence transmitted by the server.
In an optional implementation manner, the obtaining, from the server, a live view of a first live view in the first live view sequence includes:
determining a preset frame interval number according to the current network connection state, wherein the preset frame interval number is used for representing the frame number of the interval of the live broadcast pictures in the live broadcast video stream in the network connection state;
and acquiring at least two video frames in the live video stream of the first live broadcast room in the first live broadcast room sequence from the server according to the preset frame interval number, and using the at least two video frames as live broadcast pictures corresponding to the first live broadcast room.
In an optional implementation manner, after determining an abnormal live broadcast room in the first live broadcast room sequence according to a live broadcast picture of a first live broadcast room acquired from the server, the method further includes:
adjusting the position of the abnormal live broadcast room in the first live broadcast room sequence to the tail end position of the first live broadcast room sequence to obtain an updated third live broadcast room sequence;
and displaying the third live broadcast rooms according to the display sequence of the third live broadcast rooms in the third live broadcast room sequence.
In a second aspect, an embodiment of the present application provides a live broadcast room display device, where the device includes:
the acquisition module is configured to receive a first direct-broadcasting sequence transmitted by a server;
the determining module is configured to acquire a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server, and determine an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture;
a removing module configured to remove the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence;
and the display module is configured to display the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
In an alternative embodiment, the determining module includes:
a determination submodule configured to determine a first live broadcast room in which the live broadcast picture is free of content and/or the live broadcast picture is still as an abnormal live broadcast room.
In an optional embodiment, the determining sub-module further comprises:
the first gray level submodule is configured to acquire a first average gray level value of at least two video frames in the live broadcast picture;
the content-free determining submodule is configured to determine that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with no content in the live broadcast picture under the condition that the first average gray value of the at least two video frames is smaller than or equal to a first preset gray value;
a first exception submodule configured to determine a first live broadcast room of the live broadcast picture without content as the exception live broadcast room.
In an optional embodiment, the determining sub-module further comprises:
a difference image sub-module configured to determine a frame difference image between two adjacent video frames in the live view, the frame difference image being determined from a difference between the adjacent video frames;
a second gray level sub-module configured to acquire a second average gray level value of the frame difference image;
the static determining submodule is configured to determine that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with a static live broadcast picture under the condition that the second average gray value is smaller than or equal to a second preset gray value;
a second exception submodule configured to determine a first live broadcast room in which the live broadcast picture is still as the exception live broadcast room.
In an optional embodiment, the determining module further comprises:
and the third exception sub-module is configured to determine that the live broadcast picture of the first live broadcast room is lost and determine the first live broadcast room with the lost live broadcast picture as an exception live broadcast room under the condition that the live broadcast picture of the first live broadcast room issued by the server is not received.
In an alternative embodiment, the obtaining module includes:
the retrieval word submodule is configured to acquire a retrieval word input by a user and send the retrieval word to the server, wherein the retrieval word is used for indicating the server to retrieve a live broadcast room database according to the retrieval word, acquire a live broadcast room set matched with the retrieval word and sort a first live broadcast room in the live broadcast room set to obtain a first live broadcast room sequence;
and the receiving submodule is configured to receive the first direct-broadcasting time sequence transmitted by the server.
In an optional embodiment, the determining module further comprises:
the frame interval sub-module is configured to determine a preset frame interval number according to the current network connection state, wherein the preset frame interval number is used for representing the frame number of the interval of the live broadcast pictures acquired in the live broadcast video stream in the network connection state;
and the video frame acquisition sub-module is configured to acquire at least two video frames in a live video stream of a first live broadcast room in the first live broadcast room sequence from the server according to the preset frame interval number, and the at least two video frames serve as live broadcast pictures corresponding to the first live broadcast room.
In an alternative embodiment, the apparatus further comprises:
the sorting module is configured to adjust the position of the abnormal live broadcast room in the first live broadcast room sequence to the tail end position of the first live broadcast room sequence to obtain an updated third live broadcast room sequence;
and the sequencing display module is configured to display the third live broadcast rooms according to the display sequence of the third live broadcast rooms in the third live broadcast room sequence.
In a third aspect, an embodiment of the present application further provides an electronic device, including a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the live-air presentation method.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the live room display method.
In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the live broadcast room display method is implemented.
In the embodiment of the application, the first inter-direct-broadcasting sequence issued by the server can be received; acquiring a live broadcast picture of a first live broadcast room in a first live broadcast room sequence from a server, and determining an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture; removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence; and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence. The terminal side can determine an abnormal live broadcast room influencing the watching experience of a user from the first live broadcast room sequence, removes the abnormal live broadcast room from the first live broadcast room sequence, obtains and displays the second live broadcast room sequence, reduces the probability of the abnormal live broadcast room contained in the display result of the live broadcast room, avoids the situation that the live broadcast watching experience is poor due to the fact that the user is opened and cannot normally watch the live broadcast room to a great extent, and reduces the operation pressure of the server side for updating the first live broadcast room sequence.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a live broadcast room display method according to an embodiment of the present disclosure;
fig. 2 is a diagram illustrating an effect of a first inter-session sequence according to an embodiment of the present application;
fig. 3 is a diagram of a second live broadcast room sequence display effect provided by an embodiment of the present application;
fig. 4 is a flowchart illustrating steps of another live broadcast room presentation method according to an embodiment of the present application;
fig. 5 is a view of a display model structure of a live broadcast room according to an embodiment of the present application;
FIG. 6 is a logical block diagram of an electronic device of one embodiment of the present application;
fig. 7 is a logic block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart of steps of a live broadcast room display method provided in an embodiment of the present application, and as shown in fig. 1, the method includes:
step 101, receiving a first inter-direct-broadcasting sequence issued by a server.
The live video broadcast refers to a video playing form for real-time video transmission by utilizing the internet and a streaming media technology. The anchor can register and open the live broadcast room on the live broadcast platform, and transmit video content in real time in the live broadcast room, wherein the video content can be images obtained in real time and shot by the camera equipment, and can also be video file content transmitted in real time. The audience can select from the terminal side of the video platform and enter the live broadcast room to watch the live broadcast video content of the main broadcast.
Because there can be a large amount of live broadcast rooms at the same time on the live broadcast platform, audiences are difficult to directly select the live broadcast room of their own interest from the massive live broadcast rooms to watch, therefore, the server of the live broadcast platform can adopt various modes to classify and sort the massive live broadcast rooms according to different requirements of the audiences, so as to obtain the live broadcast room sequence, and further, the audiences can select the interested live broadcast room in the live broadcast room sequence, thereby improving the speed of searching and selecting the interested live broadcast room by the audiences.
For example, the audience can select the type of the anchor at the user end to obtain the live broadcast room sequence of the anchor of the corresponding type from the service end, the audience can also select the label of the live broadcast room at the user end to obtain the live broadcast room sequence in the corresponding label from the service end, the audience can also input search words at the terminal side to search the live broadcast room corresponding to the keyword to obtain the search results of the live broadcast room from the service end, and the search results are usually embodied in the form of the live broadcast room sequence; the audience can also select various lists to acquire the sequence of the live broadcast rooms under the lists, such as a popularity list, a hot broadcast list and the like. After receiving the live broadcast room sequence, the user end displays the live broadcast rooms contained in the live broadcast room sequence to the user according to the order of the live broadcast rooms in the live broadcast room sequence.
In this embodiment of the application, the first live broadcast time sequence refers to a live broadcast time sequence generated by the server and sent to the client, for example, the server queries 100 live broadcast times matched with a search keyword according to a live broadcast time search keyword input by a user, and sorts the 100 live broadcast times according to a correlation degree between the 100 live broadcast times and the search keyword to obtain a first live broadcast time sequence; for another example, the server determines 100 recommended live broadcast rooms for the user according to the basic information and the historical watching habits of the user, and then sorts the 100 recommended live broadcast rooms according to the number of people watching the 100 recommended live broadcast rooms to obtain a first direct broadcast room sequence.
And 102, acquiring a live broadcast picture of a first live broadcast in the first live broadcast sequence from the server, and determining an abnormal live broadcast in the first live broadcast sequence according to the live broadcast picture.
Because the real-time nature of live video, need record the video in real time usually, still need real-time transmission video, the live broadcast picture that goes wrong in any link all can lead to the live broadcast room receives the influence, and then makes the video of living broadcast in the live broadcast room unable watch, leads to the appearance of unusual live broadcast room.
For example, in one case, a network connection of a live streaming device of a main broadcast fails, and a live video cannot be sent to a server, so that the live video in a live broadcast room cannot be smoothly played, and problems such as stutter and pause occur, which affect normal watching of the live video in the live broadcast room by viewers, and the live broadcast room can be determined as an abnormal live broadcast room. In another case, due to reasons such as failure of recording equipment of the anchor broadcast, the server cannot acquire real-time pictures recorded by the anchor broadcast, so that live videos in the live broadcast room are lost, the normal watching of the live videos in the live broadcast room by audiences is also influenced, and the live broadcast room can be determined as an abnormal live broadcast room.
That is to say, in the embodiment of the present application, the first live broadcast room in which the live broadcast video cannot be normally viewed can be regarded as the abnormal live broadcast room.
Generally speaking, a live broadcast time sequence sent by the server generally includes live broadcast time identifiers of live broadcast times and live broadcast addresses of the live broadcast times, and live broadcast videos corresponding to the live broadcast times can be obtained from the server through the live broadcast addresses. Even if the live broadcast address corresponding to the live broadcast room is not contained in the live broadcast room sequence, the user side can send an address query instruction containing the live broadcast room identification to the server side so as to query the live broadcast address corresponding to the live broadcast room identification.
Therefore, after the first live broadcast time sequence is acquired, the live broadcast address corresponding to each first live broadcast time can be acquired from the first live broadcast time sequence, or the live broadcast address corresponding to the first live broadcast time can be determined through the live broadcast time identifier of the first live broadcast time. Through the live broadcast addresses of the first live broadcast rooms, the user side can pull the live broadcast pictures of the first live broadcast rooms from the server side, analyze the live broadcast pictures, determine whether the live broadcast pictures can be normally watched or not, and determine the first live broadcast room in which the live broadcast pictures cannot be normally watched as an abnormal live broadcast room.
And 103, removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence.
After a first live broadcast room sequence is generated, the state moment of a first live broadcast room in the first live broadcast room sequence can be changed, but a certain time is needed in the process that a user selects a heart instrument live broadcast room from the first live broadcast room, in the period of time, some first live broadcast rooms are likely to be abnormal, so that live broadcast videos in the first live broadcast rooms can not be normally watched, if the user just selects the abnormal live broadcast rooms and enters the abnormal live broadcast rooms, the situation that videos in the live broadcast rooms can not be normally watched is found, the watching mood of the user can be seriously influenced, if the user finds that live broadcast videos in the live broadcast rooms can not be normally watched after continuously selecting the live broadcast rooms for multiple times, the favorable evaluation degree of the user on a live broadcast platform can be seriously influenced, and the user is easily lost.
Therefore, in order to avoid the situation that the audience opens the abnormal live broadcast rooms which cannot be normally watched and the live broadcast watching experience of the user is influenced, the abnormal live broadcast rooms can be removed from the first live broadcast room sequence after the abnormal live broadcast rooms are determined, the rest first live broadcast rooms form a second live broadcast room set in the first live broadcast room sequence after the abnormal live broadcast rooms are removed, and the second live broadcast room sequence is generated according to the arrangement sequence of each second live broadcast room in the second live broadcast room set in the first live broadcast room sequence.
For example, referring to fig. 2 and fig. 3, fig. 2 shows a first live room sequence exhibition effect diagram provided by an embodiment of the present application, and fig. 3 shows a second live room sequence exhibition effect diagram provided by an embodiment of the present application, as shown in fig. 2, there are 5 first live rooms in the first live room sequence, and the first live rooms are arranged in the order of live room 1, live room 2, live room 3, live room 4, and live room 5, where the live room 2 and live room 3 are determined as abnormal live rooms, the live room 2 and live room 3 are removed from the first live room sequence, a second live room set including the live room 1, live room 4, and live room 5 is obtained, and the second live rooms in the second live room set are arranged in the order of the first live room sequence, so as to obtain a second live room sequence corresponding to the live room exhibition result shown in fig. 3, the 3 second live broadcast rooms in the second live broadcast room sequence are arranged in the live broadcast room 1, the live broadcast room 4 and the live broadcast room 5.
And 104, displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
Because the first live broadcast time sequence needs to be transmitted from the server to the client through the network, a large time delay may exist, and in the time delay, the state of the first live broadcast time sequence may also change, so that when the client receives the first live broadcast time sequence, an abnormal live broadcast time exists in the first live broadcast time sequence, in an implementation manner, the client may not display the first live broadcast time sequence to the user first after acquiring the first live broadcast time sequence, directly execute the above steps 102 to 103 to perform the abnormality detection on the first live broadcast time sequence, remove the abnormal live broadcast time in the first live broadcast time sequence to obtain a second live broadcast time sequence, and directly display the second live broadcast time sequence after removing the abnormal live broadcast time. To ensure to the maximum extent that there are no abnormal live rooms in the live room presented to the user.
Since it takes a certain time to determine the abnormal live broadcast room from the first live broadcast room sequence, if the user side performs the abnormal detection on the first live broadcast room sequence after acquiring the first live broadcast room sequence, the time for the user to wait for the result display in the live broadcast room may be prolonged, and the user experience may be reduced. Therefore, in another embodiment, after obtaining the first live broadcast time sequence, the user terminal may directly show the first live broadcast time to the user, and perform the above steps 102 to 103 in the user terminal background to obtain the second live broadcast time sequence after removing the abnormal live broadcast time from the first live broadcast time sequence, and after obtaining the second live broadcast time sequence, show the live broadcast time to the user according to the second live broadcast time sequence. Therefore, the waiting time for the user to obtain the display result of the live broadcast room is reduced.
In the embodiment of the application, an abnormal live broadcast room influencing the watching experience of the user does not exist in the live broadcast room display result seen by the user as much as possible. The steps 102 to 104 may be repeatedly and circularly executed at preset detection intervals to continuously determine the second live broadcast room sequence, so that the server only shows the first live broadcast room, in which no abnormality occurs in the first live broadcast room sequence, to the user. For example, steps 102 to 104 may be executed in a loop with 3 seconds as a preset detection interval. The timing of repeating the loop steps 102 to 104 may also be determined in other manners, for example, when the user returns the live broadcast display result from the live broadcast, or when the user performs operations such as sliding and turning pages on the live broadcast display result, and the like, which is not specifically limited in this embodiment of the application.
It should be noted that, in step 102, it is not determined that there is an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture of the first live broadcast room. And directly displaying the live broadcast room to the user according to the first live broadcast room sequence without generating a second live broadcast room sequence, or keeping the live broadcast room display result displayed to the user according to the first live broadcast room sequence unchanged.
In the embodiment of the application, a live broadcast room display method is disclosed, which comprises the steps of receiving a first live broadcast room sequence issued by a server; acquiring a live broadcast picture of a first live broadcast room in a first live broadcast room sequence from a server, and determining an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture; removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence; and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence. The terminal side can determine an abnormal live broadcast room influencing the watching experience of a user from the first live broadcast room sequence, removes the abnormal live broadcast room from the first live broadcast room sequence, obtains and displays the second live broadcast room sequence, reduces the probability of the abnormal live broadcast room contained in the display result of the live broadcast room, avoids the situation that the live broadcast watching experience is poor due to the fact that the user is opened and cannot normally watch the live broadcast room to a great extent, and reduces the operation pressure of the server side for updating the first live broadcast room sequence.
Fig. 4 is a flowchart of steps of another live broadcast showing method provided in the embodiment of the present application, and as shown in fig. 4, the method includes:
step 201, receiving a first inter-direct-broadcasting sequence issued by a server.
This step can refer to step 101, and is not described in detail in this embodiment of the present application.
Sub-steps 2011 to 2012 are detailed descriptions of the user obtaining the first inter-session sequence according to the search keyword.
And in the substep 2011, a search term input by a user is obtained, and the search term is sent to the server, wherein the search term is used for indicating the server to search the live broadcast room database according to the search term, obtain a live broadcast room set matched with the search term, and sort a first live broadcast room in the live broadcast room set to obtain the first live broadcast room sequence.
The user side of the video live broadcast platform generally has a live broadcast room searching function, and a user can search a live broadcast room related to the content of a search word through the search word so that the user can find the live broadcast room of the heart instrument from a large number of live broadcast rooms.
The search word input by the user at the user terminal can be a text related to information such as a main broadcasting name, a live broadcasting room ID and the like.
The user can input the search terms in the search box of the user side interface, and the user side sends the search terms input by the user to the server side.
After receiving the search term input by the user, the server can match the search term with a live broadcast room database, wherein the live broadcast room database stores associated information of each live broadcast room in which live broadcast activities are carried out, and the associated information can include information related to the live broadcast room, such as a main broadcast name, a live broadcast room ID, a live broadcast room profile and the like. The live broadcast room in which the matching degree of the search terms and the associated information exceeds a preset matching degree threshold value can be determined as the first live broadcast room. And sequencing the first live broadcast rooms according to the matching degree of the associated information and the search terms to obtain a first live broadcast room sequence. It is easy to understand that in the embodiment of the present application, the way in which the server determines the first live broadcast room according to the search term is not limited to the matching degree through the associated information, and the server may determine the corresponding first live broadcast room by using the search term by any method; the method for obtaining the first live broadcast time sequence by sequencing the first live broadcast room through the server is not limited to the matching degree of the associated information and the search terms, and the server may adopt any other method to sequence the first live broadcast room to obtain the first live broadcast time sequence. The method for acquiring the first inter-broadcast sequence is not specifically limited in the embodiment of the application, and a technician can flexibly adjust the determination method of the first inter-broadcast sequence as required.
And a substep 2012, receiving the first inter-session sequence issued by the server.
After determining the first inter-session sequence, the server may send the first inter-session sequence to the ue.
Step 202, obtaining a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server.
In order to determine the abnormal live broadcast rooms from the first live broadcast room sequence, live broadcast pictures which are live broadcast in each first live broadcast room in the first live broadcast room sequence need to be acquired.
Specifically, after the first live broadcast time sequence is obtained, the live broadcast address corresponding to each first live broadcast time can be obtained from the first live broadcast time sequence, or the live broadcast address corresponding to the first live broadcast time can be determined through the live broadcast time identifier of the first live broadcast time. Through the live broadcast addresses of the first live broadcast rooms, the user side can pull the live broadcast pictures of the first live broadcast rooms from the server side, analyze the live broadcast pictures, determine whether the live broadcast pictures can be normally watched or not, and determine the first live broadcast room in which the live broadcast pictures cannot be normally watched as an abnormal live broadcast room. It can be understood that due to different live broadcast platform architectures, there may be differences in the methods for obtaining the live broadcast picture corresponding to the first live broadcast room, and a technician may select an appropriate manner to obtain the live broadcast picture being live broadcast in the first live broadcast room.
Substep 2021, determining a preset frame interval number according to the current network connection state, where the preset frame interval number is used to represent the number of frames spaced by a live broadcast picture obtained in a live broadcast video stream in the network connection state.
Since there may be a large number of first live broadcast rooms in the first live broadcast room sequence, if the complete video stream of each first live broadcast room is acquired as a live broadcast picture, a large amount of data bandwidth is consumed. For example, if there are 100 first live broadcast rooms in the first live broadcast room sequence, the live broadcast video bitrate of each first live broadcast room is 40Mbps (i.e., 40 mbits/s), and if it is necessary to simultaneously acquire the complete video streams of all the first live broadcast rooms in the first live broadcast room sequence, a bandwidth of 4Gbps (i.e., 4 gbs/s) is required, a huge amount of bandwidth is required, and a large amount of data traffic is consumed.
To reduce the network bandwidth consumption and traffic consumption for acquiring live pictures. Partial video frames in the live video stream of each first live broadcast room can be acquired at preset frame intervals. For example, if the video frames in the live video stream are acquired with 2 frames as the preset number of frame intervals, the bandwidth consumption of 2/3 can be reduced, and if the video frames in the live video stream are acquired with 5 frames as the preset number of frame intervals, the bandwidth consumption of 5/6 can be reduced.
Further, for the user terminal, different Network connection states have different sensitivity degrees to bandwidth consumption and traffic consumption, for example, when the user terminal accesses the internet in a Wireless Local Area Network (WLAN) manner (e.g., accesses the internet through WiFi, Network cable, etc.), the sensitivity degrees to bandwidth consumption and traffic consumption are lower, and at this time, a smaller preset frame interval number may be selected to obtain a video picture; when the user side accesses the internet through the mobile communication networks such as 3G and 4G, the sensitivity degree to bandwidth consumption and traffic consumption is high, and at this time, a larger preset frame interval number can be selected to obtain the video picture, so as to further reduce the consumption of bandwidth and traffic.
And a substep 2022 of obtaining, from the server, at least two video frames in the live video stream of the first live broadcast room in the first live broadcast room sequence as a live broadcast picture corresponding to the first live broadcast room according to the preset number of frame intervals.
Whether the live video of the first live broadcast room is abnormal or not can be determined, at least two video frames in the current live video stream of the first live broadcast room can be obtained as live broadcast pictures at preset frame intervals, and due to the fact that time intervals exist between the obtained at least two video frames, the at least two video frames can not only reflect the static picture content of the live broadcast video, but also reflect the dynamic change condition of the live broadcast video stream, and further richer reference information can be provided for follow-up abnormal detection of the first live broadcast room, and the accuracy of judging whether the first live broadcast room is abnormal or not is improved.
And step 203, determining the first live broadcast room with no content in the live broadcast picture and/or static live broadcast picture as an abnormal live broadcast room.
Optionally, step 203 may further include:
substep 2031, obtaining a first average gray value of at least two video frames in the live broadcast picture.
The average gray value is an average value of gray values of respective pixels in the picture. For example, if a picture has 100 ten thousand pixels, and the gray scale value of half of the pixels in the picture is 30 and the gray scale value of the other half of the pixels in the picture is 60, the average gray scale value of the picture is 45.
Specifically, the first average gray values of at least two video frames may be determined from the acquired live broadcast picture, and whether the live broadcast picture has no content may be further determined according to the first average gray values of the at least two video frames. It should be noted that the at least two video frames may be consecutive video frames in a live broadcast picture, or may be discontinuous video frames.
Further, considering that there may be a large number of pixels in a video frame, for example, the resolution of each video frame of a full high definition (1080P) video is 1920 × 1080, that is, the video frame has more than two hundred thousand pixels, if the gray value of each pixel is determined, and then the average gray value of the video frame is calculated according to the gray value of each pixel, a large amount of computation is consumed. In order to reduce the computation load for determining the average gray value, the pixels of the video frame may be sampled, the pixels with a preset sampling rate (e.g., 10%) in the video frame are sampled, and then the average gray value of the sampled pixels is used as the average gray value of the video frame, so that the computation load for calculating the average gray value of the video frame may be greatly reduced, and the computation efficiency may be improved.
And carrying out gray level processing on each of at least two video frames to obtain a pixel gray level frame corresponding to a video frame pixel, wherein the video frame pixel refers to a pixel in the video frame.
The pixel gray value corresponding to a video frame pixel may be determined using the following formula:
Figure BDA0003397682400000141
wherein Gray represents the pixel Gray value of a pixel in the video frame, R represents the red channel brightness value of the pixel in the video frame, G represents the green channel brightness value of the pixel in the video frame, and B represents the blue channel brightness value of the pixel in the video frame. It should be noted that the above formula is only an exemplary way for calculating the pixel gray scale value, the pixel gray scale value may also be determined in other ways, and a skilled person may flexibly select the calculation method of the pixel gray scale value according to the actual situation, which is not specifically limited in the embodiment of the present application.
And accumulating and averaging the gray values of all pixels of each of the at least two video frames to obtain a first average gray value corresponding to each of the at least two video frames.
And a substep 2032 of determining that the live broadcast room corresponding to the live broadcast picture is the first live broadcast room with no content in the live broadcast picture under the condition that the first average gray values of the at least two video frames are both less than or equal to a first preset gray value.
Because the first average gray value can reflect the brightness of the video frame, if the video frame is too dark, the content of the live video cannot be seen clearly by the audience, or the live video has no content failure, which indicates that the video frame has no effective display content. Therefore, a first preset gray value may be preset, and the first average gray value corresponding to each of the at least two video frames is compared with the first preset gray value to determine whether the video frame has no content.
Specifically, after the first average gray value of each of the at least two video frames is determined, each first average gray value is compared with a first preset gray value, and if each first average gray value is smaller than the first preset gray value, it can be considered that the live broadcast picture where the at least two video frames are located has no content.
Substep 2033, determining the first live broadcast room with no content in the live broadcast picture as the abnormal live broadcast room.
Substep 2034 of determining a frame difference image between two adjacent video frames in the live broadcast picture, the frame difference image being determined according to a difference between the adjacent video frames.
Under normal conditions, the live video frame changes all the time, and even if the anchor keeps still in the frame, the live video frame changes slightly, such as pixel jitter caused by frame noise, the change of the anchor eye catch, and the like. It can be seen that, for the first live broadcast room without picture still problem, two adjacent video frames in the live broadcast picture are not identical. Therefore, whether the still picture fault occurs in the first live broadcast room can be judged by acquiring the frame difference image between two adjacent video frames in the live broadcast picture.
Specifically, two adjacent video frames may be determined in the live broadcast picture corresponding to each first live broadcast room, and a pixel difference value between each corresponding pixel between the two adjacent video frames may be calculated.
In one embodiment, the pixel difference value may be directly determined by the difference values of all color channels including two pixels, and the pixel difference value including the difference value of each color channel in the two color pixels is obtained by subtracting the corresponding luminance values of the same color channel in the two color pixels. For example, if the RGB value of pixel a is (100,100,100) and the RGB value of pixel B is (90,110,90), the RGB value of the pixel difference value between pixel a and pixel B is (10,10, 10). It should be understood that each of the pixel differences takes a positive value.
In another embodiment, the pixel difference is the difference between the gray values of two pixels. Specifically, the gray values of the pixels of two adjacent video frames need to be determined first. And calculating the difference value of the pixel gray values of the corresponding pixels in the two adjacent video frames to obtain the pixel difference value.
After the pixel difference value of each pixel corresponding to the adjacent video frame is determined, arranging each difference value according to the arrangement position of the corresponding pixel in the adjacent video frame to form a frame difference value image, wherein the RGB value or the gray value of each pixel of the frame difference value image is the corresponding pixel difference value.
Note that, in order to further improve the accuracy of determining the still picture failure. For each first live broadcast room, a plurality of pairs of adjacent image frames can be obtained, a plurality of frame difference images are determined by the adjacent image frames, and whether the corresponding first live broadcast room has a picture static fault or not is judged according to the frame difference images.
And a substep 2035 of obtaining a second average gray value of the frame difference image.
Specifically, the second average gray value of the frame difference image may be determined by a method similar to the method for determining the first average gray value in sub-step 2031, which is not described in detail in this embodiment of the application.
And a substep 2036 of determining that the live broadcast room corresponding to the live broadcast picture is the first live broadcast room with a static live broadcast picture under the condition that the second average gray value is less than or equal to a second preset gray value.
Generally speaking, the gray value of a pixel is 0 to 255, in this embodiment of the application, because the gray value of each pixel in the frame difference image is determined by the pixel difference value of the adjacent video frame, the smaller the gray value of a pixel in the frame difference image is, the smaller the difference between two pixels of the adjacent video frame corresponding to the pixel is, and therefore, the larger the second average gray value determined by the gray value of each pixel in the frame difference image is, the larger the difference between the adjacent video frames used for generating the frame difference image is, the larger the second average gray value of a frame difference image is, the larger the difference between the adjacent video frames used for generating the frame difference image is; the smaller the second average gray-scale value of one frame difference image, the smaller the difference between the adjacent video frames used for generating the frame difference image.
In this embodiment of the application, a second preset gray value may be set, and when a second average gray value of a frame difference image corresponding to a first live broadcast room is less than or equal to the second preset gray value, it is described that a video frame change range of the first live broadcast room is too small, and the first live broadcast room may be considered as a first live broadcast room with a static live broadcast frame.
Furthermore, because a first live broadcast room may correspond to a plurality of frame difference images, it may be determined whether a second average gray value smaller than or equal to the second preset gray value exists in second average gray values corresponding to the plurality of frame difference images, and if a second average gray value smaller than or equal to the second preset gray value exists in a plurality of second average gray values possibly corresponding to a first live broadcast room, the first live broadcast room is considered as a first live broadcast room with a static live broadcast picture. In addition, whether the first live broadcast room is a first live broadcast room with a static live broadcast picture can be judged according to the proportion or the number of second average gray values corresponding to the first live broadcast room, wherein the second average gray values are smaller than or equal to a second preset gray value.
Substep 2037, determining the first live broadcast room with the still live broadcast picture as the abnormal live broadcast room.
And 204, under the condition that the live broadcast picture of the first live broadcast room sent by the server is not received, determining that the live broadcast picture of the first live broadcast room is lost, and determining the first live broadcast room with the lost live broadcast picture as an abnormal live broadcast room.
In some cases, the anchor in the first live broadcast room may no longer send a live broadcast picture to the server, so that there is no live broadcast video stream in the first live broadcast room, for example, the anchor is dropped, the anchor stops playing, and the like.
If the user side cannot acquire the live broadcast picture of the first live broadcast room from the server side, the user cannot see the live broadcast picture after selecting and entering the first live broadcast room, and the live broadcast experience of the user can be influenced.
And step 205, removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence.
Because there may be a large number of first live rooms in the first live room sequence, the first live room sequence is usually subjected to paging display when being displayed to the user, and meanwhile, considering that the user end equipment is generally a personal terminal and the computing capability of the user end equipment is generally weak, in order to not occupy excessive computing resources of the user end, the first live room in the live room display page where the user stays can be determined as a first live room subsequence, or the live room display page where the user stays and the first live room with preset pages before and/or after the live room display page can be determined as a first live room subsequence. And removing the abnormal live broadcast room from the first live broadcast room subsequence according to the method of the embodiment of the application to obtain a second live broadcast room subsequence.
Therefore, the client can only perform abnormity detection on the first live broadcast rooms which are browsed and are about to be browsed by the user, and does not need to perform abnormity detection on all the first live broadcast rooms in the first live broadcast room sequence, so that the probability that the user enters the abnormal live broadcast rooms is reduced, and meanwhile, the resource consumption of the client for realizing the functions of the embodiment of the application is greatly reduced.
And step 206, displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
This step can refer to step 104, and is not described in detail in this embodiment of the present application.
And step 207, adjusting the position of the abnormal live broadcast room in the first live broadcast room sequence to the tail end position of the first live broadcast room sequence to obtain an updated third live broadcast room sequence.
The live broadcast room not only contains live broadcast video, but also can contain data related to the live broadcast room, such as information of a live broadcast room brief introduction, a main broadcast brief introduction, playing time and the like, and can also contain recorded broadcast video of forward live broadcast. When the user wants to acquire the non-live video information, the user may not be aware of whether the abnormality occurs in the live room.
In order to prevent a user from being unable to find required live broadcast room information in a live broadcast room display result, after an abnormal live broadcast room is determined from a first live broadcast room sequence, only the sequencing position of the abnormal live broadcast room in the first live broadcast room sequence can be changed, and the abnormal live broadcast room is not removed.
Furthermore, after the position of the abnormal live broadcast room is adjusted, an abnormal identifier can be added to a display icon of the abnormal live broadcast room at the user side to remind the user that the abnormal live broadcast room is abnormal.
And 208, displaying the third live broadcast rooms according to the display sequence of the third live broadcast rooms in the third live broadcast room sequence.
In summary, another live broadcast room display method provided by the embodiment of the present application includes: acquiring a first live broadcasting time sequence, wherein the first live broadcasting time sequence comprises a display sequence of a first live broadcasting room; determining an abnormal live broadcast room in the sequence of the first live broadcast room according to a live broadcast picture of the first live broadcast room, wherein the abnormal live broadcast room represents the abnormal first live broadcast room; removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence; and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence. Can follow the unusual live broadcast room that influences user and watch experience from first live broadcast room sequence to remove unusual live broadcast room from first live broadcast room sequence, obtain and demonstrate the second live broadcast room sequence, reduced the probability that contains unusual live broadcast room in the live broadcast room show result, to a great extent avoided the user to watch the not good condition of experience because of opening unable normal watch live broadcast room and lead to live broadcast and take place.
Corresponding to the method provided by the embodiment of the live broadcast room display method of the present invention, referring to fig. 5, the present invention further provides a live broadcast room display model structure diagram, and in this embodiment, the apparatus may include:
an obtaining module 301, configured to receive a first inter-direct-broadcasting sequence issued by a server;
a determining module 302, configured to obtain a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server, and determine an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture;
a removing module 303, configured to remove the abnormal live broadcast room from the first live broadcast room sequence, to obtain an updated second live broadcast room sequence;
a presentation module 304 configured to present the second live rooms in the second live room sequence according to presentation orders of the second live rooms.
In an alternative embodiment, the determining module includes:
a determination submodule configured to determine a first live broadcast room in which the live broadcast picture is free of content and/or the live broadcast picture is still as an abnormal live broadcast room.
In an optional embodiment, the determining sub-module further comprises:
the first gray level submodule is configured to acquire a first average gray level value of at least two video frames in the live broadcast picture;
the content-free determining submodule is configured to determine that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with no content in the live broadcast picture under the condition that the first average gray value of the at least two video frames is smaller than or equal to a first preset gray value;
a first exception submodule configured to determine a first live broadcast room of the live broadcast picture without content as the exception live broadcast room.
In an optional embodiment, the determining sub-module further comprises:
a difference image sub-module configured to determine a frame difference image between two adjacent video frames in the live view, the frame difference image being determined from a difference between the adjacent video frames;
a second gray level sub-module configured to acquire a second average gray level value of the frame difference image;
the static determining submodule is configured to determine that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with a static live broadcast picture under the condition that the second average gray value is smaller than or equal to a second preset gray value;
a second exception submodule configured to determine a first live broadcast room in which the live broadcast picture is still as the exception live broadcast room.
In an optional embodiment, the determining module further comprises:
and the third exception sub-module is configured to determine that the live broadcast picture of the first live broadcast room is lost and determine the first live broadcast room with the lost live broadcast picture as an exception live broadcast room under the condition that the live broadcast picture of the first live broadcast room issued by the server is not received.
In an alternative embodiment, the obtaining module includes:
the retrieval word submodule is configured to acquire a retrieval word input by a user and send the retrieval word to the server, wherein the retrieval word is used for indicating the server to retrieve a live broadcast room database according to the retrieval word, acquire a live broadcast room set matched with the retrieval word and sort a first live broadcast room in the live broadcast room set to obtain a first live broadcast room sequence;
and the receiving submodule is configured to receive the first direct-broadcasting time sequence transmitted by the server.
In an optional embodiment, the determining module further comprises:
the frame interval sub-module is configured to determine a preset frame interval number according to the current network connection state, wherein the preset frame interval number is used for representing the frame number of the interval of the live broadcast pictures acquired in the live broadcast video stream in the network connection state;
and the video frame acquisition sub-module is configured to acquire at least two video frames in a live video stream of a first live broadcast room in the first live broadcast room sequence from the server according to the preset frame interval number, and the at least two video frames serve as live broadcast pictures corresponding to the first live broadcast room.
In an alternative embodiment, the apparatus further comprises:
the sorting module is configured to adjust the position of the abnormal live broadcast room in the first live broadcast room sequence to the tail end position of the first live broadcast room sequence to obtain an updated third live broadcast room sequence;
and the sequencing display module is configured to display the third live broadcast rooms according to the display sequence of the third live broadcast rooms in the third live broadcast room sequence.
In summary, according to the device for generating the display model of the live broadcast room provided by the embodiment of the application, a first live broadcast room sequence can be obtained, and the first live broadcast room sequence comprises the display sequence of the first live broadcast room; determining an abnormal live broadcast room in the sequence of the first live broadcast room according to a live broadcast picture of the first live broadcast room, wherein the abnormal live broadcast room represents the abnormal first live broadcast room; removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence; and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence. Can follow the unusual live broadcast room that influences user and watch experience from first live broadcast room sequence to remove unusual live broadcast room from first live broadcast room sequence, obtain and demonstrate the second live broadcast room sequence, reduced the probability that contains unusual live broadcast room in the live broadcast room show result, to a great extent avoided the user to watch the not good condition of experience because of opening unable normal watch live broadcast room and lead to live broadcast and take place.
Fig. 6 is a block diagram illustrating an electronic device 600 according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is used to store various types of data to support operations at the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense demarcations of a touch or slide action, but also detect a duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 600 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is used to output and/or input audio signals. For example, the audio component 610 may include a Microphone (MIC) for receiving external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the electronic device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is operable to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components, for implementing a live room presentation method provided by an embodiment of the present application.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 7 is a block diagram illustrating an electronic device 700 in accordance with an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 7, electronic device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing component 722 is configured to execute the instructions to execute a live-air presentation method provided by the embodiment of the present application.
The electronic device 700 may also include a power component 726 that is configured to perform power management of the electronic device 700, a wired or wireless network interface 750 that is configured to connect the electronic device 700 to a network, and an input output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the live broadcast room display method when being executed by the processor.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A live broadcast room display method is characterized by comprising the following steps:
receiving a first inter-direct-broadcasting sequence issued by a server;
acquiring a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server, and determining an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture;
removing the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence;
and displaying the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
2. The method of claim 1, wherein determining the abnormal live room in the first live room sequence from the live view comprises:
and determining a first live broadcast room with no content in the live broadcast picture and/or static live broadcast picture as an abnormal live broadcast room.
3. The method of claim 2, wherein determining the first live room with no content in the live view as an abnormal live room comprises:
acquiring first average gray values of at least two video frames in the live broadcast picture;
under the condition that the first average gray values of the at least two video frames are smaller than or equal to a first preset gray value, determining that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room without content of the live broadcast picture;
and determining the first live broadcast room with no content in the live broadcast picture as the abnormal live broadcast room.
4. The method of claim 2, wherein determining the first live room with the live view still as an abnormal live room comprises:
determining a frame difference image between two adjacent video frames in the live broadcast picture, wherein the frame difference image is determined according to a difference value between the adjacent video frames;
acquiring a second average gray value of the frame difference image;
under the condition that the second average gray value is smaller than or equal to a second preset gray value, determining that the live broadcast room corresponding to the live broadcast picture is a first live broadcast room with a static live broadcast picture;
and determining a first live broadcast room with the static live broadcast picture as the abnormal live broadcast room.
5. The method of claim 1, wherein determining the abnormal live room in the first live room sequence from the live view comprises:
and under the condition that the live broadcast picture of the first live broadcast room sent by the server is not received, determining that the live broadcast picture of the first live broadcast room is lost, and determining the first live broadcast room with the lost live broadcast picture as an abnormal live broadcast room.
6. The method according to claim 1, wherein after determining the abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture of the first live broadcast room acquired from the server, the method further comprises:
adjusting the position of the abnormal live broadcast room in the first live broadcast room sequence to the tail end position of the first live broadcast room sequence to obtain an updated third live broadcast room sequence;
and displaying the third live broadcast rooms according to the display sequence of the third live broadcast rooms in the third live broadcast room sequence.
7. A live room display apparatus, the apparatus comprising:
the acquisition module is configured to receive a first direct-broadcasting sequence transmitted by a server;
the determining module is configured to acquire a live broadcast picture of a first live broadcast room in the first live broadcast room sequence from the server, and determine an abnormal live broadcast room in the first live broadcast room sequence according to the live broadcast picture;
a removing module configured to remove the abnormal live broadcast room from the first live broadcast room sequence to obtain an updated second live broadcast room sequence;
and the display module is configured to display the second live broadcast rooms according to the display sequence of the second live broadcast rooms in the second live broadcast room sequence.
8. An electronic device, comprising: a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 8.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any one of claims 1 to 6 when executed by a processor.
CN202111494772.1A 2021-12-07 2021-12-07 Live broadcast room display method and device and electronic equipment Pending CN114302154A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111494772.1A CN114302154A (en) 2021-12-07 2021-12-07 Live broadcast room display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111494772.1A CN114302154A (en) 2021-12-07 2021-12-07 Live broadcast room display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114302154A true CN114302154A (en) 2022-04-08

Family

ID=80965433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111494772.1A Pending CN114302154A (en) 2021-12-07 2021-12-07 Live broadcast room display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114302154A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873852A (en) * 2012-12-11 2014-06-18 上海文广互动电视有限公司 Multi-mode parallel video quality fault detection method and device
CN107027047A (en) * 2017-05-16 2017-08-08 武汉斗鱼网络科技有限公司 Net cast monitoring method, device and electronic equipment
WO2018120946A1 (en) * 2016-12-30 2018-07-05 广州虎牙信息科技有限公司 Method and apparatus for determining video image abnormality, and terminal device
CN111586432A (en) * 2020-06-05 2020-08-25 广州繁星互娱信息科技有限公司 Method and device for determining air-broadcast live broadcast room, server and storage medium
CN111726644A (en) * 2020-05-07 2020-09-29 火币(广州)区块链科技有限公司 Method and device for floating window of multiple live broadcast rooms
CN113099214A (en) * 2021-03-12 2021-07-09 青岛海信网络科技股份有限公司 Live video playing control method, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873852A (en) * 2012-12-11 2014-06-18 上海文广互动电视有限公司 Multi-mode parallel video quality fault detection method and device
WO2018120946A1 (en) * 2016-12-30 2018-07-05 广州虎牙信息科技有限公司 Method and apparatus for determining video image abnormality, and terminal device
CN107027047A (en) * 2017-05-16 2017-08-08 武汉斗鱼网络科技有限公司 Net cast monitoring method, device and electronic equipment
CN111726644A (en) * 2020-05-07 2020-09-29 火币(广州)区块链科技有限公司 Method and device for floating window of multiple live broadcast rooms
CN111586432A (en) * 2020-06-05 2020-08-25 广州繁星互娱信息科技有限公司 Method and device for determining air-broadcast live broadcast room, server and storage medium
CN113099214A (en) * 2021-03-12 2021-07-09 青岛海信网络科技股份有限公司 Live video playing control method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021129000A1 (en) Live streaming room switching method and apparatus, electronic device and storage medium
CN106454407B (en) Video live broadcasting method and device
US9179191B2 (en) Information processing apparatus, information processing method, and program
CN109961747B (en) Electronic ink screen display method and device and electronic equipment
WO2017067070A1 (en) Information pushing method, apparatus, device and system
CN111182318B (en) Contribution score generation method and device in live broadcast, electronic equipment and storage medium
US20150341698A1 (en) Method and device for providing selection of video
CN111405302B (en) Live broadcast room attention reminding method and device, electronic equipment and storage medium
CN112272302A (en) Multimedia resource display method, device, system and storage medium
WO2021143479A1 (en) Media stream transmission method and system
CN112153396B (en) Page display method, device, system and storage medium
US11847818B2 (en) Method for extracting video clip, device for extracting video clip, and storage medium
CN111259246A (en) Information pushing method and device, electronic equipment and storage medium
CN106331328B (en) Information prompting method and device
CN110719530A (en) Video playing method and device, electronic equipment and storage medium
CN114257861B (en) Video processing method, device, storage medium and equipment
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN107105311B (en) Live broadcasting method and device
WO2021143732A1 (en) Video playing method and apparatus
CN113365099A (en) Bullet screen issuing method, bullet screen receiving method, bullet screen issuing device, electronic equipment and storage medium
CN112685599A (en) Video recommendation method and device
CN110121056B (en) Cross-regional video networking monitoring video acquisition method and device
CN112616053A (en) Transcoding method and device of live video and electronic equipment
CN112261453A (en) Method, device and storage medium for transmitting subtitle splicing map
CN114302154A (en) Live broadcast room display method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220408