CN108419136A - A kind of the seek implementation methods and device of network direct broadcasting stream - Google Patents

A kind of the seek implementation methods and device of network direct broadcasting stream Download PDF

Info

Publication number
CN108419136A
CN108419136A CN201810193513.7A CN201810193513A CN108419136A CN 108419136 A CN108419136 A CN 108419136A CN 201810193513 A CN201810193513 A CN 201810193513A CN 108419136 A CN108419136 A CN 108419136A
Authority
CN
China
Prior art keywords
seek
media fragment
time
difference
time difference
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
CN201810193513.7A
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201810193513.7A priority Critical patent/CN108419136A/en
Publication of CN108419136A publication Critical patent/CN108419136A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Abstract

This application discloses a kind of seek implementation methods of network direct broadcasting stream and device, this method to include:Start DST PLAYER, obtains the current play time point of live video;Whether the seek ranges for estimating server permission judge the time difference of seek time points and current play time point within the scope of seek;If so, according to currently playing media fragment numerical value media fragment corresponding with time difference acquisition seek time points, played since the media fragment;If it is not, then searching identical video content in current program request application according to electronic program guide information, it is switched to order video viewing video.The seek implementation methods obtain the duration of each media fragment according to server, currently playing time point is calculated according to media clip durations, to be operated to the forward and backward execution seek of current play time point, the front and back seek operations to live video are realized, the good experience of user is greatly improved.

Description

