CN103607639A - Live broadcast time shifting method and server - Google Patents

Live broadcast time shifting method and server Download PDF

Info

Publication number
CN103607639A
CN103607639A CN201310615655.5A CN201310615655A CN103607639A CN 103607639 A CN103607639 A CN 103607639A CN 201310615655 A CN201310615655 A CN 201310615655A CN 103607639 A CN103607639 A CN 103607639A
Authority
CN
China
Prior art keywords
time
index file
shift
live broadcast
historical index
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
CN201310615655.5A
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 Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310615655.5A priority Critical patent/CN103607639A/en
Publication of CN103607639A publication Critical patent/CN103607639A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a time shifting method and server for live broadcast streaming media, and relates to the field of the multimedia internet. The capacity of storing a historical index file for a long time of the server is achieved by building a historical index file library, and a time shifting request within a long time of a user terminal can be effectively supported. According to the scheme, the Nth live broadcast time shifting request aimed at the live broadcast streaming media from an electronic device is received, the Nth live broadcast time shifting request comprises a time shifting time which is the time shifting starting time+ N* a preset time length, N is larger than 1, and the time shifting time is the time indicated by the live broadcast time shifting request of the first live broadcast streaming medium from the electronic device. A historical index file corresponding to the time shifting time is searched for in the historical index file library according to the time shifting time and is output to the electronic device, and therefore the electronic device plays a live broadcast streaming medium section in the historical index file corresponding to the time shifting time.

Description

