CN103458065A - Method for extracting video address based on Webkit kernel under HTML5 standard - Google Patents

Method for extracting video address based on Webkit kernel under HTML5 standard Download PDF

Info

Publication number
CN103458065A
CN103458065A CN2013104112482A CN201310411248A CN103458065A CN 103458065 A CN103458065 A CN 103458065A CN 2013104112482 A CN2013104112482 A CN 2013104112482A CN 201310411248 A CN201310411248 A CN 201310411248A CN 103458065 A CN103458065 A CN 103458065A
Authority
CN
China
Prior art keywords
video
address
request
webkit
network
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
CN2013104112482A
Other languages
Chinese (zh)
Other versions
CN103458065B (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 Advanced Video Info-Tech Co Ltd
Original Assignee
Shenzhen Advanced Video Info-Tech 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 Shenzhen Advanced Video Info-Tech Co Ltd filed Critical Shenzhen Advanced Video Info-Tech Co Ltd
Priority to CN201310411248.2A priority Critical patent/CN103458065B/en
Publication of CN103458065A publication Critical patent/CN103458065A/en
Application granted granted Critical
Publication of CN103458065B publication Critical patent/CN103458065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for extracting a video address based on a Webkit kernel under the HTML5 standard, and belongs to the technical field of network communications and multimedia information processing. The method mainly comprises the steps that a video website is analyzed through a Webkit kernel browser, a real address of a network video is extracted from a process of analyzing a webpage by the browser, the process of analyzing the webpage is controlled through an Injected Bundle interface, network requests which are irrelevant with the network video are shielded, and the video address is obtained from the simplified process. The corresponding program comprises three parts including a function library which is in communication with the Webkit analysis webpage process and is used for controlling the Webkit analysis webpage process, a top application oriented interface responsible for being in communication with an application program, and a corresponding data structure used for maintaining and controlling the website data and operation process of the video address extraction function library. Due to the fact that the process that the browser analyzes the video website is general, a user can analyze the video address of each video website through the function so as to obtain the real address of the video.

Description

Video address extracting method based on the Webkit kernel under a kind of HTML5 standard
Technical field
The invention belongs to network service and multimedia signal processing field, be specifically related to browser engine of increasing income of Webkit() browser kernel (the built-in browser Google Chrome of built-in browser Safari, the Android of apple ios etc. all adopts the Webkit browser kernel) and InjectedBundle interface thereof (Webkit provide be similar to dynamic base plug-in unit, that be compiled into separately, operate in kernel process, for the operation to kernel data is provided) video true address extracting method.
Background technology
No matter all rapidly increases of the quantity of video or the quantity of video website in network at present, have countless video to upload to each large video website, and constantly have new video website to occur every day.Simultaneously people are also growing with each passing day to the demand of video, and except the demand to content, to the demand of video playback mode, also in continuous variation, current most of mobile device has all been supported the broadcasting of video.
Except watching online video, many people also to need video is downloaded in order to repeatedly repeatedly watching, appreciate or collecting from network on network.And current video website is of a great variety, some website provides video download services, but some website does not provide video download services, to the user, has brought inconvenience.During video in watching the video webpage, except being watched in the video original address, video in this webpage is the address of corresponding this server repository also, called and play by the video original address, this video address is called the true address of video in the present invention, utilize the true address of video to call separately video and play, facilitate the user video is collected and shared.For these characteristics of video website, on network, also have some to be specifically designed to the website of converting video original address and video true address.But because the quantity of video website is a lot, there are the video original address of oneself and the computational methods between the video true address in each website, and these websites are difficult to cover all video website.And due to video website for fear of by instruments such as web crawlers, being obtained video resource, can constantly update the transfer algorithm between video original address and video true address, the website of reference address does not catch up with the renewal speed of video website sometimes, cause the user can't obtain in time the video true address, affected that the user shares normally to video and the behavior such as collection.Simultaneously, due to the birth of HTML standard HTML5 of new generation, video website will be to the HTML5 standard evolution to the support of video.In the HTML5 standard, different from traditional video web page broadcasting, Internet video loads mainly with the mode of Streaming Media, and the mode of resolving video address also needs to adapt to new standard.
So also lacking a kind of general method at present provides the universal method of changing between video original address and the true broadcast address of video.
Summary of the invention
The present invention has designed the video address extracting method based on the Webkit kernel under a kind of HTML5 standard, utilize the generalized flowsheet of browser resolves Internet video that a kind of input Internet video address is provided, the method of output video true address, meet people to downloading the needs of appreciating the disparate networks video, solved this defect of extraction video true address method that current shortage is general.This function storehouse is not limited to the change to the address algorithm of the algorithms of different of different web sites and website, and, owing to having adopted the browser kernel of increasing income, has good expansion and portability.
To achieve these goals, function of the present invention storehouse embodiment provides the extracting method of the video true address based on the Webkit kernel, comprises the following steps: step 1: from top level application program, import the video original address into; Rapid two: control the Webkit browser kernel by the InjectedBundle interface and be written into the video original address; The address that screening needs also obtains the video true address; The video website attribute imported into according to the user during screening, which video website the video that the judgement user is imported into belongs to, and according to different video website, enables different video address judgment mechanisms; The general structure that this judgment mechanism is based on the video true address judged, the address definition that will meet this structure is the video true address; Step 4: utilize message mechanism that the video true address is sent to application program.
Preferably, the video true address can deposit corresponding data structure in, and the network address of user's input and data structure are corresponding one by one; Described website data structure includes but not limited to following content: the network address character data that (2.1) user is imported into; (2.2) video website under the network address that the user is imported into; (2.3) import the corresponding video true address network address character data of network address into the user.
Its course of work is controlled by following interface function: createView and goToURL; Wherein the createView interface is for initialization InjectedBundle and create the view object of Webkit; The goToURL interface is for loading the video original address that the user is imported into.
Being written into the video original address by InjectedBundle interface control Webkit browser kernel in described step 1 comprises the steps: the video website under video address is recorded in the host attribute, and be passed in Webkit by the message mechanism of InjectedBundle, and call the Webkit kernel and start to load the video original address that the user is imported into.
Screen the address needed in described step 3 and obtain the video true address and comprise the steps: when the Webkit Web page loading, before being ready for sending request, each Webkit realizes call back function, monitor the address of each request, and judge whether to belong to the necessary request of request video true address by the type of address and respective file, and shield unnecessary request.
In described step 4, utilize message mechanism that the video true address is sent to application program and comprise following steps: while sending request, the network address of request all will be through screening at every turn, and legal video address is extracted and is kept in the middle of an array, realize readjustment when the webpage loaded, using the address that meets most the video true address in array, as the content of message, the message mechanism by InjectedBundle is delivered in the function storehouse mutual with top level application program, then the function storehouse passes to the application program of top layer thus.
When the user is imported a video address into, corresponding data structure such as enters at the state to be resolved, and check whether current function storehouse is resolving other video network address, the video network address of resolving if having, the data structure of a upper network address of resolving is proceeded to the state of resolving of ending, and be written into video address corresponding to next data structure, change the state of this data structure into resolving state simultaneously; When successfully having extracted the video true address, the video true address can deposit corresponding data structure in and change the state of this data structure into successfully resolved, if because network or other reasons can't extract appropriate address, the state of this data structure is changed into and resolving unsuccessfully, wait for the arrival of a new request simultaneously.
With the flow process of the mutual general-purpose interface createView interface of top level application program, be: the context object that at first creates InjectedBundle, the window handle that utilizes this context object and import into from the createView parameter creates a view object of binding with Webkit, the message mechanism that registration and InjectedBundle communicate simultaneously.
With the flow process of the mutual general-purpose interface goToURL interface of top level application program, be: be that the video original address that the user is imported into creates a WKURLRef object, WKURLRef is the type defined in Webkit; Page object in the view object acquisition Webkit created when basis is called createView again, and import in Webkit together with the address that the page object is imported into the user, start to load corresponding network address.
Judge whether that the flow process that belongs to the request necessary request of video true address and shield unnecessary request is: the flow process that loads video according to some video website, resolve the mode that sends the network request address by word, find in the network address whether to have to video and load the keyword that flow process is relevant, thereby whether the network request address that judgement sends is relevant with request video true address, if the network request of initiating is the key request of request video true address, retain the content of this request; If, with the irrelevant request of request video true address, this request is set to sky, thereby shields this request.
The present invention has used increase income browser kernel Webkit and InjectedBundle interface thereof.Webkit is a browser engine of increasing income, and the Chrome browser of the Safari of apple, Google all is based on this framework and develops.The advantage of Webkit browser is efficient stable, compatible good, and the source code clear in structure of Webkit, is easy to safeguard.Current most website, comprise all kinds of video website, and compatible Webkit kernel browsers all can take in the browser that Webkit is framework displaying video smoothly.Simultaneously, except the PC end, the Webkit kernel also is widely used in the browser of all kinds of mobile platforms, makes and utilizes the function storehouse that Webkit is Development of Framework to have very strong transplantability, applicable to each platform.InjectedBundle be by Webkit, provided for operating the interface of kernel data, be similar to a plug-in unit, be compiled into separately a dynamic base.In the code of Webkit, the committed step code section of InjectedBundle when carrying out Web page loading inserted call back function, committed step for example creates page, send request with Web page loading and complete etc., corresponding call back function can be write InjectedBundle by user oneself and realize.
Advantage of the present invention is:
1. extract the video true address according to the universal process of browser resolves video webpage, the specific algorithm without concrete research different video website to video address, only need to use video original address and video true address base address structure separately; Because the video original address of website can change often to the transfer algorithm of video true address, but video original address and video true address base address structure separately can not change; Therefore, though network upgrade the transfer algorithm between video original address and video true address, the user also can obtain the video true address in time.
2., even video website has changed the algorithm that calculates the video true address, process of analysis still meets the generalized flowsheet of browser resolves Internet video, so the method has versatility;
3. the resource request of this method by will be irrelevant with video shields, and simplified step and the needed time of Webkit kernel when loading video, accelerated to a certain extent being written into of video.
The accompanying drawing explanation
Fig. 1 is the structural representation in the video address abstraction function storehouse based on the Webkit kernel under a kind of HTML5 standard of the present invention;
Fig. 2 is the reciprocal process schematic diagram between the present invention and application program;
Fig. 3 is the workflow schematic diagram in the video address abstraction function storehouse based on the Webkit kernel under a kind of HTML5 standard of the present invention.
Embodiment
The embodiment of the present invention is to take the library file form to provide function as program, for example the dynamic link library dll file in the Windows system and the dynamic link library so file under the Android system.This function storehouse is not limited to the change to the address algorithm of the algorithms of different of different web sites and website, and, owing to having adopted the browser kernel of increasing income, has good expansion and portability.
Difference between dynamic link library and ordinary procedure is that dynamic link library has exposed certain interface to application program, and application program can realize by the interface that calls dynamic link library and provide the function that dynamic link library provides.
More specifically, following embodiment provided by the invention is the video address abstraction function storehouse based on the Webkit kernel of realizing under windows platform, and the function storehouse is encapsulated as to the dynamic link library of dll form.When calling, utilize the interface in the dynamic call mode calling function storehouse of Windows, the input video original address, latency function storehouse analyzing web page, return to application program by the video true address in the mode of message after being parsed.
The method comprises the steps:
Initialization procedure:
1. top level application program initialization window and message circulation;
2. the function storehouse of the top level application program dynamic call embodiment of the present invention;
3. the createView interface in top level application program calling function storehouse, and the handle of window is imported into as parameter;
4.createView interface utilizes InjectedBundle to create the context object;
5. according to the view object of the context Object Creation Webkit of the window handle imported into and establishment;
6. register the messaging mechanism of InjectedBundle.
Extract video true address process:
1. the goToURL interface in the calling function storehouse, the original address of the video that the user need to be downloaded and the video website under video address are imported into as parameter;
2. detect the running status in current function storehouse, if resolving other webpages, stop loading procedure, load;
3. utilize video original address that the user imports into to create the WKURLRef object of Webkit;
4. obtain the page object of Webkit according to the view object;
Call back function didFinishLoadForFrame when call back function willSendRequestForFrame when 5.Page Object Creation is registered Webkit after complete and sent request and frame have loaded;
6. the video website attribute imported into according to the user, which video website the video that the judgement user is imported into belongs to, and according to different video website, enables different video address judgment mechanisms; The general structure that this judgment mechanism is based on the video true address is judged, the address definition that will meet this structure in method is the video true address, the video original address of website can change often to the transfer algorithm of video true address, but video original address and video true address base address structure separately can not change;
7. call the Web page loading interface WKPageLoadURL of Webkit, WKURLRef object and page object are imported into as parameter, Webkit starts Web page loading;
8. in the Web page loading process, the request of the every transmission primary network of Webkit all triggers the call back function willSendRequestForFrame once sent request, the network request that will send is passed in call back function, function carries out the word parsing to the destination address of network request, determines whether to ask the key request of video.If this network request is request video true address necessity, retain former request; If other and video have nothing to do, the request of resource, return to empty request.If occur unusual condition in Web page loading, for example webpage can't be opened, and the function storehouse can stop loading, and the state of address date structure is set to resolve unsuccessfully, simultaneously to application program throw exception information.
9. resolve by word, will meet the network request address that resolve to require and be kept in array as the possible location of video true address;
10. when webpage has frame to load, can trigger the didFinishLoadForFrame call back function, judge whether it is that main frame has loaded in function.Whether, if main frame, do not do any processing, continue Web page loading; If main frame, be judged as webpage and complete loading, all legal address of preserving in array is compared one by one, find out the true address of most suitable address as video; (so-called suitable, the general structure that its judgment mechanism is based on the video true address judged, the address definition that will meet this structure in method is most suitable address, i.e. the video true address);
11. using compose into the address date structure of video true address as source body, by message, by the InjectedBundle message mechanism, send in the function storehouse of being responsible for communicating by letter with top level application program; Also can deposit the video true address in corresponding data structure, the network address of user's input and data structure are corresponding one by one;
Described website data structure includes but not limited to following content:
(2.1) the network address character data that the user is imported into;
(2.2) video website under the network address that the user is imported into;
(2.3) with the user import into network address with respect to video true address network address character data.
The state to be resolved, that resolve, end parsing, successfully resolved, parsing failure such as described is determined as follows: when the user is imported a video address into, corresponding data structure such as enters at the state to be resolved, and check whether current function storehouse is resolving other video network address, the video network address of resolving if having, the data structure of a upper network address of resolving is proceeded to the state of resolving of ending, and be written into video address corresponding to next data structure, change the state of this data structure into resolving state simultaneously; When successfully having extracted the video true address, the video true address can deposit corresponding data structure in and change the state of this data structure into successfully resolved, if because network or other reasons can't extract appropriate address, the state of this data structure is changed into and resolving unsuccessfully, wait for the arrival of a new request simultaneously.
12. be responsible for the function storehouse communicate by letter with top layer, by address, the form by system message sends to application program, and application program has obtained the true address of video, can be for further processing.
Fig. 1 is example structure schematic diagram provided by the invention, 101 network video servers that are each main flow video website in network, in the middle of practical application, video website can be: excellent cruel, potato, 56 videos, happyly look, the main flow video website such as Sina, Sohu.
The 102nd, the Core Feature storehouse of the browser kernel Webkit that increases income, in the present embodiment, because the platform adopted is the Windows system, thus the core libraries such as the Webkit.dll that uses the Webkit source code compile under the Windows environment to generate and JavascriptCore.dll as Webkit function storehouse partly.
The 103rd, the function storehouse that the present invention realizes, connected application program and Webkit, obtains the mode that the true address of video is provided convenience in the original address for the users from networks video.
The 104th, need to call the application program of video true address, for example application program is imported the video original address in the function storehouse into, and the video true address is returned in the latency function storehouse, by corresponding player, is directly opened and is play or download software and downloaded.
In the 105th, Webkit, be the InjectedBundle interface that provides of operation kernel data, between the function storehouse of realizing for the present invention and Webkit Core Feature storehouse alternately.
Take Fig. 1 as example, further describe the implementation method in the video address abstraction function storehouse based on the Webkit kernel.
The user starts the application program of calling function of the present invention storehouse, and application program is the initialization function in call address abstraction function storehouse immediately, completes the initialization procedure in address extraction function storehouse.The setup code fragment is as follows:
Figure BDA0000380073610000071
At first said procedure has obtained the path of Bundle, has created the context variable context of InjectedBundle by this path.Created the view object of Webkit by context, this to as if be used for carrying InjectedBundle object and some other be present in the object in Webkit.Next, by definition ContextInjectedBundleClient object registration some call back functions, call when extracting the video true address.
After application program completes initialization, the user inputs and wants to download the video link of watching or collecting in application program, and application program is the goToURL interface in call address abstraction function storehouse immediately, imports video address and video place web site name into.The flow process of goToURL complete call Webkit kernel loads webpage, code snippet is as follows:
Figure BDA0000380073610000081
At first said procedure has recorded the initial URL address of video, then according to the view object in setup code, has obtained the page object of Webkit, the corresponding page of page.By the text resolution to the video initial address, we can show which video website this video belongs to, the information of video website is left in the host attribute, if excellent cruel video for example, just " youku " left in " host " attribute, and the form with Message sends to InjectedBundle by it.Judge whether Webkit works after completing these work, if the webpage that Webkit is not loading loads this video address; If reload webpage after Webkit, just at Web page loading, stops previous loading.
Webkit is the call back function didCreatePage in the calling function storehouse in the process that creates the page object, and willSendRequestForFrame and didFinishLoadForFrame are registered in address extraction function storehouse in readjustment, and code snippet is as follows:
Figure BDA0000380073610000082
Figure BDA0000380073610000091
Said procedure obtains the main frame object from the page object, and preserve for subsequent operation, by BundlePageResourceLoadClient object and BundlePageLoaderClient object registration willSendRequestForFrame and two call back functions of didFinishLoadForFrame object and page are bound together.
Address extraction function storehouse starts to load the video original address after registration completes corresponding call back function, the html script of first downloading web pages, download successively various resources according to the content in html script, to at every turn to server end, sending before network request all in can the Trigger Function storehouse call back function willSendRequestForFrame realized, judge by this function whether this request is necessity request that obtains the video true address, and code snippet is as follows:
Figure BDA0000380073610000092
At first said procedure obtains the address of asked server from request request, is kept in the url object.The host message sent by receiving the top-level functionality storehouse, the function storehouse has obtained the source web of this video, and program is switched different address judgment mechanisms according to different websites.56 video website take in the code snippet of the present embodiment as example, when the source of detecting video website is excellent when cruel, switch to excellent cruel address judgment mechanism.Each website judgment mechanism is customized according to the formation characteristics of video true address in each video website, by the mode of text resolution, different video website is write to different address judgment mechanisms.Whether the destination address that program detects this request by CheckIfUrlNeeded () is to load the necessary request of video, if necessary request, further whether detection is the video true address, if true address, insert in the list UrlList of video true address, if not true address retains and returns to former request, continue request process; If not empty request is directly returned in necessary request, shield the download of this resource by return0.
Whether the destination address that detects this request is to load the necessary request of video, to load the flow process of video according to some video website, resolve the mode that sends the network request address by word, find in the network address whether to have to video and load the keyword that flow process is relevant, thereby whether the network request address that judgement sends is relevant with request video true address, if the network request of initiating is the key request of request video true address, retain the content of this request; If, with the irrelevant request of request video true address, this request is set to sky, thereby shields this request.
When the page has loaded, can trigger call back function didFinishLoadForFrame, processing is to the judgement of video true address and the transmission of message after having loaded, and code flow is as follows:
At first code judges whether the frame that finishes to load is main frame, if not main frame, do not do any processing, if main frame, being judged as webpage has loaded, detect the address in the list of video true address, by specific judgment mode, for example extract up-to-date address, true address as video, adopt the InjectedBundle message mechanism to send to address extraction function storehouse, then send to application program by the function storehouse with windows messaging, by application program, the video true address is further processed.
Fig. 2 is the reciprocal process schematic diagram between the present invention and application program; Fig. 3 is the schematic flow sheet of above describing address extraction function storehouse workflow.
According to embodiment provided by the invention, take and extract 56 video website videos as the concrete processing of example explanation the present invention to video webpage loading flow process.56 video website are not when being used this abstraction function storehouse, address, and the flow process that loads an exemplary video webpage is as shown in table 1.
Table 1
Figure BDA0000380073610000111
Figure BDA0000380073610000121
Figure BDA0000380073610000131
Runic in form (the 29th row in table) is the video true address, from table can find out in loading complete video webpage flow process, browser is except downloading the resource relevant with video, also asked the irrelevant resource of a large amount of scripts, picture etc. and request video, so this function storehouse has shielded irrelevant request in the process of extracting the video true address, the request flow process obtained is as shown in table 2.
Table 2
Runic in table 2 (the 18th row in table) is the video true address, contrast by table 1 and table 2 is visible, after utilizing video address abstraction function of the present invention storehouse loading video webpage, the resources such as picture in former table 1 are judged as the resource irrelevant with loading video and are shielded by the function storehouse, have simplified the flow process of extracting the video true address.
The present invention describes by specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.In addition, for particular condition or concrete condition, can make various modifications to the present invention, and not depart from the scope of the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise and fall into the claims in the present invention scope with interior whole implementations.

Claims (9)

1. the video address extracting method based on the Webkit kernel under a HTML5 standard, is characterized in that, comprises the following steps:
Step 1: from top level application program, import the video original address into;
Step 2: control the Webkit browser kernel by the InjectedBundle interface and be written into the video original address;
Step 3: the address that screening needs also obtains the video true address; The video website attribute imported into according to the user during screening, which video website the video that the judgement user is imported into belongs to, and according to different video website, enables different video address judgment mechanisms; The general structure that this judgment mechanism is based on the video true address judged, the address definition that will meet this structure is the video true address;
Step 4: utilize message mechanism that the video true address is sent to application program.
2. video address extracting method as claimed in claim 1, it is characterized in that: the video true address can deposit corresponding data structure in, and the network address of user's input and data structure are corresponding one by one;
Described website data structure includes but not limited to following content:
(2.1) the network address character data that the user is imported into;
(2.2) video website under the network address that the user is imported into;
(2.3) import the corresponding video true address network address character data of network address into the user.
3. video address extracting method as claimed in claim 1 is characterized in that: its course of work is controlled by following interface function: createView and goToURL; Wherein the createView interface is for initialization InjectedBundle and create the view object of Webkit; The goToURL interface is for loading the video original address that the user is imported into.
4. video address extracting method as claimed in claim 1, it is characterized in that: be written into the video original address by InjectedBundle interface control Webkit browser kernel in described step 2 and comprise the steps: the video website under video address is recorded in the host attribute, and be passed in Webkit by the message mechanism of InjectedBundle, and call the Webkit kernel and start to load the video original address that the user is imported into.
5. video address extracting method as claimed in claim 1, it is characterized in that: the address of screening needs obtain the video true address and comprise the steps: when the Webkit Web page loading in described step 3, before being ready for sending request, each Webkit realizes call back function, monitor the address of each request, and judge whether to belong to the necessary request of request video true address by the type of address and respective file, and shield unnecessary request.
6. video address extracting method as claimed in claim 1, it is characterized in that: in described step 4, utilize message mechanism that the video true address is sent to application program and comprise following steps: while sending request, the network address of request all will be through screening at every turn, and legal video address is extracted and is kept in the middle of an array, realize readjustment when the webpage loaded, using the address that meets most the video true address in array, as the content of message, the message mechanism by InjectedBundle is delivered in the function storehouse mutual with top level application program, the function storehouse passes to the application program of top layer thus again.
7. video address extracting method as claimed in claim 3, it is characterized in that: with the flow process of the mutual general-purpose interface createView interface of top level application program, be: the context object that at first creates InjectedBundle, the window handle that utilizes this context object and import into from the createView parameter creates a view object of binding with Webkit, the message mechanism that registration and InjectedBundle communicate simultaneously.
8. video address extracting method as claimed in claim 3, it is characterized in that: with the flow process of the mutual general-purpose interface goToURL interface of top level application program, be: be that the video original address that the user is imported into creates a WKURLRef object, WKURLRef is the type defined in Webkit; Page object in the view object acquisition Webkit created when basis is called createView again, and import in Webkit together with the address that the page object is imported into the user, start to load corresponding network address.
9. video address extracting method as claimed in claim 5, it is characterized in that: judge whether that the flow process that belongs to the request necessary request of video true address and shield unnecessary request is: the flow process that loads video according to some video website, resolve the mode that sends the network request address by word, find in the network address whether to have to video and load the keyword that flow process is relevant, thereby whether the network request address that judgement sends is relevant with request video true address, if the network request of initiating is the key request of request video true address, the content that retains this request, if, with the irrelevant request of request video true address, this request is set to sky, thereby shields this request.
CN201310411248.2A 2013-09-10 2013-09-10 The video address extracting method of sing on web kit kernel under a kind of HTML5 standard Active CN103458065B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310411248.2A CN103458065B (en) 2013-09-10 2013-09-10 The video address extracting method of sing on web kit kernel under a kind of HTML5 standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310411248.2A CN103458065B (en) 2013-09-10 2013-09-10 The video address extracting method of sing on web kit kernel under a kind of HTML5 standard

Publications (2)

Publication Number Publication Date
CN103458065A true CN103458065A (en) 2013-12-18
CN103458065B CN103458065B (en) 2016-09-28

Family

ID=49740006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310411248.2A Active CN103458065B (en) 2013-09-10 2013-09-10 The video address extracting method of sing on web kit kernel under a kind of HTML5 standard

Country Status (1)

Country Link
CN (1) CN103458065B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529117A (en) * 2016-06-22 2017-12-29 瑞云资讯股份有限公司 Loudspeaker device capable of automatically presenting situation
CN110381363A (en) * 2019-07-17 2019-10-25 深信服科技股份有限公司 Video encoding/decoding method, device, server and storage medium
CN110446114A (en) * 2019-08-19 2019-11-12 广州视源电子科技股份有限公司 Processing unit, method, electronic equipment and the storage medium of multi-medium data
CN110290405B (en) * 2018-03-19 2020-10-16 北大方正集团有限公司 Video address resolution method, device and equipment and readable storage medium
CN112333560A (en) * 2020-08-25 2021-02-05 深圳Tcl新技术有限公司 Webpage video analyzing and playing method, device and equipment and readable storage medium
CN114979225A (en) * 2022-05-12 2022-08-30 北京天玛智控科技股份有限公司 Coal mine production control method and device based on video analysis
CN115002068A (en) * 2022-05-09 2022-09-02 北京市博汇科技股份有限公司 Internet audio-visual program address automatic analysis method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594241A (en) * 2009-06-26 2009-12-02 北京大学 A kind of method for down loading of Internet video and system
CN102306077A (en) * 2011-08-04 2012-01-04 深圳市万兴软件有限公司 Method for downloading video in Macintosh (MAC) platform browser and browser
US20120054719A1 (en) * 2010-08-25 2012-03-01 Sony Corporation Of America Apparatus, method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594241A (en) * 2009-06-26 2009-12-02 北京大学 A kind of method for down loading of Internet video and system
US20120054719A1 (en) * 2010-08-25 2012-03-01 Sony Corporation Of America Apparatus, method and program
CN102306077A (en) * 2011-08-04 2012-01-04 深圳市万兴软件有限公司 Method for downloading video in Macintosh (MAC) platform browser and browser

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107529117A (en) * 2016-06-22 2017-12-29 瑞云资讯股份有限公司 Loudspeaker device capable of automatically presenting situation
CN110290405B (en) * 2018-03-19 2020-10-16 北大方正集团有限公司 Video address resolution method, device and equipment and readable storage medium
CN110381363A (en) * 2019-07-17 2019-10-25 深信服科技股份有限公司 Video encoding/decoding method, device, server and storage medium
CN110446114A (en) * 2019-08-19 2019-11-12 广州视源电子科技股份有限公司 Processing unit, method, electronic equipment and the storage medium of multi-medium data
CN110446114B (en) * 2019-08-19 2021-08-31 广州视源电子科技股份有限公司 Multimedia data processing device, method, electronic equipment and storage medium
CN112333560A (en) * 2020-08-25 2021-02-05 深圳Tcl新技术有限公司 Webpage video analyzing and playing method, device and equipment and readable storage medium
CN115002068A (en) * 2022-05-09 2022-09-02 北京市博汇科技股份有限公司 Internet audio-visual program address automatic analysis method and system
CN114979225A (en) * 2022-05-12 2022-08-30 北京天玛智控科技股份有限公司 Coal mine production control method and device based on video analysis
CN114979225B (en) * 2022-05-12 2024-01-23 北京天玛智控科技股份有限公司 Coal mine production control method and device based on video analysis

Also Published As

Publication number Publication date
CN103458065B (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN103458065A (en) Method for extracting video address based on Webkit kernel under HTML5 standard
US10567407B2 (en) Method and system for detecting malicious web addresses
CN104063460B (en) A kind of method and apparatus loading webpage in a browser
US10515142B2 (en) Method and apparatus for extracting webpage information
US20150058407A1 (en) Systems, methods, and apparatuses for implementing the simultaneous display of multiple browser client cursors at each browser client common to a shared browsing session
CN110442811A (en) A kind of processing method of the page, device, computer equipment and storage medium
CN103268361B (en) Extracting method, the device and system of URL are hidden in webpage
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN105095280A (en) Caching method and apparatus for browser
US7987243B2 (en) Method for media discovery
CN104144357B (en) Video broadcasting method and system
CN101369272A (en) Auto-filling system and method for auto-filling registration or login information
CN101159762B (en) Method and device of accelerating download of web page contents
CN112637361B (en) Page proxy method, device, electronic equipment and storage medium
WO2018133772A1 (en) Method, device, storage medium, and electronic device for obtaining webpage resources
CN106599270B (en) Network data capturing method and crawler
CN103607454B (en) The method that android system browser arranges privately owned proxy server
CN112256990A (en) Image processing method and device and computer readable storage medium
CN106557584A (en) A kind of web site collection method and device
CN102681996B (en) Pre-head method and device
CN104615597A (en) Method, device and system for clearing cache file in browser
CN103246680B (en) A kind of method in browser, web page contents polymerization being represented and device
CN1971558A (en) An embedded browsing device and method
KR20120137629A (en) System for providing shorten url browsing with branding , method thereof, and web client thereof
CN104050165A (en) Webpage initial focus selection method and device based on IPTV (interactive personal television)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant