CN104980793B - A kind of method and terminal of video detection - Google Patents

A kind of method and terminal of video detection Download PDF

Info

Publication number
CN104980793B
CN104980793B CN201510126525.4A CN201510126525A CN104980793B CN 104980793 B CN104980793 B CN 104980793B CN 201510126525 A CN201510126525 A CN 201510126525A CN 104980793 B CN104980793 B CN 104980793B
Authority
CN
China
Prior art keywords
video
page
video file
file
played
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.)
Active
Application number
CN201510126525.4A
Other languages
Chinese (zh)
Other versions
CN104980793A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A kind of method and terminal of video detection, this method include:Start browser application, and the video page sent using the browser application load server, the URL for whether including video file in the video page is detected, if including the URL of video file in the video page.Then determine that the video page has playable video, if not including the URL of video file in the video page, it is determined that the video page is without playable video.Pass through above-mentioned detection process, it may be determined that whether the video page of load has playable video, can efficiently accomplish video detection, improves the accuracy rate of video detection.

Description

A kind of method and terminal of video detection
Technical field
The present invention relates to field of communication technology more particularly to the method and terminal of a kind of video detection, servers and system.
Background technology
The case where webpage that user will appear entrance when playing video cannot play video, cause the experience of user compared with Difference.
Currently, the probability of video cannot be played in order to reduce the webpage of user's opening, video data can be handled, be had Body:The broadcasting page that video can be captured by web crawler searches specific close in the video page of crawl back Key word, these keywords can be used as the mark for judging whether video is no longer valid, such as:The page is not present, 404 pages, video It is no longer valid etc., if video page there are these keywords, is determined as the video that fails, otherwise, it determines to can play video.
However, in the prior art, the information of some videos failure is not in the hypertext markup language of video page Occur in (Hyper Text Markup Language, HTML), but show and not can play in plug-in unit, for this kind of feelings Condition is test section not come and when video can play, but may in the page by above-mentioned keyword judgment mode Keywords of failure can be judged as by occurring some, this kind of video council is erroneously interpreted as failure, so this according to the page The accuracy rate for the method whether keyword search video can play is relatively low.
Invention content
In view of this, the present invention provides a kind of method and terminal of video detection, examined for solving video in the prior art The low problem of the accuracy rate of survey.
The method of video detection provided in an embodiment of the present invention, including:
Terminal starts browser application, and the video page sent using the browser application load server Face;
The uniform resource position mark URL for whether including video file in the video page detected;
If including the URL of the video file in the video page, it is determined that the video page has playable video;
If not including the URL of the video file in the video page, it is determined that the video page is regarded without playable Frequently.
Terminal provided in an embodiment of the present invention, including:
Start-up loading module for starting browser application, and utilizes browser application load service The video page that device is sent;
First detection module, for after the video page described in start-up loading module loading, detecting the video page In whether include the uniform resource position mark URL of video file;
First processing module, if determining in the video page to include the video file for the first detection module URL, it is determined that the video page has playable video;
Second processing module, if determining in the video page not include video text for the first detection module The URL of part, it is determined that the video page is without playable 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 the video page sent using the browser application load server Face, detect in the video page whether comprising video file uniform resource locator (UniformResoureLocator, URL), if including the URL of video file in the video page.Then determine that the video page has playable video, if the video page Do not include the URL of video file in face, it is determined that the video page is without playable video.It, can be true by above-mentioned detection process Whether the video page loaded surely has playable video, can efficiently accomplish video detection, improves the accuracy rate of video detection.
For the above and other objects, features and advantages of the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
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 for video detection in the embodiment of the present invention;
Fig. 4 is another schematic diagram of the embodiment of the method for video detection in the embodiment of the present invention;
Fig. 5 is another schematic diagram of the embodiment of the method for video detection in the embodiment of the present invention;
Fig. 6 a are the schematic diagram of display interface when mobile phone starts video detection function in the embodiment of the present invention;
Fig. 6 b are the schematic diagram that mobile phone starts the display interface after browser application in the embodiment of the present invention;
Fig. 6 c are the schematic diagram that mobile phone loads the display interface after video page in the embodiment of the present invention;
Fig. 6 d are the schematic diagram that mobile phone shows selection window on display interface in the embodiment of the present invention;
Fig. 6 e are the schematic diagram of the display interface of mobile phone playing video file in the embodiment of the present invention;
Fig. 6 f are the schematic diagram for the playing pictures that mobile phone is obtained by sectional drawing mode in the embodiment of the present invention;
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.
Specific implementation mode
Further to illustrate that the present invention is the technological means and effect realized predetermined goal of the invention and taken, below in conjunction with Specific implementation mode, structure, feature and its effect according to the present invention is described in detail as after in attached drawing and preferred embodiment.
The method of video detection in embodiment in order to better understand the present invention, is explained below and is detected to video System, referring to Fig. 1, for the structure chart of video detection system in the embodiment of the present invention, including:Several terminals 101, service Device 102, video statistics database 103, video logic database 104.
Wherein, server 102 can support that video data transfer service (Phone Text Video Server) and video can 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 cannot be from Video logic database 104 obtains data and can be synchronized to video logic after video statistics database 103 carries out data update Data in database 104 are updated, i.e., video logic database 104 is equivalent to the backup number of video statistics database 103 According to library.
Wherein, several terminals 101 in the video detection system can carry out the inspection of the video in the embodiment of the present invention The method of survey, and the number of terminal 101 is more, the time for completing video detection is shorter, and speed is faster.
In embodiments of the present invention, after the function of the unlatching of terminal 101 video detection, test will be sent to server 102 and be asked After asking message, server 102 to receive the test request message, by the video page in video statistics database 103 into Line flag, and the marked video page for obtaining a certain size is sent to terminal 101, by terminal 101 one by one according to the present invention The method of video detection in embodiment is detected video page, and testing result is sent to server 102, server 102 can be updated video statistics database 103 according to the testing result, delete the video page that not can play video, and After video statistics database 103 updates, also by synchronized update video logic database 104.
Technical solution in embodiment in order to better understand the present invention, referring to Fig. 2, Fig. 2 is to execute the present invention to implement The structure diagram of the terminal of the method for video detection in example.As shown in Fig. 2, terminal includes memory 202, storage control 204, one or more (one is only shown in figure) processors 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 components pass through one or more communication Bus/signal wire 222 mutually communicates.
It is appreciated that structure shown in Fig. 2 is only to illustrate, terminal may also include more or less than shown in Fig. 2 Component, or with the configuration different from shown in Fig. 2.Hardware, software, or its combination reality may be used in each component shown in Fig. 2 It is existing
Memory 202 can be used for storing software program and module, as the character in terminal in the embodiment of the present invention is defeated Enter the corresponding program instruction/module of method and device, processor 202 is stored in the software program in memory 204 by operation And module, to perform various functions application and data processing, that is, the method for realizing above-mentioned video detection.
Memory 202 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 202 can further comprise The memory remotely located relative to processor 206, these remote memories can pass through network connection to terminal.Above-mentioned network Example include but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor 206 and its He can carry out the access of memory 202 at possible component under the control of storage control 204.
Peripheral Interface 208 couples various input/output devices to CPU and memory 202.The operation of processor 206 is deposited Various softwares, instruction in reservoir 202 are to execute the various functions of terminal and carry out data processing.
In some embodiments, Peripheral Interface 208, processor 206 and storage control 204 can be in one single chips It realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 210 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.Radio-frequency module 210 may include the various existing electricity for executing these functions Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, Memory etc..Radio-frequency module 210 can be communicated or be led to various networks such as internet, intranet, wireless network Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, the including but not limited to whole world mobile logical Letter system (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division Multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time division multiple access technology (time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and/ Or IEEE 802.11n), the networking telephone (Voiceover internet protocal, VoIP), worldwide interoperability for microwave accesses (World wide Interoperability for Microwave Access, Wi-Max), other for mail, immediately The agreement and any other suitable communications protocol of communication and short message, or even may include that those are not developed currently yet The agreement come.
Locating module 212 is used to obtain the current location of terminal.The example of locating module 212 includes but not limited to that the whole world is defended Star positioning system (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 214 is for shooting photo or video.The photo or video of shooting can be stored to memory 202 It is interior, and can be sent by radio-frequency module 210.
Audio-frequency module 216 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 208, and voice data is converted to power information, Power information is transmitted to loud speaker.Power information is converted to the sound wave that human ear can be heard by loud speaker.Voicefrequency circuit is also from microphone Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony to Peripheral Interface 208 with into advancing one The processing of step.Audio data can obtain from memory 202 or by radio-frequency module 210.In addition, audio data can also It stores into memory 202 or is sent by radio-frequency module 210.In some instances, audio-frequency module 216 may also include One earphone broadcasts hole, for providing audio interface to earphone or other equipment.
Touch Screen 218 provides an output and input interface simultaneously between terminal and user.Specifically, Touch Screen 218 show that video output, the content of these videos output may include word, figure, video and its arbitrary combination to user.One A little outputs are the result is that correspond to some user interface objects.Touch Screen 218 also receives the input of user, such as the point of user The gesture operations such as hit, slide, so that user interface object responds the input of these users.Detect technology input by user Can be based on resistance-type, condenser type or any other possible touch control detection technology.The tool of 218 display unit of Touch Screen Body example includes but is not limited to liquid crystal display or light emitting polymer displays.
Key-press module 220 equally provides the interface that is inputted to terminal of user, user can by press it is different by Key is so that terminal executes different functions.
The technical solution of video detection in embodiment in order to better understand the present invention, referring to Fig. 3, real for the present invention The embodiment of the method for video detection in example is applied, including:
301, terminal starts browser application, and the video page sent using browser application load server Face;
In embodiments of the present invention, after the function of terminal startup video detection, test request will be sent to server and disappeared Breath, and receive the web page address set of the video page of server feedback, wherein terminal starts the mode of the function of video detection There are many, for example, the tool of an automatic detection can be installed in end side, clicks and start video after running the tool The function of detection.In practical applications, it also triggering terminal can start video detection function in other way, not limit herein It is fixed.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service Device send video page, can be specifically:Terminal carries out video detection to the video page received successively, and terminal can The web page address of video page is filled in the web page address column of browser, and loads the video page.
302, the URL for whether including video file in video page detected;
In embodiments of the present invention, terminal can get the HTML of the video page after loading video page, can be from " Video " label is obtained in the HTML of the video page, terminal is to detect in the video page using " video " label The no URL for including video file.
If 303, including the URL of video file in video page, it is determined that video page has playable video;
In embodiments of the present invention, if including the URL of video file in video page, it is determined that video page has playable Video.Wherein, in video page comprising video file URL refer to video page HTML " video " label include video The URL of file.
If 304, not including the URL of video file in video page, it is determined that video page is without playable video.
In embodiments of the present invention, if not including the URL of video file in video page, i.e. HTML's in video page The URL of video file is not included in " video " label, it is determined that video page is without playable video.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, detects the URL for whether including video file in the video page, if including video text in video page The URL of part, it is determined that the video page has playable video, if not including the URL of video file in video page, it is determined that should Video page passes through above-mentioned detection process without playable video, it may be determined that and whether the video page of load has playable video, Video detection can be efficiently accomplished, the accuracy rate of video detection is improved.
It should be noted that being by whether detecting in video page comprising video file in the embodiment shown in fig. 1 URL determine whether video page has playable video, in order to further increase the accuracy rate of video detection, can also be true Determine in video page after the URL comprising video file, the time played by obtaining video file is grown to be regarded to determine Whether the frequency page, which has, can play video, specific referring to Fig. 4, Fig. 4 is the method for video detection in the embodiment of the present invention Another embodiment, including:
401, terminal starts browser application, and the video page sent using browser application load server Face;
In embodiments of the present invention, after the function of terminal startup video detection, test request will be sent to server and disappeared Breath, and receive the web page address set of the video page of server feedback, wherein terminal starts the mode of the function of video detection There are many, for example, the tool of an automatic detection can be installed in end side, clicks and start video after running the tool The function of detection.In practical applications, it also triggering terminal can start video detection function in other way, not limit herein It is fixed.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service Device send video page, can be specifically:Terminal carries out video detection to the video page received successively, and terminal can The web page address of video page is filled in the web page address column of browser, and loads the video page.
402, the URL for whether including video file in video page detected;
In embodiments of the present invention, terminal can get the HTML of the video page after loading video page, can be from " Video " label is obtained in the HTML of the video page, terminal is to detect in the video page using " video " label The no URL for including video file.
If 403, including the URL of video file in video page, the URL of video file is obtained, according to the URL of video file Video file is loaded on video page;
In embodiments of the present invention, the URL that video file whether is included in terminal detection video page, if terminal detects The URL for including video file in video page, then obtain the URL of the video file, according to the URL of video file in video page Upper load video file.
Wherein, terminal can obtain the URL of video file from " Video " label of the HTML of video page.
404, playing video file acquires the broadcasting of primary video file at interval of pre-set first time period Time it is long, obtain video file played time length set;
In embodiments of the present invention, terminal is after video page loads video file, by playing video file, and every The time played that the primary video file is acquired every pre-set first time period is long, has obtained the video file The set of time length through broadcasting.
Wherein, when video content of the terminal in playing video file, the time length that several have been played will be obtained Set, for example, at interval of 30 seconds, the time played for obtaining currently playing video file is long, and obtaining 3 conducts altogether should The set for the time length of video file played.Wherein, the number of acquisition and the time interval obtained every time can be according to need It is arranged, does not limit herein.
Wherein, the video content that terminal can be in the played in full screen video file also video in non-played in full screen video file Content.
Wherein, video page has progress bar in playing video file in the lower end of video page, progress bar record The time that the video file has played is long, and the time value on progress bar that terminal can be by acquiring video page be used as this and regard The time that frequency file has played is long.
It should be noted that in order to ensure video file has been in broadcast state, to avoid the influence to testing result, Terminal can the state current to video file be monitored.
It should be noted that in embodiments of the present invention, after the load that terminal completes video file, if video page The option of upper pop-up " downloads " and " directly open ", then terminal execute the option of " directly opening ", wherein it is " download " and " direct The option of opening " can be shown in the form of wicket is shown on video page, and terminal can be done directly selection and " directly beat Open " action, operate, save the time of testing staff without testing staff, accelerate detection efficiency, realize detection Automation.
If the time played comprising at least one non-zero is long in the set of the time length 405, played, really Determine video file can play, video page has playable video;
In the present invention is implemented, the time of video file of the terminal on obtaining current video page played is long Set after, if played time length set in comprising at least one non-zero the time played it is long, really Determine video file can play, video page has playable video.
Wherein, by whether having had at least one non-zero in the set for the time length of determining video file played Time through broadcasting is long, it may be determined that the video file whether normal play, such as:If video file played when Between long set include:0 second, 0 second, 25 seconds, then illustrate the video file energy normal play, it is determined that the video file can be broadcast It puts, and video page has playable video.
If all time length played is zero in the set of the time length 406, played, it is determined that video File not can play, and video page is without playable video.
In embodiments of the present invention, the time of video file of the terminal on obtaining current video page played After long set, if the time length played all in the set of the time length played is zero, it is determined that should Video file not can play, and the video page is without playable video.Such as:If the collection for the time length of video file played Conjunction includes:0 second, 0 second, 0 second, then illustrate that the video file is unable to normal play, it is determined that the video file not can play, and regard The frequency page not can play video.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, terminal detect the URL for whether including video file in video page, if in video file including video The URL of file then obtains the URL of video file, and video file, terminal are loaded on video page according to the URL of video file By playing video file, the time played that primary video file is acquired at interval of pre-set first time period is long, The set for the time length of the video file played is obtained, if including at least one in the set of the time played length The time of a non-zero played is long, it is determined that video file can play, and video page has playable video, if this has been broadcast All time length played is zero in the set for the time length put, it is determined that the video file not can play, video The page not can play video.By above-mentioned video detection process, can effectively determine to be video detection as a result, and true After determining the URL that video page includes video file, reproduction time when further being played by acquiring video file is long It is detected, it being capable of the significantly more efficient accuracy rate for improving video detection.
In embodiments of the present invention, it is by determining that video page includes the URL of video file in embodiment illustrated in fig. 2 Later, it is detected by acquiring the time length of video file played to further increase the accuracy rate of video detection , on this basis, in order to more determine whether video file can really play, terminal can also be by acquiring video file Broadcasting pictures carry out video detection, for a better understanding, referring to Fig. 5, for video detection in the embodiment of the present invention side Another embodiment of method, including:
501, terminal starts browser application, and the video page sent using browser application load server Face;
In embodiments of the present invention, after the function of terminal startup video detection, test request will be sent to server and disappeared Breath, and receive the web page address set of the video page of server feedback, wherein terminal starts the mode of the function of video detection There are many, for example, the tool of an automatic detection can be installed in end side, clicks and start video after running the tool The function of detection.In practical applications, it also triggering terminal can start video detection function in other way, not limit herein It is fixed.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service Device send video page, can be specifically:Terminal carries out video detection to the video page received successively, and terminal can The web page address of video page is filled in the web page address column of browser, and loads the video page.
502, the URL for whether including video file in video page detected;
In embodiments of the present invention, terminal can get the HTML of the video page after loading video page, can be from " Video " label is obtained in the HTML of the video page, terminal is to detect in the video page using " video " label The no URL for including video file.
If 503, including the URL of video file in video page, the URL of video file is obtained, according to the URL of video file Video file is loaded on video page;
In embodiments of the present invention, the URL that video file whether is included in terminal detection video page, if terminal detects The URL for including video file in video page, then obtain the URL of the video file, according to the URL of video file in video page Upper load video file.
Wherein, terminal can obtain the URL of video file from " Video " label of the HTML of video page.
504, playing video file acquires the broadcasting of primary video file at interval of pre-set first time period Time it is long, obtain video file played time length set;
In embodiments of the present invention, terminal is after video page loads video file, by playing video file, and every The time played that the primary video file is acquired every pre-set first time period is long, has obtained the video file The set of time length through broadcasting.
Wherein, when video content of the terminal in playing video file, the time length that several have been played will be obtained Set, for example, at interval of 30 seconds, the time played for obtaining currently playing video file is long, and obtaining 3 conducts altogether should The set for the time length of video file played.Wherein, the number of acquisition and the time interval obtained every time can be according to need It is arranged, does not limit herein.
Wherein, video page has progress bar in playing video file in the lower end of video page, progress bar record The time that the video file has played is long, and the time value on progress bar that terminal can be by acquiring video page be used as this and regard The time that frequency file has played is long.
It should be noted that in embodiments of the present invention, after the load that terminal completes video file, if video page The option of upper pop-up " downloads " and " directly open ", then terminal execute the option of " directly opening ", wherein it is " download " and " direct The option of opening " can be shown in the form of wicket is shown on video page, and terminal can be done directly selection and " directly beat Open " action, operate, save the time of testing staff without testing staff, accelerate detection efficiency, realize detection Automation.
If the time played comprising at least one non-zero is long in the set of the time length 505, played, every Sectional drawing is carried out to video page every pre-set second time period, obtains the playing pictures set of video file;
In embodiments of the present invention, terminal is after obtaining the set of the time length played of video file, if really The time played comprising at least one non-zero is long in the set of the fixed time played length, then advance per minor tick The second time period of setting carries out sectional drawing to video page, obtains the playing pictures set of the video file.
If including 506, an at least non-blank screen picture in the playing pictures set of video file, it is determined that video file can It plays, video page has playable video;
If being 507, blank screen picture in the playing pictures set of video file, it is determined that video file not can play, depending on The frequency page is without playable video.
In embodiments of the present invention, terminal is getting broadcasting of the video file in playing process by way of sectional drawing After picture set, if in the playing pictures set of the video file including an at least non-blank screen picture, it is determined that the video File can play, and video page has playable video.
In embodiments of the present invention, if picture all in the playing pictures set of the video file is blank screen picture, Then determine that the video file not can play, video page is without playable video.
Wherein, blank screen picture refers to that the regional extent in picture for black pixel point accounts for the percentage of entire picture more than pre- The numerical value being first arranged.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, terminal detect the URL for whether including video file in video page, if in video file including video The URL of file then obtains the URL of video file, and video file, terminal are loaded on video page according to the URL of video file By playing video file, the time played that primary video file is acquired at interval of pre-set first time period is long, The set for the time length of the video file played is obtained, if including at least one in the set of the time played length The time of a non-zero played is long, then carries out sectional drawing to video page at interval of pre-set second time period, obtain The playing pictures set of video file, if in the playing pictures set of video file including an at least non-blank screen picture, really To determine video file can play, video page has playable video, if in the playing pictures set of video file being blank screen picture, Then determine that video file not can play, video page is without playable video.It, can be effective by above-mentioned video detection process Determination is video detection as a result, improving the accuracy rate of video detection.
It should be noted that in embodiments of the present invention, according to Fig. 3 to Fig. 5, any one detection mode is got terminal After the result of video detection, the testing result of video page is sent to server by terminal, by server according to video page Testing result video database is updated.It is regarded specifically, server not can play video page in testing result The video page of frequency is deleted from video statistics database, to realize the update of video statistics database, and video statistics data Library after the update is complete, will also update video logic database so that the browser application of user's using terminal plays When video, the video page of browser application load includes that can play video.
A specific application scenarios are explained below in technical solution in embodiment in order to better understand the present invention.
Fig. 6 a to Fig. 6 f are please referred to, the flow diagram of video detection is carried out for mobile phone, mobile phone starts the inspection of video page Brake, and after function startup, mobile phone will send solicitation message to server, to ask the video page being detected Face please refers to Fig. 6 a, and the schematic diagram of display interface when starting video detection function for mobile phone, the mobile phone page shows that " prefecture is first Page ", after testing staff clicks START button, mobile phone starts to execute detection function, opens browser application, please refers to Fig. 6 b, for mobile phone start browser application after display interface schematic diagram, mobile phone start browser application it Afterwards, the web page address column of browser application is written in the web page address of the video page of server feedback by mobile phone, and is loaded The video page please refers to Fig. 6 c, and the schematic diagram of the display interface after video page is loaded for mobile phone.
In embodiments of the present invention, after loading video page, mobile phone will be mobile phone in the HTML that detect video page The no URL for including video file, if not including the URL of video file in the HTML of video page, it is determined that video page can not It plays video and the URL of the video file is obtained, according to video if including the URL of the video file in the HTML of video page The URL of file loads video file on video page, and after loading is complete, and mobile phone is by display comprising " download " and " direct The wicket of the option of opening ", please refers to Fig. 6 d, shows the schematic diagram of selection window on display interface for mobile phone, and in hand After showing the wicket on the display interface of machine, mobile phone will select " directly opening " button, playing video file to please refer to figure 6e is in the embodiment of the present invention, and the schematic diagram of the display interface of mobile phone playing video file, mobile phone will not be spaced a period It is long with regard to the time of acquisition primary video file played, the set for the time length of the video file played is obtained, And if played time length set in comprising at least one non-zero the time played it is long, per minor tick it is advance The second time period of setting carries out sectional drawing to the video page, please refers to Fig. 6 f, the broadcasting obtained by sectional drawing mode for mobile phone The schematic diagram of picture, therefore, mobile phone can get the playing pictures set of currently playing video file, if the video file is broadcast Put in picture set includes an at least non-blank screen picture, it is determined that the video file can play, and video page, which has can play, to be regarded Frequently.
Referring to Fig. 7, for the embodiment of the structure of terminal in the embodiment of the present invention, including:
Start-up loading module 701 for starting browser application, and utilizes browser application load clothes The video page that business device is sent;
First detection module 702 regards after loading the video page in start-up loading module 701 described in detection Whether the uniform resource position mark URL of video file is included in the frequency page;
First processing module 703 regards if being determined in the video page for the first detection module 702 comprising described The URL of frequency file, it is determined that the video page has playable video;
Second processing module 704, if determining in the video page not include described for the first detection module 702 The URL of video file, it is determined that the video page is without playable video.
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes described clear The video page that device application program load server of looking at is sent;Then first detection module 702, which detects in the video page, is The no uniform resource position mark URL for including video file;Finally, it is wrapped in the video page if the first detection module determines URL containing the video file, then first processing module 703 determine that the video page has playable video;If described first Detection module determines the URL for not including the video file in the video page, then Second processing module 704 determines described regard The frequency page is without playable video.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, detects the URL for whether including video file in the video page, if including video text in video page The URL of part, it is determined that the video page has playable video, if not including the URL of video file in video page, it is determined that should Video page passes through above-mentioned detection process without playable video, it may be determined that and whether the video page of load has playable video, Video detection can be efficiently accomplished, the accuracy rate of video detection is improved.
Terminal in embodiment in order to better understand the present invention, referring to Fig. 8, for the knot of terminal in the embodiment of the present invention The embodiment of structure, including:
Start-up loading module 701, first detection module 702, first processing module described in embodiment as shown in Figure 7 703, Second processing module 704, similar to the content described in embodiment illustrated in fig. 7, details are not described herein again.
In embodiments of the present invention, the terminal further includes:
Acquisition module 801, if being determined in the video page comprising video text for the first detection module 702 The URL of part obtains the URL of the video file, loaded on the video page according to the URL of the video file described in regard Frequency file;
Acquisition module 802 is played, for playing the video file, at interval of pre-set first time period acquisition one The time of the secondary video file played is long, obtains the set for the time length of the video file played;
Third processing module 803, if comprising at least one non-zero in the set grown for the time played The time played is long, it is determined that the video file can play.
In embodiments of the present invention, terminal further includes:
Fourth processing module 804, if in the set of the time length played for described it is all played when Between it is long be zero, it is determined that the video file not can play, and the video page is without playable video.
In embodiments of the present invention, terminal further includes:
Sending module 805, for after the testing result for obtaining the video page, by the detection of the video page As a result it is sent to the server, video database is carried out more according to the testing result of the video page by the server Newly.
In embodiments of the present invention, terminal further includes:Execution module 806, for the broadcasting acquisition module 802 it Before, if detecting the option of the video page pop-up " download " and " directly opening ", the choosing " directly opened " described in execution ?.
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes described clear The video page that device application program load server of looking at is sent;Then first detection module 702, which detects in the video page, is The no uniform resource position mark URL for including video file;Finally, if the first detection module determines in the video page not Include the URL of the video file, then Second processing module 704 determines the video page without playable video.
If the first detection module determines the URL for including the video file in the video page, acquisition module 801 The URL for obtaining the video file loads the video file according to the URL of the video file on the video page, Then, if detecting, the option of the video page pop-up " download " and " directly opening ", execution module 806 execute described The option of " directly opening ".Then, it plays acquisition module 802 and plays the video file, when at interval of pre-set first Between the primary video file of section acquisition the time played it is long, the time played for obtaining the video file is long Set, if it is described played time length set in comprising at least one non-zero the time played it is long, third Processing module 803 determines that the video file can play, and first processing module 703 determines that the video page has can play and regards Frequently.If all time length played is zero in the set of the time length played, fourth processing module 804 determine that the video file not can play, and the video page is without playable video.Finally, sending module 805, will be described The testing result of video page is sent to the server, by the server according to the testing result of the video page to regarding Frequency database is updated.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, terminal detect the URL for whether including video file in video page, if in video file including video The URL of file then obtains the URL of video file, and video file, terminal are loaded on video page according to the URL of video file By playing video file, the time played that primary video file is acquired at interval of pre-set first time period is long, The set for the time length of the video file played is obtained, if including at least one in the set of the time played length The time of a non-zero played is long, it is determined that video file can play, and video page has playable video, if this has been broadcast All time length played is zero in the set for the time length put, it is determined that the video file not can play, video The page not can play video.By above-mentioned video detection process, can effectively determine to be video detection as a result, and true After determining the URL that video page includes video file, reproduction time when further being played by acquiring video file is long It is detected, it being capable of the significantly more efficient accuracy rate for improving video detection.
Figure Fig. 9 is please referred to, is another embodiment of the structure of terminal in the embodiment of the present invention, including:Implement as shown in Figure 8 Start-up loading module 701, first detection module 702, first processing module 703, Second processing module 704 described in example, are obtained Modulus block 801 plays acquisition module 802, third processing module 803, fourth processing module 804, sending module 805 and execution mould Block 806 and similar to the content described in embodiment illustrated in fig. 8, is not repeated herein.
In embodiments of the present invention, third processing module 803 includes:
Screen capture module 901, if in the set grown for the time played comprising at least one non-zero The time of broadcasting is long, then carries out sectional drawing to the video page at interval of pre-set second time period, obtain the video The playing pictures set of file;
Determining module 902, if for including an at least non-blank screen picture in the playing pictures set of the video file, Then determine that the video file can play.
And determining module 902 is additionally operable to:If being blank screen picture in the playing pictures set of the video file, it is determined that The video file not can play, and the video page is without playable video.
In embodiments of the present invention, the start-up loading module 701 of terminal starts browser application, and utilizes described clear The video page that device application program load server of looking at is sent;Then first detection module 702, which detects in the video page, is The no uniform resource position mark URL for including video file;Finally, if the first detection module determines in the video page not Include the URL of the video file, then Second processing module 704 determines the video page without playable video.
If the first detection module determines the URL for including the video file in the video page, acquisition module 801 The URL for obtaining the video file loads the video file according to the URL of the video file on the video page, Then, if detecting, the option of the video page pop-up " download " and " directly opening ", execution module 806 execute described The option of " directly opening ".Then, it plays acquisition module 802 and plays the video file, when at interval of pre-set first Between the primary video file of section acquisition the time played it is long, the time played for obtaining the video file is long Set, if it is described played time length set in comprising at least one non-zero the time played it is long, third Screen capture module 901 in processing module 803 carries out sectional drawing at interval of pre-set second time period to the video page, obtains To the playing pictures set of the video file, and if non-black comprising at least one in the playing pictures set of the video file Shield picture, it is determined that module 902 determines that the video file can play, and first processing module 703 determines that the video page has Video is can play, if in the playing pictures set of the video file being blank screen picture, it is determined that module 902 determines described regard Frequency file not can play, and the video page is without playable video.If all in the set of the time length played The time length played is zero, then fourth processing module 804 determines that the video file not can play, the video page Without playable video.Finally, the testing result of the video page is sent to the server, by described by sending module 805 Server is updated video database according to the testing result of the video page.
In embodiments of the present invention, terminal starts browser application, and utilizes browser application load service The video page that device is sent, terminal detect the URL for whether including video file in video page, if in video file including video The URL of file then obtains the URL of video file, and video file, terminal are loaded on video page according to the URL of video file By playing video file, the time played that primary video file is acquired at interval of pre-set first time period is long, The set for the time length of the video file played is obtained, if including at least one in the set of the time played length The time of a non-zero played is long, then carries out sectional drawing to video page at interval of pre-set second time period, obtain The playing pictures set of video file, if in the playing pictures set of video file including an at least non-blank screen picture, really To determine video file can play, video page has playable video, if in the playing pictures set of video file being blank screen picture, Then determine that video file not can play, video page is without playable video.It, can be effective by above-mentioned video detection process Determination is video detection as a result, improving the accuracy rate of video detection.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as be without departing from technical solution of the present invention content, it is right according to the technical essence of the invention Any simple modification, equivalent change and modification made by above example, in the range of still falling within technical solution of the present invention.

Claims (12)

1. a kind of method of video detection, which is characterized in that including:
Start browser application, and the video page sent using the browser application load server;
The uniform resource position mark URL for whether including video file in the video page detected;
If including the URL of the video file in the video page, the URL of the video file is obtained, is regarded according to described The URL of frequency file loads the video file on the video page;
The video file is played, the broadcasting of the primary video file is acquired at interval of pre-set first time period Time it is long, obtain the video file played time length set;The video file played when Between it is long by acquire video page progress bar on time be worth to;
If the time played comprising at least one non-zero is long in the set of the time length played, it is determined that institute It states video file can play, the video page has playable video;
If not including the URL of the video file in the video page, it is determined that the video page is without playable video.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If all time length played is zero in the set of the time length played, it is determined that the video File not can play, and the video page is without playable video.
3. according to the method described in claim 1, it is characterized in that, described, determining that the video file can play includes:
If the time played comprising at least one non-zero is long in the set of the time length played, at interval of pre- The second time period being first arranged carries out sectional drawing to the video page, obtains the playing pictures set of the video file;
If in the playing pictures set of the video file including an at least non-blank screen picture, it is determined that the video file can It plays.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
If being blank screen picture in the playing pictures set of the video file, it is determined that the video file not can play, institute Video page is stated without playable video.
5. method according to any one of claims 1 to 4, which is characterized in that before the broadcasting video file Further include:
If detecting the option of the video page pop-up " download " and " directly opening ", the choosing " directly opened " described in execution ?.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
The testing result of the video page is sent to the server, by the server according to the inspection of the video page Result is surveyed to be updated video database.
7. a kind of terminal, which is characterized in that including:
Start-up loading module is sent out for starting browser application, and using the browser application load server The video page sent;
First detection module, for after the video page described in start-up loading module loading, detecting in the video page to be The no uniform resource position mark URL for including video file;
Second processing module, if determining in the video page not include the video file for the first detection module URL, it is determined that the video page is without playable video;
The terminal further includes:
Acquisition module obtains if determining the URL for including the video file in the video page for the first detection module The URL for taking the video file loads the video file according to the URL of the video file on the video page;
Acquisition module is played, it is primary described at interval of the acquisition of pre-set first time period for playing the video file The time of video file played is long, obtains the set for the time length of the video file played;The video Time on progress bar of the time length of file played by acquiring video page is worth to;
Third processing module, if the broadcasting for including at least one non-zero in the set grown for the time played Time it is long, it is determined that the video file can play;
First processing module determines the video if determine that the video file can play for the third processing module The page has playable video.
8. terminal according to claim 7, which is characterized in that the terminal further includes:
Fourth processing module, if the time length played all in the set grown for the time played is Zero, it is determined that the video file not can play, and the video page is without playable video.
9. terminal according to claim 7, which is characterized in that the third processing module includes:
Screen capture module, if in the set of the time length played for described comprising at least one non-zero played when Between it is long, then at interval of pre-set second time period to the video page carry out sectional drawing, obtain broadcasting for the video file Put picture set;
Determining module, if for including an at least non-blank screen picture in the playing pictures set of the video file, it is determined that The video file can play.
10. terminal according to claim 9, which is characterized in that the determining module is additionally operable to:
If being blank screen picture in the playing pictures set of the video file, it is determined that the video file not can play, institute Video page is stated without playable video.
11. according to the terminal described in claim 8 to 10 any one, which is characterized in that it is described play the video file it Before further include:
Execution module is used for before the broadcasting acquisition module, if it is " download " and " direct to detect that the video page pops up The option of opening ", the then option " directly opened " described in execution.
12. terminal according to claim 7, which is characterized in that the terminal further includes:
Sending module, for after the testing result for obtaining the video page, the testing result of the video page to be sent out The server is given, video database is updated according to the testing result of the video page by the server.
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 CN104980793A (en) 2015-10-14
CN104980793B true 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)

Families Citing this family (3)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020049832A1 (en) * 1996-03-08 2002-04-25 Craig Ullman Enhanced video programming system and method for incorporating and displaying retrieved integrated internet information segments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104980793A (en) 2015-10-14

Similar Documents

Publication Publication Date Title
CN109117361B (en) Remote debugging method, related equipment and system for small program
CN109152095B (en) Wireless network connection method for terminal
CN104092723B (en) Document down loading method, Apparatus and system
CN105657479B (en) Video processing method and device
EP3142020A1 (en) Resource downloading method and device
CN109005096B (en) Application interaction method and device
CN104935744A (en) Verification code display method, verification code display device and mobile terminal
CN106791958A (en) Position marker information generation method and device
CN104965848A (en) Front-end resource loading method and apparatus
CN104424241B (en) Web site url processing method based on two dimensional code, apparatus and system
CN103686246B (en) Player method, device, equipment and system when transmission stream video is selected
CN104917724A (en) Identity verification method and apparatus
CN104980793B (en) A kind of method and terminal of video detection
CN106294839A (en) A kind of link jump method and device
CN107766358A (en) The method and relevant apparatus that a kind of page is shared
CN106445743A (en) Data backup transmission method and mobile terminal
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN105320885A (en) Method and device for detecting malicious website
CN108121520A (en) Method for showing interface, server and showing interface system
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN108182090A (en) Flash plug-in loading methods and device based on blink kernels
CN104182331B (en) Browser performance test method, system and terminal
CN109218375B (en) Application interaction method and device
CN110913038B (en) IP address determination method, device, server and computer readable storage medium
CN106331887B (en) Calling method of webpage player, playing method and device of multimedia file

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

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.

TR01 Transfer of patent right