CN109874025A - It is a kind of live streaming, time shift and look back function monitoring method and device - Google Patents
It is a kind of live streaming, time shift and look back function monitoring method and device Download PDFInfo
- Publication number
- CN109874025A CN109874025A CN201910164466.8A CN201910164466A CN109874025A CN 109874025 A CN109874025 A CN 109874025A CN 201910164466 A CN201910164466 A CN 201910164466A CN 109874025 A CN109874025 A CN 109874025A
- Authority
- CN
- China
- Prior art keywords
- monitored
- channel
- time shift
- live streaming
- back function
- 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
Links
Landscapes
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The present invention provides the monitoring methods and device of a kind of live streaming, time shift and look back function, this method comprises: for the channel to be monitored for needing to be monitored live streaming, time shift and look back function, solicited message is sent to signal source, wherein the solicited message is used to obtain the broadcast address of the channel to be monitored;Judge whether to get the broadcast address;If the broadcast address has not been obtained, issues the live streaming, time shift and look back function for indicating the channel to be monitored and the first abnormal warning message occur;If having got the broadcast address, using the broadcast address from the signal source download transmission flow section;When downloading to the transport stream segment from the signal source not successfully, issues the live streaming, time shift and look back function for indicating the channel to be monitored and the second abnormal warning message occur.This programme can reduce the cost being monitored to live streaming, time shift and look back function.
Description
Technical field
The present invention relates to tv broadcasting technology field, in particular to the monitoring method of a kind of direct broadcast time-shift and look back function and
Device.
Background technique
Digital video switching box (Set Top Box, STB) is commonly referred to as set-top box, is one for connecting television set
With the equipment of outside source, the digital signal of compression can be converted into television content and shown on a television set.Machine
Live streaming, time shift and the look back function that top box provides, can watch live television programming by direct broadcast function user, pass through time shift function
Energy user can realize rewind during watching live television programming, can be watched by look back function user and knot has been broadcast live
The TV programme of beam.
Set-top box is likely to occur the exception of live streaming, time shift and look back function in actual use, in order to timely
It was found that the abnormal usage experience to promote user that live streaming, time shift and look back function occur, needs through artificial monitor mode
To determine whether the live streaming, time shift and look back function of set-top box are abnormal.
For the method at present by manually monitoring live streaming, time shift and look back function, need to be monitored under normal conditions
Channel have multiple, and each channel is required to manually be monitored, this needs to expend a large amount of man power and material, causes pair
The higher cost that live streaming, time shift and look back function are monitored.
Summary of the invention
The embodiment of the invention provides the monitoring methods and device of a kind of live streaming, time shift and look back function, can reduce pair
The cost that live streaming, time shift and look back function are monitored.
In a first aspect, the embodiment of the invention provides the monitoring methods of a kind of live streaming, time shift and look back function, comprising:
For the channel to be monitored that needs are monitored live streaming, time shift and look back function, request letter is sent to signal source
Breath, wherein the solicited message is used to obtain the broadcast address of the channel to be monitored;
Judge whether to get the broadcast address;
If the broadcast address has not been obtained, live streaming, time shift and the look back function for indicating the channel to be monitored are issued
There is the first abnormal warning message;
If having got the broadcast address, using the broadcast address from the signal source download transmission flow section;
When downloading to the transport stream segment from the signal source not successfully, issues and indicate the straight of the channel to be monitored
It broadcasts, the second abnormal warning message occur in time shift and look back function.
Optionally,
In the first alarm signal of live streaming, time shift and look back function the appearance exception for issuing and indicating the channel to be monitored
After breath, further comprise:
According to the searching loop sequence in advance at least two channel settings to be monitored, for next described wait supervise
It is described to signal source transmission solicited message to control channel execution;
In the second alarm signal of live streaming, time shift and look back function the appearance exception for issuing and indicating the channel to be monitored
After breath, further comprise:
According to the searching loop sequence, described send to signal source is executed for next channel to be monitored and is requested
Information.
Optionally, it utilizes the broadcast address after the signal source download transmission flow section described, further wraps
It includes:
The transport stream segment is downloaded to from the signal source if succeeded, is directed to according to the searching loop sequence
Next channel to be monitored executes described to signal source transmission solicited message.
It is optionally, described to utilize the broadcast address from the signal source download transmission flow section, comprising:
The first transport stream fragment address got is determined from the broadcast address;
Splicing downloading is carried out according to first transport stream fragment address.
Optionally,
It is described to issue the first abnormal alarm signal of live streaming, time shift and the look back function appearance for indicating the channel to be monitored
Breath, comprising:
The first alarm mail is sent to preset email address, wherein the alarm mail carries described in instruction
There is abnormal first warning message in live streaming, time shift and the look back function of channel to be monitored;
It is described to issue the second abnormal alarm signal of live streaming, time shift and the look back function appearance for indicating the channel to be monitored
Breath, comprising:
The second alarm mail is sent to the email address, wherein it is described to be monitored that the alarm mail carries instruction
There is abnormal second warning message in live streaming, time shift and the look back function of channel.
Second aspect, the embodiment of the invention also provides the monitoring devices of a kind of live streaming, time shift and look back function, comprising:
Acquiring unit, judging unit, download unit and alarm unit;
The acquiring unit, the channel to be monitored for being monitored for needs to live streaming, time shift and look back function, to
Signal source sends solicited message, wherein the solicited message is used to obtain the broadcast address of the channel to be monitored;
The judging unit, for judging whether the acquiring unit gets the broadcast address;
The download unit, for determining that the acquiring unit has got the broadcast address in the judging unit
Afterwards, the broadcast address got using the acquiring unit is from the signal source download transmission flow section;
The alarm unit, for determining that the broadcast address has not been obtained in the acquiring unit in the judging unit
When, it issues the live streaming, time shift and look back function for indicating the channel to be monitored and the first abnormal warning message occurs, and in institute
When stating download unit and downloading to the transport stream segment from the signal source not successfully, issues and indicate the straight of the channel to be monitored
It broadcasts, the second abnormal warning message occur in time shift and look back function.
Optionally,
The acquiring unit is further used for issuing first warning message or second report in the alarm unit
After alert information, according to the searching loop sequence in advance at least two channel settings to be monitored, for next described
Channel to be monitored sends the solicited message to the signal source.
Optionally,
The acquiring unit, being further used for having succeeded in the download unit downloads to the transmission from the signal source
After flow section, it is directed to next channel to be monitored according to the searching loop sequence to described in signal source transmission
Solicited message.
Optionally,
The download unit, first transport stream got for determining the acquiring unit from the broadcast address
Fragment address, and splicing downloading is carried out according to first transport stream fragment address.
Optionally,
The alarm unit, for sending the first alarm mail or the second alarm mail to preset email address,
Wherein, first alarm mail carries first warning message, and second alarm mail carries second report
Alert information.
It is provided in an embodiment of the present invention live streaming, time shift and look back function monitoring method and device, for channel to be monitored
After sending solicited message to signal source, if failing to get the broadcast address of channel to be monitored, instruction frequency to be monitored is issued
There is the first abnormal warning message in live streaming, time shift and the look back function in road, if can enough get broadcasting for channel to be monitored
Address is put, then according to the broadcast address got from signal source download transmission flow section, later if failed from signal source
Transport stream segment is downloaded to, then issues the live streaming, time shift and look back function for indicating channel to be monitored and the second abnormal alarm occurs
Information.It can be seen that monitoring whether can be from signal source by process of the analog set top from signal source download transmission flow section
Broadcast address and according to broadcast address download transmission flow section is obtained, the first alarm signal is issued when broadcast address can not be obtained
Breath, can not issue the second warning message when download transmission flow section, to realize the automatic of live streaming, time shift and look back function
Monitoring, without put into a large amount of man power and materials use by being manually monitored to live streaming, time shift and look back function, so as to
Reduce the cost being monitored to live streaming, time shift and look back function.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 be a kind of live streaming provided by one embodiment of the present invention, time shift and look back function monitoring method flow chart;
Fig. 2 is the process of the monitoring method of another live streaming provided by one embodiment of the present invention, time shift and look back function
Figure;
Fig. 3 be a kind of live streaming provided by one embodiment of the present invention, time shift and look back function monitoring device where equipment
Schematic diagram;
Fig. 4 be a kind of live streaming provided by one embodiment of the present invention, time shift and look back function monitoring device schematic diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, the embodiment of the invention provides the monitoring method of a kind of live streaming, time shift and look back function, this method
It may comprise steps of:
Step 101: the channel to be monitored being monitored for needs to live streaming, time shift and look back function is sent out to signal source
Solicited message is sent, wherein solicited message is used to obtain the broadcast address of channel to be monitored;
Step 102: judge whether to get broadcast address, if so, 103 are executed, it is no to then follow the steps 106;
Step 103: utilizing broadcast address from signal source download transmission flow section;
Step 104: judge whether to download to transport stream segment, if so, terminate current process, it is no to then follow the steps 105;
Step 105: issuing the live streaming, time shift and look back function for indicating channel to be monitored and the second abnormal alarm signal occur
Breath, and terminate current process;
Step 106: issuing the live streaming, time shift and look back function for indicating channel to be monitored and the first abnormal alarm signal occur
Breath.
The monitoring method of live streaming provided in an embodiment of the present invention, time shift and look back function, for channel to be monitored to signal
After source sends solicited message, if failing to get the broadcast address of channel to be monitored, the straight of instruction channel to be monitored is issued
It broadcasts, the first warning message that the appearance of time shift and look back function is abnormal, if can enough get the broadcast address of channel to be monitored,
Biography is then downloaded to from signal source if failed later from signal source download transmission flow section according to the broadcast address got
Defeated flow section then issues the live streaming, time shift and look back function for indicating channel to be monitored and the second abnormal warning message occurs.Thus
As it can be seen that by process of the analog set top from signal source download transmission flow section monitoring whether that broadcasting can be obtained from signal source
Address and according to broadcast address download transmission flow section, the first warning message is issued when that can not obtain broadcast address, can not
The second warning message is issued when download transmission flow section, to realize the automatic monitoring of live streaming, time shift and look back function, is not necessarily to
A large amount of man power and materials are put into use by being manually monitored live streaming, time shift and look back function, so as to reduce to straight
It broadcasts, the cost that time shift and look back function are monitored.
Optionally, live streaming shown in Fig. 1, time shift and look back function monitoring method on the basis of, issue the in step 106
It, can be according to the searching loop sequence in advance at least two channel settings to be monitored, for next after one warning message
Channel to be monitored starts to execute step 101.It correspondingly, can also be according to wait supervise after step 105 issues the second warning message
The searching loop sequence for controlling channel is directed to next channel to be monitored and starts to execute step 101.
The channel more than one being monitored to live streaming, time shift and look back function is needed, under normal conditions in order to each
Live streaming, time shift and the look back function of channel to be monitored are monitored, and can be ranked up in advance to each channel to be monitored, are obtained
Searching loop sequence corresponding to each channel to be monitored.In the live streaming, time shift and look back function for determining a channel to be monitored
It, can live streaming, time shift and look back function according to set searching loop sequence to a channel to be monitored after there is exception
It is monitored.
For each channel setting searching loop sequence to be monitored, in live streaming, the time shift for determining a channel to be monitored
After being abnormal with look back function, according to searching loop sequence to live streaming, time shift and the look back function of next channel to be monitored
It is monitored, guaranteeing can also be persistently to other after exception occur in the live streaming, time shift and look back function of a channel to be monitored
Live streaming, time shift and the look back function of channel to be monitored are monitored, and guarantee the company being monitored to live streaming, time shift and look back function
Continuous property, and then can find that abnormal channel occur in live streaming, time shift and look back function in time.
It optionally, equally can be with if the judging result of step 104 is to have succeeded and download to transport stream segment from signal source
Next channel to be monitored is started according to searching loop sequence to execute step 101.
For current channel to be monitored, if it is possible to which success downloads to the biography corresponding to the channel to be monitored from signal source
Defeated flow section illustrates for the available broadcast address of the channel to be monitored and can be according to broadcast address download transmission flow
Section, i.e., the live streaming, time shift of the channel to be monitored and look back function are without exception.Determine current channel to be monitored live streaming, when
After shifting and look back function are without exception, next channel to be monitored is directed to according to searching loop sequence and is executed and current frequency to be monitored
The identical processing in road, it is whether abnormal with live streaming, time shift and the look back function of the next channel to be monitored of determination.
, no matter should be wait supervise after the monitoring for completing to carry out the live streaming, time shift and look back function of a channel to be monitored
Whether live streaming, time shift and the look back function of control channel there is exception, all in accordance with searching loop sequence under the channel to be monitored
Live streaming, time shift and the look back function of one channel to be monitored are monitored, thus realize to the live streaming of each channel to be monitored, when
It moves and look back function carries out circularly monitoring, on the one hand can satisfy the demand being monitored to different channel, it on the other hand can be with
It avoids persistently being monitored the case where causing computing resource waste generation to the same channel.
Optionally, on the basis of the monitoring method of live streaming shown in Fig. 1, time shift and look back function, step 103 utilizes broadcasting
When address is from signal source download transmission flow section, first biography got can be specifically determined from the broadcast address got
Defeated flow sector address, and then splicing downloading is carried out according to the first transport stream fragment address determined, to attempt from signal source
Download transport stream segment corresponding with first transport stream fragment address.
Signal source transmits content of TV program in the form of transport stream (Transport Stream, TS) segment,
Each transport stream segment corresponds to a video file, can form continuous television content after the combination of adjacent video file,
To need to be downloaded when from signal source download transmission flow section by way of splicing downloading.From signal source obtain pair
Should be when the broadcast address of channel to be monitored, accessed broadcast address includes continuous multiple transport stream fragment address,
Each transport stream fragment address corresponds to a transport stream segment, and then can be according to first in accessed broadcast address
A transport stream fragment address carries out splicing downloading, to download transmission flow corresponding with first transport stream fragment address
Sector address.
First transport stream fragment address is determined in broadcast address to get, and then according to first determined
Transport stream fragment address downloads a corresponding transport stream segment to splice, and on the one hand obtains first transmission flow in order
Sector address can save the time of determining transport stream fragment address, the time needed for shortening download transmission flow section, on the other hand
Time needed for only one transport stream segment of downloading can also shorten download transmission flow section, so as to shorten single to straight
It broadcasts, the time that time shift and look back function are monitored, to improve the efficiency being monitored to live streaming, time shift and look back function.
Optionally, on the basis of the monitoring method of live streaming shown in Fig. 1, time shift and look back function, step 106 issues first
When warning message, the first alarm mail for carrying the first warning message can be specifically sent to preset email address.
Correspondingly, when step 105 issues the second warning message, it can specifically be sent to preset email address and carry the second report
Second alarm mail of alert information.
One or more email addresses are preset, after monitoring live streaming, time shift and look back function and exception occur, to institute
Each email address of setting sends alarm mail, and corresponding management personnel can determine accordingly according to the alarm mail received
Live streaming, time shift and the look back function of channel to be monitored there is exception, and then administrative staff can in time to live streaming, time shift and
There is abnormal channel and is handled in look back function, and reduces the duration of live streaming, time shift and look back function exception, promotes user
Usage experience.
In embodiments of the present invention, content included by the first warning message and the second warning message can be identical, such as
It may include ID and the live streaming, time shift and look back function abnormity prompt information of corresponding channel to be monitored, administrative staff exist at this time
It can determine that abnormal abnormal frequency occur in live streaming, time shift and look back function according to the ID of channel to be monitored after receiving alarm mail
Road.Certainly, content included by the first warning message and the second warning message can also be different, for example the first warning message includes
The ID of channel to be monitored and prompt broadcast address obtain the information of failure, the second warning message include the ID of channel to be monitored with
And the information of prompt transport stream segment failed download, administrative staff not only can be according to wait supervise after receiving alarm mail at this time
The ID for controlling channel determines that abnormal abnormal channel occur in live streaming, time shift and look back function, can also determine cause live streaming, time shift and
There is abnormal reason in look back function (broadcast address obtains failure or transport stream segment failed download).
It should be noted that the monitoring method of live streaming, time shift and look back function provided by above-mentioned each embodiment can be with
It is real by HLS (HTTP Live Streaming, dynamic code rate adaptive technique) protocol interface and pressure test tool Jmeter
It is existing.Pressure test tool Jmeter can send the ID of channel to be monitored to HLS protocol interface, and HLS protocol interface is according to being connect
The ID received sends the solicited message for obtaining the broadcast address of channel to be monitored to signal source.When HLS protocol interface not at
When function gets the broadcast address of channel to be monitored, HLS protocol interface returns to failure information to pressure test tool Jmeter;When
When HLS protocol interface is not successfully downloaded transport stream segment, HLS protocol interface is unsuccessfully believed to pressure test tool Jmeter return
Breath;When HLS protocol interface is successfully downloaded to transport stream segment, HLS protocol interface to pressure test tool Jmeter return at
Function information.After pressure test tool Jmeter receives the failure information of HLS protocol interface return, pressure test tool
Jmeter alert (the first warning message or the second warning message).
Pressure test tool Jmeter call HLS protocol interface code may include:
< HTTPSamplerProxy guiclass=" HttpTestSampleGui " testclass="
HTTPSamplerProxy " testname=" time shift " enabled=" true " >
< elernentProp name=" HTTPsampler.Arguments " elementType=" Arguments "
Guiclass=" HTTPArgumentsPanel " testclass="
" user-defined variable " enabled=" true " >
<collectionProp name=" Arguments.arguments "/>
</elementProp>
<stringProp name="HTTPSampler.domain">hLS interface IP</stringProp>
<stringProp name="HTTPSampler.port">hLS interface port</stringProp>
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.Response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol">http</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">hLS interface IP address</stringProp>
<stringProp name="HTTPSampler.method">gET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<boolProp name="HTTPSampler.monitor">false</boolProp>
<boolProp name="HTTPSampler.embedded_url_re"></stringProp>
</HTTPSamplerProxy>。
HLS protocol interface downloading TS code may include:
public Map<String,Object>SDSWTestShift(String folder){
Map<String, Object>resultMap=new HashMap<>();
String msg=" ";
Boolean result=false;
UrlRequest urlRequest=new UrlRequest (" http :/...="+folder+ " &
Shifttime=60 ");
String str=urlRequest.getUrlRequestString ();
String [] strs=str.split (" #EXTINF:5.0, ");
String urlStr=" ";
Int code=200;
if(strs.length>l){
Ur1Str=strs [l];
Map<String, String>map=downloadNet (urlStr);
If (StringUtils.equals (map.get (" result "), " true ")==true)
Msg=" ts is downloaded successfully, document location D: //testdownload/ "+map.get (" name ")+" .ts ";
Result=true;
}else{}。
Pressure test tool Jmeter send alarm mail code may include:
< elementProp=name=" MailerResultCollector.mailer_model " elementType
=" Mai lerMode " >
<stringProp name="MailerModel.successLimit">0</stringProp>
<stringProp name="MailerModel.failureLimit">l</stringProp>
<stringProp name="MailerModel.failureSubject">test fail</stringProp>
<stringProp name="MailerModel.fromAddress">xxxx@163.com</stringProp>
<stringProp name="MailerModel.smtpHost">smtp.qq.com</stringProp>
<stringProp name="MailerModel.sueeessSubject"></stringProp>
<stringProp name=" MailerModel.addressie ">xxx.x@163.com, xxxx@163.com
</stringProp>
<stringProp name="MailerModel.smtpPort">465</stringProp>
<stringProp name="MailerModel.login">xxx.x@163.com</stringProp>
<stringProp name="MailerModel.password">mxuqweyewljkbgdi</stringProp
>
<stringProp name="MailerModel.authType">sSL</stringProp>
</elementProp>。
It is straight provided by the embodiment of the present invention to be realized by pressure test tool Jmeter and HLS protocol interface below
It broadcasts, for the monitoring method of time shift and look back function, the monitoring to live streaming provided in an embodiment of the present invention, time shift and look back function
Method is described in further detail, as shown in Fig. 2, this method may include steps of:
Step 201: pressure test tool Jmeter sends the channel ID of channel to be monitored to HLS protocol interface.
In embodiments of the present invention, storage is directed to following for multiple channels to be monitored in pressure test tool Jmeter in advance
Ring traversal order, pressure test tool Jmeter successively send out the channel ID of each channel to be monitored according to searching loop sequence
Give HLS protocol interface.Specifically, pressure test tool Jmeter is sending a channel to be monitored to HLS protocol interface
After channel ID, the monitored results that pressure test tool Jmeter waits HLS protocol interface to return, pressure test tool Jmeter
It is next to the transmission of HLS protocol interface further according to searching loop sequence after the monitored results for receiving the return of HLS protocol interface
The channel ID of a channel to be monitored.
Step 202:HLS protocol interface sends user to signal source according to the channel ID received and obtains asking for broadcast address
Seek information.
In embodiments of the present invention, HLS protocol interface is receiving a frequency transmitted by pressure test tool Jmeter
After road ID, HLS protocol interface forms corresponding solicited message according to the channel ID received, and will be formed by request letter
Breath is sent to signal source.HLS protocol interface is formed by the channel ID carried received by it in solicited message, in positive reason
The broadcast address of corresponding channel to be monitored can be handed down to by signal source according to channel ID entrained in solicited message under condition
HLS protocol interface.
Step 203:HLS protocol interface judges whether successfully to get broadcast address, if so, executing step 204, otherwise
Execute step 207.
In embodiments of the present invention, waiting signal source returns after HLS protocol interface sends solicited message to signal source
Broadcast address, if the broadcast address that HLS protocol interface is returned to signal source within the preset waiting time, it is determined that broadcast
It puts address to obtain successfully, step 204 is correspondingly executed, if HLS protocol interface is not received by within the preset waiting time
The broadcast address that signal source returns, it is determined that broadcast address obtains failure, correspondingly executes step 207.
Step 204:HLS protocol interface is according to the broadcast address got from signal source download transmission flow section.
In embodiments of the present invention, HLS protocol interface utilizes first got after successfully getting broadcast address
The broadcast address of a transport stream segment carries out splicing downloading, to download transport stream segment corresponding with channel to be monitored.
Whether step 205:HLS protocol interface segment is successfully downloaded to transport stream segment, if so, step 206 is executed, it is no
Then follow the steps 207.
In embodiments of the present invention, if the success of HLS protocol interface downloads to the transport stream of channel to be monitored from signal source
Segment, explanation can correspondingly execute step 206 normally from signal source download transmission stream.If HLS protocol interface fails
The transport stream segment of channel to be monitored is downloaded to from signal source, explanation can not correspondingly be held normally from signal source download transmission stream
Row step 207.
Step 206:HLS protocol interface is proved to be successful information to pressure test tool Jmeter transmission, and terminates current stream
Journey.
In embodiments of the present invention, HLS protocol interface successfully obtains broadcast address and is successfully downloaded to according to broadcast address
After transport stream segment, HLS protocol interface is proved to be successful information, pressure test tool to pressure test tool Jmeter transmission
Jmeter receive be proved to be successful information after can determine live streaming, time shift and look back function corresponding to channel to be monitored just
Often, start to verify next channel to be monitored according to searching loop sequence.
Step 207:HLS protocol interface sends authentication failed information to pressure test tool Jmeter.
In embodiments of the present invention, HLS protocol interface gets broadcast address or not successfully according to broadcasting ground failed
After location gets transport stream segment, HLS protocol interface sends authentication failed information to pressure test tool Jmeter.
Step 208: pressure test tool Jmeter sends alarm mail to preset email address.
In embodiments of the present invention, pressure test tool Jmeter is receiving the mistake of verifying transmitted by HLS protocol interface
After losing information, alarm mail is sent to preset one or more email addresses, notifies administrative staff corresponding wait supervise
Live streaming, time shift and the look back function of control channel are abnormal.
As shown in Figure 3, Figure 4, the embodiment of the invention provides the monitoring devices of a kind of live streaming, time shift and look back function.Dress
Setting embodiment can also be realized by software realization by way of hardware or software and hardware combining.From hardware view
Speech, as shown in figure 3, for one kind of equipment where the monitoring device of live streaming provided in an embodiment of the present invention, time shift and look back function
Hardware structure diagram, other than processor shown in Fig. 3, memory, network interface and nonvolatile memory, in embodiment
Equipment where device can also include usually other hardware, such as be responsible for the forwarding chip of processing message.It is implemented in software
For, it is by the CPU of equipment where it by nonvolatile memory as shown in figure 4, as the device on a logical meaning
In corresponding computer program instructions be read into memory operation formed.Live streaming provided in this embodiment and reviews function at time shift
The monitoring device of energy, comprising: acquiring unit 401, judging unit 402, download unit 403 and alarm unit 404;
Acquiring unit 401, the channel to be monitored for being monitored for needs to live streaming, time shift and look back function, to
Signal source sends solicited message, and wherein solicited message is used to obtain the broadcast address of channel to be monitored;
Judging unit 402, for judging whether acquiring unit 401 gets broadcast address;
Download unit 403, for after judging unit 402 determines that acquiring unit 401 got broadcast address, using obtaining
The broadcast address for taking unit 401 to get is from signal source download transmission flow section;
Alarm unit 404, for when judging unit 402 determines that broadcast address has not been obtained in acquiring unit 401, sending to refer to
Show that the first abnormal warning message occur in the live streaming, time shift and look back function of channel to be monitored, and download unit 403 not at
When function downloads to transport stream segment from signal source, issues the live streaming, time shift and look back function for indicating channel to be monitored and exception occur
The second warning message.
Optionally, on the basis of the monitoring device of live streaming shown in Fig. 4, time shift and look back function,
Acquiring unit 401, be further used for alarm unit 404 issue the first warning message or the second warning message it
Afterwards, according to the searching loop sequence in advance at least two channel settings to be monitored, for next channel to be monitored to signal
Source sends solicited message.
Optionally, on the basis of the monitoring device of live streaming shown in Fig. 4, time shift and look back function,
Acquiring unit 401, be further used for download unit 403 succeeded from signal source download to transport stream segment it
Afterwards, it is directed to according to searching loop sequence and solicited message is sent to signal source to next channel to be monitored.
Optionally, on the basis of the monitoring device of live streaming shown in Fig. 4, time shift and look back function,
Download unit 403, the first transport stream segment got for acquiring unit 401 determining from broadcast address
Location, and splicing downloading is carried out according to first transport stream fragment address.
Optionally, on the basis of the monitoring device of live streaming shown in Fig. 4, time shift and look back function,
Alarm unit 404, for sending the first alarm mail or the second alarm mail to preset email address,
In, the first alarm mail carries the first warning message, and the second alarm mail carries the second warning message.
Need to illustrate this, the contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to
Embodiment of the present invention method is based on same design, and for details, please refer to the description in the embodiment of the method for the present invention, herein no longer
It repeats.
The embodiment of the invention also provides a kind of readable mediums, including execute instruction, when the processor of storage control is held
When executing instruction described in row, the storage control executes live streaming, time shift and the look back function that above-mentioned each embodiment provides
Monitoring method.
The embodiment of the invention also provides a kind of storage controls, comprising: processor, memory and bus;
The memory is executed instruction for storing, and the processor is connect with the memory by the bus, when
When the storage control is run, the processor executes the described of memory storage and executes instruction, so that the storage
Controller executes the monitoring method of the live streaming of above-mentioned each embodiment offer, time shift and look back function.
In conclusion the monitoring method and device of the live streaming of each embodiment offer of the present invention, time shift and look back function, until
It has the following beneficial effects: less
1, after in embodiments of the present invention, sending solicited message to signal source for channel to be monitored, if failing to obtain
To the broadcast address of channel to be monitored, then issues the live streaming, time shift and look back function for indicating channel to be monitored and occur abnormal the
One warning message, if can enough get the broadcast address of channel to be monitored, according to the broadcast address that gets from signal
Source download transmission flow section, downloads to transport stream segment from signal source if failed later, issues instruction frequency to be monitored
There is the second abnormal warning message in live streaming, time shift and the look back function in road.It can be seen that passing through analog set top from signal source
The process of download transmission flow section monitors whether that broadcast address can be obtained from signal source and according to broadcast address download transmission stream
Segment issues the first warning message when that can not obtain broadcast address, can not issue the second alarm when download transmission flow section
Information passes through people without putting into a large amount of man power and materials and using to realize the automatic monitoring of live streaming, time shift and look back function
Work is monitored live streaming, time shift and look back function, so as to reduce to live streaming, time shift and look back function be monitored at
This.
2, in embodiments of the present invention, for each channel setting searching loop to be monitored sequence, determine one to
After live streaming, time shift and the look back function of monitor channel are abnormal, according to searching loop sequence to next channel to be monitored
Live streaming, time shift and look back function are monitored, and guarantee to occur in the live streaming, time shift and look back function of a channel to be monitored abnormal
It can also persistently the live streaming to other channels to be monitored, time shift and look back function be monitored, guarantee to live streaming, time shift and return afterwards
It sees the continuity that function is monitored, and then can find that abnormal channel occur in live streaming, time shift and look back function in time.
3, in embodiments of the present invention, completion carries out the live streaming, time shift and look back function of a channel to be monitored
After monitoring, no matter whether live streaming, time shift and the look back function of the channel to be monitored there is exception, right all in accordance with searching loop sequence
Live streaming, time shift and the look back function of next channel to be monitored of the channel to be monitored are monitored, thus realize to it is each to
The live streaming of monitor channel, time shift and look back function carry out circularly monitoring, on the one hand can satisfy and is monitored to different channel
Demand, on the other hand can be to avoid being persistently monitored the case where causing computing resource waste generation to the same channel.
4, in embodiments of the present invention, to determine first transport stream fragment address in the broadcast address got, into
And splice the corresponding transport stream segment of downloading according to the first transport stream fragment address determined, on the one hand by suitable
Sequence, which obtains first transport stream fragment address, can save the time of determining transport stream fragment address, shorten download transmission flow section
The required time, the time needed on the other hand only one transport stream segment of downloading can also shorten download transmission flow section, from
And the time that single is monitored live streaming, time shift and look back function can be shortened, to improve to live streaming, time shift and review function
It can be carried out the efficiency of monitoring.
5, one or more email addresses in embodiments of the present invention, are preset, when monitoring live streaming, time shift and review
After exception occurs in function, alarm mail is sent to set each email address, corresponding management personnel are according to the report received
Alert mail can determine that exception, and then administrative staff occur in live streaming, time shift and the look back function of corresponding channel to be monitored
Abnormal channel can occur to live streaming, time shift and look back function in time to handle, it is different to reduce live streaming, time shift and look back function
The normal duration promotes the usage experience of user.
It should be noted that, in this document, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment for including a series of elements not only includes those elements,
It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged
Except there is also other identical factors in the process, method, article or apparatus that includes the element.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light
In the various media that can store program code such as disk.
Finally, it should be noted that the foregoing is merely presently preferred embodiments of the present invention, it is merely to illustrate skill of the invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.
Claims (10)
1. the monitoring method of a kind of live streaming, time shift and look back function characterized by comprising
For the channel to be monitored that needs are monitored live streaming, time shift and look back function, solicited message is sent to signal source,
Described in solicited message be used to obtain the broadcast address of the channel to be monitored;
Judge whether to get the broadcast address;
If the broadcast address has not been obtained, issues the live streaming, time shift and look back function for indicating the channel to be monitored and occur
The first abnormal warning message;
If having got the broadcast address, using the broadcast address from the signal source download transmission flow section;
When downloading to the transport stream segment from the signal source not successfully, the live streaming of the sending instruction channel to be monitored,
There is the second abnormal warning message in time shift and look back function.
2. the method according to claim 1, wherein
It is described issue the live streaming, time shift and look back function for indicating the channel to be monitored occur the first abnormal warning message it
Afterwards, further comprise:
According to the searching loop sequence in advance at least two channel settings to be monitored, for next frequency to be monitored
Road executes described to signal source transmission solicited message;
It is described issue the live streaming, time shift and look back function for indicating the channel to be monitored occur the second abnormal warning message it
Afterwards, further comprise:
According to the searching loop sequence, described send to signal source is executed for next channel to be monitored and requests letter
Breath.
3. according to the method described in claim 2, it is characterized in that, utilizing the broadcast address under the signal source described
After carrying transport stream segment, further comprise:
The transport stream segment is downloaded to from the signal source if succeeded, is directed to according to the searching loop sequence next
A channel to be monitored executes described to signal source transmission solicited message.
4. the method according to claim 1, wherein described downloaded using the broadcast address from the signal source
Transport stream segment, comprising:
The first transport stream fragment address got is determined from the broadcast address;
Splicing downloading is carried out according to first transport stream fragment address.
5. according to claim 1 to any method in 4, which is characterized in that
It is described to issue the first abnormal warning message of live streaming, time shift and the look back function appearance for indicating the channel to be monitored, packet
It includes:
The first alarm mail is sent to preset email address, wherein it is described wait supervise that the alarm mail carries instruction
There is abnormal first warning message in the live streaming, time shift and look back function for controlling channel;
It is described to issue the second abnormal warning message of live streaming, time shift and the look back function appearance for indicating the channel to be monitored, packet
It includes:
The second alarm mail is sent to the email address, wherein the alarm mail carries the instruction channel to be monitored
Live streaming, time shift and look back function there is abnormal second warning message.
6. it is a kind of live streaming, time shift and look back function monitoring device characterized by comprising acquiring unit, judging unit, under
Carrier unit and alarm unit;
The acquiring unit, the channel to be monitored for being monitored for needs to live streaming, time shift and look back function, to signal
Source sends solicited message, wherein the solicited message is used to obtain the broadcast address of the channel to be monitored;
The judging unit, for judging whether the acquiring unit gets the broadcast address;
The download unit, for after the judging unit determines that the acquiring unit has got the broadcast address, benefit
The broadcast address got with the acquiring unit is from the signal source download transmission flow section;
The alarm unit, for sending out when the judging unit determines that the broadcast address has not been obtained in the acquiring unit
Indicate that the first abnormal warning message occur in the live streaming, time shift and look back function of the channel to be monitored out, and under described
When carrier unit downloads to the transport stream segment from the signal source not successfully, the live streaming of the sending instruction channel to be monitored,
There is the second abnormal warning message in time shift and look back function.
7. device according to claim 6, which is characterized in that
The acquiring unit is further used for issuing first warning message or second alarm signal in the alarm unit
After breath, according to the searching loop sequence in advance at least two channel settings to be monitored, for next described wait supervise
It controls channel and sends the solicited message to the signal source.
8. device according to claim 7, which is characterized in that
The acquiring unit, being further used for having succeeded in the download unit downloads to the transmission flow from the signal source
After section, it is directed to according to the searching loop sequence and the request is sent to the signal source to next channel to be monitored
Information.
9. device according to claim 6, which is characterized in that
The download unit, the first transport stream segment got for determining the acquiring unit from the broadcast address
Address, and splicing downloading is carried out according to first transport stream fragment address.
10. according to the device any in claim 6 to 9, which is characterized in that
The alarm unit, for sending the first alarm mail or the second alarm mail to preset email address, wherein
First alarm mail carries first warning message, and second alarm mail carries second alarm signal
Breath.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910164466.8A CN109874025A (en) | 2019-03-05 | 2019-03-05 | It is a kind of live streaming, time shift and look back function monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910164466.8A CN109874025A (en) | 2019-03-05 | 2019-03-05 | It is a kind of live streaming, time shift and look back function monitoring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109874025A true CN109874025A (en) | 2019-06-11 |
Family
ID=66919717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910164466.8A Pending CN109874025A (en) | 2019-03-05 | 2019-03-05 | It is a kind of live streaming, time shift and look back function monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109874025A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11831952B2 (en) | 2008-09-10 | 2023-11-28 | DISH Technologies L.L.C. | Virtual set-top box |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060101495A1 (en) * | 2004-11-05 | 2006-05-11 | William Yoshida | Device evaluation using media access control emulator |
CN101166123A (en) * | 2006-10-19 | 2008-04-23 | 华为技术有限公司 | A network TV testing method, system and office testing device |
US20100064324A1 (en) * | 2008-09-10 | 2010-03-11 | Geraint Jenkin | Dynamic video source selection |
CN102857799A (en) * | 2012-09-14 | 2013-01-02 | 乐视网信息技术(北京)股份有限公司 | Set top box fault diagnosis method |
CN106550234A (en) * | 2016-12-26 | 2017-03-29 | 中国电信股份有限公司四川分公司 | A kind of dress ties up easily Set Top Box and IPTV service quality detecting method |
CN107222739A (en) * | 2017-07-10 | 2017-09-29 | 中邮科通信技术股份有限公司 | A kind of IPTV service quality dial testing method based on crawler technology |
-
2019
- 2019-03-05 CN CN201910164466.8A patent/CN109874025A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060101495A1 (en) * | 2004-11-05 | 2006-05-11 | William Yoshida | Device evaluation using media access control emulator |
CN101166123A (en) * | 2006-10-19 | 2008-04-23 | 华为技术有限公司 | A network TV testing method, system and office testing device |
US20100064324A1 (en) * | 2008-09-10 | 2010-03-11 | Geraint Jenkin | Dynamic video source selection |
CN102857799A (en) * | 2012-09-14 | 2013-01-02 | 乐视网信息技术(北京)股份有限公司 | Set top box fault diagnosis method |
CN106550234A (en) * | 2016-12-26 | 2017-03-29 | 中国电信股份有限公司四川分公司 | A kind of dress ties up easily Set Top Box and IPTV service quality detecting method |
CN107222739A (en) * | 2017-07-10 | 2017-09-29 | 中邮科通信技术股份有限公司 | A kind of IPTV service quality dial testing method based on crawler technology |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11831952B2 (en) | 2008-09-10 | 2023-11-28 | DISH Technologies L.L.C. | Virtual set-top box |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10102054B2 (en) | Anomaly detection, alerting, and failure correction in a network | |
US8713621B2 (en) | System and method of error reporting in a video distribution network | |
CA2675057C (en) | System and method for combining pull and push modes | |
US8806550B1 (en) | Rules engine for troubleshooting video content delivery network | |
WO2015027713A1 (en) | Video playback method, apparatus, and terminal device based on video aggregation service | |
EP2262174B1 (en) | Testing a content-delivery system | |
US8873368B2 (en) | Method for processing channel switching failure case, terminal device, and channel switching server | |
US20120317442A1 (en) | Embedded device and embedded system | |
CN109962827B (en) | Equipment link detection method, device, equipment and readable storage medium | |
CN105553943A (en) | Transmission method of pass-screen software, pass-screen method and device, and data transmission system | |
WO2017190467A1 (en) | Adjustment method and apparatus for maximum transmission unit of terminal, and terminal device | |
CN103796045A (en) | IPTV system, mobile terminal, and live broadcasting watching reminding realizing methods by IPTV system and mobile terminal | |
CN108521421B (en) | A kind of processing method, system and the task management server of transcoding task | |
CN103166808A (en) | Monitoring method, device and system for Internet protocol television (IPTV) service quality | |
CN105471678A (en) | Method and system for detecting networking failure reason of household appliance and mobile terminal | |
CN109874025A (en) | It is a kind of live streaming, time shift and look back function monitoring method and device | |
CN105554116A (en) | Remote interconnection method and system for UPnP (Universal Plug and Play) equipment | |
CN106303577A (en) | Download the method and device of Streaming Media | |
WO2011107058A2 (en) | Measurement method, measurement server and measurement user terminal of internet protocol television (iptv) terminal | |
WO2012136050A1 (en) | Method, system and device for service signaling tracking | |
EP2630750B1 (en) | Quality of service monitoring device and method of monitoring quality of service | |
US9609264B2 (en) | Method and system for fail-safe program recording in personal video recorders | |
CA2964712A1 (en) | Reception device, transmission device, and data processing method | |
US20120072942A1 (en) | Broadcast-contents management apparatus and control method for use in a broadcast-contents management apparatus | |
KR101082985B1 (en) | Apparatus for testing two-way application service |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190611 |
|
RJ01 | Rejection of invention patent application after publication |