CN108632675A - A kind of direct playing and playback method, apparatus and equipment - Google Patents

A kind of direct playing and playback method, apparatus and equipment Download PDF

Info

Publication number
CN108632675A
CN108632675A CN201810312508.3A CN201810312508A CN108632675A CN 108632675 A CN108632675 A CN 108632675A CN 201810312508 A CN201810312508 A CN 201810312508A CN 108632675 A CN108632675 A CN 108632675A
Authority
CN
China
Prior art keywords
playback
time point
duration
point
video file
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
CN201810312508.3A
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 Panda Mutual Entertainment Technology Co Ltd
Original Assignee
Beijing Panda Mutual Entertainment 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 Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201810312508.3A priority Critical patent/CN108632675A/en
Publication of CN108632675A publication Critical patent/CN108632675A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

An embodiment of the present invention provides a kind of direct playing and playback method, apparatus and equipment, are applied to client, including:Receive direct playing and playback instruction;Obtain the live video file that caches in local memory, wherein the live video file is:According to the video file that the live content that being received in first time period, server is sent generates, termination time point of the first time period is first time point, the when a length of preset duration of the first time period, and the first time point is:Default live video file generated time point that is nearest apart from current play time point and not being located at after current play time point;It is instructed according to the direct playing and playback, determines starting playback duration point;Invocation target player, and indicate that the destination player plays the live video file with the starting playback duration point to play starting point.It can make the splendid contents of user's real-time playback live streaming during watching live streaming using technical solution provided in an embodiment of the present invention.

Description

