CN105872797A - Live broadcast time shifting method and device - Google Patents

Live broadcast time shifting method and device Download PDF

Info

Publication number
CN105872797A
CN105872797A CN201510848876.6A CN201510848876A CN105872797A CN 105872797 A CN105872797 A CN 105872797A CN 201510848876 A CN201510848876 A CN 201510848876A CN 105872797 A CN105872797 A CN 105872797A
Authority
CN
China
Prior art keywords
time
index file
index
file
data
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
CN201510848876.6A
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.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Cloud Computing 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 LeTV Cloud Computing Co Ltd filed Critical LeTV Cloud Computing Co Ltd
Priority to CN201510848876.6A priority Critical patent/CN105872797A/en
Publication of CN105872797A publication Critical patent/CN105872797A/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a live broadcast time shifting method and device, wherein the method provided by the invention mainly comprises following steps of obtaining a data request, wherein the data request is used for applying an index file, and the index file is used for recording the index of a video file; locally searching the index file corresponding to first time in the data request; sending the index file corresponding to second time to a live broadcast client if there is no index file corresponding to first time in the local, thus enabling the live broadcast client to obtain and play the video file according to the index in the index file corresponding to the second time, wherein the second time is the time point at which there is the corresponding index file in the local, and the time difference of the second time and the first time is the minimum. Compared with the prior art, the method and the device have the advantages that when the index file corresponding to the first time cannot be searched, the index file corresponding to the second time is directly sent to the live broadcast client, wrong prompt is unnecessarily sent, the video is unnecessarily started by the user, and the user operations are simplified.

Description