A kind of direct broadcast time-shift method and server
Technical field
The present invention relates to multimedia internet arena, relate in particular to a kind of direct broadcast time-shift method and server.
Background technology
Along with the extensive of growing and network multimedia of science and technology popularized, increasing user is by internet viewing live video.
The realization of network direct broadcasting technology is at present mostly based on class HLS(HTTP Live Streaming, and the stream media network of HTTP transmits) agreement, and be to take Streaming Media as object, adopt stream transmission mode to carry out.Wherein, class HLS agreement is mainly used in as user terminal provides audio frequency and video service, and this agreement comprises m3u (8) index file and TS(Transport Stream, transport stream) media slicing file.Wherein, TS media slicing files specify is divided into a plurality of compressed packages by Streaming Medias such as audio frequency and video through special compress mode, and by server, to user terminal, transmitted continuously, in real time so that user through the startup time delay in several seconds or tens seconds can be on user terminal the streaming video file such as playing audio-video; M3u (8) index file, for buffer memory compressed package, can be deleted in real time the index file of old m3u (8) in the process of stream transmission.
Yet, due to the regulation of class HLS agreement, in the process of stream transmission, need to delete in real time the index file of old m3u (8), therefore, if when user terminal is asked deleted m3u (8) index file in the process of stream transmission, server cannot carry out audio/video pushing.
Summary of the invention
Embodiments of the invention provide a kind of time-shifting method and server of live broadcast stream media, by setting up historical index file storehouse, realize the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.
For achieving the above object, embodiments of the invention adopt following technical scheme:
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, set up historical index file storehouse, described historical index file storehouse comprises at least one historical index file, and described at least one historical index file is for storing the live broadcast stream media of Preset Time length
Described method comprises:
Reception is from N the direct broadcast time-shift request for live broadcast stream media of electronic equipment, described N direct broadcast time-shift request includes time shift constantly, described time shift is Preset Time length described in time shift initial time+N* constantly, wherein, N is greater than 1, and described time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of described electronic equipment;
According to described time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with described time shift; Wherein, described historical index file storehouse comprises at least one historical index file, and described at least one historical index file is for storing the live broadcast stream media section of described live broadcast stream media, and the playing duration of described live broadcast stream media section equals Preset Time length;
Export the historical index file constantly corresponding with described time shift to described electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of described time shift, cut into slices.
The generation method of described at least one historical index file comprises:
According to described Preset Time length, live broadcast stream media is cut into slices piecemeal, generate described at least one historical index file; Section when wherein, the indication of the file name of described at least one historical index file is cut into slices accordingly to described live broadcast stream media constantly.
Described according to the described time shift moment, in historical index file storehouse, search the historical index file constantly corresponding with described time shift and comprise:
Described time shift is converted to corresponding section constantly constantly;
According to the section of described correspondence constantly, the historical index file that locating file title is mated constantly with described corresponding section.
Before step in described reception from the individual direct broadcast time-shift request for live broadcast stream media of N of electronic equipment, described method also comprises:
Reception is from the direct broadcast time-shift request of the 1st live broadcast stream media of electronic equipment, and described the 1st direct broadcast time-shift request includes described time shift initial time;
According to described time shift constantly, in historical index file storehouse, search the historical index file corresponding with described time shift initial time;
Export the historical index file corresponding with described time shift initial time to described electronic equipment, so that electronic equipment is play the live broadcast stream media section in the historical index file corresponding with described time shift initial time.
To be described electronic equipment generate in response to user's specific operation in the direct broadcast time-shift request of described the 1st live broadcast stream media, wherein, described user's specific operation comprises that user triggers time-shifting function button, user triggers rewind down button or user drags the playback head on time shaft;
Described N is periodically to generate after described electronic equipment generates the direct broadcast time-shift request of described the 1st live broadcast stream media for the direct broadcast time-shift request of live broadcast stream media.
Embodiments of the invention provide a kind of server, comprising:
Receiving element, for receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, described N direct broadcast time-shift request includes time shift constantly, described time shift is Preset Time length described in time shift initial time+N* constantly, wherein, N is greater than 1, and described time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of described electronic equipment;
Search unit, for according to described time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with described time shift; Wherein, described historical index file storehouse comprises at least one historical index file, and described at least one historical index file is for storing the live broadcast stream media section of described live broadcast stream media, and the playing duration of described live broadcast stream media section equals Preset Time length;
Output unit, for exporting the historical index file constantly corresponding with described time shift to described electronic equipment, cuts into slices so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of described time shift.
Described server also comprises:
Pretreatment unit, for according to described Preset Time length, cuts into slices piecemeal to live broadcast stream media, generates described at least one historical index file; Section when wherein, the file name indication of described at least one historical index file is cut into slices accordingly to described live broadcast stream media constantly.
The described unit of searching, also for being constantly converted to described time shift corresponding section constantly; And according to the section of described correspondence constantly, the historical index file that locating file title is mated constantly with described corresponding section.
Described receiving element, also, for receiving the direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment, described the 1st direct broadcast time-shift request includes described time shift initial time;
The historical index file corresponding with described time shift initial time also, for according to described time shift constantly, searched in the described unit of searching in historical index file storehouse;
Described output unit, also for exporting the historical index file corresponding with described time shift initial time to described electronic equipment, so that electronic equipment is play the live broadcast stream media section in the historical index file corresponding with described time shift initial time.
To be described electronic equipment generate in response to user's specific operation in the direct broadcast time-shift request of described the 1st live broadcast stream media, wherein, described user's specific operation comprises that user triggers time-shifting function button, user triggers rewind down button or user drags the playback head on time shaft; Described N is periodically to generate after described electronic equipment generates the direct broadcast time-shift request of described the 1st live broadcast stream media for the direct broadcast time-shift request of live broadcast stream media.
Embodiments of the invention provide a kind of time-shifting method and server of live broadcast stream media, by setting up historical index file storehouse, historical index file includes historical index file in storehouse, historical index file stores the live broadcast stream media section of Preset Time length, this history index file can not be subject to the impact of class HLS agreement and need to delete in real time ancient deed, and then solved the problem that the index file that cannot live forever in prior art causes time shifting request failure, realized the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the time-shifting method of a kind of live broadcast stream media that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the time-shifting method of a kind of live broadcast stream media that Fig. 2 provides for the embodiment of the present invention;
The structural representation one of a kind of server that Fig. 3 provides for the embodiment of the present invention;
The structural representation two of a kind of server that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly understand the present invention.Yet, not it will be clear to one skilled in the art that in there is no other embodiment of these details and can realize the present invention yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
Electronic equipment, also claim electric terminal, can be that wireless terminal can be also catv terminal, wireless terminal can be to point to the equipment that user provides voice and/or data connectivity, has the portable equipment of wireless connecting function or is connected to other treatment facilities of radio modem.Wireless terminal can be through wireless access network (for example, RAN, Radio Access Network) communicate with one or more core net, wireless terminal can be mobile terminal, as mobile phone (or being called " honeycomb " phone) with there is the computer of mobile terminal, it can also be the intelligent television that can be connected to the Internet.
Embodiment mono-
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, as shown in Figure 1, comprising:
101, server receives N the direct broadcast time-shift request for live broadcast stream media from electronic equipment.
Wherein, N direct broadcast time-shift request in the embodiment of the present invention includes time shift constantly, and this time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment.
Further, before server receives the individual direct broadcast time-shift request for live broadcast stream media of N from electronic equipment, server is set up historical index file storehouse, historical index file storehouse comprises at least one historical index file, at least one historical index file is for storing the live broadcast stream media section of live broadcast stream media, and the playing duration of live broadcast stream media section equals Preset Time length.
Exemplary, Preset Time length is 1 minute, and certain time shift initial time is the 23rd minute the 19th second, N=4, and this time shift is the 23rd minute the 19th second+4*1 minute=the 27th minute the 19th second constantly so.
The form of mode transmission of audio, video and multimedia file in network that in addition, the live broadcast stream media in the embodiment of the present invention refers to flow.Live broadcast stream media file format is to support to adopt the media formats of stream transmission and broadcasting.So that needn't waiting until after whole file is all downloaded as non-stream is play, user just can see central content, but only need to through the startup time delay in several seconds or tens seconds, can on subscriber computer, utilize corresponding player to play streaming video files such as the video of compression or audio frequency, remaining part will be proceeded to download, until finish.
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, by setting up historical index file storehouse, have realized the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.First, server receives the N(N>1 from electronic equipment) the direct broadcast time-shift request of individual live broadcast stream media.This direct broadcast time-shift request carries time shift constantly, and server according to time shift constantly, is searched the historical index file constantly corresponding with time shift and exports electronic equipment to, the time shifting request of completing user in historical index file storehouse.
102, server according to time shift constantly, is searched the historical index file constantly corresponding with time shift in historical index file storehouse.
Wherein, the method that this history index file generates is: server, according to Preset Time length, is cut into slices piecemeal to live broadcast stream media, generates at least one historical index file; Section when wherein, the indication of the file name of at least one historical index file is cut into slices accordingly to live broadcast stream media constantly.
Exemplary, if Preset Time length is two minutes, server obtains after live broadcast stream media, this live broadcast stream media be take and cut into slices as the cycle for two minutes, this live broadcast stream media is decomposed into several little live broadcast stream medias, each little live broadcast stream media is this history index file, and name this history index file with current time, for example server on November 11st, 2013 19:23 divide section to obtain a historical index file, so can be by this history index file called after 201311111923.
Concrete, server is after the individual direct broadcast time-shift request for live broadcast stream media of N receiving from electronic equipment, according to the time shift in direct broadcast time-shift request constantly, the historical index file that locating file title is mated constantly with time shift, and then obtain historical index file.
103, server exports the historical index file constantly corresponding with time shift to electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift, cuts into slices.
Concrete, server finds with after the constantly corresponding historical index file of time shift in historical index file storehouse, this historical index file constantly corresponding with time shift is sent to electronic equipment, now electronic equipment is play the live broadcast stream media in the historical index file corresponding with the time shift moment, has realized the time-shifting function in live process.
Further, electronic equipment is after receiving the historical index file that server sends, and the direct broadcast time-shift request Concurrency that can generate is next time delivered to server.So far, server can periodically constantly receive the direct broadcast time-shift request of electronic equipment, and the historical index file of the continuous free order of output, to electronic equipment, has effectively been supported user terminal time shifting request in a long time.
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, by receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, N direct broadcast time-shift request includes time shift constantly, time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment; And then according to time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with time shift; Wherein, historical index file storehouse comprises at least one historical index file, and at least one historical index file is for storing the live broadcast stream media section of live broadcast stream media, and the playing duration of live broadcast stream media section equals Preset Time length; Finally export the historical index file constantly corresponding with time shift to electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift, cut into slices.The present invention is by setting up historical index file storehouse, historical index file includes historical index file in storehouse, historical index file stores the live broadcast stream media of Preset Time length, this history index file can not be subject to the impact of class HLS agreement and need to delete in real time ancient deed, and then solved the problem that the index file that cannot live forever in prior art causes time shifting request failure, realize the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.
Embodiment bis-
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, as shown in Figure 2, comprising:
201, server is set up historical index file storehouse, and historical index file storehouse comprises at least one historical index file.
Wherein, this history index file storehouse comprises at least one historical index file, and this history index file is for storing the live broadcast stream media section of Preset Time length.
The form of mode transmission of audio, video and multimedia file in network that in addition, this live broadcast stream media refers to flow.Live broadcast stream media file format is to support to adopt the media formats of stream transmission and broadcasting.So that needn't waiting until after whole file is all downloaded as non-stream is play, user just can see central content, but only need to through the startup time delay in several seconds or tens seconds, can on subscriber computer, utilize corresponding player to play streaming video files such as the video of compression or audio frequency, remaining part will be proceeded to download, until finish.
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, by setting up historical index file storehouse, have realized the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.First, server receives the N(N>1 from electronic equipment) the direct broadcast time-shift request of individual live broadcast stream media.This direct broadcast time-shift request carries time shift constantly, and server according to time shift constantly, is searched the historical index file constantly corresponding with time shift and exports electronic equipment to, the time shifting request of completing user in historical index file storehouse.
Concrete, the method that this history index file generates is: server, according to Preset Time length, is cut into slices piecemeal to live broadcast stream media, generates at least one historical index file; Section when wherein, the indication of the file name of at least one historical index file is cut into slices accordingly to live broadcast stream media constantly.
Exemplary, if Preset Time length is 1 minute, server obtains after live broadcast stream media, this live broadcast stream media be take and cut into slices as the cycle for 1 minute, this live broadcast stream media is decomposed into several little live broadcast stream medias, each little live broadcast stream media is this history index file, and name this history index file with current time, for example server divides section to obtain a historical index file on 09 11st, 2013 08:33, so can be by this history index file called after 2013/09/11/08/33.
202, electronic equipment generates the direct broadcast time-shift request of the 1st live broadcast stream media in response to user's specific operation.
Wherein, user's specific operation comprises and user triggers time-shifting function button, user to trigger the broadcasting that rewind down button or user drag on time shaft first-class.For example, user is watching live video < < transformer > > to 44 minute 20 seconds, now user drags and plays in the page playback head to 17 on time shaft minutes 10 seconds, and electronic equipment generates direct broadcast time-shift request in response to this operation of user; Or user now triggers and play preset time shift playback function key in the page, now electronic equipment generates direct broadcast time-shift request in response to this operation of user; Or user triggers and play preset fast backspace key in the page, now electronic equipment generates direct broadcast time-shift request in response to this operation of user.
203, server receives the direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment, and the 1st direct broadcast time-shift request includes time shift initial time.
Concrete, after the direct broadcast time-shift request of electronic equipment in response to user's the 1st live broadcast stream media of specific operation generation, being sent to server, the 1st direct broadcast time-shift request includes time shift initial time.
For example, user is watching live video < < saying today > > to 32 minute 23 seconds, now user drags and plays in the page playback head to 14 on time shaft minutes 12 seconds, trigger the time shifting request mechanism of electronic equipment, electronic equipment is sent to server by this time shifting request, and this time shifting request includes time shift initial time: 14 minutes 12 seconds.
204, server, according to time shift initial time, is searched the historical index file corresponding with time shift initial time in historical index file storehouse.
Concrete, server after the direct broadcast time-shift request receiving from the 1st live broadcast stream media of electronic equipment, according to the time shift in direct broadcast time-shift request constantly, the historical index file that locating file title is mated constantly with time shift, and then obtain historical index file.
Exemplary, the 1st time shift that direct broadcast time-shift request is entrained that server receives is 16: 58 on the 13rd June in 2013 constantly, the historical index file that whois lookup file name is mated constantly with time shift, and then obtain the historical index file that file name is 2013/06/13/16/58.
205, export the historical index file corresponding with time shift initial time to electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift, cut into slices.
Concrete, server finds with after the constantly corresponding historical index file of time shift in historical index file storehouse, this historical index file constantly corresponding with time shift is sent to electronic equipment, now electronic equipment is play the live broadcast stream media in the historical index file corresponding with the time shift moment, has realized the time-shifting function in live process.
206, electronic equipment, after generating the direct broadcast time-shift request of the 1st live broadcast stream media, periodically generates N for the direct broadcast time-shift request of live broadcast stream media.
Wherein, N direct broadcast time-shift request includes time shift constantly, and this time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment.
Further, electronic equipment is after receiving the 1st the historical index file that server sends, and the direct broadcast time-shift request Concurrency that can generate is next time delivered to server.So far, server can periodically constantly receive the direct broadcast time-shift request of electronic equipment, and the historical index file of the continuous free order of output, to electronic equipment, has effectively been supported user terminal time shifting request in a long time.
Exemplary, Preset Time length is 1 minute 30 seconds, and certain time shift initial time is the 11st minute the 19th second, N=3, and this time shift is the 11st minute the 19th second+3*1 minute 30 seconds=the 15th minute the 49th second constantly so.
207, the time shift that server comprises according to N direct broadcast time-shift request constantly, is searched the historical index file constantly corresponding with time shift and exports electronic equipment to.
Concrete, server is after the individual direct broadcast time-shift request for live broadcast stream media of N receiving from electronic equipment, according to the time shift in direct broadcast time-shift request constantly, the historical index file that locating file title is mated constantly with time shift, and then obtain historical index file.Server finds with after the constantly corresponding historical index file of time shift in historical index file storehouse, this historical index file constantly corresponding with time shift is sent to electronic equipment, now electronic equipment is play the live broadcast stream media in the historical index file corresponding with the time shift moment, has realized the time-shifting function in live process.
Embodiments of the invention provide a kind of time-shifting method of live broadcast stream media, by receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, N direct broadcast time-shift request includes time shift constantly, time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment; And then according to time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with time shift; Wherein, historical index file storehouse comprises at least one historical index file, and at least one historical index file is for storing the live broadcast stream media section of live broadcast stream media, and the playing duration of live broadcast stream media section equals Preset Time length; Finally export the historical index file constantly corresponding with time shift to electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift, cut into slices.The present invention is by setting up historical index file storehouse, historical index file includes historical index file in storehouse, historical index file stores the live broadcast stream media of Preset Time length, this history index file can not be subject to the impact of class HLS agreement and need to delete in real time ancient deed, and then solved the problem that the index file that cannot live forever in prior art causes time shifting request failure, realize the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.
Embodiment tri-
Embodiments of the invention provide a kind of server, as shown in Figure 3, comprising:
Receiving element 01, for receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, N direct broadcast time-shift request includes time shift constantly, time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment;
Search unit 02, for according to time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with time shift; Wherein, historical index file storehouse comprises at least one historical index file, and at least one historical index file is for storing the live broadcast stream media section of live broadcast stream media, and the playing duration of live broadcast stream media section equals Preset Time length;
Output unit 03, for exporting the historical index file constantly corresponding with time shift to electronic equipment, cuts into slices so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift.
Further, as shown in Figure 4, this server also comprises:
Pretreatment unit 04, for according to Preset Time length, cuts into slices piecemeal to live broadcast stream media, generates at least one historical index file; Section when wherein, the file name indication of at least one historical index file is cut into slices accordingly to live broadcast stream media constantly.
Further, search unit 02, also for time shift being converted to constantly to corresponding section constantly; And according to corresponding section constantly, the historical index file that locating file title is mated constantly with corresponding section.
Further, receiving element 01, also, for receiving the direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment, the 1st direct broadcast time-shift request includes time shift initial time;
Search unit 02, also, for according to time shift constantly, in historical index file storehouse, search the historical index file corresponding with time shift initial time;
Output unit 03, also for exporting the historical index file corresponding with time shift initial time to electronic equipment, so that electronic equipment is play the live broadcast stream media section in the historical index file corresponding with time shift initial time.
Further, to be electronic equipment generate in response to user's specific operation in the direct broadcast time-shift request of the 1st live broadcast stream media, wherein, user's specific operation comprises that user triggers time-shifting function button, user triggers rewind down button or user drags the playback head on time shaft; N is periodically to generate after electronic equipment generates the direct broadcast time-shift request of the 1st live broadcast stream media for the direct broadcast time-shift request of live broadcast stream media.
Embodiments of the invention provide a kind of server, by receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, N direct broadcast time-shift request includes time shift constantly, time shift is time shift initial time+N* Preset Time length constantly, wherein, N is greater than 1, and time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment; And then according to time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with time shift; Wherein, historical index file storehouse comprises at least one historical index file, and at least one historical index file is for storing the live broadcast stream media section of live broadcast stream media, and the playing duration of live broadcast stream media section equals Preset Time length; Finally export the historical index file constantly corresponding with time shift to electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of time shift, cut into slices.The present invention is by setting up historical index file storehouse, historical index file includes historical index file in storehouse, historical index file stores the live broadcast stream media of Preset Time length, this history index file can not be subject to the impact of class HLS agreement and need to delete in real time ancient deed, and then solved the problem that the index file that cannot live forever in prior art causes time shifting request failure, realize the hold capacity of server to the historical index file long period, can effectively support user terminal time shifting request in a long time.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (10)

