Live broadcast method and device, computer readable storage medium and computer equipment

文档序号:1326790 发布日期:2020-07-14 浏览:9次 中文

阅读说明:本技术 直播播放方法、装置、计算机可读存储介质和计算机设备 (Live broadcast method and device, computer readable storage medium and computer equipment ) 是由 余蒙 黄策 吴昊 许杰 于 2018-05-03 设计创作,主要内容包括:本发明提供一种直播播放方法、装置、计算机可读存储介质和计算机设备,以解决现有技术直播没有回放功能的技术问题。所述的方法包括在主播开启直播功能后,在直播间中显示主播直播画面,并在该直播间放置相应进度条,显示当前直播的进度;在该直播间一区域显示观众端画面;当预先设置的直播回放触发条件被触发时,在直播间一设定位置弹出精彩回放窗口,在该窗口回放相应的视频画面;其中,所述直播回放触发条件由主播端进行设置,所述视频画面为与所述直播回放触发条件对应的预先存储在本地的目标直播数据中的视频数据。本发明实施例实现了直播的回放功能。(The invention provides a live broadcast method and device, a computer readable storage medium and computer equipment, which aim to solve the technical problem that the live broadcast in the prior art has no playback function. The method comprises the steps that after a live broadcast function is started by a main broadcast, a live broadcast picture of the main broadcast is displayed in a live broadcast room, a corresponding progress bar is placed in the live broadcast room, and the progress of the current live broadcast is displayed; displaying a viewer side picture in an area of the live broadcast room; when a preset live broadcast playback triggering condition is triggered, popping up a wonderful playback window at a set position of a live broadcast room, and playing back a corresponding video picture at the window; the live broadcast playback triggering condition is set by a main broadcast end, and the video picture is video data which is corresponding to the live broadcast playback triggering condition and is pre-stored in local target live broadcast data. The embodiment of the invention realizes the playback function of live broadcast.)

1. A live broadcast method is characterized by comprising the following steps:

after the anchor starts the live broadcast function, displaying the live broadcast picture of the anchor in a live broadcast room, placing a corresponding progress bar in the live broadcast room, and displaying the current live broadcast progress;

displaying a viewer side picture in an area of the live broadcast room;

when a preset live broadcast playback triggering condition is triggered, popping up a wonderful playback window at a set position of a live broadcast room, and playing back a corresponding video picture at the window;

the live broadcast playback triggering condition is set by a main broadcast end, and the video picture is video data which is corresponding to the live broadcast playback triggering condition and is pre-stored in local target live broadcast data.

2. The live broadcast method of claim 1, further comprising, after the anchor starts the live broadcast function:

caching live broadcast data in a first preset time period before the current time point in a main broadcast end, wherein the first preset time period is an adjustable time period;

judging whether a preset live playback triggering condition is triggered or not;

if yes, searching target live broadcast data corresponding to the live broadcast playback triggering condition from the live broadcast data; wherein the live data comprises audio data and video data.

3. The live playback method of claim 2, further comprising: and prohibiting the operation of playing the audio data in the target live broadcast data in the live broadcast.

4. The live broadcast method according to claim 3, wherein the operation of playing the audio data in the target live broadcast data in a live broadcast is prohibited, and thereafter, the method further comprises:

receiving a playback audio playing request input by a viewer, and playing audio data in the target live broadcast data in live broadcast;

receiving a live broadcast audio closing request input by a viewer, and stopping playing the live broadcast audio.

5. The live broadcast method according to claim 1, wherein the determining whether a preset live playback trigger condition is triggered comprises:

judging whether behavior data input by audiences is matched with the behavior data set in the live broadcast playback triggering condition or not; if so, judging that the live playback trigger condition is triggered, otherwise, judging that the live playback trigger condition is not triggered;

or

Judging whether behavior data input by a main broadcast is matched with behavior data set in the live broadcast playback triggering condition or not; and if so, judging that the live playback triggering condition is triggered, otherwise, judging that the live playback triggering condition is not triggered.

6. The live broadcast method according to claim 5, wherein if the live playback trigger condition is triggered by behavior data input by a host, the searching for target live broadcast data corresponding to the live playback trigger condition from the live broadcast data includes:

determining a time point at which the live playback trigger condition is triggered as a playback deadline time point;

and determining live data in a second preset time period before the playback deadline point as target live data.

7. The live broadcast method according to claim 5, wherein the behavior data set in the live playback trigger condition includes a gift type, a gift number, and a preset time interval; the behavior data input by the audience comprises a gift class and a gift sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining a gift transmission time for a viewer to transmit a first set gift class as a starting time point;

starting from the starting time point, judging whether the number of the gift types sent by the audience in the preset time interval reaches the set gift number or not;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

if not, re-determining the starting time point, returning to the step of starting from the starting time point, and judging whether the number of the gift types sent and set by the audience reaches the set gift number in the preset time interval;

or

The behavior data set in the live playback trigger condition comprises a gift value and a preset time interval; the behavior data input by the audience comprises gifts and gift sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining a gift transmission time at which the viewer transmits the first gift as a start time point;

judging whether the value of the gift sent by the audience reaches the set gift value or not within the preset time interval from the starting time point;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

if not, re-determining the starting time point, returning to the step of starting from the starting time point and judging whether the value of the gift sent by the audience reaches the set gift value within the preset time interval;

or

The behavior data set in the live broadcast playback triggering condition comprises bullet screen content, bullet screen quantity and a preset time interval; the behavior data input by the audience comprises barrage content and barrage sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining the bullet screen sending time of the first set bullet screen content sent by the audience as an initial time point;

starting from the starting time point, judging whether the number of the bullet screen contents sent by the audience reaches the set bullet screen number or not within the preset time interval;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

and if not, re-determining the starting time point, returning to the step of starting from the starting time point, and judging whether the quantity of the bullet screen contents sent and set by the audience reaches the set bullet screen quantity within the preset time interval.

8. The live broadcast method of claim 7, wherein if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

determining the starting time point or other time points in the preset time interval as a playback ending time point;

and determining live data in a third preset time period before the playback deadline point as target live data.

9. The live broadcast method of claim 7, wherein if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

judging whether behavior data input by audiences are received in a fourth preset time period after the time point when the live playback trigger condition is triggered;

if so, judging whether the frequency of behavior data input by the audience in the fourth preset time is higher than the frequency of behavior data input by the audience in the preset time interval;

if so, selecting a time point from the fourth preset time period as a playback stop time point;

and determining live data in a fifth preset time period before the playback deadline point as target live data.

10. The live broadcast method according to claim 2, wherein the searching for target live broadcast data corresponding to the live playback trigger condition from the live broadcast data further comprises:

recording the target live broadcast data;

and uploading the recorded target live broadcast data to a live broadcast video material library at a set uploading rate.

11. The live broadcast method according to claim 10, wherein the live broadcast data cached locally is encoded live broadcast data;

the upload rate is determined by:

calculating the difference value between the uplink bandwidth of the anchor and the bandwidth required by coding, which is measured in advance, to obtain the residual available bandwidth;

