CN104980793A - Method and terminal for detecting video - Google Patents

Method and terminal for detecting video Download PDF

Info

Publication number
CN104980793A
CN104980793A CN201510126525.4A CN201510126525A CN104980793A CN 104980793 A CN104980793 A CN 104980793A CN 201510126525 A CN201510126525 A CN 201510126525A CN 104980793 A CN104980793 A CN 104980793A
Authority
CN
China
Prior art keywords
video
page
video file
described video
play
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.)
Granted
Application number
CN201510126525.4A
Other languages
Chinese (zh)
Other versions
CN104980793B (en
Inventor
陈六四
陈华明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510126525.4A priority Critical patent/CN104980793B/en
Publication of CN104980793A publication Critical patent/CN104980793A/en
Application granted granted Critical
Publication of CN104980793B publication Critical patent/CN104980793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method and a terminal for detecting a video. The method comprises the steps as follows: starting a browser application program and using the browser application program to load a video page transmitted by a server; detecting whether the video page contains the URL of a video file, determining that the video page has a playable video if the video page contains the URL of the video file, determining that the video page does not have the playable video if the video page does not contain the URL of the video file. Through the above detecting process, the method and the terminal of the invention can determine whether the loaded video file has the playable video, effectively finish the video detection, and improve accuracy rate of the video detection.

Description

A kind of method that video detects and terminal
Technical field
The present invention relates to communication technical field, particularly relate to method and terminal, server and the system of the detection of a kind of video.
Background technology
User there will be the webpage that enters when displaying video can not the situation of displaying video, causes the experience of user poor.
At present, can not the probability of displaying video in order to reduce webpage that user opens, can process video data, concrete: the broadcasting page capturing video by web crawler, specific keyword is searched in the video page that crawl is returned, these keywords can be used as the mark judging whether video had lost efficacy, such as: the page does not exist, 404 pages, video lost efficacy, if there is these keywords in video page, then be judged to be inefficacy video, otherwise being defined as can displaying video.
But, in prior art, the information that some video lost efficacy is not at HTML (the Hyper Text Markup Language of video page, HTML) occur in, but show in plug-in unit and can not play, that test section does not come for this kind of situation by above-mentioned keyword judgment mode, and when video can be play, but may occur in the page that some can be judged as the keyword of inefficacy, it is lost efficacy that this kind of video council is mistaken as, so the accuracy rate of the method whether this keyword search video according to the page can be play is lower.
Summary of the invention
In view of this, the invention provides method and the terminal of a kind of video detection, the problem that the accuracy rate for solving video detection in prior art is low.
The method that the video that the embodiment of the present invention provides detects, comprising:
Terminal starts browser application, and utilizes the video page that described browser application load server sends;
Detect the uniform resource position mark URL whether comprising video file in described video page;
If comprise the URL of described video file in described video page, then determining that described video page has can displaying video;
If do not comprise the URL of described video file in described video page, then determine that described video page can not displaying video.
The terminal that the embodiment of the present invention provides, comprising:
Start-up loading module, for starting browser application, and utilizes the video page that described browser application load server sends;
First detection module, for after video page described in start-up loading module loading, detects the uniform resource position mark URL whether comprising video file in described video page;
First processing module, if determine for described first detection module the URL comprising described video file in described video page, then determining that described video page has can displaying video;
Second processing module, if determine for described first detection module the URL not comprising described video file in described video page, then determines that described video page can not displaying video.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
Terminal starts browser application, and utilize the video page that this browser application load server sends, detect the URL(uniform resource locator) (UniformResoureLocator whether comprising video file in this video page, URL), if comprise the URL of video file in this video page.Then determining that this video page has can displaying video, if do not comprise the URL of video file in this video page, then determines that this video page can not displaying video.By above-mentioned testing process, can determine whether the video page loaded has can displaying video, effectively can complete video and detect, improve the accuracy rate that video detects.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, be described in detail below.
Accompanying drawing explanation
Fig. 1 is the structure chart of video detection system in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the structure of terminal in the embodiment of the present invention;
Fig. 3 is a schematic diagram of the embodiment of the method that in the embodiment of the present invention, video detects;
Fig. 4 is another schematic diagram of the embodiment of the method that in the embodiment of the present invention, video detects;
Fig. 5 is another schematic diagram of the embodiment of the method that in the embodiment of the present invention, video detects;
The schematic diagram of display interface when Fig. 6 a is handset starting video measuring ability in the embodiment of the present invention;
Fig. 6 b is the schematic diagram of the display interface in the embodiment of the present invention after handset starting browser application;
Fig. 6 c is the schematic diagram of the display interface in the embodiment of the present invention after mobile phone loading video page;
Fig. 6 d is the schematic diagram that in the embodiment of the present invention, mobile phone shows selection window on display interface;
Fig. 6 e is the schematic diagram of the display interface of mobile phone playing video file in the embodiment of the present invention;
Fig. 6 f is the schematic diagram of the playing pictures that in the embodiment of the present invention, mobile phone is obtained by sectional drawing mode;
Fig. 7 is a schematic diagram of the structure of terminal in the embodiment of the present invention;
Fig. 8 is another schematic diagram of the structure of terminal in the embodiment of the present invention;
Fig. 9 is another schematic diagram of the structure of terminal in the embodiment of the present invention.
Embodiment
For further setting forth the present invention for the technological means that realizes predetermined goal of the invention and take and effect, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The method that video for a better understanding of the present invention in embodiment detects, the system that video is detected will be introduced below, refer to Fig. 1, for the structure chart of video detection system in the embodiment of the present invention, comprise: several terminals 101, server 102, video statistics database 103, video logic database 104.
Wherein, video data transfer can be supported to serve (Phone Text Video Server) for server 102 and video playability detects background service, and server 102 can obtain the data of video page from video statistics database 103.
Wherein, server 102 can obtain the data of video page from video statistics database 103, but but can not obtain data from video logic database 104, after video statistics database 103 carries out Data Update, can synchronously upgrade the data in video logic database 104, namely video logic database 104 is equivalent to the backup database of video statistics database 103.
Wherein, several terminals 101 in this video detection system can perform the method that the video in the embodiment of the present invention detects, and the number of terminal 101 is more, and the time completing video detection is shorter, and speed is faster.
In embodiments of the present invention, after terminal 101 opens the function of video detection, test request message will be sent to server 102, after server 102 receives this test request message, mark to the video page in video statistics database 103, and the video page marked obtaining a certain size sends to terminal 101, the method detected according to the video in the embodiment of the present invention one by one by terminal 101 detects video page, and testing result is sent to server 102, server 102 can upgrade video statistics database 103 according to this testing result, deletion can not the video page of displaying video, and after video statistics database 103 renewal, also by synchronized update video logic database 104.
Technical scheme for a better understanding of the present invention in embodiment, refers to Fig. 2, and Fig. 2 is the structured flowchart of the terminal of the method that the video performed in the embodiment of the present invention detects.As shown in Figure 2, terminal comprises memory 202, storage control 204, one or more (only illustrating one in figure) processor 206, Peripheral Interface 208, radio-frequency module 210, locating module 212, photographing module 214, audio-frequency module 216, Touch Screen 218 and key-press module 220.These assemblies are by one or more communication bus/holding wire 222 communication mutually.
Be appreciated that the structure shown in Fig. 2 is only signal, terminal also can comprise than assembly more or less shown in Fig. 2, or has the configuration different from shown in Fig. 2.Each assembly shown in Fig. 2 can adopt hardware, software or its combination to realize
Memory 202 can be used for storing software program and module, as the characters input method in terminal in the embodiment of the present invention and program command/module corresponding to device, processor 202 is by running the software program and module that are stored in memory 204, thus perform the application of various function and data processing, namely realize the method that above-mentioned video detects.
Memory 202 can comprise high speed random asccess memory, also can comprise nonvolatile memory, as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 202 can comprise the memory relative to the long-range setting of processor 206 further, and these remote memories can be connected to terminal by network.The example of above-mentioned network includes but not limited to the Internet, intranet, local area network (LAN), mobile radio communication and combination thereof.Processor 206 and other possible assemblies can carry out the access of memory 202 under the control of storage control 204.
Various input/output device is coupled to CPU and memory 202 by Peripheral Interface 208.Various softwares in processor 206 run memory 202, instruction are to perform the various function of terminal and to carry out data processing.
In certain embodiments, Peripheral Interface 208, processor 206 and storage control 204 can realize in one single chip.In some other example, they can respectively by independently chip realization.
Radio-frequency module 210, for receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and the signal of telecommunication, thus carries out communication with communication network or other equipment.Radio-frequency module 210 can comprise the various existing circuit element for performing these functions, such as, and antenna, radio-frequency (RF) transceiver, digital signal processor, encrypt/decrypt chip, subscriber identity module (SIM) card, memory etc.Radio-frequency module 210 can with various network as the Internet, intranet, wireless network carry out communication or carry out communication by wireless network and other equipment.Above-mentioned wireless network can comprise cellular telephone networks, WLAN (wireless local area network) or metropolitan area network.Above-mentioned wireless network can use various communication standard, agreement and technology, include, but are not limited to global system for mobile communications (Global System for MobileCommunication, GSM), enhancement mode mobile communication technology (Enhanced Data GSMEnvironment, EDGE), Wideband CDMA Technology (wideband code division multipleaccess, W-CDMA), CDMA (Code Division Multiple Access) (Code division access, CDMA), tdma (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (as IEEE-USA standard IEEE 802.11a, IEEE802.11b, IEEE 802.11g and/or IEEE 802.11n), the networking telephone (Voiceover internetprotocal, VoIP), worldwide interoperability for microwave access (World wide Interoperability for MicrowaveAccess, Wi-Max), other are for mail, the agreement of instant messaging and short message, and any other suitable communications protocol, even can comprise those current agreements be developed not yet.
Locating module 212 is for obtaining the current location of terminal.The example of locating module 212 includes but not limited to GPS (Global Position System) (GPS), location technology based on WLAN (wireless local area network) or mobile radio communication.
Photographing module 214 is for taking pictures or video.Photo or the video of shooting can be stored in memory 202, and send by radio-frequency module 210.
Audio-frequency module 216 provides audio interface to user, and it can comprise one or more microphone, one or more loud speaker and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 208, voice data is converted to telecommunications breath, and telecommunications breath is transferred to loud speaker.Telecommunications breath is changed the sound wave can heard into people's ear by loud speaker.Voicefrequency circuit also from microphone receive telecommunications breath, convert electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 208 to be further processed.Voice data can obtain from memory 202 or by radio-frequency module 210.In addition, voice data also can be stored in memory 202 or by radio-frequency module 210 and send.In some instances, audio-frequency module 216 also can comprise an earphone and broadcast hole, for providing audio interface to earphone or other equipment.
Touch Screen 218 provides one to export and inputting interface between terminal and user simultaneously.Particularly, Touch Screen 218 exports to user's display video, and the content of these video frequency output can comprise word, figure, video and combination in any thereof.Some Output rusults correspond to some user interface object.Touch Screen 218 also receives the input of user, and the gesture operation such as click, slip of such as user, so that response is made in the input of user interface object to these users.The technology detecting user's input can be based on resistance-type, condenser type or other touch control detection technology possible arbitrarily.The instantiation of Touch Screen 218 display unit includes, but are not limited to liquid crystal display or light emitting polymer displays.
Key-press module 220 provides user to carry out the interface inputted to terminal equally, and user can perform different functions by pressing different buttons to make terminal.
The technical scheme that video for a better understanding of the present invention in embodiment detects, refers to Fig. 3, is the embodiment of the method that video in the embodiment of the present invention detects, comprises:
301, terminal starts browser application, and utilizes the video page that browser application load server sends;
In embodiments of the present invention, after terminal starts the function of video detection, test request message will be sent to server, and the web page address set of the video page of reception server feedback, wherein, the mode that terminal starts the function that video detects has multiple, such as, the instrument of an Aulomatizeted Detect can be installed in end side, click the function namely starting video detection after running this instrument.In actual applications, the mode triggering terminal also by other starts video measuring ability, does not limit herein.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, concrete can be: terminal carries out video detection to the video page received successively, and the web page address of video page can be filled in the web page address hurdle of browser by terminal, and load this video page.
302, the URL whether comprising video file in video page is detected;
In embodiments of the present invention, terminal is after loading video page, can get the HTML of this video page, can obtain " Video " label from the HTML of this video page, terminal can utilize this " video " label to detect the URL whether comprising video file in this video page.
If comprise the URL of video file in 303 video pages, then determining that video page has can displaying video;
In embodiments of the present invention, if comprise the URL of video file in video page, then determining that video page has can displaying video.Wherein, the URL comprising video file in video page refers to that " video " label of the HTML of video page comprises the URL of video file.
If do not comprise the URL of video file in 304 video pages, then determine that video page can not displaying video.
In embodiments of the present invention, if do not comprise the URL of video file in video page, do not comprise the URL of video file in " video " label of the HTML namely in video page, then determine that video page can not displaying video.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, detect the URL whether comprising video file in this video page, if comprise the URL of video file in video page, then determining that this video page has can displaying video, if do not comprise the URL of video file in video page, then determine that this video page can not displaying video, by above-mentioned testing process, can determine whether the video page loaded has can displaying video, effectively can complete video to detect, improve the accuracy rate that video detects.
It should be noted that, be in the embodiment shown in fig. 1 by detect in video page the URL that whether comprises video file determine whether video page has can displaying video, in order to improve the accuracy rate that video detects further, also can after determining to comprise in video page the URL of video file, by time of having play of obtaining video file long determine whether video page has can displaying video, concrete refers to Fig. 4, Fig. 4 is another embodiment of the method that in the embodiment of the present invention, video detects, and comprising:
401, terminal starts browser application, and utilizes the video page that browser application load server sends;
In embodiments of the present invention, after terminal starts the function of video detection, test request message will be sent to server, and the web page address set of the video page of reception server feedback, wherein, the mode that terminal starts the function that video detects has multiple, such as, the instrument of an Aulomatizeted Detect can be installed in end side, click the function namely starting video detection after running this instrument.In actual applications, the mode triggering terminal also by other starts video measuring ability, does not limit herein.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, concrete can be: terminal carries out video detection to the video page received successively, and the web page address of video page can be filled in the web page address hurdle of browser by terminal, and load this video page.
402, the URL whether comprising video file in video page is detected;
In embodiments of the present invention, terminal is after loading video page, can get the HTML of this video page, can obtain " Video " label from the HTML of this video page, terminal can utilize this " video " label to detect the URL whether comprising video file in this video page.
If comprise the URL of video file in 403 video pages, obtain the URL of video file, on video page, load video file according to the URL of video file;
In embodiments of the present invention, terminal detects the URL whether comprising video file in video page, if terminal detects in video page the URL comprising video file, then obtain the URL of this video file, on video page, load this video file according to the URL of video file.
Wherein, terminal can obtain the URL of video file from " Video " label of the HTML of video page.
404, playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtains the set of the time of the having play length of video file;
In embodiments of the present invention, terminal is after video page loads video file, by playing video file, and long at interval of the time of having play of the first time period collection pre-set once this video file, obtain the long set of the time of having play of this video file.
Wherein, during the video content of terminal in playing video file, the long set of several times of having play will be obtained, such as, at interval of 30 seconds, the time of having play obtaining the video file of current broadcasting was long, obtained the set of 3 length of the time of having play as this video file altogether.Wherein, number of times and each time interval obtained of acquisition can be arranged as required, do not limit herein.
Wherein, terminal can video content in played in full screen video file also can video content in non-full frame playing video file.
Wherein, video page is when playing video file, have progress bar in the lower end of video page, it is long that this progress bar have recorded the time that this video file play, and the time that terminal has been play as this video file by the time value gathered on the progress bar of video page is long.
It should be noted that, be in broadcast state in order to ensure video file, to avoid the impact on testing result, terminal can the state current to video file be monitored.
It should be noted that, in embodiments of the present invention, after terminal completes the loading of video file, if video page ejects the option of " download " and " directly opening ", then terminal performs the option of " directly opening ", wherein, the option of " download " and " directly opening " can be presented on video page with the form of wicket display, and terminal directly can complete the action that selection " is directly opened ", and do not need testing staff to operate, save the time of testing staff, accelerate detection efficiency, realize the automation detected.
If the time of having play comprising at least one non-zero in the set that 405 times of having play are long is long, then determine that video file can be play, video page has can displaying video;
In the invention process, terminal is after the set that the time of having play obtaining the video file on current video page is long, if the time of having play comprising at least one non-zero in the set that the time of having play is long is long, then determine that video file can be play, video page has can displaying video.
Wherein, by determining whether have the time of having play of at least one non-zero long in the set that the time of having play of video file is long, this video file whether normal play can be determined, such as: if the set of the time of the having play length of video file comprises: 0 second, 0 second, 25 seconds, then this video file energy normal play is described, then determine that this video file can be play, and video page have can displaying video.
If the time of having play length all in the set that 406 times of having play are long is zero, then determine that video file can not be play, video page can not displaying video.
In embodiments of the present invention, terminal is after the set that the time of having play obtaining the video file on current video page is long, if the time of having play length all in the set that the time of having play is long is zero, then determine that this video file can not be play, this video page can not displaying video.Such as: if the long set of the time of having play of video file comprises: 0 second, 0 second, 0 second, then illustrate that this video file can not normal play, then determine that this video file can not be play, and video page do not have can displaying video.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, terminal detects the URL whether comprising video file in video page, if comprise the URL of video file in video file, then obtain the URL of video file, on video page, video file is loaded according to the URL of video file, terminal is by playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtain the set of the time of the having play length of this video file, if the time of having play comprising at least one non-zero in the set that this time of having play is long is long, then determine that video file can be play, video page has can displaying video, if the time of having play length all in the set that this time of having play is long is zero, then determine that this video file can not be play, video page does not have can displaying video.By above-mentioned video testing process, effectively can determine it is video testing result, and after determining that video page comprises the URL of video file, detect further by the reproduction time progress row gathered when video file is play, more effectively can improve the accuracy rate that video detects.
In embodiments of the present invention, by after determining that video page comprises the URL of video file in embodiment illustrated in fig. 2, long carry out detecting improving further accuracy rate that video detects by time of having play of gathering video file, on this basis, in order to more determine whether video file really can be play, the broadcasting pictures of terminal also by gathering video file carries out video detection, in order to better understanding, refer to Fig. 5, for another embodiment of the method that video in the embodiment of the present invention detects, comprising:
501, terminal starts browser application, and utilizes the video page that browser application load server sends;
In embodiments of the present invention, after terminal starts the function of video detection, test request message will be sent to server, and the web page address set of the video page of reception server feedback, wherein, the mode that terminal starts the function that video detects has multiple, such as, the instrument of an Aulomatizeted Detect can be installed in end side, click the function namely starting video detection after running this instrument.In actual applications, the mode triggering terminal also by other starts video measuring ability, does not limit herein.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, concrete can be: terminal carries out video detection to the video page received successively, and the web page address of video page can be filled in the web page address hurdle of browser by terminal, and load this video page.
502, the URL whether comprising video file in video page is detected;
In embodiments of the present invention, terminal is after loading video page, can get the HTML of this video page, can obtain " Video " label from the HTML of this video page, terminal can utilize this " video " label to detect the URL whether comprising video file in this video page.
If comprise the URL of video file in 503 video pages, obtain the URL of video file, on video page, load video file according to the URL of video file;
In embodiments of the present invention, terminal detects the URL whether comprising video file in video page, if terminal detects in video page the URL comprising video file, then obtain the URL of this video file, on video page, load this video file according to the URL of video file.
Wherein, terminal can obtain the URL of video file from " Video " label of the HTML of video page.
504, playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtains the set of the time of the having play length of video file;
In embodiments of the present invention, terminal is after video page loads video file, by playing video file, and long at interval of the time of having play of the first time period collection pre-set once this video file, obtain the long set of the time of having play of this video file.
Wherein, during the video content of terminal in playing video file, the long set of several times of having play will be obtained, such as, at interval of 30 seconds, the time of having play obtaining the video file of current broadcasting was long, obtained the set of 3 length of the time of having play as this video file altogether.Wherein, number of times and each time interval obtained of acquisition can be arranged as required, do not limit herein.
Wherein, video page is when playing video file, have progress bar in the lower end of video page, it is long that this progress bar have recorded the time that this video file play, and the time that terminal has been play as this video file by the time value gathered on the progress bar of video page is long.
It should be noted that, in embodiments of the present invention, after terminal completes the loading of video file, if video page ejects the option of " download " and " directly opening ", then terminal performs the option of " directly opening ", wherein, the option of " download " and " directly opening " can be presented on video page with the form of wicket display, and terminal directly can complete the action that selection " is directly opened ", and do not need testing staff to operate, save the time of testing staff, accelerate detection efficiency, realize the automation detected.
If the time of having play comprising at least one non-zero in the set that 505 times of having play are long is long, at interval of the second time period pre-set, sectional drawing is carried out to video page, obtain the playing pictures set of video file;
In embodiments of the present invention, terminal is after the set that the time of having play obtaining video file is long, if the time of having play comprising at least one non-zero in determining the set that this time of having play is long is long, the second time period that then every minor tick pre-sets carries out sectional drawing to video page, obtains the playing pictures set of this video file.
If comprise at least one non-blank screen picture in the playing pictures set of 506 video files, then determine that video file can be play, video page has can displaying video;
If be blank screen picture in the playing pictures set of 507 video files, then determine that video file can not be play, video page can not displaying video.
In embodiments of the present invention, terminal is after the mode by sectional drawing gets the playing pictures set of video file in playing process, if comprise at least one non-blank screen picture in the playing pictures set of this video file, then determine that this video file can be play, video page has can displaying video.
In embodiments of the present invention, if all pictures are blank screen picture in the playing pictures set of this video file, then determine that this video file can not be play, video page can not displaying video.
Wherein, blank screen picture refers to that the percentage accounting for whole picture for the regional extent of black pixel point in picture exceedes the numerical value pre-set.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, terminal detects the URL whether comprising video file in video page, if comprise the URL of video file in video file, then obtain the URL of video file, on video page, video file is loaded according to the URL of video file, terminal is by playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtain the set of the time of the having play length of this video file, if the time of having play comprising at least one non-zero in the set that this time of having play is long is long, then at interval of the second time period pre-set, sectional drawing is carried out to video page, obtain the playing pictures set of video file, if comprise at least one non-blank screen picture in the playing pictures set of video file, then determine that video file can be play, video page has can displaying video, if be blank screen picture in the playing pictures set of video file, then determine that video file can not be play, video page can not displaying video.By above-mentioned video testing process, effectively can determine it is video testing result, improve the accuracy rate that video detects.
It should be noted that, in embodiments of the present invention, after terminal gets the result of video detection according to any one detection mode of Fig. 3 to Fig. 5, the testing result of video page is sent to server by terminal, is upgraded video database by the testing result of server according to video page.Concrete, video page in testing result does not have to delete from video statistics database the video page of displaying video by server, to realize the renewal of video statistics database, and video statistics database after the update is complete, also will upgrade video logic database, when making user use the browser application displaying video of terminal, the video page that browser application loads all comprises can displaying video.
Technical scheme for a better understanding of the present invention in embodiment, will introduce a concrete application scenarios below.
Refer to Fig. 6 a to Fig. 6 f, for mobile phone carries out the schematic flow sheet of video detection, the measuring ability of handset starting video page, and after this function on, mobile phone will send solicitation message to server, the video page detected is carried out with request, refer to Fig. 6 a, for the schematic diagram of display interface during handset starting video measuring ability, mobile phone page display " prefecture homepage ", after testing staff clicks START button, mobile phone starts to perform measuring ability, open any browser application program, refer to Fig. 6 b, for the schematic diagram of the display interface after handset starting browser application, mobile phone is after startup browser application, mobile phone is by the web page address hurdle of the web page address of the video page of server feedback write browser application, and load this video page, refer to Fig. 6 c, for mobile phone loads the schematic diagram of the display interface after video page.
In embodiments of the present invention, mobile phone is after loading video page, whether mobile phone will comprise the URL of video file in the HTML of detection video page, if do not comprise the URL of video file in the HTML of video page, then determine that video page can not displaying video, if comprise the URL of this video file in the HTML of video page, then obtain the URL of this video file, on video page, video file is loaded according to the URL of video file, and after loading is complete, display is comprised the wicket of the option of " download " and " directly opening " by mobile phone, refer to Fig. 6 d, for mobile phone shows the schematic diagram of selection window on display interface, and show this wicket on the display interface of mobile phone after, mobile phone will be selected " directly opening " button, playing video file, refer to Fig. 6 e, for in the embodiment of the present invention, the schematic diagram of the display interface of mobile phone playing video file, mobile phone will not have a time period of interval long with regard to the time of having play gathering primary video file, obtain the set of the time of the having play length of this video file, if and the time of having play comprising at least one non-zero in the set of the time of having play length is long, the second time period that then every minor tick pre-sets carries out sectional drawing to this video page, refer to Fig. 6 f, for the schematic diagram of the playing pictures that mobile phone is obtained by sectional drawing mode, therefore, mobile phone can obtain the playing pictures set of the video file of current broadcasting, if comprise at least one non-blank screen picture in the playing pictures set of this video file, then determine that this video file can be play, video page has can displaying video.
Refer to Fig. 7, be the embodiment of the structure of terminal in the embodiment of the present invention, comprise:
Start-up loading module 701, for starting browser application, and utilizes the video page that described browser application load server sends;
First detection module 702, after loading described video page in start-up loading module 701, detects the uniform resource position mark URL whether comprising video file in described video page;
First processing module 703, if determine for described first detection module 702 URL comprising described video file in described video page, then determining that described video page has can displaying video;
Second processing module 704, if determine for described first detection module 702 URL not comprising described video file in described video page, then determines that described video page can not displaying video.
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes the video page that described browser application load server sends; Then first detection module 702 detects the uniform resource position mark URL whether comprising video file in described video page; Finally, if described first detection module determines the URL comprising described video file in described video page, then the first processing module 703 determine that described video page has can displaying video; If described first detection module determines the URL not comprising described video file in described video page, then the second processing module 704 determines that described video page can not displaying video.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, detect the URL whether comprising video file in this video page, if comprise the URL of video file in video page, then determining that this video page has can displaying video, if do not comprise the URL of video file in video page, then determine that this video page can not displaying video, by above-mentioned testing process, can determine whether the video page loaded has can displaying video, effectively can complete video to detect, improve the accuracy rate that video detects.
Terminal for a better understanding of the present invention in embodiment, refers to Fig. 8, is the embodiment of the structure of terminal in the embodiment of the present invention, comprises:
The start-up loading module 701 described in embodiment as shown in Figure 7, first detection module 702, first processing module 703, second processing module 704, it is similar to the content of middle description embodiment illustrated in fig. 7, repeats no more herein.
In embodiments of the present invention, described terminal also comprises:
Acquisition module 801, if determine for described first detection module 702 URL comprising described video file in described video page, obtains the URL of described video file, loads described video file according to the URL of described video file on described video page;
Play acquisition module 802, for playing described video file, the time of having play at interval of the first time period collection pre-set once described video file is long, the set that the time of having play obtaining described video file is grown;
3rd processing module 803, if the time of having play comprising at least one non-zero in the set for the described time length play is long, then determines that described video file can be play.
In embodiments of the present invention, terminal also comprises:
4th processing module 804, if be zero for all time of having play length in the set of the described time length play, then determine that described video file can not be play, described video page can not displaying video.
In embodiments of the present invention, terminal also comprises:
Sending module 805, for after the testing result obtaining described video page, sends to described server by the testing result of described video page, is upgraded video database by the testing result of described server according to described video page.
In embodiments of the present invention, terminal also comprises: Executive Module 806, and for before described broadcasting acquisition module 802, if detect, described video page ejects the option of " download " and " directly opening ", then perform the option of described " directly opening ".
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes the video page that described browser application load server sends; Then first detection module 702 detects the uniform resource position mark URL whether comprising video file in described video page; Finally, if described first detection module determines the URL not comprising described video file in described video page, then the second processing module 704 determines that described video page can not displaying video.
If described first detection module determines the URL comprising described video file in described video page, acquisition module 801 obtains the URL of described video file, on described video page, described video file is loaded according to the URL of described video file, then, if detect, described video page ejects the option of " download " and " directly opening ", then Executive Module 806 performs the option of described " directly opening ".Then, play acquisition module 802 and play described video file, the time of having play at interval of the first time period collection pre-set once described video file is long, obtain the set of the time of the having play length of described video file, if the time of having play comprising at least one non-zero in the set that the time of having play described is long is long, 3rd processing module 803 determines that described video file can be play, and the first processing module 703 determines that described video page has can displaying video.If the time of having play length all in the set that the time of having play described is long is zero, then the 4th processing module 804 determines that described video file can not be play, and described video page can not displaying video.Finally, sending module 805, sends to described server by the testing result of described video page, is upgraded video database by the testing result of described server according to described video page.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, terminal detects the URL whether comprising video file in video page, if comprise the URL of video file in video file, then obtain the URL of video file, on video page, video file is loaded according to the URL of video file, terminal is by playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtain the set of the time of the having play length of this video file, if the time of having play comprising at least one non-zero in the set that this time of having play is long is long, then determine that video file can be play, video page has can displaying video, if the time of having play length all in the set that this time of having play is long is zero, then determine that this video file can not be play, video page does not have can displaying video.By above-mentioned video testing process, effectively can determine it is video testing result, and after determining that video page comprises the URL of video file, detect further by the reproduction time progress row gathered when video file is play, more effectively can improve the accuracy rate that video detects.
Refer to figure Fig. 9, for another embodiment of the structure of terminal in the embodiment of the present invention, comprise: the start-up loading module 701 described in embodiment as shown in Figure 8, first detection module 702, first processing module 703, second processing module 704, acquisition module 801, broadcasting acquisition module 802, the 3rd processing module 803, the 4th processing module 804, sending module 805 and Executive Module 806 and similar to the content of middle description embodiment illustrated in fig. 8, do not repeat herein.
In embodiments of the present invention, the 3rd processing module 803 comprises:
Screen capture module 901, if long for the time of having play comprising at least one non-zero in the set that the described time of having play is long, then at interval of the second time period pre-set, sectional drawing is carried out to described video page, obtain the playing pictures set of described video file;
Determination module 902, if for comprising at least one non-blank screen picture in the playing pictures set of described video file, then determine that described video file can be play.
And determination module 902 also for: if be blank screen picture in the playing pictures set of described video file, then determine that described video file can not be play, described video page can not displaying video.
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes the video page that described browser application load server sends; Then first detection module 702 detects the uniform resource position mark URL whether comprising video file in described video page; Finally, if described first detection module determines the URL not comprising described video file in described video page, then the second processing module 704 determines that described video page can not displaying video.
If described first detection module determines the URL comprising described video file in described video page, acquisition module 801 obtains the URL of described video file, on described video page, described video file is loaded according to the URL of described video file, then, if detect, described video page ejects the option of " download " and " directly opening ", then Executive Module 806 performs the option of described " directly opening ".Then, play acquisition module 802 and play described video file, the time of having play at interval of the first time period collection pre-set once described video file is long, obtain the set of the time of the having play length of described video file, if the time of having play comprising at least one non-zero in the set that the time of having play described is long is long, screen capture module 901 in 3rd processing module 803 carries out sectional drawing at interval of the second time period pre-set to described video page, obtain the playing pictures set of described video file, if and comprise at least one non-blank screen picture in the playing pictures set of described video file, then determination module 902 determines that described video file can be play, first processing module 703 determines that described video page has can displaying video, if be blank screen picture in the playing pictures set of described video file, then determination module 902 determines that described video file can not be play, described video page can not displaying video.If the time of having play length all in the set that the time of having play described is long is zero, then the 4th processing module 804 determines that described video file can not be play, and described video page can not displaying video.Finally, sending module 805, sends to described server by the testing result of described video page, is upgraded video database by the testing result of described server according to described video page.
In embodiments of the present invention, terminal starts browser application, and utilize the video page that browser application load server sends, terminal detects the URL whether comprising video file in video page, if comprise the URL of video file in video file, then obtain the URL of video file, on video page, video file is loaded according to the URL of video file, terminal is by playing video file, the time of having play gathering primary video file at interval of the first time period pre-set is long, obtain the set of the time of the having play length of this video file, if the time of having play comprising at least one non-zero in the set that this time of having play is long is long, then at interval of the second time period pre-set, sectional drawing is carried out to video page, obtain the playing pictures set of video file, if comprise at least one non-blank screen picture in the playing pictures set of video file, then determine that video file can be play, video page has can displaying video, if be blank screen picture in the playing pictures set of video file, then determine that video file can not be play, video page can not displaying video.By above-mentioned video testing process, effectively can determine it is video testing result, improve the accuracy rate that video detects.
The above, it is only preferred embodiment of the present invention, not any pro forma restriction is done to the present invention, although the present invention discloses as above with preferred embodiment, but and be not used to limit the present invention, any those skilled in the art, do not departing within the scope of technical solution of the present invention, make a little change when the technology contents of above-mentioned announcement can be utilized or be modified to the Equivalent embodiments of equivalent variations, in every case be do not depart from technical solution of the present invention content, according to any simple modification that technical spirit of the present invention is done above embodiment, equivalent variations and modification, all still belong in the scope of technical solution of the present invention.

Claims (14)

1. a method for video detection, is characterized in that, comprising:
Start browser application, and utilize the video page that described browser application load server sends;
Detect the uniform resource position mark URL whether comprising video file in described video page;
If comprise the URL of described video file in described video page, then determining that described video page has can displaying video;
If do not comprise the URL of described video file in described video page, then determine that described video page can not displaying video.
2. method according to claim 1, is characterized in that, described, and determining that described video page has also can comprise before displaying video:
Obtain the URL of described video file, on described video page, load described video file according to the URL of described video file;
Play described video file, the time of having play at interval of the first time period collection pre-set once described video file is long, obtains the long set of the time of having play of described video file;
If the time of having play comprising at least one non-zero in the set that the time of having play described is long is long, then determine that described video file can be play.
3. method according to claim 2, is characterized in that, described method also comprises:
If the time of having play length all in the set that the time of having play described is long is zero, then determine that described video file can not be play, described video page can not displaying video.
4. method according to claim 2, is characterized in that, described, determines that described video file can be play and comprises:
At interval of the second time period pre-set, sectional drawing is carried out to described video page, obtain the playing pictures set of described video file;
If comprise at least one non-blank screen picture in the playing pictures set of described video file, then determine that described video file can be play.
5. method according to claim 4, is characterized in that, described method also comprises:
If be blank screen picture in the playing pictures set of described video file, then determine that described video file can not be play, described video page can not displaying video.
6. the method according to claim 2 to 5 any one, is characterized in that, also comprises before the described video file of described broadcasting:
If detect, described video page ejects the option of " download " and " directly opening ", then perform the option of described " directly opening ".
7. method according to claim 1, is characterized in that, described method also comprises:
The testing result of described video page is sent to described server, by the testing result of described server according to described video page, video database is upgraded.
8. a terminal, is characterized in that, comprising:
Start-up loading module, for starting browser application, and utilizes the video page that described browser application load server sends;
First detection module, for after video page described in start-up loading module loading, detects the uniform resource position mark URL whether comprising video file in described video page;
First processing module, if determine for described first detection module the URL comprising described video file in described video page, then determining that described video page has can displaying video;
Second processing module, if determine for described first detection module the URL not comprising described video file in described video page, then determines that described video page can not displaying video.
9. terminal according to claim 1, is characterized in that, described terminal also comprises:
Acquisition module, if determine for described first detection module the URL comprising described video file in described video page, obtains the URL of described video file, loads described video file according to the URL of described video file on described video page;
Play acquisition module, for playing described video file, the time of having play at interval of the first time period collection pre-set once described video file is long, the set that the time of having play obtaining described video file is grown;
3rd processing module, if the time of having play comprising at least one non-zero in the set for the described time length play is long, then determines that described video file can be play.
10. terminal according to claim 9, is characterized in that, described terminal also comprises:
4th processing module, if be zero for all time of having play length in the set of the described time length play, then determine that described video file can not be play, described video page can not displaying video.
11. terminals according to claim 9, is characterized in that, described 3rd processing module comprises:
Screen capture module, if long for the time of having play comprising at least one non-zero in the set that the described time of having play is long, then at interval of the second time period pre-set, sectional drawing is carried out to described video page, obtain the playing pictures set of described video file;
Determination module, if for comprising at least one non-blank screen picture in the playing pictures set of described video file, then determine that described video file can be play.
12. terminals according to claim 11, is characterized in that, described determination module also for:
If be blank screen picture in the playing pictures set of described video file, then determine that described video file can not be play, described video page can not displaying video.
13. terminals according to claim 9 to 12 any one, is characterized in that, also comprise before the described video file of described broadcasting:
Executive Module, for before described broadcasting acquisition module, if detect, described video page ejects the option of " download " and " directly opening ", then perform the option of described " directly opening ".
14. terminals according to claim 8, is characterized in that, described terminal also comprises:
Sending module, for after the testing result obtaining described video page, sends to described server by the testing result of described video page, is upgraded video database by the testing result of described server according to described video page.
CN201510126525.4A 2015-03-20 2015-03-20 A kind of method and terminal of video detection Active CN104980793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510126525.4A CN104980793B (en) 2015-03-20 2015-03-20 A kind of method and terminal of video detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510126525.4A CN104980793B (en) 2015-03-20 2015-03-20 A kind of method and terminal of video detection

Publications (2)

Publication Number Publication Date
CN104980793A true CN104980793A (en) 2015-10-14
CN104980793B CN104980793B (en) 2018-11-06

Family

ID=54276799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510126525.4A Active CN104980793B (en) 2015-03-20 2015-03-20 A kind of method and terminal of video detection

Country Status (1)

Country Link
CN (1) CN104980793B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600866A (en) * 2018-05-18 2018-09-28 电子科技大学 A kind of efficient automatic distinguishing method of network audio-video playability
CN109618237A (en) * 2018-11-26 2019-04-12 维沃移动通信有限公司 A kind of method for processing video frequency and mobile terminal
CN110650352A (en) * 2019-09-06 2020-01-03 四川天邑康和通信股份有限公司 Video processing method of IPTV browser

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205822A1 (en) * 1996-03-08 2004-10-14 Actv, Inc. Enhanced video programming system and method for incorporating and displaying retrieved intergrated Internet information segments
CN102347047A (en) * 2010-07-30 2012-02-08 腾讯科技(深圳)有限公司 Media player detection method and apparatus thereof
CN102769774A (en) * 2012-08-15 2012-11-07 赛特斯网络科技(南京)有限责任公司 Method for achieving cross-platform video service quality diagnosis in wideband video network system
CN103455600A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) grabbing method and device and server equipment
CN103546830A (en) * 2013-10-28 2014-01-29 Tcl集团股份有限公司 Method and system for processing video address failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205822A1 (en) * 1996-03-08 2004-10-14 Actv, Inc. Enhanced video programming system and method for incorporating and displaying retrieved intergrated Internet information segments
CN102347047A (en) * 2010-07-30 2012-02-08 腾讯科技(深圳)有限公司 Media player detection method and apparatus thereof
CN102769774A (en) * 2012-08-15 2012-11-07 赛特斯网络科技(南京)有限责任公司 Method for achieving cross-platform video service quality diagnosis in wideband video network system
CN103455600A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) grabbing method and device and server equipment
CN103546830A (en) * 2013-10-28 2014-01-29 Tcl集团股份有限公司 Method and system for processing video address failure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600866A (en) * 2018-05-18 2018-09-28 电子科技大学 A kind of efficient automatic distinguishing method of network audio-video playability
CN109618237A (en) * 2018-11-26 2019-04-12 维沃移动通信有限公司 A kind of method for processing video frequency and mobile terminal
CN110650352A (en) * 2019-09-06 2020-01-03 四川天邑康和通信股份有限公司 Video processing method of IPTV browser
CN110650352B (en) * 2019-09-06 2020-12-08 四川天邑康和通信股份有限公司 Video processing method of IPTV browser