1. a direct broadcast time-shift method, is characterized in that, described method comprises:
Reception is from N the direct broadcast time-shift request for live broadcast stream media of electronic equipment, described N for direct broadcast time-shift, request includes time shift constantly, described time shift is Preset Time length described in time shift initial time+N* constantly, wherein, N is greater than 1, and described time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of described electronic equipment;
According to described time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with described time shift; Wherein, described historical index file storehouse comprises at least one historical index file, and described at least one historical index file is for storing the live broadcast stream media section of described live broadcast stream media, and the playing duration of described live broadcast stream media section equals Preset Time length;
Export the historical index file constantly corresponding with described time shift to described electronic equipment, so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of described time shift, cut into slices.
2. method according to claim 1, is characterized in that, the generation method of described at least one historical index file comprises:
According to described Preset Time length, live broadcast stream media is cut into slices piecemeal, generate described at least one historical index file; Section when wherein, the indication of the file name of described at least one historical index file is cut into slices accordingly to described live broadcast stream media constantly.
3. method according to claim 2, is characterized in that, described according to the described time shift moment, searches the historical index file constantly corresponding with described time shift and comprise in historical index file storehouse:
Described time shift is converted to corresponding section constantly constantly;
According to the section of described correspondence constantly, the historical index file that locating file title is mated constantly with described corresponding section.
4. according to the method in any one of claims 1 to 3, it is characterized in that, before the step in described reception from the individual direct broadcast time-shift request for live broadcast stream media of N of electronic equipment, described method also comprises:
Reception is from the direct broadcast time-shift request of the 1st live broadcast stream media of electronic equipment, and described the 1st direct broadcast time-shift request includes described time shift initial time;
According to described time shift constantly, in historical index file storehouse, search the historical index file corresponding with described time shift initial time;
Export the historical index file corresponding with described time shift initial time to described electronic equipment, so that electronic equipment is play the live broadcast stream media section in the historical index file corresponding with described time shift initial time.
5. method according to claim 4, is characterized in that,
To be described electronic equipment generate in response to user's specific operation in the direct broadcast time-shift request of described the 1st live broadcast stream media, wherein, described user's specific operation comprises that user triggers time-shifting function button, user triggers rewind down button or user drags the playback head on time shaft;
Described N is periodically to generate after described electronic equipment generates the direct broadcast time-shift request of described the 1st live broadcast stream media for the direct broadcast time-shift request of live broadcast stream media.
6. a server, is characterized in that, comprising:
Receiving element, for receiving N the direct broadcast time-shift request for live broadcast stream media from electronic equipment, described N direct broadcast time-shift request includes time shift constantly, described time shift is Preset Time length described in time shift initial time+N* constantly, wherein, N is greater than 1, and described time shift initial time is the indicated moment of direct broadcast time-shift request from the 1st live broadcast stream media of described electronic equipment;
Search unit, for according to described time shift constantly, in historical index file storehouse, search the historical index file constantly corresponding with described time shift; Wherein, described historical index file storehouse comprises at least one historical index file, and described at least one historical index file is for storing the live broadcast stream media section of described live broadcast stream media, and the playing duration of described live broadcast stream media section equals Preset Time length;
Output unit, for exporting the historical index file constantly corresponding with described time shift to described electronic equipment, cuts into slices so that electronic equipment is play with the live broadcast stream media in the constantly corresponding historical index file of described time shift.
7. server according to claim 6, is characterized in that, also comprises:
Pretreatment unit, for according to described Preset Time length, cuts into slices piecemeal to live broadcast stream media, generates described at least one historical index file; Section when wherein, the file name indication of described at least one historical index file is cut into slices accordingly to described live broadcast stream media constantly.
8. server according to claim 7, is characterized in that,
The described unit of searching, also for being constantly converted to described time shift corresponding section constantly; And according to the section of described correspondence constantly, the historical index file that locating file title is mated constantly with described corresponding section.
9. according to the server described in any one in claim 6 to 8, it is characterized in that,
Described receiving element, also, for receiving the direct broadcast time-shift request from the 1st live broadcast stream media of electronic equipment, described the 1st direct broadcast time-shift request includes described time shift initial time;
The historical index file corresponding with described time shift initial time also, for according to described time shift constantly, searched in the described unit of searching in historical index file storehouse;
Described output unit, also for exporting the historical index file corresponding with described time shift initial time to described electronic equipment, so that electronic equipment is play the live broadcast stream media section in the historical index file corresponding with described time shift initial time.
10. server according to claim 9, is characterized in that,
To be described electronic equipment generate in response to user's specific operation in the direct broadcast time-shift request of described the 1st live broadcast stream media, wherein, described user's specific operation comprises that user triggers time-shifting function button, user triggers rewind down button or user drags the playback head on time shaft; Described N is periodically to generate after described electronic equipment generates the direct broadcast time-shift request of described the 1st live broadcast stream media for the direct broadcast time-shift request of live broadcast stream media.
CN201310615655.5A 2013-11-26 2013-11-26 Live broadcast time shifting method and server Pending CN103607639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310615655.5A CN103607639A (en) 2013-11-26 2013-11-26 Live broadcast time shifting method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310615655.5A CN103607639A (en) 2013-11-26 2013-11-26 Live broadcast time shifting method and server