multiplying the residual available bandwidth by a preset ratio to obtain a bandwidth used for uploading data;

and determining the uploading rate according to the bandwidth used by the uploading data.

12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a live playback method as claimed in any one of claims 1 to 11.

13. A computer device, characterized in that the computer device comprises:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a live playback method as recited in any of claims 1-11.

Technical Field

The invention relates to the technical field of network live broadcast, in particular to a live broadcast method, a live broadcast device, a computer readable storage medium and computer equipment.

Background

Live broadcast is a novel social networking mode, and through live broadcast, the anchor can share splendid moment in real time to audiences, and audiences can also realize the interdynamic with the anchor through modes such as barrage and gift, strengthens live broadcast's interest. However, the current live broadcast has no playback function, so that audiences who miss wonderful moments or want to watch wonderful moments again cannot watch the live broadcast again, and the interest of the live broadcast is influenced.

Disclosure of Invention

Aiming at the defect that the prior art has no playback function in live broadcasting, the invention provides a live broadcasting method, a live broadcasting device, a computer readable storage medium and computer equipment so as to realize the playback function of live broadcasting.

According to a first aspect, an embodiment of the present invention provides a live broadcast method, including:

after the anchor starts live broadcasting, caching live broadcasting data in a first preset time period before the current time point in the local, wherein the live broadcasting data comprises audio data and video data;

judging whether a preset live playback triggering condition is triggered or not;

if yes, searching target live broadcast data corresponding to the live broadcast playback triggering condition from the live broadcast data;

and displaying the video data in the target live broadcast data in live broadcast, and prohibiting executing the operation of playing the audio data in the target live broadcast data in live broadcast.

In one embodiment, the prohibiting from performing the operation of playing the audio data in the target live data in the live broadcast further includes:

receiving a playback audio playing request input by a viewer, and playing audio data in the target live broadcast data in live broadcast;

receiving a live broadcast audio closing request input by a viewer, and stopping playing the live broadcast audio.

In one embodiment, the determining whether a preset live playback trigger condition is triggered includes:

judging whether behavior data input by a main broadcast is matched with behavior data set in the live broadcast playback triggering condition or not;

and if so, judging that the live playback triggering condition is triggered, otherwise, judging that the live playback triggering condition is not triggered.

In one embodiment, if the live playback trigger condition is triggered by behavior data input by a main broadcast, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

determining a time point at which the live playback trigger condition is triggered as a playback deadline time point;

and determining live data in a second preset time period before the playback deadline point as target live data.

In one embodiment, the determining whether a preset live playback trigger condition is triggered includes:

judging whether behavior data input by audiences is matched with the behavior data set in the live broadcast playback triggering condition or not;

and if so, judging that the live playback triggering condition is triggered, otherwise, judging that the live playback triggering condition is not triggered.

In one embodiment, the behavior data set in the live playback trigger condition includes a gift type, a gift number, and a preset time interval; the behavior data input by the audience comprises a gift class and a gift sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining a gift transmission time for a viewer to transmit a first set gift class as a starting time point;

starting from the starting time point, judging whether the number of the gift types sent by the audience in the preset time interval reaches the set gift number or not;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

and if not, re-determining the starting time point, returning to the step of starting from the starting time point and judging whether the number of the gift types sent and set by the audience reaches the set gift number in the preset time interval.

In one embodiment, the behavior data set in the live playback trigger condition includes a gift value and a preset time interval; the behavior data input by the audience comprises gifts and gift sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining a gift transmission time at which the viewer transmits the first gift as a start time point;

judging whether the value of the gift sent by the audience reaches the set gift value or not within the preset time interval from the starting time point;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

if not, re-determining the starting time point, returning to the step of starting from the starting time point and judging whether the value of the gift sent by the audience reaches the set gift value within the preset time interval.

In one embodiment, the behavior data set in the live playback trigger condition includes the content of the barrage, the number of the barrages, and a preset time interval; the behavior data input by the audience comprises barrage content and barrage sending time;

judging whether behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition or not, wherein the judging step comprises the following steps:

determining the bullet screen sending time of the first set bullet screen content sent by the audience as an initial time point;

starting from the starting time point, judging whether the number of the bullet screen contents sent by the audience reaches the set bullet screen number or not within the preset time interval;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

and if not, re-determining the starting time point, returning to the step of starting from the starting time point, and judging whether the quantity of the bullet screen contents sent and set by the audience reaches the set bullet screen quantity within the preset time interval.

In an embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

determining the starting time point or other time points in the preset time interval as a playback ending time point;

and determining live data in a third preset time period before the playback deadline point as target live data.

In an embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

judging whether behavior data input by audiences are received in a fourth preset time period after the time point when the live playback trigger condition is triggered;

if so, judging whether the frequency of behavior data input by the audience in the fourth preset time is higher than the frequency of behavior data input by the audience in the preset time interval;

if so, selecting a time point from the fourth preset time period as a playback stop time point;

and determining live data in a fifth preset time period before the playback deadline point as target live data.

In one embodiment, after searching for target live data corresponding to the live playback trigger condition from the live data, the method further includes:

recording the target live broadcast data;

and uploading the recorded target live broadcast data to a live broadcast video material library at a set uploading rate.

In one embodiment, the live data cached locally is encoded live data;

the upload rate is determined by:

calculating the difference value between the uplink bandwidth of the anchor and the bandwidth required by coding, which is measured in advance, to obtain the residual available bandwidth;

multiplying the residual available bandwidth by a preset ratio to obtain a bandwidth used for uploading data;

and determining the uploading rate according to the bandwidth used by the uploading data.

According to a second aspect, an embodiment of the present invention further provides a live broadcast device, including:

the live broadcast data caching module is used for caching live broadcast data in a first preset time period before the current time point after the live broadcast is started by a main broadcast, wherein the live broadcast data comprises audio data and video data;

the judging module is used for judging whether a preset live playback triggering condition is triggered or not;

the target live broadcast data searching module is used for searching target live broadcast data corresponding to the live broadcast playback triggering condition from the live broadcast data when the live broadcast playback triggering condition is triggered;

and the playback module is used for displaying the video data in the target live broadcast data in live broadcast and forbidding the operation of playing the audio data in the target live broadcast data in live broadcast.

Embodiments of the present invention also provide, according to a third aspect, a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a live broadcast method as described in any one of the above.

Embodiments of the present invention also provide, according to a fourth aspect, a computer apparatus, including:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement the live playback method of any of the above.

According to the live broadcast method, the live broadcast device, the computer-readable storage medium and the computer equipment, since the live broadcast data are cached in the anchor live broadcast process in real time, when the live broadcast playback triggering condition is triggered, the target live broadcast data can be searched from the cached live broadcast data, and then the video data in the target live broadcast data are displayed in the live broadcast, so that the live broadcast playback function is realized, and the live broadcast interest is improved. In addition, only the video data is displayed and the audio data is not played in the video playback process, so that the influence on the current live voice of the anchor is avoided, and the watching experience of audiences is guaranteed.

Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