A kind of the seek implementation methods and device of network direct broadcasting stream
Technical field
This application involves TV stream technical field more particularly to the seek implementation methods and dress of a kind of network direct broadcasting stream It sets.
Background technology
With the raising of network bandwidth in the universal and ordinary user family of smart television, more and more users can be with It selects through network come direct broadcast television signals, or passes through television-viewing live video etc..With the continuous increasing of Internet bandwidth Adduction number of netizens increases rapidly, and condition is created in transmission over networks for video frequency program, present many equal energy of smart television By internet viewing streaming media on demand, programme televised live, the work(that digital television signal before some is relatively difficult to realize is realized Can, such as live streaming seek functions.
Television signals network live streaming in existing TV all realizes that existing general technology has by Streaming Media HLS (HTTP Live Streaming, hypertext transfer protocol live broadcast stream media), DASH (Dynamic Adaptive Streaming over HTTP, the dynamic self-adapting steaming transfer based on hypertext transfer protocol), MSS (Maximum Segment Size, maximum fragment length) three big stream media technologys, this three big stream media technology is all first to download a manifest file, The realization of live streaming is that server constantly removes update manifest files to realize that media fragment is constantly updated, to realize that TV is believed Number direct broadcast function.In video display process, video can be dragged to another time point by people from a time point, to watch The content that oneself is concerned about, this operating process are known as seek (review and F.F.).Traditional TV signal is if it is intended to review Video is realized by way of recording time shift, it is necessary first to plug the equipment such as mobile hard disk on TV, setting is recorded Since point get off live telecast video record recording point;Then the video content of recording is transferred in mobile hard disk, When video content before wanting to review, as long as playing the video recorded in mobile hard disk, thus realize that TV regards indirectly The seek functions of frequency.
But for the video of live streaming, due to having no idea to obtain the total duration and current play time point that play video, It is impossible to obtain the time point after seek, therefore seek functions are not supported in general networking live streaming.Even if by recording time shift When mode realizes seek, it also all must be provided with recording point every time, recorded video content is moved in mobile hard disk, operation is compared It is cumbersome, it cannot go to carry out seek operations in real time.
Invention content
This application provides a kind of seek implementation methods of network direct broadcasting stream and devices, can not to solve current live video Front and back seek, or cannot in real time carry out the technical issues of seek operations.
In order to solve the above-mentioned technical problem, the embodiment of the present application discloses following technical solution:
In a first aspect, the embodiment of the present application discloses a kind of seek implementation methods of network direct broadcasting stream, the method includes:
Start DST PLAYER, obtains the current play time point of live video;
The seek ranges of server permission are estimated, judge the seek time points of seek and current play time forward or backward Whether the time difference of point is within the scope of the seek;
If so, according to currently playing media fragment numerical value matchmaker corresponding with time difference acquisition seek time points Body segment plays video since the media fragment;
If it is not, then searching identical video content in current program request application according to electronic program guide information, being switched to a little Broadcast video content described in video-see.
Second aspect, the embodiment of the present application also disclose a kind of seek realization devices of network direct broadcasting stream, described device packet It includes:
Acquisition module, the current play time point for obtaining live video;
Module is estimated, the seek ranges for estimating server permission;
Judgment module:Time difference for the seek time points and current play time point that judge seek forward or backward Whether within the scope of the seek;
Seek modules, when the time difference of seek time points and current play time point is within the scope of the seek, then According to currently playing media fragment numerical value media fragment corresponding with time difference acquisition seek time points, from the media piece Section starts to play video;
Point broadcasting module, when the time difference of seek time points and current play time point is not within the scope of the seek, Then according to electronic program guide information, identical video content in current program request application is searched, order video viewing is switched to and regards Frequency content.
Compared with prior art, the application has the beneficial effect that:
The embodiment of the present application provides a kind of seek implementation methods of network direct broadcasting stream and device, this method include:Start DST PLAYER obtains the current play time point of live video;Estimate server permission seek ranges, judge forward or Whether the time difference of the seek time points of seek and current play time point is within the scope of the seek backward;If so, root According to currently playing media fragment numerical value media fragment corresponding with time difference acquisition seek time points, from the media Segment starts to play video;If it is not, then according to electronic program guide information, search in current program request application in identical video Hold, is switched to order video and watches the video content.The seek implementation methods and device of network direct broadcasting stream provided by the present application Live video can be constantly updated by server, the currently playing time be obtained according to the duration calculation of media fragment, therefore The video that current play time can be asked forward and backward to server can realize seek operations forward or backward;In addition, by In the updated video content of the removing of server meeting not timing, therefore there is the range for allowing seek, Yong Huke in server To carry out seek operations to the video of live streaming within the scope of seek so that user can be front and back during net cast Seek can see the content part for oneself liking seeing, so as to increase the good experience of user emphatically.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The application can be limited.
Description of the drawings
In order to illustrate more clearly of the technical solution of the application, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without creative efforts, also It can be obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application;
One kind stream in detail that Fig. 2 is S200 in a kind of seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application Cheng Tu;
Fig. 3 is that the another kind of S200 in a kind of seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application is detailed Flow chart;
One kind stream in detail that Fig. 4 is S300 in a kind of seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application Cheng Tu;
Fig. 5 is the displaying of seek time shafts in a kind of seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application Figure;
Fig. 6 is that the another kind of S300 in a kind of seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application is detailed Flow chart;
Fig. 7 is a kind of structural schematic diagram of the seek realization devices of network direct broadcasting stream provided by the embodiments of the present application.
Specific implementation mode
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described implementation Example is only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, the common skill in this field The every other embodiment that art personnel are obtained without making creative work should all belong to the application protection Range.
Television signals network live streaming in existing TV, is all realized by Streaming Media.Existing general technology There are HLS (HTTP Live Streaming, hypertext transfer protocol live broadcast stream media), DASH (Dynamic Adaptive Streaming over HTTP, dynamic self-adapting Streaming Media), MSS (Maximum Segment Size, maximum fragment length) Three big stream media technologys.This several big stream media technology is all that first one manifest file of download, manifest files include more The address mark (uri) of a video clip, video clip for unit, are downloaded one by one with the second (s) according to the uri of video clip It plays.The realization of live streaming is that server constantly removes update manifest files to realize that video clip is constantly updated, to realize TV signal direct broadcast function.
For the video of live streaming, due to server real-time update manifest files, duration is increasing always, therefore does not have Method obtains the total duration and current play time point for playing video, so be impossible to obtain the time point after seek, therefore And seek functions are not supported in general networking live streaming.In order to solve this problem, the embodiment of the present application proposes a kind of network direct broadcasting The seek implementation methods of stream can calculate the time point for obtaining live video and playing, so as to live streaming by server Video carries out seek operations.
It is a kind of flow chart of the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application referring to Fig. 1.
As shown in Figure 1, the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application include:
S100:Start DST PLAYER, obtains the current play time point of live video.
Start DST PLAYER, starts to play live video.Server real-time update manifest files, because of Streaming Media The duration of each media fragment file is record in file manifest files, therefore downloads and parse manifest files, It obtains the duration of each media fragment and address in manifest files and identifies uri.It can be according to the duration of each media fragment Currently playing time point is calculated, the duration of such as each media fragment may be the same or different, we can be straight It broadcasts when video is broadcast and can be regarded as 0 point of time, the 0th media fragment starts timing, while starting to count to media fragment later Number is added up with the duration of each media fragment currently playing time point is calculated, and obtains the opposite of live video broadcasting Duration.
S200:Estimate server permission seek ranges, judge forward or backward the seek time points of seek with currently broadcast The time difference at time point is put whether within the scope of the seek.
Since some servers are when having refreshed new media fragment, the media fragment before periodically deleting, such as Some servers cross five minutes video contents that can be deleted before half an hour, some servers spend ten minutes and can delete ten minutes it Preceding video content, some servers will not delete video content, it is therefore desirable to first estimate the seek ranges of server permission, use Family can only could carry out forward and backward seek operations within the scope of the seek.
As shown in Fig. 2, the method for estimating the seek ranges of the seek forward of server permission is as follows:
S201:Set the first time difference of current play time point and seek time points forward.
Because server is real-time update, and the server having can be deleted according to certain rule in the video that played Hold, thus we execute seek operations must be there are one suitable section, if seek time points corresponding media fragment is forward Be deleted, then can not seek forward, therefore we only have and execute seek operations forward certain seek within the scope of.Server background The media play list of the maintenance possible time is long, it is also possible to which the time is shorter, therefore, in every secondary execution seek orders When, we can first estimate the range of a seek forward.
S202:According to the duration and first time difference of media fragment before current play time point, obtain described in forward Seek time points corresponding media fragment.
Allow the seek ranges of seek forward to estimate server, first set a current play time point with forward The first time difference t1 at seek time points obtains the duration of each media fragment before current play time point, according to setting Fixed first time difference t1 is obtained corresponding with the time points of seek forward of current play time point difference first time difference t1 Media fragment.
S203:The address of the media fragment is asked to identify to server, it is if asking successfully, the first time is poor Value is set to the seek ranges that server allows seek forward.
After getting seek time points corresponding media fragment forward, to server request, seek time points correspond to matchmaker forward The uri of body segment just illustrates to set if can ask that successfully (seek time points corresponding media fragment forward can be played) First time difference within the scope of the seek forward that server allows, then we can be temporary by the first time difference t1 of setting It is set to the seek ranges that server allows seek forward.
Then expand the range of first time difference t1 according to certain rule, setting time difference t1 ' is asked to server Media fragment corresponding with the time points of seek forward of current play time point difference time difference t1 ' will if asking successfully Server allows the seek ranges of seek to be forward updated to t1 ', if request failure, " is set as t1 and t1 ' by time difference t1 Between value;It is asked again to server corresponding with the time points of seek forward of current play time point difference time difference t1 " Media fragment allow the seek ranges of seek to be forward updated to t1 " server if asking successfully;If request failure, First time difference is changed again, until determining the seek ranges that final server allows seek forward.
S204:If request failure, resets the second time difference of current play time point and seek time points forward Value, until the address identification request success of media fragment.
If to server request forward seek time points corresponds to media fragment uri fail (can not play forward Seek time points corresponding media fragment), then illustrate the seek models forward that the first time difference of setting does not allow in server In enclosing, the media fragment at the first time difference corresponding time points of seek forward of setting is deleted by server, needs weight New settings seek time points forward reset the second time difference of current play time point and seek time points forward, And second time difference and first time difference follow certain rule, then ask to differ with current play time point to server The time points of the seek forward corresponding media fragment uri of second time difference, if asking that successfully, the second time difference is set to Server allows the seek ranges of seek forward;If request failure, when resetting current play time point with seek forward Between the third time difference put, until the uri of media fragment is asked successfully, then by the media fragment corresponding seek times forward The time difference of point and current play time point is set to the seek ranges that server allows seek forward.
In specific implementation process, the second time difference can be set as the half of first time difference, then to server The uri of media fragment corresponding with the current play time point difference time points of seek forward of the second time difference is asked, if request Second time difference is then set to the seek ranges that server allows seek forward by success;If request failure, reset are worked as The third time difference of preceding play time and seek time points forward, third time difference are set as the one of the second time difference Half, and so on, until corresponding media fragment is asked successfully.
In a particular embodiment, first time difference can be set as to 30min, i.e. current play time point and seek forward Time point differs 30min, and if current play time point is 30 minutes 1 hour, then seek time points are 1 hour forward, to server Request play time is that the uri of 1 hour corresponding media fragment is downloaded and broadcast according to the uri of media fragment if asking successfully Media fragment is put, while allowing the seek ranges of seek forward to fix tentatively as 30min server.If request failure, by second Time difference is set as 15min, i.e. current play time point differs 15min, such as current play time with seek time points forward Point be 30 minutes 1 hour, then forward seek time points be 1 hour 15 points, to server request play time be 1 hour 15 points pairs The uri of media fragment is answered, if it asks successfully, to download and play media fragment according to the uri of media fragment, while by server The seek ranges of seek forward are allowed to fix tentatively as 15min.If request failure, is set as 7.5min by third time difference, according to It is secondary to analogize, until forward seek time points corresponds to the uri of media fragment and asks successfully, then by current play time point and at this time to The time difference at preceding seek time points is set to the seek ranges that server allows seek forward.
In specific implementation process, also the second time difference can be set as first time difference and the difference of preset value, The preset value can be any integer values such as 2,4,5.After setting the second time difference, to server request and current play time The time points of seek forward of point the second time difference of difference correspond to the uri of media fragment, if asking successfully, by the second time difference Value fixes tentatively the seek ranges for allowing seek forward for server.If request failure, resets third time difference, by third Time difference is set as the difference of the second time difference and preset value, the uri of corresponding media fragment is asked to server again, if asking Hope for success work(, then third time difference is fixed tentatively to the seek ranges for allowing seek forward for server.If request failure, sets the Four time differences, and so on, until the uri of corresponding media fragment ask successfully, then by the media fragment correspond to time point and The time difference of current play time point is set to the seek ranges of server seek forward.
In a particular embodiment, first time difference can be set as to 30min, i.e. current play time point and seek forward Time point differs 30min, and if current play time point is 1 hour 30min, then seek time points are 1 hour forward, to server It is the uri of 1 hour corresponding media fragment to ask play time, if asking successfully, by server permission seek forward Seek ranges are set to 30min.If request failure, preset value value are 5, then the second time difference is set as 25min, it is such as current Play time be 1 hour 30 points, then forward seek time points be 1 hour 5 points, be 1 small to server request play time When 5 divide the uri of corresponding media fragment, if asking successfully, allow the seek ranges of seek to be forward set to 25min server. If request failure, is set as 20min by third time difference, and so on, until seek corresponds to the uri of media fragment forward It asks successfully, then by current play time point and at this time, the time difference at seek time points is set to server permission forward forward The seek ranges of seek.
The mode of setting current play time point and the time difference at seek time points forward is not limited only to 1/2 value method, pre- If value method etc. can also be to combine the two, the second time difference is such as set as to the half of first time difference, third time Difference is set as the difference of the second time difference and preset value, can so reduce request number of times, can also improve and estimate range Accuracy belongs to the protection domain of the embodiment of the present application.
As shown in figure 3, the method for estimating the seek ranges of the seek backward of server permission is as follows:
S205:Set the first time difference at seek time points and current play time point backward.
Because server is real-time update, the server update time is monotonic increase, indicates that live video update is arrived Time point, and the server update time can not get, we, which can only estimate server, allows seek's backward Seek ranges remove probe request media fragment.Only the time point of seek is located at the seek that server allows seek backward backward Seek operations could be carried out in range, and different server allows the seek ranges of seek backward different, therefore need first The first time difference t1 that sets seek time points and current play time point backward, estimating server allows seek backward Seek ranges.
S206:According to the duration and first time difference of media fragment after current play time point, obtain described in backward Seek time points corresponding media fragment.
The corresponding media fragment of current play time point is downloaded, each media fragment after current play time point is obtained Duration is calculated the seek time points backward for differing first time difference t1 with current play time point, and obtains backward Seek time points corresponding media fragment.
S207:The address of the media fragment is asked to identify to the server, if asking successfully, when by described first Between difference be set to the seek ranges that server allows seek backward.
After getting seek time points corresponding media fragment backward, to server request, seek time points correspond to matchmaker backward The uri of body segment illustrates the seek models backward that the first time difference t1 of setting allows in server if success can be asked In enclosing, the first time difference t1 of setting can be fixed tentatively the seek ranges for allowing seek backward for server by we.
Then expand the range of first time difference t1 according to certain rule, setting time difference t1 ' is asked to server Media fragment corresponding with the time points of seek backward of current play time point difference time difference t1 ' will if asking successfully Server allows the seek ranges of seek to be backward updated to t1 ', if request failure, " is set as t1 and t1 ' by time difference t1 Between value;It is asked again to server corresponding with the time points of seek backward of current play time point difference time difference t1 " Media fragment allow the seek ranges of seek to be backward updated to t1 " server if asking successfully;If request failure, First time difference is changed again, until determining the seek ranges that final server allows seek backward.
S208:If request failure, resets second time difference at seek time points and current play time point backward Value, until the address identification request success of media fragment.
If to server request backward seek time points corresponds to media fragment uri failure, illustrate set first Time difference is not within the scope of the seek backward that server allows or Streaming Media renewal time does not update the seek times backward also Point needs to reset seek time points backward, that is, resets seek time points and the second of current play time point backward Time difference, and the second time difference and first time difference follow certain rule, then to server request with it is currently playing Time point differs the time points of the seek backward corresponding media fragment uri of the second time difference, if asking successfully, when by second Between difference be set to the seek ranges that server allows seek backward;If request failure, reset backward seek time points with The third time difference of current play time point, until the uri of media fragment is asked successfully, then by the media fragment it is corresponding to The time difference of seek time points and current play time point is set to the seek ranges that server allows seek backward afterwards.
When setting the second time difference, third time difference according to certain rule, 1/2 value method can be used, i.e., when second Between difference be set as the half of first time difference, third time difference is set as the half of the second time difference, and so on. Preset value method can also be used, i.e. the second time difference is set as first time difference, and (preset value can be 1,2,3 etc. with preset value Less than the arbitrary value of first time difference) difference, third time difference is set as the difference of the second time difference and preset value, And so on.After setting time difference, successively to server ask to differ with current play time setting time difference to Time difference at this time until asking successfully, and is set to server permission backward by seek time points corresponding media fragment afterwards The seek ranges of seek.
After the seek ranges (seek ranges and seek ranges backward forward) that final confirmed service device allows, by the range to User shows, to facilitate user to be specifically chosen.
S300:If so, obtaining seek time points pair according to currently playing media fragment numerical value and the time difference The media fragment answered plays video since the media fragment.
As seek forward or when the time point of seek is located at the seek ranges of server permission backward, then according to currently playing The time difference at seek time points with seek forward or backward at time point obtains seek time points corresponding media fragment, downloads Seek time points and media fragment later, and video is played media fragment from this.
As shown in figure 4, the method for seek broadcastings video is as follows forward:
S301:Obtain the corresponding media fragment numerical value of current play time point.
As shown in figure 5, it is 0 that our regulation live videos, which act the time point broadcast, time shaft is divided into two, and one is as clothes The media time update_time that business device updates, which is monotonic increase, indicates the time that live video updates Point;One be media stream broadcasting time shaft stream_time, indicate time point for being played to of live video.For convenience, false The duration of such as each media fragment is 10s (duration of actually general media segment is different from), forward or backward seek Operation is all to be done according to the time shaft of stream_time to refer to.
Set time of live video as:Update_time=stream_time=0, while media fragment is opened from 0 Begin to count, i.e. segment_number=0, update_time can be with time monotonic increase, segment_number later Can monotonic increase, media fragment is counted (as soon as not downloading a media fragment uri, count and add 1), stream_time A beginning timing can be broadcast by video, so as to obtain current play time point.
Obtain the corresponding media fragment numerical value of current play time point, so that it may it is corresponding to obtain current play time point, such as work as Preceding live video play time is 80s, and the duration of each media fragment is 10s, then the corresponding matchmaker of current play time point Body segment numerical value is 8, i.e. segment_number=8.If current live video playback time point is 95s, each media piece The duration of section is 10s, then the corresponding media fragment numerical value=95/10=9 of current play time point, before reservation decimal point Integer part, i.e. segment_number=9.
S302:It is calculated according to the time difference of current play time point and seek time points forward and obtains current media segment The difference of numerical value and media fragment numerical value to be played.
After user selects the time point of seek forward, the time of current play time point and seek time points forward is calculated Difference, by the time difference divided by the duration of each media fragment, you can obtain current media segment numerical value segment_ The difference of number and media fragment numerical value to be played (forward seek time points corresponding media fragment numerical value), media fragment number Value difference value=(stream_time-seek_time)/10.
S303:According to the difference of current media segment numerical value and media fragment numerical value obtain described in seek time points pair forward The media fragment numerical value answered.
After the difference for obtaining current media segment numerical value segment_number and media fragment numerical value to be played, according to working as The difference of preceding media fragment numerical value segment_number and media fragment numerical value obtains the numerical value of media fragment to be played, i.e., to Preceding seek time points corresponding media fragment numerical value=segment_number- (stream_time-seek_time)/10.
S304:The address of the corresponding media fragment of the media fragment numerical value is asked to identify to the server, according to institute Address mark is stated to download and play the media fragment.
After obtaining seek time points corresponding media fragment numerical value forward, the media fragment numerical value is asked to correspond to server Media fragment address identify uri, played since seek time points corresponding media fragment forward, to realize forward Seek is operated.
In specific implementation process, if streaming media playing time stream_time has been played to 80s, user needs at this time Will seek forward operation, the video content for seeing some time point seek_time=20s is needed, then we can calculate: The relative time difference (stream_time-seek_time=80s-20s) of current play time point and seek time points forward For 60s;Assuming that the duration of media fragment is 10s, then current media segment numerical value (segment_number=8) with it is to be played The difference of media fragment numerical value=(stream_time-seek_time)/10=60/10=6;According to current media segment numerical value (segment_number=8) with the difference of media fragment numerical value 6, the numerical value=8-6=for obtaining media fragment to be played is calculated 2, i.e., seek time points corresponding media fragment numerical value is 2 forward;The media fragment for being 2 to server request media fragment numerical value Uri, jump to media fragment numerical value be 2 media fragment, played since the media fragment, to realize user forward The demand of seek to 20s.
For convenience, the duration of each media fragment is set as identical by the above method, but actually each media piece The duration of section is different, when the duration of each media fragment is different, and user selects seek forward, can be passed through The duration of each media fragment of manifest file acquisitions calculates the duration of the media fragment before current play time point, obtains Seek time points corresponding media fragment before being orientated.
The seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application can not only realize specified time point forward Seek is operated, and the operation of seek designated time periods forward is can also carry out, as streaming media playing time stream_time is played to 80s, user want to review the video content before 50s, i.e., when known current play time point and opposite with current play time point Between difference, then the method for executing seek forward is:Current media segment numerical value (segment_number=8) and media to be played Difference=50/10=5 of segment numerical value;According to current media segment numerical value (segment_number=8) and media fragment number The difference 5 of value calculates and obtains band and play media fragment numerical value=8-5=3, i.e. seek time points corresponding media fragment number forward Value is 3;To the uri for the media fragment that server request media fragment numerical value is 3, the media that media fragment numerical value is 3 are jumped to Segment is played since the media fragment, to realize the demand of user seek50s forward.
Using the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application, seek behaviour forward can be not only carried out Make, can also carry out seek operations backward.As shown in fig. 6, the method for seek broadcastings video is as follows backward:
S305:Obtain the corresponding media fragment numerical value of current play time point.
Since server update time update_time is monotonic increase, as streaming media playing time stream_time When synchronous with server update time update_time, seek operations backward can not be carried out at this time;When the streaming media playing time When stream_time is asynchronous with server update time update_time, user can allow seek backward in server Seek backward is carried out within the scope of seek to operate.
Obtain the corresponding media fragment numerical value of current play time point, so that it may it is corresponding to obtain current play time point, such as work as Preceding live video play time is 80s, and the duration of each media fragment is 10s, then the corresponding matchmaker of current play time point Body segment numerical value is 8, i.e. segment_number=8.
S306:It is calculated according to the time difference of seek time points backward and current play time point and obtains media piece to be played The difference of hop count value and current media segment numerical value.
After user selects the time point of seek backward, the time at seek time points and current play time point backward is calculated Difference, by the time difference divided by the duration of each media fragment, you can obtain current media segment numerical value segment_ The difference of number and media fragment numerical value to be played (backward seek time points corresponding media fragment numerical value), media fragment number Value difference value=(seek_time-stream_time)/10.
S307:According to the difference of current media segment numerical value and media fragment numerical value obtain described in seek time points pair backward The media fragment numerical value answered.
After the difference for obtaining media fragment numerical value to be played and current media segment numerical value segment_number, according to working as The difference of preceding media fragment numerical value segment_number and media fragment numerical value obtains the numerical value of media fragment to be played, i.e., to Seek time points corresponding media fragment numerical value=segment_number+ (seek_time-stream_time)/10 afterwards.
S308:The address of the corresponding media fragment of the media fragment numerical value is asked to identify to the server, and according to Described address mark is downloaded and plays the media fragment.
After obtaining seek time points corresponding media fragment numerical value backward, the media fragment numerical value is asked to correspond to server The address of media fragment identify uri, video content is played since seek time points corresponding media fragment backward, to real Now seek is operated backward.
In specific implementation process, if stream_time has been played to 80s, user needs the behaviour of seek backward at this time Make, such as need the video content for seeing some time point seek_time=120s, and this backward seek time points permit positioned at server Perhaps backward within the scope of the seek of seek, then we can calculate:The phase at seek time points and current play time point backward It is 40s to time difference (seek_time-stream_time=120s-80s);Assuming that the duration of media fragment is 10s, then Difference=(seek_time- of media fragment numerical value to be played and current media segment numerical value (segment_number=8) Stream_time)/10=40/10=4;According to current media segment numerical value (segment_number=8) and media fragment number The difference 4 of value calculates the numerical value=8+4=12 for obtaining media fragment to be played, i.e. seek time points corresponding media piece backward Hop count value is 12;To the uri for the media fragment that server request media fragment numerical value is 12, since the media fragment of the uri It plays, to realize the demand of user seek to 120s backward.
Ibid, the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application can not only realize specified time point Seek is operated backward, can also carry out the operation of seek designated time periods backward, as long as the period is located at server and allows backward Within the scope of the seek of seek.
S400:If it is not, then searching identical video content in current program request application according to electronic program guide information, cutting It changes to order video and watches the video content.
When the seek ranges allowed beyond server when the time point of seek forward or backward, then according to EPG (ElectronicProgram Guide, electronic program guides) is inquired in current program request application with the presence or absence of in identical video Hold, watches video content if so, being switched in program request application according to user's selection, i.e., user can select according to self-demand Whether it is switched in program request application, all update finishes video content in program request application, can arbitrarily forward or backward seek; If it is not, then showing there is no identical video content in program request application, seek operations cannot be also executed, can only wait until live video All after the completion of update, watched again in program request application.
Using the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application, live video may be implemented forward Or seek is operated backward, i.e. user has other things to need to handle during seeing live program, then one section will be missed Video, at this time if signal can be with seek forward, content before being arrived with seek within the scope of the seek that program allows The position of broadcasting allows video to restart to play, can also be automatic by EPG signals if having exceeded the seek ranges of program Whether identical order video in search identification Internet resources needs to be switched to order video broadcasting according to the user's choice;When When user does not like currently playing video content, at this time if signal can be allowed with seek backward in program The video that this section does not like can be skipped within the scope of seek with the positions that content plays after seek.In this way, significantly enhancing The experience of user.
The seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application include:Start DST PLAYER, obtains The current play time point of live video;The seek ranges of server permission are estimated, when judging the seek of seek forward or backward Between point with the time difference of current play time point whether within the scope of seek;If so, according to currently playing media fragment Numerical value media fragment corresponding with time difference acquisition seek time points, plays video since the media fragment;If it is not, then root According to electronic program guide information, identical video content in current program request application is searched, is switched in order video viewing video Hold.The seek implementation methods of network direct broadcasting stream provided by the present application can be each according to the manifest file acquisitions of server update The duration of media fragment is added up currently playing time point is calculated with the duration of each media fragment, so can The media fragment forward and backward to server request current play time point, to carry out seek operations to the video of live streaming;In addition, Due to the updated video content of the removing of server meeting not timing, it is therefore desirable to determine the seek ranges that server allows, User can carry out forward and backward seek operations in seek ranges to live video so that user, which can see emphatically, oneself to be liked seeing Content part greatly improves the good experience of user.
Based on the seek implementation methods of network direct broadcasting stream provided by the embodiments of the present application, the embodiment of the present application also provides one The seek realization devices of kind network direct broadcasting stream, as shown in fig. 7, the realization device includes:
Acquisition module 100, the current play time point for obtaining live video.Start DST PLAYER, server Real-time update manifest files, and described in manifest files the duration of each media fragment, therefore can basis The duration calculation of each media fragment obtains currently playing time point.
Module 200 is estimated, the seek ranges for estimating server permission.Since some servers are refreshing new matchmaker After body segment, can periodically delete before media fragment, if any server cross the video before deleting half an hour five minutes Content, some servers cross ten minutes video contents that can be deleted before ten minutes, it is therefore desirable to first estimate server permission Seek ranges, user can only could carry out forward and backward seek operations within the scope of the seek.
Judgment module 300, the time at seek time points and current play time point for judging seek forward or backward Whether difference is within the scope of seek.When user thinks the content of seek live videos forward, need to first determine whether seek's forward Whether seek time points and the time difference of current play time point exceed the seek ranges forward allowed, prevent user forward The time point of seek exceeds seek ranges, causes not executing seek operations forward;Similarly, seek also needs first to judge backward backward Whether the seek time points of seek are with the time difference of current play time point beyond the seek ranges backward allowed.
Seek modules 400, when the time difference of seek time points and current play time point is within the scope of seek, according to Currently playing media fragment numerical value media fragment corresponding with time difference acquisition seek time points, broadcasts since media fragment Put video.When being located within the scope of seek at the seek time points of seek forward or backward, seek time points pair are asked to server The media fragment answered plays video, to realize the seek forward or backward of live video since corresponding media fragment.
Point broadcasting module 500, when the time difference of seek time points and current play time point is not within the scope of seek, then According to electronic program guide information, identical video content in current program request application is searched, is switched to order video viewing video Content.When the seek time points of seek forward or backward are not within the scope of seek, search in program request application with the presence or absence of identical Video content, and if it exists, be then switched to order video viewing video;If being not present, stop seek operations.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, explanation will be not set forth in detail herein.
Since embodiment of above is that reference combination illustrates on other modes, have between different embodiments There is an identical part, just to refer each other for identical, similar part between each embodiment in this specification.Herein no longer in detail It illustrates.
It should be noted that in the present specification, the relational terms of such as " first " and " second " or the like are used merely to One operation is distinguished with another operation, and not necessarily requires or imply that there are any this reality between these operations Relationship or sequence.Moreover, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the circuit structure including a series of elements includes not only those elements, but also include other being not explicitly listed Element, or further include the element intrinsic for this circuit structure.In the absence of more restrictions, there is sentence " packet Include one ... " limit element, it is not excluded that there is also other identical elements in the circuit structure including the element.
Those skilled in the art will readily occur to its of the application after considering specification and putting into practice the disclosure invented here His embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the application and includes the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are wanted by right The content asked is pointed out.
Above-described the application embodiment does not constitute the restriction to the application protection domain.

Claims (10)

1. a kind of seek implementation methods of network direct broadcasting stream, which is characterized in that the method includes:
Start DST PLAYER, obtains the current play time point of live video;
The seek ranges of server permission are estimated, judge the seek time points of seek forward or backward and current play time point Whether time difference is within the scope of the seek;
If so, according to currently playing media fragment numerical value media piece corresponding with time difference acquisition seek time points Section plays video since the media fragment;
If it is not, then searching identical video content in current program request application according to electronic program guide information, being switched to program request and regard Frequency watches the video content.
2. according to the method described in claim 1, it is characterized in that, obtain live video current play time point, including:
The manifest files are downloaded and parsed to server real-time update manifest files, obtains the manifest texts The duration of each media fragment in part;
Currently playing time point is obtained according to the duration calculation of the media fragment.
3. according to the method described in claim 1, it is characterized in that, estimate server permission seek ranges, including:
Set the first time difference of current play time point and seek time points forward;
According to the duration and first time difference of media fragment before current play time point, obtain described in seek time points forward Corresponding media fragment;
It asks the address of the media fragment to identify to server, if asking successfully, the first time difference is set to clothes Business device allows the seek ranges of seek forward;
If request failure, resets the second time difference of current play time point and seek time points forward, until matchmaker The address identification request success of body segment.
4. according to the method described in claim 3, it is characterized in that, resetting current play time point and seek times forward Second time difference of point, until the address identification request success of media fragment, including:
Second time difference is set as the half of the first time difference;
Ask with the current play time point to differ the time points of seek forward of the second time difference corresponding to server The address of media fragment identifies, if ask successfully, second time difference is set to server permission seek forward Seek ranges;
If request failure, resets third time difference, and the third time difference is set as second time The half of difference, until the address identification request success of media fragment.
5. according to the method described in claim 3, it is characterized in that, resetting current play time point and seek times forward Second time difference of point, until the address identification request success of media fragment, further includes:
Second time difference is set as the difference of the first time difference and preset value;
Ask with the current play time point to differ the time points of seek forward of the second time difference corresponding to server The address of media fragment identifies, if ask successfully, second time difference is set to server permission seek forward Seek ranges;
If request failure resets the difference that third time difference is second time difference and preset value, until described The address identification request success of media fragment.
6. according to the method described in claim 1, it is characterized in that, estimate server permission seek ranges, further include:
Set the first time difference at seek time points and current play time point backward;
According to the duration and first time difference of media fragment after current play time point, obtain described in seek time points backward Corresponding media fragment;
The address of the media fragment is asked to identify to the server, if asking that successfully, the first time difference is determined Allow the seek ranges of seek backward for server;
If request failure, resets second time difference at seek time points and current play time point backward, until matchmaker The address identification request success of body segment.
7. according to the method described in claim 1, it is characterized in that, according to currently playing media fragment numerical value and the time Difference obtains seek time points corresponding media fragment, and video is played since the media fragment, including:
Obtain the corresponding media fragment numerical value of current play time point;
It is calculated according to the time difference of current play time point and seek time points forward and obtains current media segment numerical value and wait for Play the difference of media fragment numerical value;
According to the difference of current media segment numerical value and media fragment numerical value obtain described in seek time points corresponding media forward Segment numerical value;
It asks the address of the corresponding media fragment of the media fragment numerical value to identify to the server, is identified according to described address It downloads and plays the media fragment.
8. the method according to the description of claim 7 is characterized in that according to current play time point and seek time points forward Time difference calculates the difference for obtaining current media segment numerical value and media fragment numerical value to be played, including:
The duration for setting each media fragment is equal;
By the duration of current play time point and the time difference divided by media fragment at seek time points forward, calculates and obtain currently The difference of media fragment numerical value and media fragment numerical value to be played.
9. according to the method described in claim 1, it is characterized in that, according to currently playing media fragment numerical value and the time Difference obtains seek time points corresponding media fragment, and video is played since the media fragment, further includes:
Obtain the corresponding media fragment numerical value of current play time point;
Calculated according to the time difference of seek time points backward and current play time point obtain media fragment numerical value to be played with The difference of current media segment numerical value;
According to the difference of current media segment numerical value and media fragment numerical value obtain described in seek time points corresponding media backward Segment numerical value;
The address of the corresponding media fragment of the media fragment numerical value is asked to identify to the server, and according to described address mark Know and downloads, plays the media fragment.
10. a kind of seek realization devices of network direct broadcasting stream, which is characterized in that described device includes:
Acquisition module, the current play time point for obtaining live video;
Module is estimated, the seek ranges for estimating server permission;
Judgment module:Whether the time difference at seek time points and current play time point for judging seek forward or backward Within the scope of the seek;
Seek modules, when the time difference of seek time points and current play time point is within the scope of the seek, then basis Currently playing media fragment numerical value media fragment corresponding with time difference acquisition seek time points, is opened from the media fragment Begin to play video;
Point broadcasting module, when the time difference of seek time points and current play time point is not within the scope of the seek, then root According to electronic program guide information, identical video content in current program request application is searched, is switched in order video viewing video Hold.
CN201810193513.7A 2018-03-09 2018-03-09 A kind of the seek implementation methods and device of network direct broadcasting stream Pending CN108419136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810193513.7A CN108419136A (en) 2018-03-09 2018-03-09 A kind of the seek implementation methods and device of network direct broadcasting stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810193513.7A CN108419136A (en) 2018-03-09 2018-03-09 A kind of the seek implementation methods and device of network direct broadcasting stream

Publications (1)

Publication Number Publication Date
CN108419136A true CN108419136A (en) 2018-08-17

Family

ID=63130758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810193513.7A Pending CN108419136A (en) 2018-03-09 2018-03-09 A kind of the seek implementation methods and device of network direct broadcasting stream

Country Status (1)

Country Link
CN (1) CN108419136A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110337040A (en) * 2019-06-27 2019-10-15 深圳市酷开网络科技有限公司 Time shifting of television reviews method, apparatus, smart television and system
CN114679618A (en) * 2022-05-27 2022-06-28 成都有为财商教育科技有限公司 Method and system for receiving streaming media data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130936A (en) * 2010-08-17 2011-07-20 华为技术有限公司 Method and device for supporting time shifting and look back in dynamic hyper text transport protocol (HTTP) streaming transmission scheme
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast
CN102883187A (en) * 2012-09-17 2013-01-16 华为技术有限公司 Time-shift program service method, equipment and system
CN103763580A (en) * 2014-01-06 2014-04-30 深圳创维数字技术股份有限公司 Multimedia playing method and relevant device
CN103763581A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and system for achieving back view of live program
CN104469433A (en) * 2013-09-13 2015-03-25 深圳市腾讯计算机系统有限公司 Live video replay method and device
WO2017222645A1 (en) * 2016-06-24 2017-12-28 Intel Corporation Crowd-sourced media playback adjustment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130936A (en) * 2010-08-17 2011-07-20 华为技术有限公司 Method and device for supporting time shifting and look back in dynamic hyper text transport protocol (HTTP) streaming transmission scheme
CN102790911A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and system for playback of live broadcast
CN102883187A (en) * 2012-09-17 2013-01-16 华为技术有限公司 Time-shift program service method, equipment and system
CN103763581A (en) * 2013-05-02 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and system for achieving back view of live program
CN104469433A (en) * 2013-09-13 2015-03-25 深圳市腾讯计算机系统有限公司 Live video replay method and device
CN103763580A (en) * 2014-01-06 2014-04-30 深圳创维数字技术股份有限公司 Multimedia playing method and relevant device
WO2017222645A1 (en) * 2016-06-24 2017-12-28 Intel Corporation Crowd-sourced media playback adjustment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110337040A (en) * 2019-06-27 2019-10-15 深圳市酷开网络科技有限公司 Time shifting of television reviews method, apparatus, smart television and system
CN114679618A (en) * 2022-05-27 2022-06-28 成都有为财商教育科技有限公司 Method and system for receiving streaming media data
CN114679618B (en) * 2022-05-27 2022-08-02 成都有为财商教育科技有限公司 Method and system for receiving streaming media data

Similar Documents

Publication Publication Date Title
CN104935968B (en) The method and system of Web TV recommendation program
CN106993212B (en) Method and device for playing multiple paths of videos in browser window
CN106060055B (en) A kind of television video playback method and system
US20060218620A1 (en) Network digital video recorder and method
CN105230035B (en) The processing of the social media of time shift multimedia content for selection
CN110191372A (en) Multimedia interaction method, system and device
CN105791949B (en) Method of program recording and device
CN104469512A (en) Video player and video playing control method thereof
CN110087119A (en) Homepage display methods, device and computer readable storage medium is broadcast live
CN105187941B (en) A kind of television terminal and control method of intelligent management favorites
CN105872786B (en) A kind of method and device for launching advertisement by barrage in a program
US20100138655A1 (en) Terminal apparatus and operation information collecting system
CN104202652B (en) The control method for playing back and set top box of a kind of television set top box
CN105611337B (en) A kind of advertisement leisure and promotion method and system
CN109714622B (en) Video data processing method and device and electronic equipment
KR100738685B1 (en) Apparatus and its method for providing additional information using bi-directional broadcasting service
CN108632675A (en) A kind of direct playing and playback method, apparatus and equipment
CN110366024A (en) A kind of method and device playing video
CN101924918A (en) Method for broadcasting program by using terminal and terminal
CN109218765A (en) A kind of net cast room recommended method and device
CN108419136A (en) A kind of the seek implementation methods and device of network direct broadcasting stream
CN110062254A (en) A kind of method and apparatus of barrage publication
CN103281566B (en) A kind of method and device of video switching
CN106162350A (en) Program recommendation device, system and method
CN105592369B (en) A kind of video frequency abstract processing method and processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180817

RJ01 Rejection of invention patent application after publication