Also Published As

Publication number Publication date
CN104980793B (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN103501333B (en) Method, device and terminal equipment for downloading files
CN104965848B (en) A kind of front end resource loading method and device
CN104092723B (en) Document down loading method, Apparatus and system
CN104243517A (en) Content sharing method and device used between different terminals
CN105760127A (en) Screen transfer method, screen transfer device and mobile terminal
CN105657479B (en) Video processing method and device
CN104731808A (en) Browser webpage loading method and browser webpage loading device
CN106326091A (en) Browser webpage compatibility detection method and system
CN104423868A (en) E-book reading positioning method and device
CN111970683A (en) Method and device for switching SIM (subscriber identity Module) card, terminal equipment and storage medium
CN104424241B (en) Web site url processing method based on two dimensional code, apparatus and system
CN104239317A (en) Method and device for compiling pictures in browser
CN106658105A (en) Web-based screen projection system building method and web-based screen projection system building device
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN106445743A (en) Data backup transmission method and mobile terminal
CN106341365A (en) New account information deletion method and device
CN102255994B (en) Data recording storage method and system for mobile terminal
CN104182419A (en) Method and device for processing character information in picture
CN106294707A (en) A kind of countdown information output intent and device
CN105095253A (en) Webpage display method and webpage display device
CN104092720B (en) The sharing method of playlist and device
CN104980793A (en) Method and terminal for detecting video
CN104113620A (en) Contact list updating method, updating device and user terminal
CN105682083B (en) A kind of communication means of mobile terminal and duplex MODEM system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221117

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.