A kind of direct playing and playback method, apparatus and equipment
Technical field
The present invention relates to Internet technical fields, more particularly to a kind of direct playing and playback method, apparatus and equipment.
Background technology
Network direct broadcasting industry is a kind of new internet cultural industry developed rapidly in recent years, and as one kind New amusement and recreation mode, is paid close attention to by large quantities of users.Network direct broadcasting platform includes a plurality of types of programme televised lives, and is used Family is frequently encountered live streaming splendid moment during watching programme televised live, for example, oneself 1 people's game main broadcaster fights in gaming Win the splendid moment of 5 people of enemy.At this point, user may wish to review this splendid moment.
For this case, then user is needed to carry out whole recording to live content watching the when of being broadcast live, and can only be Live streaming terminates and completes just check the splendid moment oneself liked after recording, this results in user cannot be in the mistake of viewing live streaming Splendid moment is reviewed in journey in real time.
Invention content
The embodiment of the present invention is designed to provide a kind of direct playing and playback method, apparatus and equipment, is being broadcast live with realizing Playback is broadcast live in journey in real time.Specific technical solution is as follows:
The one side that the present invention is implemented provides a kind of direct playing and playback method, is applied to client, including:
Receive direct playing and playback instruction;
Obtain the live video file that caches in local memory, wherein the live video file is:According at the first time The video file that the live content that received in section, server is sent generates, the termination time point of the first time period is First time point, the when a length of preset duration of the first time period, the first time point are:Apart from current play time point The default live video file generated time point not being located at recently and after current play time point;
It is instructed according to the direct playing and playback, determines starting playback duration point;
Invocation target player, and indicate that the destination player is played with the starting playback duration point to play starting point The live video file.
Optionally, the direct playing and playback, which instructs, is:The instruction of playback is broadcast live in a manner of pulling playing progress rate sliding block;
It is described to be instructed according to the direct playing and playback, determine the step of originating playback duration point, including:
The corresponding play time in playing progress rate sliding block present position after stopping pulling is obtained, as the second time Point;
The time point for receiving the direct playing and playback instruction is obtained, as third time point;
The duration between second time point and third time point is calculated, as interval duration;
Judge whether the interval duration is more than the preset duration;
If it is, the starting play time of the live video file is determined as to originate playback duration point;
If it has not, second time point is determined as to originate playback duration point.
Optionally, the direct playing and playback, which instructs, is:The instruction of playback is broadcast live in a manner of triggering playback button;
It is described to be instructed according to the direct playing and playback, determine the step of originating playback duration point, including:
The playback duration that user inputs in input interface is obtained, as interval duration;
Judge whether the interval duration is more than the preset duration;
If it is, the starting play time of the live video file is determined as to originate playback duration point;
If it has not, the 4th time point was determined as to originate playback duration point, wherein the 4th time point is:To receive To the direct playing and playback instruct time point be terminate time point, when it is a length of it is described be spaced duration period initial time Point.
Optionally, the method further includes:
It in the case where the interval duration is more than the preset duration, exports and presets prompt message, wherein is described default Prompt message is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
Optionally, in the invocation target player, and indicate the destination player with the starting playback duration point After playing the step of starting point plays the live video file, further include:
Receive live video file download instructions;
Download the live video file.
The another aspect that the present invention is implemented additionally provides a kind of direct playing and playback device, is applied to client, including:
Receiving module, for receiving direct playing and playback instruction;
Acquisition module, for obtaining the live video file cached in local memory, wherein the live video file It is:According to the video file that the live content that received in first time period, server is sent generates, the first time period Termination time point be first time point, the when a length of preset duration of the first time period, the first time point is:Distance Current play time point is nearest and is not located at the default live video file generated time point after current play time point;
Determining module determines starting playback duration point for being instructed according to the direct playing and playback;
Calling module is used for invocation target player, and indicates the destination player with the starting playback duration point The live video file is played to play starting point.
Optionally, direct playing and playback, which instructs, is:The instruction of playback is broadcast live in a manner of pulling playing progress rate sliding block;
Determining module, including:
First obtains unit, for obtaining the corresponding reproduction time in playing progress rate sliding block present position after stopping pulls Point, as the second time point;
Second obtaining unit, for obtaining the time point for receiving the direct playing and playback instruction, as third time point;
Computing unit, for calculating the duration between second time point and third time point, as interval duration;
First judging unit, for judging whether the interval duration is more than the preset duration;
First determination unit is when being, by live video text for the judging result in first judging unit The starting play time of part is determined as originating playback duration point;
When the judging result of first judging unit is no, second time point is determined as to originate playback duration Point.
Optionally, direct playing and playback, which instructs, is:The instruction of playback is broadcast live in a manner of triggering playback button;
Determining module, including:
Third obtaining unit, the playback duration inputted in input interface for obtaining user, as interval duration;
Second judgment unit, for judging whether the interval duration is more than the preset duration;
Second determination unit is when being, by live video text for the judging result in first judging unit The starting play time of part is determined as originating playback duration point;
When the judging result of first judging unit is no, the 4th time point was determined as to originate playback duration point, Wherein, the 4th time point is:Time point to receive direct playing and playback instruction be terminate time point, when it is a length of described It is spaced the start time point of the period of duration.
Optionally, described device further includes:
Output module, in the case where the interval duration is more than the preset duration, exporting and presetting prompt message, Wherein, the default prompt message is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
Optionally, described device further includes:
Download instruction receiving module, for receiving live video file download instructions;
Video file download module, for downloading the live video file.
The another aspect that the present invention is implemented, additionally provides a kind of electronic equipment, which is characterized in that including processor, communication Interface, memory and communication bus, wherein processor, communication interface, memory complete mutual lead to by communication bus Letter;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described direct playing and playback method.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer so that computer executes any of the above-described live streaming and returns Put method.
At the another aspect that the present invention is implemented, the embodiment of the present invention additionally provides a kind of computer program production comprising instruction Product, when run on a computer so that computer executes any of the above-described direct playing and playback method.
It as seen from the above, can be according to server reality when being broadcast live playback using scheme provided in an embodiment of the present invention When the live content that sends generate video file and be buffered in local memory, after receiving direct playing and playback instruction, obtain this The live video file and determining starting playback duration point cached in ground memory, invocation target player is to originate playback duration point The live video file obtained is played to play starting point.Based on this, carried out using technical solution provided in an embodiment of the present invention straight When broadcasting playback, the splendid contents of user's real-time playback live streaming during watching live streaming can be made.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow diagram of direct playing and playback method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of determining starting playback duration point methods provided in an embodiment of the present invention;
Fig. 3 is another flow diagram for determining starting playback duration point methods provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of direct playing and playback device provided in an embodiment of the present invention;
Fig. 5 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig.1, a kind of flow diagram of direct playing and playback method provided in an embodiment of the present invention, this method packet are shown It includes:
S100 receives direct playing and playback instruction.
User watch be broadcast live during, when watching the splendid moment of live streaming, often wish to being broadcast live Splendid contents are played back, and user can input play-back command to return in client live streaming picture display interface at this time It puts, play-back command can pull the instruction that the progress sliding block in playing progress bar inputs for user, or user clicks Preset " playback " button and the instruction inputted, can also input the instruction that preset shortcut key inputs for user;Correspondingly When client detects that dragged either preset " playback " button of progress sliding block is clicked or preset straight for carrying out When broadcasting the shortcut key of playback and being entered, determines and receive direct playing and playback instruction.
S200 obtains the live video file that caches in local memory, wherein live video file is:When according to first Between receive in section, video file that live content that server is sent generates, termination time point of first time period is the One time point, the when a length of preset duration of first time period, first time point are:Apart from current play time point recently and not Default live video file generated time point after current play time point.
Preset duration is the duration of the live content for generating video file, that is, the live video text generated Part is played to the duration for terminating playing process by, and preset duration can be set as needed.It is understandable to be, The tens second usually only short time of the duration of splendid moment during live streaming, for example, playing main broadcaster during live streaming certainly Oneself people defeats the process of five people of enemy usually only to need tens seconds time.Based on this, above-mentioned preset duration can be set as One shorter duration.It can be reduced in this way according to service while it includes splendid moment to meet generated video file The time for the video file that the live content that device is sent generates, for example, preset duration can be set as 3 minutes, 5 minutes etc..
Current play time point refer to and newest live streaming picture corresponding to, time point on progress bar, wherein progress bar On time point can be determined according to following manner:
Mode one, the time point on progress bar be be broadcast live start when with 0 point 0 second for initial time, with live streaming into Row was gradually increased with 1 second for step-length, until time point shown during stopping timing at the end of live streaming, for example, newest Be broadcast live corresponding to picture, time point on progress bar be 90 points 30 seconds, correspondingly current play time point is 90 minutes and 30 seconds.
Mode two, the time point on progress bar be be broadcast live start when time point with natural time simultaneous display, it is natural Time is the time that the geographical location residing for terminal device where client determines, for example, terminal device where client Residing geographical location is Beijing, and correspondingly natural time is Beijing time.
It is understood that according to live content generate live video file need the time, and set it is default when Length is bigger, and it is longer to generate the time needed for live video file accordingly based upon live content.Based on this, when needing according to presetting It grows to set the adjacent time interval for generating live video file twice, and the time point for being spaced set time interval is Default live video file generated time point, for example, set the time interval of the adjacent live video file of generation twice as 2 seconds, It is 2 seconds, 4 seconds, 6 seconds ... correspondingly to preset live video file generated time point.
First time point is newest once default live video file generated time point;It is newest primary in the case of one kind Default live video file generated time point is current play time point, for example, every two seconds generate a live video text Part, then when current play time point is 2 seconds, 4 seconds, 6 seconds ..., newest once default live video file generated time point is For current play time point;In another case, newest once default live video file generated time point is then currently playing The last default live video file generated time point before time point, for example, every two seconds generate a live video text Part, then when current play time point is 3 seconds, 5 seconds, 7 seconds ..., newest once default live video file generated time point is then It is 2 seconds, 4 seconds, 6 seconds ....It is assumed that generating within every two seconds a live video file, preset duration is 5 minutes, is regarded to live streaming Frequency file generating process illustrates:Current play time point be 9 points 26 seconds 30 minutes, then according to 9 points 30 26 seconds 25 minutes to 9: The live content that received between 26 seconds, server is sent generates live video file;Current play time point becomes 9: 30 Divide 27 seconds, does not generate live video file;Current play time point becomes at 9 points 30 minutes and 28 seconds, then according to 9 points 28 seconds to 9 25 minutes The live content that point receives between 28 seconds 30 minutes, server is sent generates live video file.
In a kind of realization method, a live video file can be only stored in memory, i.e., in real time using being newly generated Live video file replace the live video file that is stored in memory, reduced occupied by storage live video file with this Memory;In another realization method, can multiple live video files be stored in memory simultaneously, for example, two, that is, include It is and previous at newest live video file generated time point in the video file that newest live video file generated time point generates The live video file that secondary live video file generated time point generates.
S300 is instructed according to direct playing and playback, determines starting playback duration point.
User can be when inputting direct playing and playback instruction, input time information;It can also be instructed in input direct playing and playback Afterwards, input time information is not specifically limited this present invention.Wherein, temporal information is that user is desired with direct playing and playback Broadcast start time.
And it is understandable be the live video file cached in memory duration it is bigger, correspondingly to memory size Demand is higher, is based on this, the duration for the live video file that technical solution provided in an embodiment of the present invention is cached in memory A usually shorter duration reduced the demand to memory size for example, 5 minutes with this.And due to caching in memory The duration of live video file is certain, after client receives temporal information input by user, then needs to judge user The temporal information of input originates playback duration point whether within the live video file of caching, with this to determine.Specifically, objective Family termination can determine the starting playback duration point played back after receiving temporal information input by user by following steps:
Step 1 obtains the time point for receiving direct playing and playback instruction;
Step 2 determines that target time section, target time section are:Time point to receive direct playing and playback instruction is eventually Point, when a length of preset duration period;
Whether in the target time period step 3 judges temporal information input by user, if with input by user Temporal information is determined as originating playback duration point;If it was not then by the starting play time of the live video file of caching It is determined as originating playback duration point.
The step of starting playback duration point played back below to above-mentioned determination with a specific embodiment, illustrates, false If preset duration is 5 minutes,
In the case of one kind, temporal information input by user be 9 points 28 minutes;First, it obtains and receives direct playing and playback instruction Time point be 9 points 25 seconds 30 minutes;Then, it is determined that target time section is 9 points of 25 seconds 25 minutes -9 points 30 minutes and 25 seconds;Finally, judge at 9 points 28 points between 9 points of 25 seconds 25 minutes -9 points 30 minutes and 25 seconds, then separately begin to play live video files with 9: 28;
In another case, temporal information input by user be 9 points 24 minutes;First, it obtains and receives direct playing and playback instruction Time point be 9 points 25 seconds 30 minutes;Then, it is determined that target time section is 9 points of 25 seconds 25 minutes -9 points 30 minutes and 25 seconds;Finally, judge 9 Point 24 minutes is not between 9 points of 25 seconds 25 minutes -9 points 30 minutes and 25 seconds, then by the starting play time of the live video file of caching It is determined as originating playback duration point.
S400, invocation target player, and indicate that destination player plays directly to originate playback duration point to play starting point Broadcast video file.
Destination player can be that the plug-in unit of playing video file is used in client, or the end residing for client The video player installed in end equipment is not specifically limited this present invention.
When playing back live streaming using direct playing and playback scheme provided in an embodiment of the present invention, can in real time it be sent according to server Live content generates video file and is buffered in local memory, after receiving direct playing and playback instruction, obtains in local memory The live video file of caching simultaneously determines starting playback duration point, and invocation target player is to play to originate playback duration point Point plays the live video file obtained.Based on this, the essence of user's real-time playback live streaming during watching live streaming can be made Color content.
With reference to Fig. 2, a kind of flow signal of determining starting playback duration point methods provided in an embodiment of the present invention is shown Scheme, in this method, direct playing and playback instruction is:The instruction of playback is broadcast live in a manner of pulling playing progress rate sliding block, specifically This method includes:
S311 obtains the corresponding play time in playing progress rate sliding block present position after stopping pulling, as second Time point;
S312 obtains the time point for receiving the direct playing and playback instruction, as third time point;
S313 calculates the duration between second time point and third time point, as interval duration;
S314, judges whether the interval duration is more than the preset duration, and judging result is to execute S315 when being, is being sentenced Disconnected result executes S316 when being no;
The starting play time of the live video file is determined as originating playback duration point by S315;
Second time point is determined as originating playback duration point by S316.
Assuming that preset duration is 5 minutes, the step of above-mentioned S311-S316 said with a specific embodiment below It is bright:
In the case of one kind, after client detects that the stopping of progress sliding block is dragged, playing progress rate sliding block present position is obtained Corresponding play time be 90 points 30 seconds;Obtain receive direct playing and playback instruction time point be 94 points 30 seconds;Counting period Shi Changwei 4 minutes;Judge to be less than within 4 minutes 5 minutes, is then used as within 30 seconds starting playback duration point by 90 points;
In another case, after client detects that the stopping of progress sliding block is dragged, position residing for playing progress rate sliding block is obtained Set corresponding play time be 84 points 30 seconds;Obtain receive direct playing and playback instruction time point be 94 points 30 seconds;Between calculating Every when it is 10 minutes a length of;Judge to be more than within 10 minutes 5 minutes, then determines the starting play time of the live video file of caching To originate playback duration point.
With reference to Fig. 3, show that the flow of another determining starting playback duration point methods provided in an embodiment of the present invention is shown It is intended to, in this method, direct playing and playback instruction is:The instruction of playback is broadcast live in a manner of triggering playback button;Specifically should Method, including:
S321 obtains the playback duration that user inputs in input interface, as interval duration;
S322, judges whether the interval duration is more than the preset duration, executes S323 when the determination result is yes, Judging result executes S324 when being no;
The starting play time of the live video file is determined as originating playback duration point by S323;
4th time point was determined as originating playback duration point, wherein the 4th time point is by S324:To receive The time point of direct playing and playback instruction be terminate time point, when a length of period for being spaced duration start time point.
Assuming that preset duration is 5 minutes, the step of above-mentioned S321-S324 said with a specific embodiment below It is bright:
In the case of one kind, user is obtained in the playback that input interface inputs a length of 4 minutes;Judge to be less than 5 points in 4 minutes Clock, obtain receive direct playing and playback instruction time point be 17 points 35 seconds 21 minutes, determine with 17 points 35 seconds 21 minutes for terminate the time Point, when a length of 4 minutes periods be 17 points of 35 seconds 17 minutes -17 points 21 minutes and 35 seconds;17 points are determined as originating back for 35 seconds 17 minutes Put time point.
In another case, obtaining user in the playback that input interface inputs a length of 6 minutes;Judge to be more than 5 points in 6 minutes The starting play time of the live video file of caching is then determined as originating playback duration point by clock.
When being more than preset duration according to the determining interval duration of the direct playing and playback instruction received, i.e. user is desired with back The start time point put earlier than live video file starting play time, it is at this time if unwitting in user, It is directly that starting playback duration point carries out direct playing and playback with the starting play time of live video file, is likely to result in user Until having watched live video file does not see that oneself wishes the live content played back, wastes the time of user yet.Based on this, originally In a kind of realization method of inventive embodiments, direct playing and playback method further includes:
It in the case where the interval duration is more than the preset duration, exports and presets prompt message, wherein is described default Prompt message is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
In order to meet user during reviewing live video file, the live video file reviewed is collected Demand, in a kind of realization method of the embodiment of the present invention, in invocation target player, and indicate destination player to originate playback Time point is after playing the step of starting point plays live video file, to further include:
Receive live video file download instructions;
Download the live video file.
Download instruction can be the instruction for clicking preset " download " button to be inputted, and can also be that input is preset Shortcut key is come the instruction that is inputted;Correspondingly when client detects that preset " download " button is clicked or preset It, will be in live video file download to local hard drive when shortcut key for inputting download instruction is entered.
With reference to Fig. 4, a kind of structural schematic diagram of direct playing and playback device provided in an embodiment of the present invention, the device packet are shown It includes:
Receiving module 500, for receiving direct playing and playback instruction;
Acquisition module 600, for obtaining the live video file cached in local memory, wherein the live video text Part is:According to the video file that the live content that received in first time period, server is sent generates, the first time The termination time point of section is first time point, the when a length of preset duration of the first time period, and the first time point is:Away from Default live video file generated time point that is nearest from current play time point and not being located at after current play time point;
Determining module 700 determines starting playback duration point for being instructed according to the direct playing and playback;
Calling module 800 is used for invocation target player, and indicates the destination player with the starting playback duration Point plays the live video file to play starting point.
In a kind of realization method of the embodiment of the present invention, direct playing and playback instruction is:In a manner of pulling playing progress rate sliding block into The instruction of row direct playing and playback;
Determining module 700, including:
First obtains unit, for obtaining the corresponding reproduction time in playing progress rate sliding block present position after stopping pulls Point, as the second time point;
Second obtaining unit, for obtaining the time point for receiving the direct playing and playback instruction, as third time point;
Computing unit, for calculating the duration between second time point and third time point, as interval duration;
First judging unit, for judging whether the interval duration is more than the preset duration;
First determination unit is when being, by live video text for the judging result in first judging unit The starting play time of part is determined as originating playback duration point;
When the judging result of first judging unit is no, second time point is determined as to originate playback duration Point.
In a kind of realization method of the embodiment of the present invention, direct playing and playback instruction is:It is carried out in a manner of triggering playback button straight Broadcast the instruction of playback;
Determining module 700, including:
Third obtaining unit, the playback duration inputted in input interface for obtaining user, as interval duration;
Second judgment unit, for judging whether the interval duration is more than the preset duration;
Second determination unit is when being, by live video text for the judging result in first judging unit The starting play time of part is determined as originating playback duration point;
When the judging result of first judging unit is no, the 4th time point was determined as to originate playback duration point, Wherein, the 4th time point is:Time point to receive direct playing and playback instruction be terminate time point, when it is a length of described It is spaced the start time point of the period of duration.
In a kind of realization method of the embodiment of the present invention, described device further includes:
Output module, in the case where the interval duration is more than the preset duration, exporting and presetting prompt message, Wherein, the default prompt message is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
In a kind of realization method of the embodiment of the present invention, described device further includes:
Download instruction receiving module, for receiving live video file download instructions;
Video file download module, for downloading the live video file.
In each scheme provided in an embodiment of the present invention, live streaming that direct playing and playback device can in real time be sent according to server Content generates video file and is buffered in local memory, after receiving direct playing and playback instruction, obtains and is cached in local memory Live video file and determine starting playback duration point, invocation target player with originate playback duration point be played program request Put the live video file of acquisition.Based on this, user's real-time playback during watching live streaming can be made to be broadcast live excellent interior Hold.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 5, including processor 001, communication interface 002, Memory 003 and communication bus 004, wherein processor 001, communication interface 002, memory 003 are complete by communication bus 004 At mutual communication,
Memory 003, for storing computer program;
Processor 001 when for executing the program stored on memory 003, is realized provided in an embodiment of the present invention straight Broadcast back method.
Specifically, above-mentioned direct playing and playback method, including:
Receive direct playing and playback instruction;
Obtain the live video file that caches in local memory, wherein the live video file is:According at the first time The video file that the live content that received in section, server is sent generates, the termination time point of the first time period is First time point, the when a length of preset duration of the first time period, the first time point are:Apart from current play time point The default live video file generated time point not being located at recently and after current play time point;
It is instructed according to the direct playing and playback, determines starting playback duration point;
Invocation target player, and indicate that the destination player is played with the starting playback duration point to play starting point The live video file.
It should be noted that above-mentioned processor 001, which executes the program stored on memory 003, realizes direct playing and playback method Other embodiment, with preceding method embodiment part provide embodiment it is identical, which is not described herein again.
In each scheme provided in an embodiment of the present invention, live content that electronic equipment can in real time be sent according to server It generates video file and is buffered in local memory, after receiving direct playing and playback instruction, cached in acquisition local memory straight It broadcasts video file and determines starting playback duration point, invocation target player is to play starting point broadcasting to obtain to originate playback duration point The live video file taken.Based on this, the splendid contents of user's real-time playback live streaming during watching live streaming can be made.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Pomponent Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Ne twork Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Applica tion Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer, direct playing and playback method provided in an embodiment of the present invention.
Specifically, above-mentioned direct playing and playback method, including:
Receive direct playing and playback instruction;
Obtain the live video file that caches in local memory, wherein the live video file is:According at the first time The video file that the live content that received in section, server is sent generates, the termination time point of the first time period is First time point, the when a length of preset duration of the first time period, the first time point are:Apart from current play time point The default live video file generated time point not being located at recently and after current play time point;
It is instructed according to the direct playing and playback, determines starting playback duration point;
Invocation target player, and indicate that the destination player is played with the starting playback duration point to play starting point The live video file.
It should be noted that the other embodiment of direct playing and playback method is realized by above computer readable storage medium storing program for executing, Identical as the embodiment that preceding method embodiment part provides, which is not described herein again.
In each scheme provided in an embodiment of the present invention, by running the finger stored in above computer readable storage medium storing program for executing It enables, video file can be generated according to the live content that server is sent in real time and is buffered in local memory, it is straight when receiving After broadcasting play-back command, obtains the live video file cached in local memory and determine that starting playback duration point, invocation target are broadcast It is to play starting point to play the live video file obtained that device, which is put, to originate playback duration point.Based on this, user can be made to watch The splendid contents that real-time playback is broadcast live during live streaming.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers, direct playing and playback method provided in an embodiment of the present invention is realized.
Specifically, above-mentioned direct playing and playback method, including:
Receive direct playing and playback instruction;
Obtain the live video file that caches in local memory, wherein the live video file is:According at the first time The video file that the live content that received in section, server is sent generates, the termination time point of the first time period is First time point, the when a length of preset duration of the first time period, the first time point are:Apart from current play time point The default live video file generated time point not being located at recently and after current play time point;
It is instructed according to the direct playing and playback, determines starting playback duration point;
Invocation target player, and indicate that the destination player is played with the starting playback duration point to play starting point The live video file.
It should be noted that the other embodiment of direct playing and playback method is realized by above computer program product, and it is preceding The embodiment for stating the offer of embodiment of the method portion is identical, and which is not described herein again.
It, can by running the above-mentioned computer program product for including instruction in each scheme provided in an embodiment of the present invention Video file is generated with the live content that is sent in real time according to server and is buffered in local memory, when receiving direct playing and playback After instruction, obtain the live video file that caches in local memory and determine starting playback duration point, invocation target player with Starting playback duration point is to play starting point to play the live video file obtained.Based on this, user can be made in viewing live streaming The splendid contents of real-time playback live streaming in the process.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method Example, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of direct playing and playback method is applied to client, which is characterized in that including:
Receive direct playing and playback instruction;
Obtain the live video file that caches in local memory, wherein the live video file is:According in first time period The termination time point of the video file that the live content that receive, server is sent generates, the first time period is first Time point, the when a length of preset duration of the first time period, the first time point are:Most apart from current play time point The default live video file generated time point not being located at closely and after current play time point;
It is instructed according to the direct playing and playback, determines starting playback duration point;
Invocation target player, and indicate the destination player with the starting playback duration point for described in broadcasting starting point broadcasting Live video file.
2. the method as described in claim 1, which is characterized in that the direct playing and playback, which instructs, is:To pull playing progress rate sliding block Mode be broadcast live the instruction of playback;
It is described to be instructed according to the direct playing and playback, determine the step of originating playback duration point, including:
The corresponding play time in playing progress rate sliding block present position after stopping pulling is obtained, as the second time point;
The time point for receiving the direct playing and playback instruction is obtained, as third time point;
The duration between second time point and third time point is calculated, as interval duration;
Judge whether the interval duration is more than the preset duration;
If it is, the starting play time of the live video file is determined as to originate playback duration point;
If it has not, second time point is determined as to originate playback duration point.
3. the method as described in claim 1, which is characterized in that the direct playing and playback, which instructs, is:To trigger the side of playback button Formula is broadcast live the instruction of playback;
It is described to be instructed according to the direct playing and playback, determine the step of originating playback duration point, including:
The playback duration that user inputs in input interface is obtained, as interval duration;
Judge whether the interval duration is more than the preset duration;
If it is, the starting play time of the live video file is determined as to originate playback duration point;
If it has not, the 4th time point was determined as to originate playback duration point, wherein the 4th time point is:To receive State direct playing and playback instruction time point be terminate time point, when it is a length of it is described be spaced duration period start time point.
4. method as claimed in claim 2 or claim 3, which is characterized in that the method further includes:
In the case where the interval duration is more than the preset duration, exports and preset prompt message, wherein the default prompt Information is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
5. the method as described in claim 1, which is characterized in that in the invocation target player, and indicate that the target is broadcast It is after playing the step of starting point plays the live video file, to further include that device, which is put, with the starting playback duration point:
Receive live video file download instructions;
Download the live video file.
6. a kind of direct playing and playback device is applied to client, which is characterized in that including:
Receiving module, for receiving direct playing and playback instruction;
Acquisition module, for obtaining the live video file cached in local memory, wherein the live video file is:Root According to the video file that the live content that received in first time period, server is sent generates, the end of the first time period Only time point is first time point, the when a length of preset duration of the first time period, and the first time point is:Distance is current Play time is nearest and is not located at the default live video file generated time point after current play time point;
Determining module determines starting playback duration point for being instructed according to the direct playing and playback;
Calling module is used for invocation target player, and indicates the destination player with the starting playback duration point to broadcast It puts starting point and plays the live video file.
7. device as claimed in claim 6, which is characterized in that the direct playing and playback, which instructs, is:To pull playing progress rate sliding block Mode be broadcast live the instruction of playback;
The determining module, including:
First obtains unit, for obtaining the corresponding play time in playing progress rate sliding block present position after stopping pulls, As the second time point;
Second obtaining unit, for obtaining the time point for receiving the direct playing and playback instruction, as third time point;
Computing unit, for calculating the duration between second time point and third time point, as interval duration;
First judging unit, for judging whether the interval duration is more than the preset duration;
First determination unit is when being, by the live video file for the judging result in first judging unit Starting play time is determined as originating playback duration point;
When the judging result of first judging unit is no, second time point is determined as to originate playback duration point.
8. device as claimed in claim 6, which is characterized in that the direct playing and playback, which instructs, is:To trigger the side of playback button Formula is broadcast live the instruction of playback;
The determining module, including:
Third obtaining unit, the playback duration inputted in input interface for obtaining user, as interval duration;
Second judgment unit, for judging whether the interval duration is more than the preset duration;
Second determination unit is when being, by the live video file for the judging result in first judging unit Starting play time is determined as originating playback duration point;
When the judging result of first judging unit is no, the 4th time point was determined as to originate playback duration point, wherein 4th time point is:Time point to receive direct playing and playback instruction be terminate time point, when a length of interval The start time point of the period of duration.
9. device as claimed in claim 7 or 8, which is characterized in that described device further includes:
Output module, in the case where the interval duration is more than the preset duration, exporting and presetting prompt message, In, the default prompt message is:The prompt message that the direct playing and playback instructs asked playing back content can not completely be played back.
10. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and steps of claim 1-5.
CN201810312508.3A 2018-04-09 2018-04-09 A kind of direct playing and playback method, apparatus and equipment Pending CN108632675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810312508.3A CN108632675A (en) 2018-04-09 2018-04-09 A kind of direct playing and playback method, apparatus and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810312508.3A CN108632675A (en) 2018-04-09 2018-04-09 A kind of direct playing and playback method, apparatus and equipment

Publications (1)

Publication Number Publication Date
CN108632675A true CN108632675A (en) 2018-10-09

Family

ID=63704858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810312508.3A Pending CN108632675A (en) 2018-04-09 2018-04-09 A kind of direct playing and playback method, apparatus and equipment

Country Status (1)

Country Link
CN (1) CN108632675A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113626A (en) * 2019-05-13 2019-08-09 北京奇艺世纪科技有限公司 A kind of method and device playing back live video
CN111339038A (en) * 2020-02-20 2020-06-26 网易(杭州)网络有限公司 Game video file generation method and device
CN111405358A (en) * 2020-03-24 2020-07-10 上海依图网络科技有限公司 Cache-based video frame extraction method, apparatus, medium, and system
CN112019905A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast playback method, computer equipment and readable storage medium
CN112445932A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Audio playing method and device, electronic equipment and computer storage medium
CN113301374A (en) * 2021-05-21 2021-08-24 北京字节跳动网络技术有限公司 Live broadcast audio and video processing method and device, client and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917590A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network live broadcasting system with playback function and player
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917590A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network live broadcasting system with playback function and player
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113626A (en) * 2019-05-13 2019-08-09 北京奇艺世纪科技有限公司 A kind of method and device playing back live video
CN110113626B (en) * 2019-05-13 2021-05-07 北京奇艺世纪科技有限公司 Method and device for playing back live video
CN112019905A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast playback method, computer equipment and readable storage medium
CN112445932A (en) * 2019-09-05 2021-03-05 阿里巴巴集团控股有限公司 Audio playing method and device, electronic equipment and computer storage medium
CN111339038A (en) * 2020-02-20 2020-06-26 网易(杭州)网络有限公司 Game video file generation method and device
CN111339038B (en) * 2020-02-20 2023-04-18 网易(杭州)网络有限公司 Game video file generation method and device
CN111405358A (en) * 2020-03-24 2020-07-10 上海依图网络科技有限公司 Cache-based video frame extraction method, apparatus, medium, and system
CN113301374A (en) * 2021-05-21 2021-08-24 北京字节跳动网络技术有限公司 Live broadcast audio and video processing method and device, client and server