Drawings

The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:

fig. 1 is a schematic flow chart of a live broadcast method according to an embodiment of the present invention;

FIG. 2 is a diagram of a live view interface without live playback according to an embodiment of the present invention;

FIG. 3 is a diagram illustrating a live view interface during live playback according to an embodiment of the present invention;

fig. 4 is a flowchart illustrating a method for determining whether a live playback trigger condition is triggered according to an embodiment of the present invention;

fig. 5 is a flowchart illustrating a method for determining whether a live playback trigger condition is triggered according to another embodiment of the present invention;

fig. 6 is a flowchart illustrating a target live data search method according to an embodiment of the present invention;

fig. 7 is a flowchart illustrating a target live data search method according to another embodiment of the present invention;

fig. 8 is a flowchart illustrating a target live data search method according to another embodiment of the present invention;

fig. 9 is a flowchart illustrating a live broadcast method according to another embodiment of the present invention;

FIG. 10 is a diagram of a live client functionality button interface, in accordance with one embodiment of the present invention;

FIG. 11 is a diagram of a live client highlight playback setup interface, in accordance with one embodiment of the present invention;

FIG. 12 is a diagram of a live engine function button interface, according to one embodiment of the present invention;

FIG. 13 is a schematic diagram of a live engine highlight playback setup interface, in accordance with an embodiment of the present invention;

fig. 14 is a schematic structural diagram of a live playback device according to an embodiment of the present invention;

fig. 15 is a schematic structural diagram of a computer device according to an embodiment of the present invention.

Detailed Description

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "first", "second" and "third" are used herein only for distinguishing one technical feature from another, and the order, number, etc. of the technical features are not limited. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

It is necessary to first carry out the following preliminary explanation of the background of the invention.

In the live broadcast process, the anchor can share the wonderful moment in real time to the audience, but cannot realize the playback of the wonderful moment. In order to realize the instant replay of the wonderful event, a scheme of caching live broadcast data in a preset time period in the live broadcast process is adopted, so that when the live broadcast replay triggering condition is triggered, the live broadcast data can be intercepted from the cached live broadcast data to realize the instant replay of the wonderful event, and the live broadcast interest is improved.

However, the inventor of the present invention found through research that audio data existing in the played back live broadcast data may affect the current live broadcast audio, so that viewers cannot watch live broadcast well, and the live broadcast and playback viewing experience is affected.

The following detailed description of embodiments of the invention refers to the accompanying drawings.

As shown in fig. 1, in an embodiment, a live broadcast method includes the steps of:

s110, after the anchor starts live broadcasting, caching live broadcasting data in a first preset time period before the current time point in the local, wherein the live broadcasting data comprises audio data and video data.

The anchor is responsible for participating in a series of works such as planning, editing, recording, producing, audience interaction and the like in internet programs or activities, and is taken as a person who carries out host work or profession by oneself. The anchor has own live broadcast room in the live broadcast platform website, and audiences can input the name or channel number of the anchor, room number and other modes in the live broadcast platform website where the anchor is located, search and enter the live broadcast room of the anchor and watch the live broadcast content of the anchor. The first preset time period can be set according to actual needs, and in order to realize live playback without affecting live performance, optionally, the first preset time period can be set to be 1 minute or a value smaller than 1 minute. Live data includes video pictures and audio content, i.e., video data and audio data.

In order to realize live broadcast playback, after the anchor starts live broadcast, the latest live broadcast data is cached locally, namely the anchor end in real time, and the cached live broadcast data comprises video pictures and audio contents.

And S120, judging whether a preset live playback triggering condition is triggered or not.

Considering that live playback is triggered according to user requirements, live playback trigger conditions need to be set in advance. A plurality of live playback trigger conditions may be set simultaneously as long as one of the live playback trigger conditions is triggered. Only one live playback trigger condition may be set as long as the live playback trigger condition is triggered.

When behavior data input by a user is acquired, whether the behavior data is behavior data specified in a live playback triggering condition is judged. And if the behavior data is the behavior data specified in the live playback triggering condition, judging that the live playback triggering condition is triggered, otherwise, judging that the live playback triggering condition is not triggered.

And S130, if yes, searching target live broadcast data corresponding to the live broadcast playback triggering condition from the live broadcast data.

And if the live broadcast playback triggering condition is triggered, searching target live broadcast data from the locally cached live broadcast data. Different target live broadcast data searching modes can be set for different live broadcast playback triggering conditions, and when a certain live broadcast playback triggering condition is triggered, corresponding target live broadcast data are searched from locally cached live broadcast data according to the searching mode corresponding to the live broadcast playback triggering condition. The same target live broadcast data searching mode can be set for different live broadcast playback conditions, and corresponding target live broadcast data can be searched from locally cached live broadcast data according to the searching mode no matter which live broadcast playback triggering condition is triggered.

S140, displaying the video data in the target live broadcast data in live broadcast, and prohibiting the audio data in the target live broadcast data from being played in live broadcast.

When the highlight playback is triggered, the highlight playback is visible to the viewer of the live room. In order to guarantee live broadcast viewing experience, the current live broadcast data and the played back video data are sent to the audience, so that only the video data are displayed and the audio data, namely the played back sound, are not displayed during live broadcast, and only the picture is displayed.

The position of the video data displayed in the live broadcast can be determined according to actual needs, for example, a fixed position can be defined for the video data playback display, optionally, the played back video data can be fixedly displayed at the upper right corner of the screen so as not to affect the main picture of the current live broadcast, and the position of the video data playback display can be dynamically adjusted according to the picture of the current live broadcast so as not to shield the main picture of the current live broadcast. In addition, a leader can be made for the video data in the target live broadcast data, so that when the playback is performed, not only the video data in the live broadcast data is played back, but also the leader made for the video data is displayed.

This is explained with reference to a specific example. As shown in fig. 2, after the anchor starts the live function, the anchor live frame is displayed in the live broadcast room, a corresponding progress bar is placed at the upper right corner of the live broadcast room, the current live broadcast progress is displayed, and meanwhile, the audience frame is displayed in a small area below the live broadcast room. When a preset live playback triggering condition is triggered, as shown in fig. 3, a highlight playback window is popped up at a fixed position at the upper right corner of a live broadcast room, and the window plays back a corresponding video picture, so that a playback function is realized in live broadcast without affecting the viewing experience of live broadcast.

The live playback trigger condition is set by the anchor terminal. The set live playback triggering conditions are different, and the method for judging whether the live playback triggering conditions are triggered is different. A method for determining whether a preset live playback trigger condition is triggered is described below with reference to several embodiments.

Firstly, triggering anchor behavior data: live playback function triggered by anchor behavior

As shown in fig. 4, in an embodiment, the determining whether a preset live playback trigger condition is triggered includes:

and S121, judging whether behavior data input by the anchor is matched with the behavior data set in the live playback triggering condition.

