Background technique
During user's watching video live broadcast, in order to guarantee the good viewing experience of user, server real-time monitoring and
The video fluency (Caton situation) when watching video live broadcast is adjusted, if fluency is lower (frequent Caton), is needed in time
It repairs.Currently, the method for existing monitor video smoothness degree is generally:Monitoring CDN (Content Delivery Network,
Content distributing network) video flowing request delay, video fluency is determined according to delay, and then position and repair problem source.
But the method for existing monitor video smoothness degree has the following disadvantages:
(1) because the terminal environments of terminal device that use of user are different from network environment, terminal device with it is nearest
CDN node between video fluency can not be monitored by CDN, and then be unable to decision problem source be located at CDN intranet
Network distribution problem or terminal environments problem.
(2) currently, the pushing video streaming scheme of live streaming operator is self-built plus the cooperation of CDN manufacturer, but CDN can not be supervised
The self-built video flowing request delay of operator is controlled, and then can not accurately learn the fluency for the video that terminal device obtains.
(3) currently, CDN node can only generally accomplish provincial covering, so that orientation problem source range is larger, big
Search problem the taking a long time of source in range, and operating process is relatively difficult.
In conclusion the method for existing monitor video smoothness degree can not accurately learn terminal device watching video live broadcast mistake
Video fluency in journey also can not position and repair in time problem source, it is difficult to guarantee the viewing experience of user.
Summary of the invention
In view of the deficiencies in the prior art, present invention solves the technical problem that being:Accurately learn that terminal device is watched
Video flowing length when net cast quickly positions the lower terminal device of fluency.The present invention positions the lower terminal of fluency
Equipment is easier, time-consuming shorter, even and if then corresponding adjustment can be made, utmostly guarantee the viewing of terminal user
Experience.
To achieve the above objectives, the method for the monitor video smoothness degree provided by the invention during net cast, the party
Method includes the following steps:
Step A:The terminal device that user uses periodically reports the broadcast state information of the video flowing received to server,
It include video render state in broadcast state information, video render state includes NetStream.Buffer.Empty, is turned
To step B;
Step B:Server is to carry out caching and pre- after meeting the broadcast state information addition terminal device IP of call format
Processing forms broadcast state data, goes to step C;
Step C:It determines the broadcast state data being verified, goes to step D;
Step D:According to every play status data terminal device IP, obtain corresponding terminal device geographical location and
Network operator information;According to the geographical location of terminal device and network operator information, broadcast all terminal devices are corresponding
It puts status data and is divided into several set;According to the broadcast state marked in each set
The quantity of data determines the low set of fluency.
The system of monitor video smoothness degree, system provided by the invention during net cast for realizing the above method
Including:Uniform service monitoring module, the broadcast state information reporting module on terminal device, positioned at server data it is slow
Deposit preprocessing module and Data Verification module;
Broadcast state information reporting module is used for:Timing reports broadcasting for the video flowing received to data buffer storage preprocessing module
Status information is put, includes video render state in broadcast state information, video render state includes
NetStream.Buffer.Empty;
Data buffer storage preprocessing module is used for:After broadcast state information addition terminal device IP to meet call format,
It is cached and is pre-processed, formed broadcast state Data Concurrent and send to Data Verification module;
Data Verification module is used for:It determines the broadcast state data by verifying, the broadcast state data of verifying will be passed through
It is sent to uniform service monitoring module;
Uniform service monitoring module is used for:The terminal device IP that status data is played according to every, obtains corresponding terminal
The geographical location of equipment and network operator information;According to the geographical location of terminal device and network operator information, will own
The corresponding broadcast state data of terminal device are divided into several set;According to label has in each set
The quantity of the broadcast state data of NetStream.Buffer.Empty determines the low set of fluency.
Compared with the prior art, the advantages of the present invention are as follows:
The present invention determines geographical location and the operation of terminal device according to the broadcast state information of terminal device active reporting
The corresponding broadcast state data of terminal device are divided into multiple set according to geographical location and operator by quotient;According to each collection
He Zhong video stream buffer area is the quantity of empty broadcast state data, determines that the low collection of fluency is merged into capable alarm.
In view of this, with can not accurately learn whole video fluency in the prior art, can not position and repair in time problem
The method of the monitor video smoothness degree in source is compared, and the present invention can accurately obtain the lower set of fluency, and individually gather
Monitoring range it is smaller, be easier in the lower set of single fluency according to terminal device IP positioning terminal equipment, it is time-consuming
It is shorter, even and if then corresponding adjustment can be made, utmostly guarantee terminal user viewing experience.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
It is shown in Figure 1, the method for monitor video smoothness degree during net cast in the embodiment of the present invention, including
Following steps:
S1:When user's using terminal equipment watching video live broadcast, terminal device timing (timing be 1 minute) is to service
Device reports the broadcast state information of the video flowing received, and broadcast state information includes:User ID (i.e. the ID of user's uniqueness), end
End equipment type identification, the video player information (such as FLASH version, operator etc.) of terminal device, video render shape
State, request time stamp (time of mark be broadcast state information on call time) and identification code, go to S2.
The video render state of broadcast state information includes in S1:NetStream.Play.Start (video playing
In), NetStream.Buffer.Full (video stream buffer area is full), NetStream.Buffer.Empty (video stream buffer
Area be sky), Close (video playing finishes).
The identification code of broadcast state information is regular length in S1, will do it encryption after generation;The create-rule of identification code
For:It is arranged by recognition time stamp (recognition time stamp is identical as request time stamp), terminal device ID and random number, terminal is set
Standby ID is obtained according to the API (Application Programming Interface, application programming interface) of terminal device
It takes.
S2:Server is after meeting the broadcast state information addition terminal device IP of call format, to carry out caching and pre- place
It manages (i.e. Uniform data format), forms broadcast state data, all broadcast state data are divided at least 3 groups (in the present embodiment
It is 3 groups), go to S3.
The broadcast state information for meeting call format in S2 needs while meeting the following conditions:User ID is not empty, user
ID meet data field type, terminal equipment type mark it is legal, video render state is legal, request time stamp format it is correct
Deng.
Broadcast state data format after pre-processing in S2 is as follows;
S3:3 groups of broadcasting status datas are verified simultaneously, if being verified, go to S4;It is lost if verifying does not pass through
The broadcast state data are abandoned, are terminated;Broadcast state data grouping and simultaneously verifying be can be improved into working efficiency.
The detailed process verified in S3 to single broadcast state data is:The identification code of broadcast state data is carried out
Whether in the reasonable scope decryption, obtains timestamp and terminal device ID, judge timestamp (i.e. timestamp and current server
Whether the time difference in one minute) and terminal device ID meet specification (create-rule that terminal device ID meets identification code be considered as symbol
Close specification), if then confirmation is verified, otherwise confirmation verifying does not pass through.
S4:All broadcast state data being verified are monitored in real time:It is set according to the terminal of broadcast state data
Standby IP obtains geographical location and the network operation of corresponding terminal device (this is reported to play the terminal device of status data)
Quotient's information.By real-time streams processing function, the final data for carrying out real time monitoring acquisition includes:The geographical location of terminal device,
The video player information of the operator's informaiton of terminal device, terminal device, goes to S5.
S5:According to the geographical location of terminal device and network operator information, by the corresponding broadcasting shape of all terminal devices
State data are divided into several set;According to the broadcast state data marked in each set
Quantity, determine the low collection of fluency be merged into row alarm (monitoring the page in highlight or specified requirements under pass through announcement
Alert channel informing function responsible person), go to S6.
S5 specifically includes following below scheme:According to the geographical location of terminal device, the terminal of same geographic area will be under the jurisdiction of
The corresponding broadcast state data of equipment are associated, and obtain at least one region fluency monitoring set;Same operation will be under the jurisdiction of
The corresponding broadcast state data of the terminal device of quotient are associated, and obtain at least one operator fluency monitoring set.Judgement is every
A set internal labeling has the quantity of the broadcast state data of NetStream.Buffer.Empty, if in all broadcast state numbers
10% or more of data bulk, if so, determining and alerting the collection and be combined into the low set of fluency.
S6:In the low set of fluency, according to the terminal device IP for reporting NetStream.Buffer.Empty, positioning
Terminal device (i.e. problem terminal device) simultaneously adjusts accordingly.
It is shown in Figure 2, monitoring video flow during net cast of the realization above method in the embodiment of the present invention
The system freely spent, the system include:Uniform service monitoring module, the broadcast state information reporting module on terminal device,
Positioned at the data buffer storage preprocessing module of server and 3 Data Verification modules.
Broadcast state information reporting module is used for:Timing reports broadcasting for the video flowing received to data buffer storage preprocessing module
Put status information:
In broadcast state information include video render state, User ID, terminal equipment type mark, request time stamp and
Identification code;Video render state include NetStream.Buffer.Empty, NetStream.Play.Start,
NetStream.Buffer.Full and Close.
Data buffer storage preprocessing module is used for:For the broadcast state information that meets call format, (User ID is not empty, user
ID meet data field type, terminal equipment type mark it is legal, video render state is legal, request time stamp format just
It after really) adding terminal device IP, is cached and is pre-processed, form broadcast state data;All broadcast state data are divided into 3
Every group of broadcasting status data is sent to 1 Data Verification module respectively by group.
Data Verification module is used for:It determines the broadcast state data by verifying, the broadcast state data of verifying will be passed through
It is sent to uniform service monitoring module.
Data Verification module determines that the process for the broadcast state data that single is verified is:Knowledge to broadcast state data
Other code is decrypted, and obtains timestamp and terminal device ID, judge timestamp whether in the reasonable scope and terminal device ID accord with
Close specification;If then confirmation is verified, otherwise confirmation verifying does not pass through.
Uniform service monitoring module is used for:
(1) terminal device IP that status data is played according to every, obtains geographical location and the net of corresponding terminal device
Network operator's informaiton.
(2) according to the geographical location of terminal device and network operator information, by the corresponding broadcasting shape of all terminal devices
State data are divided into several set, and detailed process is:According to the geographical location of terminal device, same geographic area will be under the jurisdiction of
The corresponding broadcast state data of terminal device are associated, and obtain at least one region fluency monitoring set;It will be under the jurisdiction of same
The corresponding broadcast state data of the terminal device of operator are associated, and obtain at least one operator fluency monitoring set.
(3) according to the quantity of the broadcast state data marked in each set, really
Determine the low set of fluency, detailed process is:Judge that each set internal labeling has the broadcasting of NetStream.Buffer.Empty
The quantity of status data, if 10% or more of all broadcast state data bulks, if so, determining that the collection is combined into fluency
Low set, otherwise determining the set not is the low set of fluency.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.