Similar Documents

Publication Publication Date Title
CN108632675A (en) A kind of direct playing and playback method, apparatus and equipment
CN108235102B (en) Service processing method, device and storage medium
CN109756787A (en) The conferring system of the generation method of virtual present, device and virtual present
CN109672922A (en) A kind of game video clipping method and device
US20160199742A1 (en) Automatic generation of a game replay video
CN113058270A (en) Live broadcast interaction method and device, storage medium and electronic equipment
CN104519124B (en) A kind of distribution method and device of virtual resource
CN104243463B (en) A kind of method and apparatus for showing virtual objects
US20090064017A1 (en) Tuning/customization
CN109889908A (en) A kind of interaction live broadcasting method, device, electronic equipment and storage medium
US20080081700A1 (en) System for providing and presenting fantasy sports data
CN110290419A (en) Video broadcasting method, device and electronic equipment
JP5059089B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, USER TERMINAL, COMPUTER PROGRAM, AND COMMENT SERVER
CN108123945A (en) Distribution method, system and the intelligent terminal of random data
CN109089169A (en) A kind of live streaming method for switching between, device and storage medium
CN108377396A (en) A kind of live streaming method for recording, device and equipment
CN109218765A (en) A kind of net cast room recommended method and device
WO2019027681A1 (en) System and method for managing predictions of outcomes in live events in real time
CN109874047A (en) Living broadcast interactive method, apparatus and system
JP5718872B2 (en) Information processing apparatus, program, information processing system
CN106991581A (en) Information popularization method and device, server and electronic equipment
CN109982101A (en) A kind of method, apparatus, equipment and the storage medium of live streaming processing
CN109218766B (en) Method for summoning bean vermicelli, live broadcast platform server and anchor terminal
CN114143371A (en) Screen projection method and device, storage medium and electronic equipment
CN114073100B (en) Mapping view of digital content

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181009

WD01 Invention patent application deemed withdrawn after publication