In one embodiment, the behavior data set in the live playback triggering condition includes any one or any combination of shortcut keys, voice, gestures and facial expressions, the shortcut keys are also called shortcut keys or hot keys, and the shortcut keys are defined by the anchor and can be used for finishing an operation through certain specific keys, key sequences or key combinations, the number of the shortcut keys can be determined according to actual needs, for example, at most three simultaneous keys are supported, at least one of the shortcut keys is generally set as A L T + F3 by default, the shortcut keys are in a manual operation mode, the voice is the language input by the anchor, specific contents are set by the anchor, the gesture is set for triggering the playback by the anchor, for example, the gesture is OK, and the like.

And after the behavior data in the live playback trigger condition is set at the anchor terminal, comparing the behavior data input by the anchor with the set behavior data, if the behavior data are consistent with the set behavior data, matching the behavior data, and if the behavior data are not consistent with the set behavior data, not matching the behavior data, for example, the set behavior data is a shortcut key A L T + F3, if the anchor is detected to press the shortcut key A L T + F3, matching the behavior data, and if the anchor is detected to press the shortcut key A L T + F1, mismatching the behavior data.

And S122, if the live playback trigger conditions are matched, judging that the live playback trigger conditions are triggered, otherwise, judging that the live playback trigger conditions are not triggered.

And if the behavior data input by the anchor is matched with the preset behavior data, triggering the live broadcast playback triggering condition, and intercepting target live broadcast data from the locally cached live broadcast data, otherwise, not triggering the live broadcast playback triggering condition, and not intercepting the target live broadcast data.

Triggering audience behavior data: live playback function triggered by viewer behavior

As shown in fig. 5, in another embodiment, the determining whether a preset live playback trigger condition is triggered includes:

and S12a, judging whether the behavior data input by the audience is matched with the behavior data set in the live playback triggering condition.

And after the live broadcast playback triggering condition is set at the anchor terminal, comparing the behavior data input by the audience with the set behavior data. If the two are consistent, the two are matched, and if the two are not consistent, the two are not matched.

S12b, if the live playback trigger condition is matched with the live playback trigger condition, judging that the live playback trigger condition is not triggered.

And if the behavior data input by the audience is matched with the preset behavior data, triggering the live broadcast playback triggering condition, and intercepting the target live broadcast data from the locally cached live broadcast data, otherwise, not triggering the live broadcast playback triggering condition, and not intercepting the target live broadcast data.

When the live playback function is triggered, the audience needs to participate in interaction, so that the interaction between the anchor and the audience is improved.

There are various implementation manners for the behavior data of the viewer set in the live playback trigger condition, and correspondingly, there are also various implementation manners for determining whether the behavior data input by the viewer matches the set behavior data.

(1) Present triggering scheme one

Optionally, the behavior data set in the live playback trigger condition includes a gift type, a gift number, and a preset time interval; the behavior data input by the viewer includes a gift class and a gift transmission time. The set gift types are gift types used for triggering live broadcast playback, and can be selected from existing gift lists in live broadcast, for example, in a certain live broadcast platform, the gift lists are sequentially ' tiger grain ', ' glow stick/pan ', ' rancour ', ' like ' blood bottle ', ' knee ', ' locomotive ', ' grey machine ', ' excavator ', ' Pandora box ', ' hundred thousand water army ' and ' treasure drawing ', and ' tiger grain ' is selected from the gift lists to serve as the gift types used for triggering live broadcast playback. The gift number can be set independently according to actual needs, for example, a number is selected from 1 to 9999 as the gift number. In order to prevent the determination time from being too long, a preset time interval needs to be set, for example, the preset time interval is set to 10 seconds. The type of gift entered by the viewer is the type of gift that the viewer sends to the anchor. The gift transmission time is the time when the viewer transmits the gift to the anchor.

In one embodiment, determining whether the behavior data input by the viewer matches the behavior data set in the live playback trigger condition includes:

s12a1, determining a gift transmission time at which the viewer transmits the first set gift class as a start time point.

According to the time sequence, searching the audience of the gift class of the first sending setting, and determining the gift sending time of the audience sending the gift as the starting time point. For example, if the set gift class is tiger grain, the viewer who sends the first tiger grain is searched in time sequence, and the time when the viewer sends the tiger grain is determined as the starting time point.

And S12a2, starting from the starting time point, judging whether the number of the gift types sent by the audience in the preset time interval reaches the set gift number.

Counting from the first gift sending time of the gift class sent by the viewer, and judging whether the number of the gift classes sent by the viewer reaches the set gift number or not within a preset time interval. For example, from the time point when the viewer sent the first tiger grain, the number of tiger grains sent by the viewer in the last 10 seconds is counted as the number threshold set by the anchor.

And S12a3, if yes, judging that the behavior data input by the audience is matched with the set behavior data.

And if the number threshold value set by the anchor is reached, judging that the behavior data input by the audience is matched with the set behavior data, and triggering the live broadcast playback triggering condition.

And S12a4, if not, re-determining the starting time point, and returning to the step of judging whether the number of the gift types sent and set by the audience reaches the set gift number in the preset time interval from the starting time point.

And if the number threshold value set by the anchor is not reached, judging that the behavior data input by the audience is not matched with the set behavior data, and if the live broadcast playback triggering condition is not triggered, immediately resetting and recalculating.

(2) Gift triggering scheme two

Optionally, the behavior data set in the live playback trigger condition includes a gift value and a preset time interval; the behavior data input by the viewer includes a gift and a gift transmission time. In this embodiment, the determination is made by the value of the gift, and the gift type may not be set. The gift value can be set independently according to actual needs. In order to prevent the determination time from being too long, a preset time interval needs to be set, for example, the preset time interval is set to 10 seconds. The gift entered by the viewer is a gift transmitted by the viewer to the anchor. The gift transmission time is the time when the viewer transmits the gift to the anchor.

In one embodiment, determining whether the behavior data input by the viewer matches the behavior data set in the live playback trigger condition includes:

s12a-1, the gift transmission time when the first gift is transmitted by the viewer is determined as the start time point.

The viewer who transmits the gifts first is searched in time order, and the gift transmission time when the viewer transmits the gifts is determined as the starting time point. For example, in chronological order, the gift that the viewer first transmits is a tiger grain, and the time when the viewer transmits the tiger grain is determined as the starting time point.

And S12a-2, starting from the starting time point, judging whether the value of the gift sent by the audience reaches the set gift value in the preset time interval.

Counting from the gift sending time of the first gift sending, whether the value of the gift sent by the audience reaches the set gift value within a preset time interval. The value of the gift corresponding to each gift can be set in advance, and then the total value can be counted according to the received gifts.

And S12a-3, if yes, judging that the behavior data input by the audience is matched with the set behavior data.

And if the value threshold set by the anchor is reached, judging that the behavior data input by the audience is matched with the set behavior data, and triggering the live broadcast playback triggering condition.

S12a-4, if not, re-determining the starting time point, and returning to the step of starting from the starting time point and judging whether the value of the gift sent by the audience reaches the set gift value within the preset time interval.