Publications (1)

Publication Number Publication Date
CN103607639A true CN103607639A (en) 2014-02-26

Family

ID=50125836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310615655.5A Pending CN103607639A (en) 2013-11-26 2013-11-26 Live broadcast time shifting method and server

Country Status (1)

Country Link
CN (1) CN103607639A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168516A (en) * 2014-09-01 2014-11-26 上海下一代广播电视网应用实验室有限公司 System and method for achieving program replay on stream media live broadcast platform
CN104683884A (en) * 2015-02-09 2015-06-03 网宿科技股份有限公司 Live method and system for stream medium
CN106572358A (en) * 2016-11-11 2017-04-19 青岛海信宽带多媒体技术有限公司 Live broadcast time shift method and client
CN107087214A (en) * 2016-02-16 2017-08-22 中国电信股份有限公司 Realize method, client and system that streaming medium content speed is played
CN107707937A (en) * 2017-09-22 2018-02-16 烽火通信科技股份有限公司 Time shift optimization method and system based on HLS protocol
CN108235151A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method and apparatus of net cast
CN109376254A (en) * 2018-09-11 2019-02-22 青岛海信移动通信技术股份有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
CN109413443A (en) * 2017-08-16 2019-03-01 中国移动通信有限公司研究院 A kind of implementation method and device of time-shifting function
CN109561351A (en) * 2018-12-03 2019-04-02 网易(杭州)网络有限公司 Network direct broadcasting back method, device and storage medium
CN110300339A (en) * 2018-03-22 2019-10-01 贵州白山云科技股份有限公司 A kind of live multimedia playbacks method, apparatus and system
CN111064975A (en) * 2019-12-23 2020-04-24 安徽海豚新媒体产业发展有限公司 New media mobile live broadcast system
CN111246314A (en) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 Time-shifting live broadcast method, server device, client device and live broadcast system
CN114363710A (en) * 2022-01-04 2022-04-15 上海哔哩哔哩科技有限公司 Live broadcast watching method and device based on time shifting acceleration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026751A (en) * 2007-04-02 2007-08-29 中兴通讯股份有限公司 Content and service scheduling method for time-shifted television system
CN101227602A (en) * 2007-01-18 2008-07-23 中兴通讯股份有限公司 File storing method and file playing method
CN101795297A (en) * 2010-03-19 2010-08-04 北京天天宽广网络科技有限公司 Live broadcasting time shifting system based on P2P (peer-to-peer) technology and method thereof
CN102685554A (en) * 2012-05-24 2012-09-19 北京国双科技有限公司 Method and device for processing video play
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227602A (en) * 2007-01-18 2008-07-23 中兴通讯股份有限公司 File storing method and file playing method
CN101026751A (en) * 2007-04-02 2007-08-29 中兴通讯股份有限公司 Content and service scheduling method for time-shifted television system
CN101795297A (en) * 2010-03-19 2010-08-04 北京天天宽广网络科技有限公司 Live broadcasting time shifting system based on P2P (peer-to-peer) technology and method thereof
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast
CN102685554A (en) * 2012-05-24 2012-09-19 北京国双科技有限公司 Method and device for processing video play

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168516A (en) * 2014-09-01 2014-11-26 上海下一代广播电视网应用实验室有限公司 System and method for achieving program replay on stream media live broadcast platform
CN104683884A (en) * 2015-02-09 2015-06-03 网宿科技股份有限公司 Live method and system for stream medium
CN107087214A (en) * 2016-02-16 2017-08-22 中国电信股份有限公司 Realize method, client and system that streaming medium content speed is played
CN106572358A (en) * 2016-11-11 2017-04-19 青岛海信宽带多媒体技术有限公司 Live broadcast time shift method and client
CN109413443A (en) * 2017-08-16 2019-03-01 中国移动通信有限公司研究院 A kind of implementation method and device of time-shifting function
CN109413443B (en) * 2017-08-16 2021-03-16 中国移动通信有限公司研究院 Method and device for realizing time shifting function
CN107707937A (en) * 2017-09-22 2018-02-16 烽火通信科技股份有限公司 Time shift optimization method and system based on HLS protocol
WO2019056929A1 (en) * 2017-09-22 2019-03-28 烽火通信科技股份有限公司 Hls protocol-based time shift optimization method and system
CN108235151A (en) * 2017-12-29 2018-06-29 北京奇虎科技有限公司 A kind of method and apparatus of net cast
CN110300339A (en) * 2018-03-22 2019-10-01 贵州白山云科技股份有限公司 A kind of live multimedia playbacks method, apparatus and system
CN109376254A (en) * 2018-09-11 2019-02-22 青岛海信移动通信技术股份有限公司 Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
CN109561351A (en) * 2018-12-03 2019-04-02 网易(杭州)网络有限公司 Network direct broadcasting back method, device and storage medium
CN111064975A (en) * 2019-12-23 2020-04-24 安徽海豚新媒体产业发展有限公司 New media mobile live broadcast system
CN111246314A (en) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 Time-shifting live broadcast method, server device, client device and live broadcast system
CN114363710A (en) * 2022-01-04 2022-04-15 上海哔哩哔哩科技有限公司 Live broadcast watching method and device based on time shifting acceleration

