Summary of the invention
Main purpose of the present invention is to provide a kind of Web TV rating to flow to monitoring method and device, to solve the problem that prior art cannot analyze audient's inflow and outflow situation of television channel in a period of time.
To achieve these goals, according to an aspect of the present invention, provide a kind of Web TV rating and flow to monitoring method.This Web TV rating flows to monitoring method and comprises: the device identification obtaining the playback equipment playing channel to be monitored in preset time period, from presetting database, filter out the broadcasting record that device identification in preset time period is corresponding, wherein, in presetting database, be previously stored with the broadcasting record that device identification in preset time period is corresponding, traversal plays record, the start number of the to be monitored channel of statistics in object time section, shutdown number, cut out number, incision number, object time section is to the time period that channel to be monitored is monitored in preset time period, wherein, start number is the number of the first device identification, wherein, it is the record playing channel to be monitored that Article 1 corresponding to the first device identification plays record, shutdown number is the number of the second device identification, wherein, it is the record playing channel to be monitored that the last item corresponding to the second device identification plays record, cut out number for the number of times from channel switch to be monitored to other channels, incision number is the number of times from other channel switch to channel to be monitored, calculate the audient of channel to be monitored in object time section and flow into number and audient flows out number, wherein, audient flow into number be start number and incision number and, audient flow out number be shutdown number and cut out several and.
Further, the broadcasting record stored in presetting database comprises the title that target plays object, target plays the initial broadcasting moment of object, the moment is play in the end that target plays object, play the device identification that target plays the playback equipment of object, the broadcasting record filtering out device identification in preset time period corresponding from presetting database comprises: the broadcasting record stored in traversal presetting database; Judge that whether title that target in the broadcasting record stored in presetting database plays object is the title of channel to be monitored; If the title of the target broadcasting object in the broadcasting record stored in presetting database is the title of channel to be monitored, judge whether the initial broadcasting moment of the target broadcasting object in the broadcasting record stored in presetting database is later than the finish time of preset time period; If the initial broadcasting moment that target in the broadcasting record stored in presetting database plays object is not later than the finish time of preset time period, the target judging in the broadcasting record stored in presetting database plays the end broadcasting moment of object whether early than the start time of preset time period; If the start time that the moment is no earlier than preset time period is play in the end that the target in the broadcasting record stored in presetting database plays object, by the broadcasting record satisfied condition stored in playing in record data table, wherein, record data table is play for being stored in broadcasting record corresponding to device identification in preset time period.
Further, after in the broadcasting record that will satisfy condition is stored in broadcasting record data table, this Web TV rating flows to monitoring method and also comprises: traversal plays record data table; For device identification distributes rating index, wherein, rating index and device identification one_to_one corresponding; The original position of device identification in recording played record data table, wherein, the original position of device identification is that the broadcasting that the first character in the rating index of device identification is corresponding is recorded in the position of playing in record data table.
Further, comprise for device identification distributes rating index: the broadcasting record that traversal device identification is corresponding; Whether the title that the target in the broadcasting record that judgment device mark is corresponding plays object is the title of channel to be monitored; If the title of the target broadcasting object in the broadcasting record that device identification is corresponding is the title of channel to be monitored, in the rating index of device identification, add the first character; If the title of the target broadcasting object in the broadcasting record that device identification is corresponding is not the title of channel to be monitored, in the rating index of device identification, add the second character, wherein, the second character is different from the first character.
Further, traversal plays record, and the start number adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Obtain the rating index started with the first character; Determine to be recorded in the position of playing in record data table with the broadcasting that the first character in the rating index that the first character starts is corresponding; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition first character correspondence; Judge that the first character correspondence plays the initial broadcasting moment of record whether in object time section; If be engraved in object time section during the initial broadcasting of channel to be monitored, add up the number of the rating index started with the first character.
Further, traversal plays record, and the shutdown number adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Obtain with the rating index of the first EOC; Determine that the broadcasting that in the rating index with the first EOC, the first character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition first character correspondence; Judge that the end that the first character correspondence plays record plays the moment whether in object time section; If the first character correspondence is engraved in object time section when playing the end broadcasting of record, add up with the number of the rating index of the first EOC.
Further, traversal plays record, and the number that cuts out adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Acquisition comprises with the first character front, and the second character is at the rating index of the first character string of rear composition; Determine that the broadcasting that in rating index, the second character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition second character correspondence; Judge that the second character correspondence plays the initial broadcasting moment of record whether in object time section; If the second character correspondence is engraved in object time section when playing the initial broadcasting of record, statistics comprises with the first character front, and the second character is in the number of the first character string of rear composition.
Further, traversal plays record, and the incision number adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Acquisition comprises with the second character front, and the first character is at the rating index of the second character string of rear composition; Determine that the broadcasting that in rating index, the second character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition second character correspondence; Judge that the end that the second character correspondence plays record plays the moment whether in object time section; If the second character correspondence is engraved in object time section when playing the end broadcasting of record, statistics comprises with the second character front, and the first character is in the number of the second character string of rear composition.
Further, record is play in traversal, the start number of the to be monitored channel of statistics in object time section, shutdown number, after cutting out number incision number, this Web TV rating flows to monitoring method and also comprises: obtain the title of the channel after cutting out from channel to be monitored and cut the title of the channel before channel to be monitored; The title of the channel after cutting out from channel to be monitored being deposited into cuts out in rear channel data table; The title of the channel be cut into before channel to be monitored is deposited in the front channel data table of incision.
To achieve these goals, according to a further aspect in the invention, provide a kind of Web TV rating and flow to monitoring device.This Web TV rating flows to monitoring device and comprises: acquisition module, for obtaining in preset time period the device identification of the playback equipment playing channel to be monitored, screening module, for filtering out broadcasting record corresponding to device identification in preset time period from presetting database, wherein, is previously stored with the broadcasting record that device identification in preset time period is corresponding in presetting database, statistical module, for traveling through broadcasting record, the start number of the to be monitored channel of statistics in object time section, shutdown number, cut out number, incision number, wherein, object time section is to the time period that channel to be monitored is monitored in preset time period, start number is the number of the first device identification, wherein, it is the record playing channel to be monitored that Article 1 corresponding to the first device identification plays record, shutdown number is the number of the second device identification, wherein, it is the record playing channel to be monitored that the last item corresponding to the second device identification plays record, cut out number for the number of times from channel switch to be monitored to other channels, incision number is the number of times from other channel switch to channel to be monitored, computing module, the audient for calculating channel to be monitored in object time section flows into number and audient flows out number, wherein, audient flow into number be start number and incision number and, audient flow out number be shutdown number and cut out several and.
Web TV rating of the present invention flows to monitoring method and adopts the device identification obtaining the playback equipment playing channel to be monitored in preset time period; The broadcasting record that device identification in preset time period is corresponding is filtered out from presetting database; Traversal plays record, adds up the start number of the channel to be monitored in object time section, and shutdown number, cuts out number, incision number, and wherein, object time section is to the time period that channel to be monitored is monitored in preset time period; Calculating audient of channel to be monitored in object time section flows into number and audient flows out number.Flow to monitoring method by Web TV rating of the present invention, solve the problem that prior art cannot analyze audient's inflow and outflow situation of television channel in a period of time.This Web TV rating flows to monitoring method by distributing rating index for device identification, and record the original position of this device identification, make start number, shutdown number, cut number and cut out the matching problem that several statistics is converted to character string, save a large amount of judgement that repeats carried out in broadcasting record data table to calculate, improve operation efficiency.Simultaneously, this Web TV rating flows to the start number of the television channel in a period of time of monitoring method statistical analysis, shutdown number, cutting number and cutting out number is the analytic angle be short of in current television program receiving analytic process, by to start number, shutdown number, cuts number and cuts out the rating flow direction that several statistics clearly can grasp television channel.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
Better the present invention program is understood in order to make those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment obtained under those of ordinary skill in the art do not make creative work prerequisite, all should belong to protection scope of the present invention.
It should be noted that, term " first ", " second " etc. in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " comprises " and " having " and their any distortion, and intention is to cover not exclusive comprising.
The present invention aims to provide a kind of Web TV rating and flows to monitoring method and device.Fig. 1 is the flow chart that Web TV rating according to the present invention flows to the first embodiment of monitoring method, and as shown in Figure 1, this Web TV rating flows to monitoring method and comprises following step S101 to step S104:
Step S101, obtains the device identification of the playback equipment playing channel to be monitored in preset time period.
Preset time period can oneself set according to statistical demand, and can be set as one day, also can be one hour.Channel to be monitored is any one in the television channel play of playback equipment, selectes arbitrarily, such as HNTV etc. according to statistical demand.Wherein, the playback equipment in this embodiment can be IPTV, digital video broadcasting TV, also can be internet television etc.
The Web TV rating of this embodiment is flowed to monitoring method and is gathered by TV set-top box and the broadcasting daily record data returning user, and this broadcasting daily record data is deposited into text or other modes being applicable to storing in presetting database.Wherein, presetting database can be Microsoft Access, Microsoft SQL Server, the database software such as My SQL.The behavior of playing of the television channel of user refers to and falls into this television channel or from other television channels are switched to this television channel from this user start, to user's shutdown or be switched to other television channels from this television channel and terminate.The broadcasting record that television channel plays behavior is stored in this presetting database.Play the initial broadcasting moment that record comprises television channel, terminate to play the moment, television channel name, play the information such as the device identification of the playback equipment of television channel.
After determining channel to be monitored and preset time period, need the device identification filtering out the playback equipment playing channel to be monitored in preset time period from presetting database.Wherein, the device identification filtering out the playback equipment playing channel to be monitored in preset time period from presetting database needs to follow following screening conditions: the title of target broadcasting object should be consistent with the title of channel to be monitored; Target is play the initial of object and is play the finish time that the moment should be not later than preset time period; The start time that the moment should be no earlier than preset time period is play in the end that target plays object.In presetting database, the device identification only having the broadcasting record that meets screening conditions corresponding just can be out screened.Preferably, in this embodiment, duplicate removal process is carried out in the device identification meeting screening conditions, avoid the repetitive operation to broadcasting record corresponding to same device identification, improve operation efficiency.
Step S102, filters out the broadcasting record that device identification in preset time period is corresponding from presetting database.
The broadcasting record that device identification in preset time period is corresponding is previously stored with in presetting database.Play the device identification of the playback equipment of channel to be monitored in acquisition preset time period after, need from presetting database, obtain broadcasting record corresponding to this device identification.Consider a device identification can corresponding one play record, also can corresponding many play records, also need to screen according to screening conditions when obtaining broadcasting record corresponding to device identification in preset time period from presetting database.Wherein, the screening conditions filtering out the broadcasting record that device identification is corresponding in preset time period from presetting database are: this device identification should be by step S101 by screening in the preset time period that obtains from database the device identification of the playback equipment playing a little monitoring channel; Target is play the initial of object and is play the finish time that the moment should be not later than preset time period; The start time that the moment should be no earlier than preset time period is play in the end that target plays object.
Preferably, the Web TV rating of this embodiment flows to the broadcasting record that monitoring method filters out device identification in preset time period corresponding from presetting database and comprises: the broadcasting record stored in traversal presetting database; Judge that whether title that target in the broadcasting record stored in presetting database plays object is the title of channel to be monitored; If the title that target in the broadcasting record stored in presetting database plays object is the title of channel to be monitored, judge that whether the device identification of the playback equipment of the broadcasting target broadcasting object in the broadcasting record stored in presetting database is the device identification of the playback equipment playing channel to be monitored; If the device identification of the playback equipment of the broadcasting target broadcasting object in the broadcasting record stored in presetting database is the device identification of the playback equipment playing channel to be monitored, judge whether the initial broadcasting moment of the target broadcasting object in the broadcasting record stored in presetting database is later than the finish time of preset time period; If the initial broadcasting moment that target in the broadcasting record stored in presetting database plays object is not later than the finish time of preset time period, the target judging in the broadcasting record stored in presetting database plays the end broadcasting moment of object whether early than the start time of preset time period; If the start time that the moment is no earlier than preset time period is play in the end that the target in the broadcasting record stored in presetting database plays object, by the broadcasting record satisfied condition stored in playing in record data table, wherein, record data table is play for being stored in broadcasting record corresponding to device identification in preset time period.The one or more of broadcasting records that a device identification is corresponding may be stored in this broadcasting record data table, also may store many broadcasting records that multiple device identification is corresponding.In order to obtain whole broadcasting records corresponding to same device identification quickly and easily from broadcasting record data table, the Web TV rating of this embodiment flows to monitoring method and will carry out ascending order or descending according to device identification to broadcasting record data table, then carries out ascending order or descending according to the initial reproduction time of channel to be monitored.The number of the broadcasting record that device identification is corresponding clearly can be distinguished from the broadcasting record data table after sequence.
Preferably, after in the broadcasting record that will satisfy condition is stored in broadcasting record data table, the Web TV rating of this embodiment flows to monitoring method and also comprises: traversal plays record data table; For device identification distributes rating index, wherein, rating index and device identification one_to_one corresponding; The original position of recording equipment mark, wherein, the original position of device identification is that the broadcasting that the first character in the rating index of device identification is corresponding is recorded in the position of playing in record data table.Particularly, comprise for device identification distributes rating index: the broadcasting record that traversal device identification is corresponding; Whether the title that the target in the broadcasting record that judgment device mark is corresponding plays object is the title of channel to be monitored; If the title of the target broadcasting object in the broadcasting record that device identification is corresponding is the title of channel to be monitored, in the rating index of device identification, add the first character; If the title of the target broadcasting object in the broadcasting record that device identification is corresponding is not the title of channel to be monitored, in the rating index of device identification, add the second character.The first character in this embodiment can be " 1 ", and the second character can be " 0 ", then the rating index that device identification is corresponding is served as reasons the character string that " 1 " and " 0 " forms.Playing in record data tables process in traversal, when running into new device identification, retaining the rating index of a device identification, and increase a new rating index and current device identification one_to_one corresponding.Meanwhile, the Article 1 that record current device mark is corresponding plays the position being recorded in and playing in record data table, i.e. the original position of device identification.For any character in rating index, can determine that the broadcasting that this character is corresponding is recorded in the position of playing in record data table according to the original position of rating index and the relative position of this character in rating index.
Step S103, traversal plays record, adds up the start number of the channel to be monitored in object time section, and shutdown number, cuts out number, incision number.
After preset time period completes device identification distribution rating index, the object time section arbitrarily in selected preset time period is as the time period of monitoring channel to be monitored.This object time section can be the complete period of one grade of variety show, the complete period etc. of the time period that star occurs or advertisement.Determine that object time section carries out the monitoring of the rating flow direction to channel to be monitored, more specifically can analyze the impact that TV programme flows to television channel rating, the monitoring result that the rating of channel to be monitored is flowed to is more accurate.
Start number is the number of the first device identification, and wherein, it is the record playing channel to be monitored that Article 1 corresponding to the first device identification plays record, and the Article 1 of the user that namely newly starts shooting plays the quantity recording and drop on channel to be monitored.Traversal plays record, adds up the start number of the channel to be monitored in object time section: the rating index of traversal device identification; Obtain the rating index started with the first character; Determine to be recorded in the position of playing in record data table with the broadcasting that the first character in the rating index that the first character starts is corresponding; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition first character correspondence; Judge that the first character correspondence plays the initial broadcasting moment of record whether in object time section; If be engraved in object time section when the first character correspondence plays the initial broadcasting of record, add up the number of the rating index started with the first character.Such as, first character is " 1 ", namely the start number of the to be monitored channel of statistics in object time section mates the rating index started with character " 1 ", and determine that the broadcasting that this character " 1 " is corresponding is recorded in the position of playing in record data table according to the original position of this device identification, according to the corresponding initial reproduction time of this position acquisition, terminate reproduction time, if initial reproduction time and end reproduction time are in object time section, then number of starting shooting accordingly adds 1.
Shutdown number is the number of the second device identification, and wherein, it is the record playing channel to be monitored that the last item corresponding to the second device identification plays record, and namely user's the last item before shutdown plays the quantity recording and drop on target channel.Traversal plays record, and the shutdown number adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Obtain with the rating index of the first EOC; Determine that the broadcasting that in the rating index with the first EOC, the first character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition first character correspondence; Judge that the end that the first character correspondence plays record plays the moment whether in object time section; If the first character correspondence is engraved in object time section when playing the end broadcasting of record, add up with the number of the rating index of the first EOC.Such as, first character is " 1 ", namely the shutdown number of the to be monitored channel of statistics in object time section mates the rating index terminated with character " 1 ", and determine that the broadcasting that this character " 1 " is corresponding is recorded in the position of playing in record data table, according to the corresponding initial reproduction time of this position acquisition, terminate reproduction time, if initial reproduction time and end reproduction time are in object time section, then the number that shuts down accordingly adds 1.
Cut out number for the number of times from channel switch to be monitored to other channels.Traversal plays record, and the number that cuts out adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Acquisition comprises with the first character front, and the second character is at the rating index of the first character string of rear composition; Determine that the broadcasting that in rating index, the second character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition second character correspondence; Judge that the second character correspondence plays the initial broadcasting moment of record whether in object time section; If the second character correspondence is engraved in object time section when playing the initial broadcasting of record, statistics comprises with the first character front, and the second character is in the number of the first character string of rear composition.Such as, the first character is " 1 ", and the second character is " 0 ".The number i.e. coupling that cuts out of the to be monitored channel of statistics in object time section comprises the rating index of character string " 10 ", and determine that the broadcasting that this character " 0 " is corresponding is recorded in the position of playing in record data table, according to the corresponding initial reproduction time of this position acquisition, terminate reproduction time, if initial reproduction time and end reproduction time in object time section, then cut out number accordingly and add 1.
Incision number is the number of times from other channel switch to channel to be monitored.Traversal plays record, and the incision number adding up the channel to be monitored in object time section comprises: the rating index of traversal device identification; Acquisition comprises with the second character front, and the first character is at the rating index of the second character string of rear composition; Determine that the broadcasting that in rating index, the second character is corresponding is recorded in the position of playing in record data table; The initial broadcasting moment of record and the end broadcasting moment of channel to be monitored is play according to position acquisition second character correspondence; Judge that the end that the second character correspondence plays record plays the moment whether in object time section; If the second character correspondence is engraved in object time section when playing the end broadcasting of record, statistics comprises with the second character front, and the first character is in the number of the second character string of rear composition.Such as, the first character is " 1 ", and the second character is " 0 ".Namely the incision number of the to be monitored channel of statistics in object time section mates the rating index comprising character string " 01 ", and determine that the broadcasting that this character " 0 " is corresponding is recorded in the position of playing in record data table, according to the corresponding initial reproduction time of this position acquisition, terminate reproduction time, if initial reproduction time and end reproduction time are in object time section, then cut number accordingly and add 1.
Illustrate: be 09:00-12:00 in object time section, channel to be monitored is HNTV.Play in record data table and have three device identifications, be respectively first, second and third.Suppose that the rating index of first is for " 1001101 ", the rating index of second is " 0111001 ", and the rating index of third is " 10010010 ".Then the start number of HNTV in 09:00-12:00 is 2, and shutdown number is 2, and cutting out number is 6, and incision number is 6.
The Web TV rating of this embodiment flows to monitoring method by pretreated mode, rating index is distributed to the device identification of playing in record data table, thus make start number, shutdown number, cut out number, the statistics of incision number is converted into the matching problem of character or character string, and the matching problem of character or character string can utilize the modes such as regular expression to realize mating efficiently, save a large amount of repetition and judge comparison operation, improve operation efficiency.
Step S104, the audient calculating channel to be monitored in object time section flows into number and audient flows out number.
Audient flow into number be start number and incision number and, audient flow out number be shutdown number and cut out several and.Audient flows into number and audient flows out audient's inflow and outflow situation that number reflects the arbitrary target time period in preset time period objectively.Illustrating according to step S104, can calculate audient and flow into number and equal 8, audient is flowed out number and is equaled 8.
Record is play in traversal, the start number of the to be monitored channel of statistics in object time section, shutdown number, after cutting out number incision number, the Web TV rating of this embodiment flows to monitoring method and also comprises: obtain the title of the channel after cutting out from channel to be monitored and cut the title of the channel before channel to be monitored; The title of the channel after cutting out from channel to be monitored being deposited into cuts out in rear channel data table; The title of the channel be cut into before channel to be monitored is deposited in the front channel data table of incision.Monitoring channel to be monitored being carried out to the rating flow direction can obtain following monitoring result, comprises start number, and shutdown number, cuts out number, incision number, and audient flows into number, and audient flows out number, cuts out rear channel data table and the front channel data table of incision.Preferably, counting with the identical television channel in the front channel data table of incision cutting out rear channel data table, counting laggard line ordering.Wherein, cut out rear channel data table and reflect the shunt effect of which television channel in object time section objectively the most by force, it is more attractive relative to which television channel that the front channel data table of incision reflects channel to be monitored objectively.Fig. 2 is the data results interface schematic diagram of Guangzhou news on January 29th, 2014, wherein, preset time period be January 29 00:00 to 00:00 on January 30, object time section be morning January 29 10:00 to 18:00 in afternoon.Analysis result as can be seen from Fig. 2, in object time section that is 8 hours, start number is 1367, and shutdown number is 2701, and cutting out number is 20194, and incision number is 21161.What in Fig. 2, right side display flowed into this channel to be monitored (Guangzhou news) from Guangzhou television channel has 6126 times, occupies incision channel the first.Cut out from this channel to be monitored (Guangzhou news) and have 2757 times to Guangzhou video display, occupy and cut out channel first place.
Start number, shutdown number, cut out number, incision number, audient flows into number, audient flows out number, in the market to the analytic angle be comparatively short of in television program receiving statistical analysis when cutting out rear channel data table and cut front channel data table, the Web TV rating of this embodiment flows to monitoring method to start number, shutdown number, cut out number, incision number, audient flows into number, audient flows out number, before cutting out rear channel data table and incision, channel data table carries out statistical analysis, be conducive to clearly grasping the competitive relation between the channel to be monitored of user in object time section and other channels, there is higher break-up value.
The Web TV rating of the embodiment of the present invention flows to monitoring method and adopts the device identification obtaining the playback equipment playing channel to be monitored in preset time period; The broadcasting record that device identification in preset time period is corresponding is filtered out from presetting database; Traversal plays record, adds up the start number of the channel to be monitored in object time section, and shutdown number, cuts out number, incision number, and wherein, object time section is to the time period that channel to be monitored is monitored in preset time period; Calculating audient of channel to be monitored in object time section flows into number and audient flows out number.Flow to monitoring method by Web TV rating of the present invention, solve the problem that prior art cannot analyze audient's inflow and outflow situation of television channel in a period of time.This Web TV rating flows to monitoring method by distributing rating index for device identification, and records the original position of this device identification, makes start number, shutdown number, cut number and cut out the matching problem that several statistics is converted to character string, play record data table acquisition start number relative to directly traveling through, shut down number, cut out number, incision number, audient flows into number, and audient flows out number, save a large amount of judgement that repeats carried out in broadcasting record data table to calculate, improve operation efficiency.Meanwhile, this Web TV rating flows to monitoring method and passes through start number, shutdown number, cuts number and cuts out the rating flow direction that several statistics clearly can grasp television channel, thus acquisition television program receiving monitoring result more accurately.
From above description, can find out, the Web TV rating of the embodiment of the present invention flows to monitoring method and solves the problem that prior art cannot analyze audient's inflow and outflow situation of television channel in a period of time, thus make the monitoring result of Web TV rating more accurate.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Embodiments of the invention additionally provide a kind of Web TV rating and flow to monitoring device.It should be noted that, this Web TV rating flows to monitoring device and may be used for performing the Web TV rating of the embodiment of the present invention and flow to monitoring method.
Fig. 3 is the schematic diagram that Web TV rating according to the present invention flows to the first embodiment of monitoring device.As shown in Figure 3, this Web TV rating flows to monitoring device and comprises: acquisition module 10, screening module 20, statistical module 30 and computing module 40.
Acquisition module 10, for obtaining in preset time period the device identification of the playback equipment playing channel to be monitored.
Screening module 20, for filtering out broadcasting record corresponding to device identification in preset time period from presetting database, wherein, is previously stored with the broadcasting record that device identification in preset time period is corresponding in presetting database.
Particularly, screening module 20 comprises: the first spider module, for traveling through the broadcasting record stored in presetting database; First judge module, whether the title that the target for judging in the broadcasting record that stores in presetting database plays object is the title of channel to be monitored; Second judge module, if the title playing object for the target in the broadcasting record that stores in presetting database is the title of channel to be monitored, the target judging in the broadcasting record stored in presetting database is play the initial of object and is play the finish time whether moment is later than preset time period; 3rd judge module, if the initial broadcasting moment of playing object for the target in the broadcasting record that stores in presetting database is not later than the finish time of preset time period, the target judging in the broadcasting record stored in presetting database plays the end broadcasting moment of object whether early than the start time of preset time period; Memory module, if the start time that the moment is no earlier than preset time period is play in the end of playing object for the target in the broadcasting record that stores in presetting database, by the broadcasting record satisfied condition stored in playing in record data table, wherein, record data table is play for being stored in broadcasting record corresponding to device identification in preset time period.
Preferably, this Web TV rating flows to monitoring device and can also comprise: the second spider module, plays record data table for traveling through; Distribution module, for distributing rating index for device identification, wherein, rating index and device identification one_to_one corresponding; Logging modle, for the original position of recording equipment mark, wherein, the original position of device identification is that the broadcasting that the first character in the rating index of device identification is corresponding is recorded in the position of playing in record data table.Wherein, distribution module can comprise: the first traversal submodule, for traveling through broadcasting record corresponding to device identification; First judges submodule, and whether the title playing object for the target in the broadcasting record that judgment device mark is corresponding is the title of channel to be monitored; First adds submodule, if the title playing object for the target in broadcasting record corresponding to device identification is the title of channel to be monitored, in the rating index of device identification, adds the first character; Second adds submodule, if the title playing object for the target in broadcasting record corresponding to device identification is not the title of channel to be monitored, in the rating index of device identification, adds the second character.
Statistical module 30, for traveling through broadcasting record, the start number of the to be monitored channel of statistics in object time section, shutdown number, cut out number, incision number, wherein, object time section is to the time period that channel to be monitored is monitored in preset time period, start number is the number of the first device identification, wherein, it is the record playing channel to be monitored that Article 1 corresponding to the first device identification plays record, shutdown number is the number of the second device identification, wherein, it is the record playing channel to be monitored that the last item corresponding to the second device identification plays record, cut out number for the number of times from channel switch to be monitored to other channels, incision number is the number of times from other channel switch to channel to be monitored.
Particularly, statistical module 40 comprises: start statistical module, for traveling through broadcasting record, adds up the start number of the channel to be monitored in object time section; Shutdown statistical module, for traveling through broadcasting record, adds up the shutdown number of the channel to be monitored in object time section; Cut out statistical module, for traveling through broadcasting record, that adds up the channel to be monitored in object time section cuts out number; Incision statistical module, for traveling through broadcasting record, adds up the incision number of the channel to be monitored in object time section.
Computing module 50, the audient for calculating channel to be monitored in object time section flows into number and audient flows out number, wherein, audient flow into number be start number and incision number and, audient flow out number be shutdown number and cut out several and.
Particularly, computing module 50 can comprise audient and flow into number computing module, flows into number for the audient calculating channel to be monitored in object time section; Audient flows out number computing module, flows out number for the audient calculating channel to be monitored in object time section.
Preferably, this Web TV rating flows to monitoring device can also comprise the first acquisition module, for obtaining the title of the channel after cutting out from channel to be monitored; Second acquisition module, for obtaining the title of the channel before incision channel to be monitored; First memory module, cuts out in rear channel data table for the title of the channel after cutting out from channel to be monitored being deposited into; Second memory module, for being deposited into the title of the channel be cut into before channel to be monitored in the front channel data table of incision.
The Web TV rating of this embodiment flows to monitoring device and comprises acquisition module 10, screening module 20, statistical module 30 and computing module 40.Flow to monitoring device by the Web TV rating of this embodiment and solve the problem that prior art cannot analyze audient's inflow and outflow situation of television channel in a period of time, save a large amount of judgement that repeats carried out in broadcasting record data table to calculate, improve operation efficiency, simultaneously, by to start number, shutdown number, cuts number and cuts out the rating flow direction that several statistics clearly can grasp television channel.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.