And if the value threshold set by the anchor is not reached, judging that the behavior data input by the audience is not matched with the set behavior data, and if the live broadcast playback triggering condition is not triggered, immediately resetting and recalculating.

In one embodiment, starting from the starting time point, after that, further comprising:

displaying the gift value of the received gift sent by the audience in the live broadcast, and displaying the corresponding relation between the gift value and the playback time length of the target live broadcast data, wherein the corresponding relation is that the higher the gift value is, the longer the playback time length is.

In this embodiment, displaying the correspondence that the higher the value of the gift is, the longer the playback time is, in the live broadcast is beneficial to stimulating the audience to send the gift, thereby further improving the interactivity between the audience and the main broadcast.

(3) Bullet screen triggering scheme

Optionally, the behavior data set in the live playback trigger condition includes bullet screen content, bullet screen number, and a preset time interval; the behavior data input by the audience comprises barrage content and barrage sending time. The bullet screen is a comment point which flows between screens in the video, the anchor can independently input keywords of the bullet screen, and optionally, the keywords are limited to 10 Chinese characters or English letters and numbers. The anchor can also set the number of bullet screen strips independently. In order to prevent the determination time from being too long, a preset time interval needs to be set, for example, the preset time interval is set to 10 seconds. The barrage content input by the audience is the barrage content sent by the audience to the anchor. The bullet screen sending time is the time when the audience sends the bullet screen to the anchor.

In one embodiment, determining whether the behavior data input by the viewer matches the behavior data set in the live playback trigger condition includes:

and S12aa, determining the bullet screen sending time of the bullet screen content which is set by the audience for sending the first time as the starting time point.

And searching a first audience sending the bullet screen containing all the set characters according to the time sequence, and determining the bullet screen sending time of the first audience sending the bullet screen as a starting time point. For example, if the setting of the bullet screen content is 666, the audience sending the bullet screen 666 first is searched according to the time sequence, and the time when the audience sends 666 is determined as the starting time point.

And S12ab, starting from the starting time point, judging whether the quantity of the bullet screen contents sent and set by the audience reaches the set bullet screen quantity or not within the preset time interval.

Counting is started from the first bullet screen sending time for sending the set bullet screen content, and whether the quantity of the bullet screen content sent by the audience reaches the set bullet screen quantity or not is preset time interval. For example, if the number of viewer transmissions 666 reaches the anchor-set number threshold within the last 10 seconds, since the time point of the first 666 viewer transmissions.

And S12ac, if yes, judging that the behavior data input by the audience is matched with the set behavior data.

And if the number threshold value set by the anchor is reached, judging that the behavior data input by the audience is matched with the set behavior data, and triggering the live broadcast playback triggering condition.

And S12ad, if not, re-determining the starting time point, returning to the step of starting from the starting time point and judging whether the quantity of the bullet screen contents sent and set by the audience reaches the set bullet screen quantity within the preset time interval.

And if the number threshold value set by the anchor is not reached, judging that the behavior data input by the audience is not matched with the set behavior data, and if the live broadcast playback triggering condition is not triggered, immediately resetting and recalculating.

As described above, different target live data search schemes may be set for each live playback trigger condition, or the same target live data search scheme may be set for each live playback trigger condition, which is not limited in the present invention. The following is a description of setting different target live broadcast data search schemes for each live broadcast playback trigger condition as an example.

Searching scheme triggered by first and second anchor behavior data

As shown in fig. 6, in an embodiment, if the live playback trigger condition is triggered by behavior data input by a main broadcast, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

s131, determining the time point when the live playback trigger condition is triggered as a playback ending time point.

The time point at which the live playback trigger condition is triggered is the time point at which the behavior data set by the anchor input is input. For example, if the live playback trigger condition is triggered by a set shortcut key, the time point when the anchor presses the set shortcut key is the playback deadline time point.

And S132, determining the live broadcast data in a second preset time period before the playback deadline point as target live broadcast data.

The second preset time period may be set according to actual needs, and considering that the target live data is intercepted from the cached live data, the second preset time period is less than or equal to the first preset time period. And intercepting target live broadcast data from the cached live broadcast data according to the set second preset time period. For example, the second preset time period is 20 seconds, the live data within 20 seconds before the playback deadline is determined as the target live data.

Second, viewer behavior triggered search scheme

As shown in fig. 7, in an embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

and S13a, determining the starting time point or other time points in the preset time interval as the playback ending time point.

The starting time point is the time point corresponding to the first behavior data in the behavior data input by the audience and meeting the triggering condition of the live broadcast playback. Taking the example that the number of gifts triggers live playback, the starting time point is the first gift sending time corresponding to the gift type sent by the audience. Taking the example of triggering live playback by gift value, the starting time point is the transmission time of the gift corresponding to the first gift transmitted by the viewer. Taking the example of live playback triggered by the bullet screen, the start time point is the bullet screen sending time corresponding to the first setting bullet screen content sent by the audience. And the other time points in the preset time interval are time points corresponding to certain behavior data after the first behavior data in the behavior data input by the audience and meeting the triggering condition of live playback. The playback deadline time may be a starting time or any other time within a preset time interval, which is not limited by the present invention.

And S13b, determining the live broadcast data in a third preset time period before the playback deadline point as target live broadcast data.

The third preset time period may be set according to actual needs, and considering that the target live data is intercepted from the cached live data, the third preset time period is less than or equal to the first preset time period. And intercepting target live broadcast data from the cached live broadcast data according to the set third preset time period. For example, the third preset time period is 20 seconds, the live data within 20 seconds before the playback deadline is determined as the target live data.

As shown in fig. 8, in another embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the searching for target live data corresponding to the live playback trigger condition from the live data includes:

and S13-a, judging whether behavior data input by the audience is received in a fourth preset time period after the time point of triggering the live playback triggering condition.

The fourth preset time period can be set according to actual needs. If the live playback trigger condition is triggered by the gift, the received behavior data input by the viewer is the gift. And if the live broadcast playback triggering condition is triggered through the barrage, the received behavior data input by the audience is the barrage. Other situations are similar and will not be described herein.

And S13-b, if yes, judging whether the frequency of the behavior data input by the audience in the fourth preset time is higher than the frequency of the behavior data input by the audience in the preset time interval.

And determining the frequency corresponding to the fourth preset time period according to the quantity of the behavior data input by the audience in the fourth preset time period and the fourth preset time period. And determining the frequency corresponding to the preset time interval according to the quantity of the behavior data input by the audience in the preset time interval and the preset time interval. And if the behavior data input by the audience is still received in the fourth preset time period, judging whether the frequency of the behavior data input by the audience in the fourth preset time period is higher than the frequency of the behavior data input by the audience in the preset time interval. And if the behavior data input by the audience is not received in the fourth preset time period, selecting a time point from the preset time interval as a playback deadline time point.

And S13-c, if yes, selecting a time point from the fourth preset time period as a playback deadline time point.

And if the frequency corresponding to the fourth preset time period is higher than the frequency corresponding to the preset time interval, selecting any time point from the fourth preset time period as a playback cut-off time point. Otherwise, a time point within a preset time interval can be selected as the playback deadline time point.