Similar Documents

Publication Publication Date Title
CN103607639A (en) Live broadcast time shifting method and server
CN103618912A (en) Live telecast time shifting method and server
KR101683323B1 (en) Media content retrieval system and personal virtual channel
CN104244079B (en) A kind of method for downloading video and device
CN104125229B (en) The player method of Streaming Media and playing device
CN104093044B (en) Online Media player method, server and system
CN102710966A (en) Video live broadcast method and system based on HTTP (Hyper Text Transport Protocol)
CN101034995A (en) Internet personal video recording system and its terminal
CN102845072A (en) Media content improved playback quality
CN103763637A (en) Stream media broadcasting method and system
CN103716662A (en) Mixed transmission method and server
CN102055717A (en) Quick playing method, terminal and server
CN104125516A (en) Media file receiving method and apparatus, media file sending method and apparatus, and system
WO2017092327A1 (en) Playing method and apparatus
CN108683945B (en) Video playing method and device based on HLS protocol
CN105025345A (en) Method and device for recording live program
CN105228001A (en) The method and system that a kind of FLV format video is play online
CN103607461A (en) Information sharing method and cloud server
CN104053026A (en) Method and system for receiving and playing boot video advertisements of digital television set-top boxes
CN103986945A (en) Hybrid network system, channel content replay method and hybrid set top box
CN103729407A (en) Method and device for playing live broadcast streaming media
CN107124668A (en) Transmit device and method, streaming services system and recording medium as a stream
CN109376254A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of data flow
CN103220587A (en) Method and device for obtaining time shifting contents
US7747769B1 (en) Method and apparatus for efficiently searching and selecting preferred content from a plurality of active multimedia streams

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140226

RJ01 Rejection of invention patent application after publication