Summary of the invention
Embodiments of the invention provide a kind of method and electronic equipment of realizing direct broadcast time-shift, according to obtaining with current, play time shift that expectation that difference is constantly less than or equal to live broadcast stream media plays total duration constantly, get the live broadcast stream media section constantly corresponding with time shift, by its demonstration and upgrade progress bar, solved the problem that maximum time shift while at present live broadcast stream media being carried out to direct broadcast time-shift can not surpass the represented playing duration of progress bar, promote the output performance of electronic equipment, strengthened the dirigibility of live broadcast stream media output.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The embodiment of the present invention provides a kind of method that realizes direct broadcast time-shift, comprising:
Obtain the time shift of live broadcast stream media constantly, and record the current broadcasting moment of described live broadcast stream media;
According to described current broadcasting constantly and described time shift constantly, judge that the expectation whether described current difference of playing constantly and between described time shift is constantly less than or equal to described live broadcast stream media plays total duration;
If described difference is less than or equal to the expectation of described live broadcast stream media, play total duration, obtain the live broadcast stream media section constantly corresponding with described time shift;
Play the constantly corresponding live broadcast stream media section of described and described time shift, and using described time shift constantly as the initial time of progress bar, according to default progress bar, show Policy Updates progress bar simultaneously.
The described method of obtaining the time shift moment of live broadcast stream media comprises:
In response to user's specific operation, obtain the time shift of described live broadcast stream media constantly, wherein, described user's specific operation comprises that user clicks that program, user in programme pulls progress bar or user triggers rewind down button.
The described step of obtaining the live broadcast stream media section constantly corresponding with described time shift comprises:
According to described time shift constantly, from default historical index file storehouse, search the historical index file constantly corresponding with described time shift; Wherein, described default historical index file storehouse comprises at least one historical index file, and described 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;
From described default historical index file storehouse, extract the historical index file constantly corresponding with described time shift, to obtain the live broadcast stream media section constantly corresponding with described time shift.
If described difference is greater than the expectation of described live broadcast stream media and plays total duration, from described current broadcasting, continue program content playing constantly.
A kind of electronic equipment that the embodiment of the present invention provides, comprising:
Acquiring unit, for obtaining the time shift moment of live broadcast stream media, and the current broadcasting moment of recording described live broadcast stream media, if and for the judgement of described judging unit, obtain the expectation that described difference is less than or equal to described live broadcast stream media and play total duration, obtain the live broadcast stream media constantly corresponding with described time shift and cut into slices;
Judging unit, for according to described current broadcasting constantly and described time shift constantly, judge that the expectation whether described current difference of playing constantly and between described time shift is constantly less than or equal to described live broadcast stream media plays total duration;
Display unit, the constantly corresponding live broadcast stream media section of described and described time shift getting for playing described acquiring unit;
Processing unit constantly as the initial time of progress bar, shows Policy Updates progress bar according to default progress bar for described time shift that described acquiring unit is got simultaneously.
Described acquiring unit, specifically for the specific operation in response to user, obtains the time shift of described live broadcast stream media constantly, and wherein, described user's specific operation comprises that user clicks that program, user in programme pulls progress bar or user triggers rewind down button.
The historical index file constantly corresponding with described time shift specifically, also for according to described time shift constantly, searched and obtains in the described unit of searching from default historical index file storehouse; Wherein, described default historical index file storehouse comprises at least one historical index file, and described 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.
Described display unit, plays total duration if also obtain for the judgement of described judging unit the expectation that described difference is greater than described live broadcast stream media, continues program content playing from described current the broadcastings moment.
The invention provides a kind of method and electronic equipment of realizing direct broadcast time-shift, by determining the time shift moment of the live broadcast stream media getting and the expectation that the current difference of playing between the moment is less than or equal to live broadcast stream media, play total duration, obtain the live broadcast stream media section constantly corresponding with time shift, then the live broadcast stream media section constantly corresponding with time shift will be shown, and the initial time using the time shift moment as progress bar, according to default progress bar, show Policy Updates progress bar simultaneously, solved the problem that maximum time shift when live broadcast stream media is carried out to direct broadcast time-shift can not surpass the represented playing duration of progress bar, promoted the output performance of electronic equipment, strengthened the dirigibility of live broadcast stream media output.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or", is only a kind of incidence relation of describing affiliated partner herein, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
Electronic equipment, 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 have the computing machine of mobile terminal.
Various technology described herein is only suitable for electronic equipment when live broadcast stream media is exported, and the represented playing duration of the progress bar of demonstration is fixing duration, and this fixedly duration be less than the concrete event of the total duration of broadcasting of live video.
Embodiment mono-
The embodiment of the present invention provides a kind of method that realizes direct broadcast time-shift, as shown in Figure 1, comprising:
S101, electronic equipment obtain the time shift moment of live broadcast stream media, and record the current broadcasting moment of live broadcast stream media.
The form of mode transmission of audio, video and multimedia file in network that wherein, the live broadcast stream media in the embodiment of the present invention refers to flow.Live broadcast stream media file layout 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 method that realizes direct broadcast time-shift, time shift by determining the live broadcast stream media get constantly and the expectation that is less than or equal to live broadcast stream media of current difference between playing constantly play total duration, obtain and live broadcast stream media that demonstration is constantly corresponding with time shift is cut into slices.
Concrete, when user wants live broadcast stream media to carry out time shift playback, first trigger specific option, select the time shift of live broadcast stream media constantly, user, determine after the time shift constantly of live broadcast stream media, electronic equipment, in response to user's specific operation, gets the time shift of live broadcast stream media constantly, and records the current broadcasting moment of live broadcast stream media.
Wherein, user triggers specific option can click the programme in programme for user, can be also that user pulls progress bar, can also be that user triggers rewind down button, and the present invention does not limit.
It should be noted that, live broadcast stream media can be live video Streaming Media, can be also live audio stream media, and the present invention does not limit.
Exemplary, father goes where live initial time is 20:00, during 21:08, TV is just at broadcast advertisement, at this moment Zhang San wants constantly to watch father where to go from initial broadcasting, Zhang San selects rewind down button, by time shift time be chosen to be 20:00, the current reproduction time of television recording is 21:08, and when shift time is 20:00 when Zhang San is selected, get time shift constantly.
S102, electronic equipment according to current broadcasting constantly and time shift constantly, judge that the expectation whether current difference of playing constantly and between time shift is constantly less than or equal to live broadcast stream media plays total duration.
In the embodiment of the present invention, in default historical index file storehouse, stored historical index file corresponding to the moment that total duration is play in the expectation that is less than or equal to live broadcast stream media with current time difference, wherein, in historical index file, store live broadcast stream media section.
Concrete, because the historical index file of storing in default historical index file storehouse is play the file corresponding to the moment of total duration for the expectation that is less than or equal to live broadcast stream media with current time difference, therefore, electronic equipment is after getting the time shift moment and current broadcasting constantly, judge that the expectation whether difference between current reproduction time and time shift is constantly less than or equal to live broadcast stream media plays total duration, to determine in default historical index file storehouse, whether exist live broadcast stream media corresponding to the time shift moment to cut into slices, and then whether definite electronic equipment can be successfully by the time shift live broadcast stream media output of correspondence constantly.
Exemplary, if the multipotency of electronic equipment shows than the current time live broadcast stream media of Zao 24 hours, the time shift that gets live broadcast stream media when electronic equipment is 20:00 constantly, when the current broadcasting of record is constantly 23:50, electronic equipment judges whether the difference between 23:50 and 20:00 is less than 24 hours.
If total duration is play in the expectation that the current difference of playing constantly and between time shift constantly of S103 is less than or equal to live broadcast stream media, electronic equipment obtains the live broadcast stream media section constantly corresponding with time shift.
Concrete, the expectation that electronic equipment is less than or equal to live broadcast stream media in definite current difference of playing constantly and between time shift is constantly play after total duration, electronic equipment obtains the live broadcast stream media section constantly corresponding with time shift constantly according to time shift from default historical index file storehouse, so that electronic equipment shows the live broadcast stream media section constantly corresponding with time shift, and then realized the time-shifting function in live process.
S104, electronic equipment are play the live broadcast stream media section constantly corresponding with time shift, and using time shift constantly as the initial time of progress bar, show Policy Updates progress bar according to default progress bar simultaneously.
The electronic equipment that the embodiment of the present invention is described is when live broadcast stream media is exported, set in advance the initial time of progress bar and stop constantly along with the variation in the current broadcasting moment, changing, and the difference stopping constantly and between initial time is fixed, the represented playing duration of progress bar showing is fixed, and this fixedly duration be less than the total duration of broadcasting of live video.
Concrete, the difference that the progress bar showing due to electronic equipment stops constantly and between initial time is fixed, and initial time and termination change along with the variation in the current broadcasting moment constantly, therefore, the expectation that electronic equipment is less than or equal to live broadcast stream media in definite current difference of playing constantly and between time shift is constantly play after total duration, using time shift constantly as the initial time of progress bar, according to default progress bar, show Policy Updates progress bar simultaneously.
The invention provides a kind of method that realizes direct broadcast time-shift, by determining the time shift moment of the live broadcast stream media getting and the expectation that the current difference of playing between the moment is less than or equal to live broadcast stream media, play total duration, obtain the live broadcast stream media section constantly corresponding with time shift, then the live broadcast stream media section constantly corresponding with time shift shown, and the initial time using the time shift moment as progress bar, according to default progress bar, show Policy Updates progress bar simultaneously, solved the problem that maximum time shift when live broadcast stream media is carried out to direct broadcast time-shift can not surpass the represented playing duration of progress bar, promoted the output performance of electronic equipment, strengthened the dirigibility of live broadcast stream media output.
Embodiment bis-
The embodiment of the present invention provides a kind of method that realizes direct broadcast time-shift, as shown in Figure 2, comprising:
S201, electronic equipment receive user's specific operation message.
Wherein, user's specific operation message comprises that user clicks that program, user in programme pulls progress bar or user triggers rewind down button.
In prior art, electronic equipment user in live process cannot carry out time shift playback to live broadcast stream media.
The embodiment of the present invention provides a kind of method that realizes direct broadcast time-shift, by determining the time shift moment of the live broadcast stream media getting and the expectation that the current difference of playing between the moment is less than or equal to live broadcast stream media, play total duration, obtain the live broadcast stream media section constantly corresponding with time shift and shown, having realized the time shift in live process.
The form of the mode that live broadcast stream media refers to flow transmission of audio, video and multimedia file in network.Live broadcast stream media file layout 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.
Concrete, electronic equipment is realized direct broadcast time-shift and need to first be received user and click the program in programme.Pull the message of progress bar or triggering rewind down button, to know, need to carry out time shift to live broadcast stream media.
S202, electronic equipment obtain the time shift moment of live broadcast stream media, and record the current broadcasting moment of live broadcast stream media.
Program, the user of electronic equipment in the click programme that receives user pulls progress bar or triggers after the message of rewind down button, and electronic equipment is known and need to be carried out time shift to live broadcast stream media.
Concrete, electronic equipment, according to user's specific operation message, obtains the time shift of live broadcast stream media constantly, records the current broadcasting of live broadcast stream media constantly simultaneously.
It should be noted that, live broadcast stream media can be live video Streaming Media, can be also live audio stream media, and the present invention does not limit.
Exemplary, father goes where live initial time is 20:00, during 21:08 just at broadcast advertisement, at this moment Zhang San wants constantly to watch father where to go from initial broadcasting, Zhang San selects rewind down button, by time shift time be chosen to be 20:00, to record current reproduction time be 21:08 to electronic equipment, and when shift time is 20:00 when Zhang San is selected, get time shift constantly.
S203, electronic equipment according to current broadcasting constantly and time shift constantly, judge that the expectation whether current difference of playing constantly and between time shift is constantly less than or equal to live broadcast stream media plays total duration.
In the embodiment of the present invention, in default historical index file storehouse, stored historical index file corresponding to the moment that total duration is play in the expectation that is less than or equal to live broadcast stream media with current time difference, wherein, in historical index file, store live broadcast stream media section.
Concrete, because the historical index file of storing in default historical index file storehouse is play the file corresponding to the moment of total duration for the expectation that is less than or equal to live broadcast stream media with current time difference, therefore, electronic equipment is after getting the time shift moment and current broadcasting constantly, judge that the expectation whether difference between current reproduction time and time shift is constantly less than or equal to live broadcast stream media plays total duration, to determine in default historical index file storehouse, whether exist live broadcast stream media corresponding to the time shift moment to cut into slices, and then whether definite electronic equipment can be successfully by the time shift live broadcast stream media output of correspondence constantly.
Exemplary, if the multipotency of electronic equipment shows than the current time live broadcast stream media of Zao 24 hours, the time shift that gets live broadcast stream media when electronic equipment is 20:00 constantly, when the current broadcasting of record is constantly 23:50, electronic equipment judges whether the difference between 23:50 and 20:00 is less than 24 hours.
If total duration is play in the expectation that the current difference of playing constantly and between time shift constantly of S204 is less than or equal to live broadcast stream media, electronic equipment according to time shift constantly, is searched the historical index file constantly corresponding with time shift from default historical index file storehouse.
Concrete, electronic equipment obtains the live broadcast stream media section constantly corresponding with time shift constantly according to time shift from default historical index file storehouse, so that electronic equipment shows the live broadcast stream media section constantly corresponding with time shift, and then realized the time-shifting function in live process.
Wherein, default historical index file storehouse comprises at least one historical index file, and 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.
S205, electronic equipment extract the historical index file constantly corresponding with time shift from default historical index file storehouse, to obtain the live broadcast stream media section constantly corresponding with time shift.
Electronic equipment finds with after the constantly corresponding historical index file of time shift from default historical index file storehouse, is extracted, to obtain the live broadcast stream media section constantly corresponding with time shift.
S206, electronic equipment show the live broadcast stream media section constantly corresponding with time shift, and using time shift constantly as the initial time of progress bar, show Policy Updates progress bar according to default progress bar simultaneously.
The electronic equipment that the embodiment of the present invention is described is when live broadcast stream media is exported, set in advance the initial time of progress bar and stop constantly along with the variation in the current broadcasting moment, changing, and the difference stopping constantly and between initial time is fixed, the represented playing duration of progress bar showing is fixed, and this fixedly duration be less than the total duration of broadcasting of live video.
Concrete, the difference that the progress bar showing due to electronic equipment stops constantly and between initial time is fixed, and initial time and termination change along with the variation in the current broadcasting moment constantly, therefore, the expectation that electronic equipment is less than or equal to live broadcast stream media in definite current difference of playing constantly and between time shift is constantly play after total duration, using time shift constantly as the initial time of progress bar, according to default progress bar, show Policy Updates progress bar simultaneously.
Exemplary, as shown in Figure 3 and Figure 4, if electronic equipment can be play the total duration of the broadcasting of live video, be 48 hours, and the represented playing duration of progress bar that electronic equipment shows is 2 hours.As shown in Figure 4, the current reproduction time of electronic equipment is 23:50, shows the progress bar of 22:00-24:00.As shown in Figure 4, when time shift that electronic equipment gets live broadcast stream media is constantly for after 20:30, difference between electronic equipment judgement 23:50 and 20:30 is 3 hours 20 minutes, be less than 48 hours, electronic equipment gets the live broadcast stream media section A corresponding with 20:30 from default historical index file storehouse, then shown, the initial time of electronic equipment using 20:30 as progress bar simultaneously, and progress bar is updated to the progress bar of 20:30-22:30.
If total duration is play in the expectation that the current difference of playing constantly and between time shift constantly of S207 is greater than live broadcast stream media, electronic equipment constantly continues program content playing from current broadcasting.
The invention provides a kind of method that realizes direct broadcast time-shift, by determining the time shift moment of the live broadcast stream media getting and the expectation that the current difference of playing between the moment is less than or equal to live broadcast stream media, play total duration, obtain the live broadcast stream media section constantly corresponding with time shift, then the live broadcast stream media section constantly corresponding with time shift shown, and the initial time using the time shift moment as progress bar, according to default progress bar, show Policy Updates progress bar simultaneously, solved the problem that maximum time shift when live broadcast stream media is carried out to direct broadcast time-shift can not surpass the represented playing duration of progress bar, promoted the output performance of electronic equipment, strengthened the dirigibility of live broadcast stream media output.
Embodiment tri-
The embodiment of the present invention provides a kind of electronic equipment, as shown in Figure 5, comprising:
Acquiring unit 10, for obtaining the time shift moment of live broadcast stream media, and the current broadcasting moment of recording described live broadcast stream media, if and for 11 judgements of described judging unit, obtain the expectation that described difference is less than or equal to described live broadcast stream media and play total duration, obtain the live broadcast stream media constantly corresponding with described time shift and cut into slices;
Judging unit 11, for according to described current broadcasting constantly and described time shift constantly, judge that the expectation whether described current difference of playing constantly and between described time shift is constantly less than or equal to described live broadcast stream media plays total duration;
Display unit 12, the constantly corresponding live broadcast stream media section of described and described time shift getting for playing described acquiring unit 10;
Processing unit 13 constantly as the initial time of progress bar, shows Policy Updates progress bar according to default progress bar for described time shift that described acquiring unit 10 is got simultaneously.
Further, described acquiring unit 10, specifically for the specific operation in response to user, obtains the time shift of described live broadcast stream media constantly, wherein, described user's specific operation comprises that user clicks that program, user in programme pulls progress bar or user triggers rewind down button.
Further, described acquiring unit 10 specifically, also for according to described time shift constantly, searches and obtains the historical index file constantly corresponding with described time shift from default historical index file storehouse; Wherein, described default historical index file storehouse comprises at least one historical index file, and described 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.
Further, described display unit 12, plays total duration if also obtain for 11 judgements of described judging unit the expectation that described difference is greater than described live broadcast stream media, and described current the broadcastings moment getting from described acquiring unit 10 is continued program content playing.
The invention provides a kind of electronic equipment, mainly comprise acquiring unit, judging unit, display unit and processing unit.By judging unit judge obtain the live broadcast stream media that acquiring unit gets time shift constantly and the expectation that is less than or equal to live broadcast stream media of current difference between playing constantly play total duration, acquiring unit obtains the live broadcast stream media section constantly corresponding with time shift, display unit shows the live broadcast stream media section constantly corresponding with time shift, the initial time of while processing unit using the time shift moment as progress bar, according to default progress bar, show Policy Updates progress bar, solved the problem that maximum time shift when live broadcast stream media is carried out to direct broadcast time-shift can not surpass the represented playing duration of progress bar, promoted the output performance of electronic equipment, strengthened the dirigibility of live broadcast stream media output.
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 inner 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, ROM (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 domain of described claim.