And S13-d, determining live broadcast data in a fifth preset time period before the playback deadline as target live broadcast data.

The fifth preset time period may be set according to actual needs, and considering that the target live data is intercepted from the cached live data, the fifth preset time period is less than or equal to the first preset time period. And intercepting target live broadcast data from the cached live broadcast data according to the set fifth preset time period. For example, 20 seconds, the live data within 20 seconds before the playback deadline is determined as the target live data.

It should be understood that the viewer behavior triggered search scheme is also not limited to the above implementations. For example, for a gift value triggered search scheme, in one embodiment, after determining that the behavior data input by the viewer matches the set behavior data, the method further includes: obtaining the playback duration of target live broadcast data corresponding to the gift value of a received gift sent by a viewer; the searching of the target live broadcast data corresponding to the live broadcast playback triggering condition from the live broadcast data comprises the following steps: and taking the live broadcast data with the playback duration taking the current time point as the end point from the live broadcast data as target live broadcast data.

In one embodiment, the live data cached locally is encoded live data; the displaying the video data in the target live broadcast data in live broadcast and prohibiting the operation of playing the audio data in the target live broadcast data in live broadcast, including: and decoding the video data in the target live broadcast data, displaying the decoded video data in the live broadcast, and forbidding executing the operation of decoding the audio data in the target live broadcast data.

In this embodiment, the target live data is intercepted from the target live data after the buffer coding, and the audio data and the video data are stored separately, so that only the video data is decoded and the audio data is not processed during the live playback, and the purpose of closing the playback sound and only displaying the playback picture can be achieved.

Since the sound of the playback video is not played by default when the live playback is performed, in consideration of the requirement of the viewer for playing the sound of the playback video, in an embodiment, the operation of playing the audio data in the target live data in the live broadcast is prohibited, and then, the method further includes: receiving a playback audio playing request input by a viewer, and playing audio data in the target live broadcast data in live broadcast; receiving a live broadcast audio closing request input by a viewer, and stopping playing the live broadcast audio.

In this embodiment, as shown in fig. 3, the playback audio is audio data in highlight playback, and the live audio is audio data in a main live frame. The manner in which the viewer inputs the playback audio play request is various, for example, the viewer may input the playback audio play request by clicking on the highlight playback zone, and for example, the viewer may input the playback audio play request by inputting a specified voice. When the viewer inputs a playback audio play request, the sound can be played during playback. In consideration of the fact that two paths of sound are played simultaneously, namely the sound in wonderful playback and the sound in a main broadcast live broadcast picture, in order to ensure the live broadcast playback effect, audiences can also input a live broadcast audio closing request and temporarily close the live broadcast sound. After the highlight playback is finished or at other time points, the audience can input a live audio starting request and restart the live sound. The manner in which the viewer inputs the live audio close request is various, for example, the viewer may input the live audio close request by clicking on the main live screen area, and for example, the viewer may input the live audio close request by inputting a specified voice. It should be understood that the present invention is not limited to the order in which the viewer enters the playback audio play request and the live audio close request.

In order to add a video source to a live video service, as shown in fig. 9, in an embodiment, the searching target live data corresponding to the live playback trigger condition from the live data further includes:

and S150, recording the target live broadcast data.

The video recording needs to be complete in sound and picture, namely, the video data in the target live broadcast data are recorded, and the audio data in the target live broadcast data are recorded. Generally, the recording quality is the quality of the original picture of the anchor broadcast at that time. Of course, certain measures can be taken to improve the recording quality.

And S160, uploading the recorded target live broadcast data to a live broadcast video material library at a set uploading rate.

And after the target live broadcast data is recorded, uploading the target live broadcast data to a corresponding item anchor channel in a live broadcast material library in a background default mode so as to enrich video sources. In addition, each target live broadcast data is stored in a locally set folder, and optionally, the file name is "date-time", such as: "2018-3-17-12: 53" to leave for anchor editing.

In order not to affect the anchor live broadcast, games and the like, the uploading rate needs to be controlled according to actual conditions. In one embodiment, the live data cached locally is encoded live data; the upload rate is determined by: calculating the difference value between the uplink bandwidth of the anchor and the bandwidth required by coding, which is measured in advance, to obtain the residual available bandwidth; multiplying the residual available bandwidth by a preset ratio to obtain a bandwidth used for uploading data; and determining the uploading rate according to the bandwidth used by the uploading data.

In this embodiment, the speed of the upstream bandwidth of the anchor is measured before the broadcast, and the upstream bandwidth of the anchor is obtained. Then, the uplink bandwidth-the bandwidth required for coding-is the remaining available bandwidth. Considering that games and the like also occupy a little bandwidth, the remaining available bandwidth needs to be multiplied by a preset ratio to obtain the bandwidth used for uploading data. The predetermined ratio is a value less than 1, and optionally, 1/3. After the bandwidth used for uploading data is obtained, the uploading rate can be calculated.

For a better understanding of the present invention, reference is made to the following description taken in conjunction with the accompanying examples.

Fig. 10 is a schematic interface diagram of a function button of a tiger-teeth client according to an embodiment, where a highlight playback button is used to enter a live playback trigger condition setting interface. As shown in fig. 11, a schematic diagram of a page is set for a live playback trigger condition entered after an anchor clicks a highlight playback button, when the highlight playback in the page is selected to be started, other operation contents in the page are only available, otherwise, the operation contents are grayed and not clickable, the anchor trigger and the audience behavior trigger can be started simultaneously, the audience gift trigger and the audience bullet screen trigger are selected from one, the display in the diagram is a default value, if the item is selected but the number is not input, the item cannot be stored, when the storage is determined by clicking, a "please input the gift number" or "please input the bullet screen number" is prompted, a video storage path can be set on the page, and thus, the recorded data is stored to a designated position.

Fig. 12 is a schematic interface diagram of a function button of the YY live engine according to an embodiment, where a highlight playback button is used to enter a live playback trigger condition setting interface. As shown in fig. 13, a schematic diagram of a page is set for a live playback triggering condition entered after an anchor clicks a highlight playback button, when the highlight playback in the page is selected to be started, other operation contents in the page are only available, otherwise, the operation contents are grayed and not clickable, the anchor trigger and the audience behavior trigger can be started simultaneously, the audience gift trigger and the audience bullet screen trigger are selected from one, the display in the diagram is a default value, if the item is selected but the number is not input, the item cannot be stored, when the storage is determined by clicking, a "please input the gift number" or "please input the bullet screen number" is prompted, a video recording storage path can be set on the page, so that the recorded data is stored at a designated position, and in addition, a manual trigger playback duration can be set on the page.