The method and apparatus of direct broadcast time-shift
Technical field
The present invention relates to communication technical field, the method and apparatus particularly relating to a kind of direct broadcast time-shift.
Background technology
During direct broadcast time-shift refers to net cast, user can arbitrarily play back the live interior of time in the past Holding, i.e. for the video of the most live mistake, user can click on the operations such as rewind, F.F. and time-out at any time. It follows that utilize direct broadcast time-shift technology will not allow again user miss live during splendid contents.
But, but there is problems in that during existing net cast to enter when user drags progress bar During row forwarding operation, usually progress bar can be dragged to the time point that current live time point is later, and The video data of the time point not correspondence that current live time point is later.Therefore, server can be by Miscue is sent to live client, after user sees this miscue, it is necessary to reopens this and regards Frequency ability normal play, operates the most loaded down with trivial details.
Summary of the invention
The method and apparatus that the invention provides a kind of direct broadcast time-shift, in order to solve to work as in prior art user When dragging the video data that the time point after progress bar does not has correspondence, miscue can be shown, now, use Family must restart this video ability normal play, so that the problem that operation is the most loaded down with trivial details.
On the one hand, the present invention provides a kind of method of direct broadcast time-shift, described method to include:
Obtaining request of data, described request of data is used for applying for that index file, described index file are used for remembering The index of record video file;
Index file corresponding to the very first time in described request of data is searched in this locality;
If this locality does not has index file corresponding to the described very first time, then by the index literary composition corresponding second time Part is sent to live client, in order to described live client is civilian according to the index that described second time is corresponding Index in part obtains and playing video file, and wherein, described second time is local containing corresponding rope Quotation part and the time point minimum with the time difference of the described very first time.
On the other hand, the present invention provides the device of a kind of direct broadcast time-shift, described device to include:
Acquiring unit, is used for obtaining request of data, and described request of data is used for applying for index file, described Index file is for recording the index of video file;
Search unit, first in searching, in this locality, the described request of data that described acquiring unit obtains The index file that time is corresponding;
Transmitting element, is used for when the lookup result of described lookup unit is that this locality does not has the described very first time pair During the index file answered, the index file corresponding second time is sent to live client, in order to described Live client obtains and plays video literary composition according to the index in index file corresponding to described second time Part, wherein, described second time be local containing corresponding index file and with the described very first time time The time point that difference is minimum.
The method and apparatus of the direct broadcast time-shift that the present invention provides, it is possible to after obtaining request of data, in this locality Search index file corresponding to the very first time in request of data, corresponding when not finding the very first time During index file, directly send minimum with the time difference very first time to live client and contain corresponding index The index file that second time of file is corresponding, in order to live client is according to index corresponding to the second time Index in file obtains and playing video file, and thus may indicate that user is nearest away from the very first time The time point having video data was the second time, and without sending miscue to live client, thus User without restart video just can normal play, and then simplify user operation.
Accompanying drawing explanation
In order to be illustrated more clearly that the present invention or technical scheme of the prior art, below will to embodiment or In description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the method for a kind of direct broadcast time-shift that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the method for the another kind of direct broadcast time-shift that Fig. 2 provides for the embodiment of the present invention;
The composition frame chart of the device of a kind of direct broadcast time-shift that Fig. 3 provides for the embodiment of the present invention;
The composition frame chart of the device of the another kind of direct broadcast time-shift that Fig. 4 provides for the embodiment of the present invention;
The entity structure schematic diagram of a kind of server that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
A kind of method embodiments providing direct broadcast time-shift, as it is shown in figure 1, the method includes:
101, request of data is obtained.
Wherein, request of data is used for applying for index file, and index file is for recording the index of video file. In actual applications, the live video stream of acquisition can be cut into multiple identical duration or difference by server The ts file (i.e. video file) of duration, then generates the m3u8 file recording these ts file indexes (i.e. index file).When the ts file that live user end to server application is corresponding sometime, need Want first corresponding to this time of server application m3u8 file, then according to the ts of record in m3u8 file The index of file obtains the address of ts file, and according to this address to server application ts file, gets Ts file is i.e. can play after ts file.In m3u8 file, record has time started (i.e. the 1st ts file Time started), the title (or being directly the address of ts file) of ts file and ts file time The contents such as length.
It should be noted that request of data is carried the application time corresponding to index file that needs, i.e. use Family drags the time after progress bar or current live time.
102, the index file that the very first time in request of data is searched in this locality is corresponding.
Wherein, the very first time is that the user carried in request of data drags time after progress bar or current The live time.Such as, the current live time is 17:30:50, if user does not drag progress bar, then counts Being 17:30:50 according to the very first time in request, if user will drag progress bar to 17:15:00, then data are asked The very first time in asking is 17:15:00.
After server receives request of data, the very first time can be obtained from request of data, then look into Look for and local whether store index file corresponding to the very first time, have the very first time corresponding if locally stored Index file, then to the index file that the live client transmission very first time is corresponding, if this locality does not has first The index file that time is corresponding, then perform step 103.
If 103 this locality do not have index file corresponding to the very first time, then by the index literary composition corresponding second time Part is sent to live client, in order to live client is according to the rope in index file corresponding to the second time Draw acquisition playing video file.
Wherein, the second time was the local index file containing correspondence and the time difference minimum with the very first time Time point, the i.e. local index file corresponding containing the second time, and the second time and the very first time time Difference minimum.When this locality does not has index file corresponding to the very first time, server is not sent out to live client Send miscue, but by containing manipulative indexing file and second time minimum with the time difference very first time Corresponding index file is sent to live client, in order to live client is according to rope corresponding to the second time Index in quotation part obtains and playing video file.
It should be noted that in actual applications, server is probably with live client and directly counts According to alternately, it is also possible to indirectly carry out data interaction (i.e. needing other equipment to forward), at this not Limit.
In actual applications, when the time after user drags progress bar exceedes the current live time, service Device local the most not to should the index file of time and video file, if now will be with this time difference time The index file (i.e. current live time) that the minimum time is corresponding is sent to live client, it is possible to refer to Video after showing user's current live time cannot be watched, and can only watch current live time and current Video before the live time.
Additionally, the embodiment of the present invention can apply in cloud live broadcast system.In cloud live broadcast system, relaying The live video stream that server meeting Real-time Collection photographic head is recorded, and live video stream is cut into multiple ts File, generates the m3u8 file comprising ts file index, is saved in this locality.When the live client of cloud needs When obtaining sometime corresponding ts file, need first to CDN (Content Delivery Network, Content distributing network) server sends for applying for the request of data of m3u8 file;Work as CDN server After receiving this request of data, can first judge the local m3u8 file whether storing correspondence, if having, Then directly sending m3u8 file to the live client of cloud, if not having, then can send number to front server According to request;After front server receives request of data, can first judge whether this locality has stored equally right The m3u8 file answered, if having, is then sent to the live client of cloud through CDN server by m3u8 file, If no, then request of data can be sent to Relay Server;After Relay Server receives request of data, Can first judge the local m3u8 file whether storing correspondence, if having, then through front server, CDN M3u8 file is sent to the live client of cloud by server, if not having, then can search with time apllied Between m3u8 file corresponding to minimum time time difference, and by the m3u8 file that finds through front server, CDN server is sent to the live client of cloud, in order to the live client of cloud is by the m3u8 literary composition received Index in part obtains and plays the ts file of correspondence.
The method of the direct broadcast time-shift that the embodiment of the present invention provides, it is possible to after obtaining request of data, in this locality Search index file corresponding to the very first time in request of data, corresponding when not finding the very first time During index file, directly send minimum with the time difference very first time to live client and contain corresponding index The index file that second time of file is corresponding, in order to live client is according to index corresponding to the second time Index in file obtains and playing video file, and thus may indicate that user is nearest away from the very first time The time point having video data was the second time, and without sending miscue to live client, thus User without restart video just can normal play, and then simplify user operation.
Further, according to above-described embodiment, an alternative embodiment of the invention additionally provides a kind of live The method of time shift, as in figure 2 it is shown, the method includes:
201, request of data is obtained.
This step is identical with the specific implementation of above-mentioned steps 101, repeats no more.
202, the index file that the very first time in request of data is searched in this locality is corresponding.
Above-mentioned steps 101 is mentioned in index file record have the time started, video file title (or The address of person's video file) and the content such as duration of video file, therefore, server can be according to rope In quotation part, content about the time determines which index file is index file corresponding to the very first time.
Concrete, server travels through locally stored index file;Determine the index file pair of current traversal The time period answered;If the time period comprises the very first time, it is determined that when the index file of current traversal is first Between corresponding index file;If the time period does not comprise the very first time, it is determined that the index file of current traversal It not index file corresponding to the very first time.
Wherein, when the time period that the index file determining current traversal is corresponding, server can obtain rope In quotation part, the summation (i.e. total duration) of the duration of all video files, then obtains time started, root According to time started and total duration, determine the termination time, thus obtain and be made up of time started and termination time Time period.If the time period that certain index file is corresponding comprises the very first time, then server may determine that this Index file contains the index of the video file corresponding with the very first time such that it is able to obtain video file Play out;If the time period that all index files are corresponding does not all comprise the very first time, then server is permissible Determine the local index file the most corresponding with the very first time, do not have and the very first time pair so that it is determined that local The video file answered.
If 203 this locality do not have index file corresponding to the very first time, then according to locally stored index file, Determined for the second time.
If this locality does not has index file corresponding to the very first time, then explanation this locality is the most corresponding with the very first time Video file.Now, server can be by the index literary composition corresponding second time nearest with the very first time Part is sent to live client, in order to live client obtains also according to the index file that the second time is corresponding Play corresponding video file.
In actual applications, the index file that server local does not has the very first time corresponding mainly have two former Cause: (1) very first time is more than the current live time, and it is corresponding that server does not the most collect the very first time Live video stream;(2) if the video file stored before and index file can periodically be deleted by server, And the very first time is less than the current live time, then server by the index file corresponding very first time and Video file is deleted.
Accordingly, it is determined that the specific implementation of the second time can be: if the very first time is more than current live Time, then the time difference terminating the time in the time period that the calculating very first time is corresponding with index file, and will The termination time minimum with the time difference very first time was defined as the second time;If the very first time is less than current live Time, then the time difference of the time started in the time period that the calculating very first time is corresponding with index file, and will The time started minimum with the time difference very first time was defined as the second time.
204, the index file corresponding second time is sent to live client, in order to live client root Obtain and playing video file according to the index in the index file that the second time is corresponding.
In actual applications, when server does not finds index file corresponding to the very first time, Ke Yizhi Connect and the index file corresponding second time is sent to live client;First can also will comprise for the second time Data response be sent to live client, then receive the number carrying for the second time that live client sends According to request.
Wherein, data response is used for the index file indicating live second time of client application corresponding, i.e. The response of these data is for notifying that live client does not has the index file of the corresponding very first time, and has correspondence Index file and the time minimum with the time difference very first time were the second time, can apply for that the second time is corresponding Index file.
Further, according to said method embodiment, an alternative embodiment of the invention additionally provides one The device of direct broadcast time-shift, this device is applied to server side, as it is shown on figure 3, this device includes: obtain Unit 31, lookup unit 32 and transmitting element 33.Wherein,
Acquiring unit 31, is used for obtaining request of data, and request of data is used for applying for index file, index literary composition Part is for recording the index of video file;
In actual applications, server the live video stream of acquisition can be cut into multiple identical duration or The ts file (i.e. video file) of different durations, then generates the m3u8 recording these ts file indexes File (i.e. index file).When the ts file that live user end to server application is corresponding sometime, Need first corresponding to this time of server application m3u8 file, then according to record in m3u8 file The index of ts file obtains the address of ts file, and according to this address to server application ts file, obtains Ts file is i.e. can play after ts file.In m3u8 file, record has time started (i.e. the 1st ts literary composition The time started of part), the title (or being directly the address of ts file) of ts file and ts file The contents such as duration.
It should be noted that request of data is carried the application time corresponding to index file that needs, i.e. use Family drags the time after progress bar or current live time.
Search unit 32, when being used for first in the request of data that acquiring unit 31 obtains is searched in this locality Between corresponding index file;
Wherein, the very first time is that the user carried in request of data drags time after progress bar or current The live time.
Transmitting element 33, is that this locality does not has the very first time corresponding for working as the lookup result searching unit 32 Index file time, the index file corresponding second time is sent to live client, in order to live visitor Family end obtains and playing video file according to the index in index file corresponding to the second time, wherein, the Two times were the local index file containing correspondence and the time point minimum with the time difference of the very first time.
It should be noted that in actual applications, server is probably with live client and directly counts According to alternately, it is also possible to indirectly carry out data interaction (i.e. needing other equipment to forward), at this not Limit.
In actual applications, when the time after user drags progress bar exceedes the current live time, service Device local the most not to should the index file of time and video file, if now transmitting element 33 will be with The index file (i.e. current live time) that the time of this time difference time minimum is corresponding is sent to live client End, it is possible to the video after instruction user's current live time cannot be watched, when can only watch current live Between and the current live time before video.
The device of the direct broadcast time-shift that the embodiment of the present invention provides, it is possible to after obtaining request of data, in this locality Search index file corresponding to the very first time in request of data, corresponding when not finding the very first time During index file, directly send minimum with the time difference very first time to live client and contain corresponding index The index file that second time of file is corresponding, in order to live client is according to index corresponding to the second time Index in file obtains and playing video file, and thus may indicate that user is nearest away from the very first time The time point having video data was the second time, and without sending miscue to live client, thus User without restart video just can normal play, and then simplify user operation.
Further, as shown in Figure 4, transmitting element 33, including:
Determine subelement 331, for according to locally stored index file, determined for the second time;
Send subelement 332, for index literary composition corresponding to the second time that subelement 331 determines will be determined Part is sent to live client.
In actual applications, the index file that server local does not has the very first time corresponding mainly have two former Cause: (1) very first time is more than the current live time, and it is corresponding that server does not the most collect the very first time Live video stream;(2) if the video file stored before and index file can periodically be deleted by server, And the very first time is less than the current live time, then server by the index file corresponding very first time and Video file is deleted.
Therefore, further, as shown in Figure 4, subelement 331 is determined, including:
Computing module 3311, by based on when the very first time more than the current live time time, calculate the very first time The time difference terminating the time in the time period corresponding with index file;
Determine module 3312, for the end minimum with the time difference very first time obtained by computing module 3311 Only the time was defined as the second time;
Computing module 3311, is additionally operable to, when the very first time is less than the current live time, calculate the very first time The time difference of the time started in time period corresponding with index file;
Determining module 3312, be additionally operable to obtain computing module 3311 is minimum with the time difference very first time Time started was defined as the second time.
Further, transmitting element 33, it is additionally operable to be sent to directly the index file corresponding second time Before broadcasting client, the data comprising for the second time response being sent to live client, data response is used In the index file that instruction live second time of client application is corresponding, i.e. these data response is used for notifying directly Broadcast client and there is no the index file of the corresponding very first time, and have index file and and the very first time of correspondence The time of the minimum time difference was the second time, the index file that the second time of can applying for is corresponding.
As shown in Figure 4, this device also includes:
Receive unit 34, for receiving the request of data carrying for the second time that live client sends.
Further, as shown in Figure 4, unit 32 is searched, including:
Traversal subelement 321, for traveling through locally stored index file;
Determine subelement 322, corresponding for determining the index file that traversal subelement 321 currently travels through Time period;
Wherein, when determining that subelement 322 determines time period corresponding to the index file of current traversal, can To obtain the summation (i.e. total duration) of the duration of all video files in index file, then obtain and start Time, finally according to time started and total duration, determine the termination time, thus obtain by the time started and The time period of termination time composition.
Determine subelement 322, be additionally operable to when the time period comprises the very first time, determine the rope of current traversal Quotation part is index file corresponding to the very first time;When the time period does not comprises the very first time, determine current The index file of traversal is not index file corresponding to the very first time.
This device embodiment is corresponding with preceding method embodiment, and for ease of reading, this device embodiment is no longer Detail content in preceding method embodiment is repeated one by one, it should be understood that in the present embodiment Device corresponding can realize the full content in preceding method embodiment.
It should be noted that for the device of above-mentioned direct broadcast time-shift, every embodiment of the present invention uses and arrives The function of unit module can pass through hardware processor (hardware processor) and realize.
It is exemplary, as it is shown in figure 5, Fig. 5 shows a kind of server that the embodiment of the present invention provides Entity structure schematic diagram, this server may include that processor (processor) 41, communication interface (Communications Interface) 42, memorizer (memory) 43 and bus 44, wherein, processor 41, communication interface 42, memorizer 43 complete mutual communication by bus 44.Communication interface 42 May be used for the information transmission between server and client.Processor 41 can call in memorizer 43 Logical order, to perform following method: obtain request of data, request of data is used for applying for index file, Index file is for recording the index of video file;The very first time in request of data is searched in this locality is corresponding Index file;If this locality does not has index file corresponding to the very first time, then by the rope corresponding second time Quotation part is sent to live client, in order to live client is according in index file corresponding to the second time Index obtain and playing video file, wherein, the second time be local containing corresponding index file and The time point minimum with the time difference of the very first time.
Additionally, the logical order in above-mentioned memorizer 43 can be realized by the form of SFU software functional unit And during as independent production marketing or use, can be stored in a computer read/write memory medium. Based on such understanding, the portion that prior art is contributed by technical scheme the most in other words Dividing or the part of this technical scheme can embody with the form of software product, this computer software produces Product are stored in a storage medium, including some instructions with so that a computer equipment (can be Personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention All or part of step.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various medium that can store program code such as magnetic disc or CD.
Device embodiment described above is only schematically, wherein said illustrates as separating component Unit can be or may not be physically separate, the parts shown as unit can be or Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each reality The mode of executing can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part.Based on such understanding, the portion that prior art is contributed by technique scheme the most in other words Dividing and can embody with the form of software product, this computer software product can be stored in computer can Read in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that one Computer equipment (can be personal computer, server, or the network equipment etc.) performs each to be implemented The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than to it Limit;Although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel it is understood that the technical scheme described in foregoing embodiments still can be modified by it, or Person carries out equivalent to wherein portion of techniques feature;And these amendments or replacement, do not make corresponding skill The essence of art scheme departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the method for a direct broadcast time-shift, it is characterised in that described method includes:
Obtaining request of data, described request of data is used for applying for that index file, described index file are used for remembering The index of record video file;
Index file corresponding to the very first time in described request of data is searched in this locality;
If this locality does not has index file corresponding to the described very first time, then by the index literary composition corresponding second time Part is sent to live client, in order to described live client is civilian according to the index that described second time is corresponding Index in part obtains and playing video file, and wherein, described second time is local containing corresponding rope Quotation part and the time point minimum with the time difference of the described very first time.
Method the most according to claim 1, it is characterised in that by the index literary composition corresponding second time Part is sent to live client, including:
According to locally stored index file, determine described second time;
The index file corresponding described second time is sent to described live client.
Method the most according to claim 2, it is characterised in that according to locally stored index file, Determine described second time, including:
If the described very first time is more than the current live time, then calculate the described very first time and index file pair The time difference terminating the time in the time period answered, and by the termination time minimum with the described time difference very first time It is defined as described second time;
If the described very first time is less than the current live time, then calculate the described very first time and index file pair The time difference of the time started in the time period answered, and by the time started minimum with the described time difference very first time It is defined as described second time.
4. according to the method according to any one of claim 1-3, it is characterised in that by the second time Before corresponding index file is sent to live client, described method farther includes:
The data comprising described second time response is sent to described live client, and described data respond For indicating index file corresponding to the second time described in live client application;
Receive the request of data carrying described second time that described live client sends.
Method the most according to claim 4, it is characterised in that search described request of data in this locality In index file corresponding to the very first time, including:
Travel through locally stored index file;
Determine the time period that the index file of current traversal is corresponding;
If the described time period comprises the described very first time, it is determined that the index file of described current traversal is institute State index file corresponding to the very first time;
If the described time period does not comprise the described very first time, it is determined that the index file of described current traversal is not It is index file corresponding to the described very first time.
6. the device of a direct broadcast time-shift, it is characterised in that described device includes:
Acquiring unit, is used for obtaining request of data, and described request of data is used for applying for index file, described Index file is for recording the index of video file;
Search unit, first in searching, in this locality, the described request of data that described acquiring unit obtains The index file that time is corresponding;
Transmitting element, is used for when the lookup result of described lookup unit is that this locality does not has the described very first time pair During the index file answered, the index file corresponding second time is sent to live client, in order to described Live client obtains and plays video literary composition according to the index in index file corresponding to described second time Part, wherein, described second time be local containing corresponding index file and with the described very first time time The time point that difference is minimum.
Device the most according to claim 6, it is characterised in that described transmitting element, including:
Determine subelement, for according to locally stored index file, determine described second time;
Send subelement, for by the index literary composition corresponding described described second time determining that subelement determines Part is sent to described live client.
Device the most according to claim 7, it is characterised in that described determine subelement, including:
Computing module, is used for when the described very first time is more than the current live time, when calculating described first Between time difference terminating the time in time period corresponding with index file;
Determine module, for the termination minimum with the described time difference very first time obtained by described computing module Time is defined as described second time;
Described computing module, is additionally operable to, when the described very first time is less than the current live time, calculate described The time difference of the time started in the time period that the very first time is corresponding with index file;
Described determining module, be additionally operable to obtain described computing module is minimum with the described time difference very first time Time started be defined as described second time.
9. according to the device according to any one of claim 6-8, it is characterised in that described transmitting element, It is additionally operable to before the index file corresponding second time is sent to live client, described will be comprised The data response of two times is sent to described live client, and the response of described data is used for indicating live client The index file that end application described second time is corresponding;
Described device farther includes:
Receiving unit, the data carrying described second time sent for receiving described live client please Ask.
Device the most according to claim 9, it is characterised in that described lookup unit, including:
Traversal subelement, for traveling through locally stored index file;
Determine subelement, for determining the time that index file that described traversal subelement currently travels through is corresponding Section;
Described determine subelement, be additionally operable to when the described time period comprises the described very first time, determine described The index file of current traversal is index file corresponding to the described very first time;Do not comprise when the described time period During the described very first time, determine that the index file of described current traversal is not rope corresponding to the described very first time Quotation part.
CN201510848876.6A 2015-11-27 2015-11-27 Live broadcast time shifting method and device Pending CN105872797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510848876.6A CN105872797A (en) 2015-11-27 2015-11-27 Live broadcast time shifting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510848876.6A CN105872797A (en) 2015-11-27 2015-11-27 Live broadcast time shifting method and device

Publications (1)

Publication Number Publication Date
CN105872797A true CN105872797A (en) 2016-08-17

Family

ID=56623822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510848876.6A Pending CN105872797A (en) 2015-11-27 2015-11-27 Live broadcast time shifting method and device

Country Status (1)

Country Link
CN (1) CN105872797A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993236A (en) * 2017-04-01 2017-07-28 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN107835227A (en) * 2017-09-28 2018-03-23 成都路行通信息技术有限公司 A kind of request of data method optimizing method
CN107864382A (en) * 2017-10-24 2018-03-30 广东省南方数字电视无线传播有限公司 Video broadcasting method, device and system
CN108024157A (en) * 2016-10-28 2018-05-11 中国电信股份有限公司 Realize method and system, set-top box and the fringe node with the live seamless time shifts of HLS
CN110933476A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 HLS first screen time optimization scheme based on Relay
CN111107379A (en) * 2019-12-30 2020-05-05 安徽三拓智能科技有限公司 Cloud storage and on-demand method based on distributed videos
CN114339432A (en) * 2022-01-12 2022-04-12 中国联合网络通信集团有限公司 Video pseudo-live broadcasting method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202900A (en) * 2007-03-12 2008-06-18 深圳市同洲电子股份有限公司 Method for switching living broadcast and playback of digital television and video server
US20090136204A1 (en) * 2007-11-26 2009-05-28 Yueh-Hua Chen System and method for remote live pause
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN103581693A (en) * 2013-11-12 2014-02-12 北京清源新创科技有限公司 Internet-oriented large-scale live time shifting method and system based on fragment transmission
CN103618912A (en) * 2013-11-26 2014-03-05 乐视网信息技术(北京)股份有限公司 Live telecast time shifting method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202900A (en) * 2007-03-12 2008-06-18 深圳市同洲电子股份有限公司 Method for switching living broadcast and playback of digital television and video server
US20090136204A1 (en) * 2007-11-26 2009-05-28 Yueh-Hua Chen System and method for remote live pause
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN103581693A (en) * 2013-11-12 2014-02-12 北京清源新创科技有限公司 Internet-oriented large-scale live time shifting method and system based on fragment transmission
CN103618912A (en) * 2013-11-26 2014-03-05 乐视网信息技术(北京)股份有限公司 Live telecast time shifting method and server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108024157A (en) * 2016-10-28 2018-05-11 中国电信股份有限公司 Realize method and system, set-top box and the fringe node with the live seamless time shifts of HLS
CN106993236A (en) * 2017-04-01 2017-07-28 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN106993236B (en) * 2017-04-01 2019-07-23 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN107835227A (en) * 2017-09-28 2018-03-23 成都路行通信息技术有限公司 A kind of request of data method optimizing method
CN107864382A (en) * 2017-10-24 2018-03-30 广东省南方数字电视无线传播有限公司 Video broadcasting method, device and system
CN110933476A (en) * 2019-12-06 2020-03-27 杭州视洞科技有限公司 HLS first screen time optimization scheme based on Relay
CN111107379A (en) * 2019-12-30 2020-05-05 安徽三拓智能科技有限公司 Cloud storage and on-demand method based on distributed videos
CN114339432A (en) * 2022-01-12 2022-04-12 中国联合网络通信集团有限公司 Video pseudo-live broadcasting method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN105872797A (en) Live broadcast time shifting method and device
KR102438200B1 (en) Video editing using contextual data and content discovery using clusters
KR101605156B1 (en) Device, method, and computer for providing file deleting service
CN108702369B (en) Interaction method and device for mobile terminal and cloud platform of unmanned aerial vehicle
CN111447505B (en) Video clipping method, network device, and computer-readable storage medium
CN105630977B (en) Application program recommended method, apparatus and system
CN102487456A (en) Method for providing visit rate of online video and device thereof
CN105868390A (en) Method and device for recommending personalized information
CN107798561B (en) Audio playing and sharing method and device, storage medium and electronic equipment
CN105577772A (en) Material receiving method, material uploading method and device
CN105955569A (en) File sharing method and apparatus
CN103049540A (en) Method and device for burning large files
CN108476336A (en) Identify that the audience's of content channel checks characteristic
CN113949933B (en) Playing data analysis method, device, equipment and storage medium
CN109151600B (en) Special effect missing compensation method and device, server and storage medium
CN111918083A (en) Video clip identification method, device, equipment and storage medium
US20140047035A1 (en) Distributing collaborative computer editing system
TW201227268A (en) Data backup system and data backup and retrival method
CN114979743B (en) Method, device, equipment and medium for displaying audiovisual works
CN104951920A (en) Device and method for service interface processing
CN111190513B (en) Visual event analysis method and device, computer equipment and storage medium
CN107885807A (en) A kind of file saving method, device, Intelligent flat and storage medium
RU141240U1 (en) SYSTEM FOR REMOVING RESIDUAL INFORMATION FROM MEMORY OF TERMINALS AND MULTI-POINT CONFERENCE SERVERS
CN108228829B (en) Method and apparatus for generating information
CN108269104B (en) Media information delivery method, delivery engine server and media information delivery system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160817