Taking the setting page shown in fig. 11 as an example, the anchor sets two live playback triggering methods: the audience gift triggers, and 66 tiger grains are received within 10 seconds; the anchor triggers, and the anchor presses the shortcut key Alt + F3. And after the anchor starts live broadcasting, caching the data live broadcasting in the last minute and coding. If 66 tiger grains are detected within 10 seconds, searching the video key frame 20 seconds before the first tiger grain is sent from the cached data, decoding the video data of the first 20 seconds and displaying in a live broadcast room, recording while recording the audio data of the first 20 seconds. If the host broadcast is detected to press the shortcut key Alt + F3, searching the video key frame 20 seconds before the shortcut key is pressed from the cached data, decoding and displaying the video data of the first 20 seconds in the live broadcast room, recording the video data of the first 20 seconds, and recording the audio data of the first 20 seconds.

Based on the same inventive concept, the invention also provides a live broadcast playing device, and the following describes the specific implementation mode of the device in detail with reference to the attached drawings.

As shown in fig. 14, in one embodiment, a live playback apparatus includes:

the live broadcast data caching module 110 is configured to cache live broadcast data in a first preset time period before a current time point after a live broadcast is started by a main broadcast, where the live broadcast data includes audio data and video data;

a judging module 120, configured to judge whether a preset live playback triggering condition is triggered;

a target live broadcast data searching module 130, configured to search, when a live broadcast playback trigger condition is triggered, target live broadcast data corresponding to the live broadcast playback trigger condition from the live broadcast data;

and the playback module 140 is configured to display video data in the target live broadcast data in a live broadcast, and prohibit execution of an operation of playing audio data in the target live broadcast data in the live broadcast.

The live data are cached in the anchor live broadcasting process in real time, so that when the live broadcast playback triggering condition is triggered, the target live broadcast data can be searched from the cached live broadcast data, and then the video data in the target live broadcast data are displayed in the live broadcast, so that the live broadcast playback function is realized, and the live broadcast interest is improved. In addition, only the video data is displayed and the audio data is not played in the video playback process, so that the influence on the current live voice of the anchor is avoided, and the watching experience of audiences is guaranteed.

The live playback trigger condition is set by the anchor terminal. The set live playback triggering conditions are different, and the method for judging whether the live playback triggering conditions are triggered is different. A method for determining whether a preset live playback trigger condition is triggered is described below with reference to several embodiments.

Firstly, triggering anchor behavior data: live playback function triggered by anchor behavior

In one embodiment, the determining module 120 includes:

and a behavior data judging unit 121, configured to judge whether behavior data input by the anchor matches behavior data set in the live playback trigger condition.

Behavior data refers to data related to user behavior. In one embodiment, the behavior data set in the live playback trigger condition includes any one or any combination of a shortcut key, voice, gesture, and facial expression.

And after the behavior data in the live broadcast playback triggering condition is set at the anchor terminal, comparing the behavior data input by the anchor with the set behavior data. If the two are consistent, the two are matched, and if the two are not consistent, the two are not matched.

And a determination result output unit 122, configured to determine that the live playback trigger condition is triggered when the live playback trigger condition is matched, and otherwise determine that the live playback trigger condition is not triggered.

And if the behavior data input by the anchor is matched with the preset behavior data, triggering the live broadcast playback triggering condition, and intercepting target live broadcast data from the locally cached live broadcast data, otherwise, not triggering the live broadcast playback triggering condition, and not intercepting the target live broadcast data.

Triggering audience behavior data: live playback function triggered by viewer behavior

In another embodiment, the determining module 120 includes:

and the behavior data judging unit 12a is used for judging whether the behavior data input by the audience is matched with the behavior data set in the live broadcast playback triggering condition.

And after the live broadcast playback triggering condition is set at the anchor terminal, comparing the behavior data input by the audience with the set behavior data. If the two are consistent, the two are matched, and if the two are not consistent, the two are not matched.

And the judgment result output unit 12b is used for judging that the live playback trigger condition is triggered when the live playback trigger condition is matched, and otherwise, judging that the live playback trigger condition is not triggered.

And if the behavior data input by the audience is matched with the preset behavior data, triggering the live broadcast playback triggering condition, and intercepting the target live broadcast data from the locally cached live broadcast data, otherwise, not triggering the live broadcast playback triggering condition, and not intercepting the target live broadcast data.

When the live playback function is triggered, the audience needs to participate in interaction, so that the interaction between the anchor and the audience is improved.

There are various implementation manners for the behavior data of the viewer set in the live playback trigger condition, and correspondingly, there are also various implementation manners for determining whether the behavior data input by the viewer matches the set behavior data.

(1) Present triggering scheme one

Optionally, the behavior data set in the live playback trigger condition includes a gift type, a gift number, and a preset time interval; the behavior data input by the viewer includes a gift class and a gift transmission time.

In one embodiment, the behavior data determination unit 12a is configured to perform the following operations:

determining a gift transmission time for a viewer to transmit a first set gift class as a starting time point;

starting from the starting time point, judging whether the number of the gift types sent by the audience in the preset time interval reaches the set gift number or not;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

and if not, re-determining the starting time point, returning to the step of starting from the starting time point and judging whether the number of the gift types sent and set by the audience reaches the set gift number in the preset time interval.

(2) Gift triggering scheme two

Optionally, the behavior data set in the live playback trigger condition includes a gift value and a preset time interval; the behavior data input by the viewer includes a gift and a gift transmission time.

In another embodiment, the behavior data determination unit 12a is configured to perform the following operations:

s12a-1, determining the gift sending time of the first gift sent by the viewer as the starting time point;

s12a-2, starting from the starting time point, judging whether the value of the gift sent by the audience reaches the set gift value in the preset time interval;

s12a-3, if yes, judging that behavior data input by the audience is matched with the set behavior data;

s12a-4, if not, re-determining the starting time point, and returning to the step of starting from the starting time point and judging whether the value of the gift sent by the audience reaches the set gift value within the preset time interval.

In one embodiment, the behavior data determining unit 12a is further configured to, after starting from the starting time point:

displaying the gift value of the received gift sent by the audience in the live broadcast, and displaying the corresponding relation between the gift value and the playback time length of the target live broadcast data, wherein the corresponding relation is that the higher the gift value is, the longer the playback time length is.

In this embodiment, the higher the value of the gift displayed in the live broadcast is, the longer the playback time is, which is beneficial to stimulating the audience to send the gift, thereby further improving the interactivity between the anchor and the audience.

(3) Bullet screen triggering scheme

Optionally, the behavior data set in the live playback trigger condition includes bullet screen content, bullet screen number, and a preset time interval; the behavior data input by the audience comprises barrage content and barrage sending time.

In another embodiment, the behavior data determination unit 12a is configured to perform the following operations:

determining the bullet screen sending time of the first set bullet screen content sent by the audience as an initial time point;

starting from the starting time point, judging whether the number of the bullet screen contents sent by the audience reaches the set bullet screen number or not within the preset time interval;

if yes, judging that behavior data input by the audience is matched with the set behavior data;

and if not, re-determining the starting time point, returning to the step of starting from the starting time point, and judging whether the quantity of the bullet screen contents sent and set by the audience reaches the set bullet screen quantity within the preset time interval.

As described above, different target live data search schemes may be set for each live playback trigger condition, or the same target live data search scheme may be set for each live playback trigger condition, which is not limited in the present invention. The following is a description of setting different target live broadcast data search schemes for each live broadcast playback trigger condition as an example.

Searching scheme triggered by first and second anchor behavior data

In one embodiment, if the live playback trigger condition is triggered by behavior data input by the anchor, the target live data search module 130 includes:

a playback end time point determining unit 131 configured to determine a time point at which the live playback trigger condition is triggered as a playback end time point.

The time point at which the live playback trigger condition is triggered is the time point at which the behavior data set by the anchor input is input. For example, if the live playback trigger condition is triggered by a set shortcut key, the time point when the anchor presses the set shortcut key is the playback deadline time point.

A target live data determination unit 132, configured to determine live data in a second preset time period before the playback deadline as target live data.

The second preset time period may be set according to actual needs, and considering that the target live data is intercepted from the cached live data, the second preset time period is less than or equal to the first preset time period. And intercepting target live broadcast data from the cached live broadcast data according to the set second preset time period.

Second, viewer behavior triggered search scheme

In another embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the target live data search module 130 includes:

a playback end time point determining unit 13a configured to determine the start time point or other time points within the preset time interval as playback end time points.

The starting time point is the time point corresponding to the first behavior data in the behavior data input by the audience and meeting the triggering condition of the live broadcast playback. Taking the example that the number of gifts triggers live playback, the starting time point is the first gift sending time corresponding to the gift type sent by the audience. Taking the example of triggering live playback by gift value, the starting time point is the transmission time of the gift corresponding to the first gift transmitted by the viewer. Taking the example of live playback triggered by the bullet screen, the start time point is the bullet screen sending time corresponding to the first setting bullet screen content sent by the audience.

A target live data determining unit 13b, configured to determine live data in a third preset time period before the playback deadline as target live data.

The third preset time period may be set according to actual needs, and considering that the target live data is intercepted from the cached live data, the third preset time period is less than or equal to the first preset time period. And intercepting target live broadcast data from the cached live broadcast data according to the set third preset time period.

In another embodiment, if the live playback trigger condition is triggered by behavior data input by a viewer, the target live data search module 130 includes:

a first judging unit 13-a, configured to judge whether behavior data input by a viewer is received within a fourth preset time period after a time point at which the live playback trigger condition is triggered;

the second judging unit 13-b is configured to, when behavior data input by a viewer is received in a fourth preset time period, judge whether the frequency of the behavior data input by the viewer in the fourth preset time period is higher than the frequency of the behavior data input by the viewer in the preset time interval;

a playback cut-off time point determining unit 13-c, configured to select a time point from the fourth preset time period as a playback cut-off time point when the frequency of viewer input behavior data in the fourth preset time is higher than the frequency of viewer input behavior data in the preset time interval;

and a target live data determination unit 13-d, configured to determine live data in a fifth preset time period before the playback deadline as target live data.

It should be understood that the viewer behavior triggered search scheme is also not limited to the above implementations. For example, for a gift value triggered search scheme, in one embodiment, the behavior data determining unit 12a is further configured to obtain a playback duration of target live broadcast data corresponding to a gift value of a received gift sent by a viewer after determining that behavior data input by the viewer matches with set behavior data; the target live broadcast data search module 130 is configured to use, from the live broadcast data, live broadcast data with a playback duration taking a current time point as an end point as target live broadcast data.

In one embodiment, the playback module 140 is further configured to receive a playback audio playing request input by a viewer to play the audio data in the target live data in the live broadcast after prohibiting the operation of playing the audio data in the target live broadcast data in the live broadcast; receiving a live broadcast audio closing request input by a viewer, and stopping playing the live broadcast audio.

In one embodiment, the live data cached locally is encoded live data; the playback module 140 is configured to decode video data in the target live broadcast data, display the decoded video data in a live broadcast, and prohibit execution of an operation of decoding audio data in the target live broadcast data.

In this embodiment, the target live data is intercepted from the target live data after the buffer coding, and the audio data and the video data are stored separately, so that only the video data is decoded and the audio data is not processed during the live playback, and the purpose of closing the playback sound and only displaying the playback picture can be achieved.

To add a video source to the live video service, in one embodiment, the recording module 150 is further included, connected to the target live data search module 130, and is configured to:

recording the target live broadcast data;

and uploading the recorded target live broadcast data to a live broadcast video material library at a set uploading rate.

In order not to affect the anchor live broadcast, games and the like, the uploading rate needs to be controlled according to actual conditions. In one embodiment, the live data cached locally is encoded live data; the upload rate is determined by: calculating the difference value between the uplink bandwidth of the anchor and the bandwidth required by coding, which is measured in advance, to obtain the residual available bandwidth; multiplying the residual available bandwidth by a preset ratio to obtain a bandwidth used for uploading data; and determining the uploading rate according to the bandwidth used by the uploading data.

In this embodiment, the speed of the upstream bandwidth of the anchor is measured before the broadcast, and the upstream bandwidth of the anchor is obtained. Then, the uplink bandwidth-the bandwidth required for coding-is the remaining available bandwidth. Considering that games and the like also occupy a little bandwidth, the remaining available bandwidth needs to be multiplied by a preset ratio to obtain the bandwidth used for uploading data. The predetermined ratio is a value less than 1, and optionally, 1/3. After the bandwidth used for uploading data is obtained, the uploading rate can be calculated.

Other technical features of the live broadcast device are the same as those of the live broadcast method, and are not described herein again.

An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the live broadcast methods described above. The storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable programmable Read-Only memories), EEPROMs (Electrically EraSable programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.

An embodiment of the present invention further provides a computer device, where the computer device includes:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement the live playback method of any of the above.

Fig. 15 is a schematic structural diagram of a computer apparatus according to the present invention, which includes a processor 220, a storage device 230, an input unit 240, a display unit 250, and the like. Those skilled in the art will appreciate that the structural elements shown in fig. 14 are not intended to be limiting of all computer devices and may include more or less components than those shown, or some components in combination. The storage 230 may be used to store the application 210 and various functional modules, and the processor 220 executes the application 210 stored in the storage 230, thereby performing various functional applications and data processing of the device. The storage 230 may be an internal memory or an external memory, or include both internal and external memories. The memory may comprise read-only memory, Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory devices include, but are not limited to, these types of memory devices. The disclosed storage device 230 is provided as an example and not a limitation.

The input unit 240 is used to receive input of signals and live data during live broadcasting. The input unit 240 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 250 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 250 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 220 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the storage device 230 and calling data stored in the storage device.

In an embodiment, the computer device includes one or more processors 220, and one or more storage 230, one or more applications 210, wherein the one or more applications 210 are stored in the storage 230 and configured to be executed by the one or more processors 220, and the one or more applications 210 are configured to perform the live play method described in the above embodiment.

It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

It should be understood that each functional unit in the embodiments of the present invention may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.

The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

30页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:seek请求响应方法及装置、设备及可读存储介质,播放器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类