Summary of the invention
The embodiment of the invention has proposed to provide the method and system of web service, can reduce the requirement to terminal processing capacity.
The embodiment of the invention adopts following technical scheme:
A kind of method that web service is provided, precoding server are encoded to the displaying result of each page in the website and look audio medium stream and preserve, and preserve the identifying information of each page and the corresponding relation of looking audio medium stream of encoding out; This method also comprises:
The web service that the management server receiving terminal is sent inserts request, carries the identification information at this terminal, the identification information of business to be visited in this request; Corresponding relation according to the identifying information of the identification information of the business of preserving and the page obtains the identifying information of this professional identification information corresponding page and sends to application server;
The audio medium stream of looking of the corresponding page is searched and loaded to application server according to the identifying information of the page that receives; According to the identification information at the terminal of carrying in the web service access request, this is looked audio medium stream send to the terminal.
Said displaying result with each page in the website is encoded to and looks audio medium stream and comprise: according to the entry address Web page loading of website, the displaying result of Web page loading is carried out video encoding; According to the internal structure of the said webpage that loads, the displaying result of each inner action corresponding page of this webpage is carried out video encoding, wherein, the inner action of said webpage comprises link action and/or focus action.
Said method also comprises:
Said application server receives the service of sending when the webpage internal actions is triggered to the said page in said terminal request is provided, and wherein this service provides the positional information of the key code and/or the mouse place page of the action generation of carrying current triggering in the request;
Through the position of application component according to the key code and/or the mouse place page of this current trigger action generation that obtains; Search this key code preserved to this page and/or the mouse place page the corresponding page in position look audio medium stream, this that finds looked audio medium stream sends to said terminal.
The step of said coding, preservation comprises: the displaying result of each page in the website is encoded to the audio medium stream of looking corresponding to different resolution respectively; And, preserve the identifying information of each page and the corresponding relation of looking audio medium stream of corresponding every kind of different resolution of encoding out respectively to every kind of different resolution;
Said web service inserts further carried terminal resolution information in the request,
Said searching looked audio medium stream and further comprised: insert the terminal resolution information that carries in the request according to web service and search the audio medium stream of looking of corresponding resolution.
After the web service that said management server receiving terminal is sent inserted request, said method also comprised:
Management server inserts the identification information at the terminal of carrying in the request and the identification information of business to be visited according to this web service, and the access rights at this terminal are verified;
When this terminal of checking has this professional authority of visit, obtain the identifying information of this professional identification information corresponding page.
A kind of system that web service is provided comprises:
The precoding server is used for displaying result with each page of website and is encoded to and looks audio medium stream, and preserves the identifying information of each page and the corresponding relation of looking audio medium stream of encoding out;
The terminal is used for sending web service to management server and inserts request, the identification information of carried terminal, the identification information of business to be visited in wherein should asking;
Management server; Be used to receive the web service of sending at said terminal and insert request; Corresponding relation according to the identifying information of the identification information of the business of preserving and the page; Obtain the identifying information of this professional identification information corresponding page, and the identifying information of the said page that will obtain sends to application server;
Application server is used for searching and load the audio medium stream of looking of the corresponding page according to the page identifying information that receives, and according to the identification information at the terminal of carrying in the web service access request, this is looked audio medium stream send to said terminal.
Said precoding server also is used for the entry address Web page loading according to the website, and the displaying result of Web page loading is carried out video encoding; According to the internal structure of the said webpage that loads, the displaying result of each inner action corresponding page of this webpage is carried out video encoding, wherein, the inner action of said webpage comprises link action and/or focus action.
Said application server; Also being used to receive the service of sending when the webpage internal actions is triggered to the said page in said terminal provides request, and wherein this service provides the positional information of the key code and/or the mouse place page of the action generation of carrying current triggering in the request; The key code that produces according to this current trigger action and/or the position of the mouse place page; Search through application component this key code preserved to this page and/or the mouse place page the corresponding page in position look audio medium stream, this that finds looked audio medium stream sends to said terminal.
Said precoding server; Also be used for the displaying result of each page of website is encoded to the audio medium stream of looking corresponding to different resolution respectively; And, preserve the identifying information of each page and the corresponding relation of looking audio medium stream of corresponding every kind of different resolution of encoding out respectively to every kind of different resolution; Insert the terminal resolution information that carries in the request according to web service and search the audio medium stream of looking of corresponding resolution.
Management server also is used for inserting the identification information at the terminal that request carries and the identification information of business to be visited based on this web service, and the access rights at this terminal are verified; When this terminal of checking has this professional authority of visit, obtain the identifying information of this professional identification information corresponding page.
The beneficial effect of the embodiment of the invention is following:
1, among the present invention; The displaying result of each page that need represent web service in advance carries out video encoding; Preserve the audio medium stream of looking that obtains after encoding; When the user triggered media services through the terminal, the terminal only needed to send web service to network side and inserts request, and network side inserts the identification information of the business to be visited of carrying in the request according to this web service; Confirm the identifying information of the page that this need be visited and will encode after the audio medium stream of looking offer the terminal, the terminal only needs that looking of passing back offered the user after audio medium stream is decoded and gets final product.
The terminal need not to carry out the processing capacity of various browsers; Therefore need not integrating browsing device in the terminal; Greatly reduce requirement to terminal processing capacity; Thereby making that disposal ability is lower even not supporting the terminal of browser function can be embodied as the user fully provides web service, and then has increased practicality of the present invention greatly, has improved user's satisfaction;
2, among the present invention, owing to need not integrating browsing device on the terminal, so provider terminal need not to provide the terminal that possesses higher disposal ability, also need not to buy browser to browser provider, thereby greatly reduces the realization cost at terminal;
3, among the present invention; Because the various webpages that need provide are corresponding looks audio medium stream and encodes in advance and store; The application server of network side need not after the web service request that receives the user; Carry out in real time web page contents is converted into the encoding process of looking audio medium stream; But the corresponding audio medium stream of looking that only needs to store in advance sends to the terminal and get final product, makes that therefore an application server of network side can be the web service that provides at a plurality of terminals simultaneously, thereby saved server resource.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment 1:
Embodiments of the invention 1 have proposed a kind of method that web service is provided; Referring to Fig. 1; The method of this embodiment is in step 100: the displaying result of each page is encoded to and looks audio medium stream and storage in advance with the website, and preserves the identifying information of each page and the corresponding relation of looking audio medium stream of encoding out.Concrete can be in the present embodiment precoding server is encoded to the displaying result of each page and looks audio medium stream.When needs provide web service for the user, carry out following steps:
Step 101: the web service that the management server receiving terminal is sent inserts request, carries the identification information at this terminal, the identification information of business to be visited in this request.
Step 102: management server obtains the identifying information of this professional identification information corresponding page according to the corresponding relation of the identifying information of the identification information of the business of preserving and the page, and the identifying information that will obtain this page sends to application server.
Step 103: the audio medium stream of looking of the corresponding page is searched and loaded to application server according to the identifying information of the webpage that receives, and according to the identification information at the terminal of carrying in the web service access request, this looked audio medium stream send to the terminal.
Can find out that among the present invention, the displaying result of each page that need represent web service in advance carries out video encoding, preserve the audio medium stream of looking that obtains behind the coding.When the user carried out web page browsing through the terminal, the terminal only needed to send web service to network side and inserts request, and the web service that the management server receiving terminal of network side sends inserts request.
Why the terminal need send to application server with web service access request through management server and be based on following consideration in the present embodiment:
The terminal needs a unified access entrance.Because application server is a lot, the IP address has nothing in common with each other, and these addresses are not also known in the terminal, carries out unified resource allocation so need an allocator.
The terminal user ID verification.Management server mainly is the authority whether the verification terminal user has certain service/application procedure service of visit.For example: the service that operator opens has two kinds of 10 yuan of monthly payments, 30 yuan of monthly payments, and the business (network address) that every kind of service can be visited is different.When applied at the terminal, management server queries database or communicate by letter with special right management server based on the identification information at terminal and the identification information of business to be visited, can judge whether this terminal has this professional authority of visit.
When the management server verification terminal has this professional authority of visit; Corresponding relation according to the identifying information of the identification information of the business of preserving and the page; Obtain the identifying information of this professional identification information corresponding page, the identifying information of this page that management server will obtain sends to the application server of network side.After application server receives the identifying information of this page, search and load the audio medium stream of looking of the corresponding page, and this is looked audio medium stream pass the terminal back.The terminal offers the user with looking of passing back of network side after the audio medium stream decoding and gets final product.
In addition, owing in the terminal of the embodiment of the invention, do not have configure browser, in order to realize the visit of user to different web pages, the form with business or application program in the terminal is that the user provides service, the various application programs in the similar smart mobile phone.The identifying information of the corresponding particular Web page of each application program.Like this; When the user selects this application program or service operation; The terminal directly will be to sending to management server by professional identification information; Management server obtains the identifying information of this professional identification information corresponding page according to the corresponding relation of the identifying information of the identification information of the business of preserving and the page, and the identifying information of this page can be the URL (URL) of the page.
Because the terminal need not to carry out the processing capacity of various browsers in the present embodiment; Therefore need not integrating browsing device in the terminal; Greatly reduce requirement, thereby make that disposal ability is lower even do not support the terminal of browser function can be embodied as the user fully web service is provided terminal processing capacity.
In the method for the foregoing description 1; In order further to guarantee web service to be provided to all pages that the user needs; Preferably, the displaying result of each page carries out video encoding and forms when looking audio medium stream in advance with the website, and this coding can carry out to each page; A kind of concrete implementation procedure comprises: based on the entry address Web page loading of website, the displaying result of the page of Web page loading is carried out video encoding; Based on the internal structure of the said webpage that loads, the displaying result of each inner action corresponding page of this webpage is carried out video encoding, wherein, the inner action of said webpage comprises link action and/or focus action.That is to say; Can to a page link to the displaying result of other new page corresponding audio medium stream of looking of encoding out in advance; The audio medium stream of looking of the correspondence of also can encoding out in advance to the displaying result of the page of formation after the page focus change; Look audio medium stream thereby the displaying result that can guarantee to generate in advance each page that the user needs is corresponding, guaranteeing follow-uply provides more perfect web service for the user.
The precoding server can be encoded to the displaying result of each page and look audio medium stream, and wherein this precoding server can be an independent station server, perhaps is integrated in application server or other servers inside.When the precoding server displaying result of each page is encoded to look audio medium stream after, can the audio medium stream of looking behind the coding be kept in database or the hard disk.
After entering web in the terminal, the service that triggers the webpage internal actions can be sent in the terminal provides request to application server, and wherein this service provides the positional information of the key code and/or the mouse place page of the action generation of carrying current triggering in the request; Application server is through the position of application component according to the key code and/or the mouse place page of this current trigger action generation that obtains; Search this key code preserved to this page and/or the mouse place page the corresponding page in position look audio medium stream, this that finds looked audio medium stream sends to said terminal.
In reality; For the different terminals with different resolution, it can resolve and offer the audio medium stream of looking of user's different resolution, therefore; In order further to strengthen the range of application of the embodiment of the invention 1; In the process of above-mentioned precoding, can the content of each page in the website be encoded to respectively corresponding to the audio medium stream of looking of different resolution and also store, and in the process of above-mentioned preservation corresponding relation; To every kind of different resolution, preserve the identifying information of each page and the corresponding relation of looking audio medium stream of encoding out respectively at network side; In such cases; Further carried terminal resolution information in the web page display request that send at the terminal; So that network side is further searched according to the terminal resolution information that carries in the web service request and looked audio medium stream, thereby assurance can both provide the web service of corresponding resolution to the terminal of different resolution.
In order further to strengthen the security of web service, the embodiment of the invention 1 can also be accomplished the processing to the terminal Authority Verification, and the result determines whether providing web service based on checking.A kind of feasible implementation is: management server according to the identification information at the terminal of carrying in this request and the identification information of business to be visited, is verified the access rights at this terminal when receiving web service access request; When this terminal of checking has this professional authority of visit, just carry out identifying information and the subsequent treatment of obtaining this professional identification information corresponding page, otherwise, no longer carry out the follow-up processing that web service is provided, the request at refusal terminal, and finish.
Embodiment 2:
Fig. 2 is the flow chart that web service is provided in the embodiment of the invention 2.Referring to Fig. 2, be that video/audio code stream is an example to look audio medium stream, in concrete business realizing, preferably, provide the process of web service to comprise the steps:
Step 201: precoding server mutual through with the WEB server is encoded to the video/audio code stream corresponding to different resolution respectively with the displaying result of each page in each website of WEB server.
Step 202: the precoding server is preserved the identifying information of each page and the corresponding relation of the video/audio code stream of encoding out respectively to every kind of different resolution.
The process of above-mentioned steps 201 to step 202 is to be that user terminal provides the preprocessing process that carries out before the concrete web service at network side; This preprocessing process can be carried out by the precoding server of network side, specifically can be accomplished by the precoding parts in the precoding server.
The integrated browser core of precoding parts.Behind the entry address of having imported certain website, precoding server and WEB server connect, and after the precoding parts at first utilize the browser core to load this webpage, the displaying result of this webpage are carried out video encoding.Based on the internal structure of this webpage, the precoding parts (for example: link action, focus action etc. can trigger the inner action of webpage then.The link action can trigger browser and load next webpage; Focus action can trigger the variation of this focus, like picture variations, font variation etc.), the displaying result of the page of each action generation is carried out video encoding, the rest may be inferred, finishes and encode until the webpage in the whole website is all traveled through.
And; Display quality for the page that guarantees to provide to the terminal; The precoding parts are according to the resolution sizes of display device display screen commonly used; Respectively each page is encoded to the video/audio code stream of the display screen resolution that is fit to corresponding size, and preserves corresponding each link, the concrete zone position information of focus in this display page to this video/audio code stream.Video/audio code stream after the precoding parts will be encoded is preserved; The precoding parts can the video/audio code stream behind the coding be saved in the database or hard disk in; Need write down the relation of zone position information with the corresponding video/audio code stream of each trigger action correspondence simultaneously, be used for follow-up video/audio code stream and the broadcast that retrieves correspondence according to user interactive.
In the time need for the user concrete web service being provided through the terminal, the following steps in the execution graph 2.
Step 203: the user triggers web page browsing through button or mouse action on the terminal.
Step 204: the terminal is inserted request with web service and is sent to management server, and wherein this web service inserts the identification information of carried terminal in the request, the identification information and the terminal resolution information of business to be visited.
Step 205: management server is according to the terminal authority information of preserving, and the identification information at the terminal of carrying in the web service access request and the identification information of business to be visited, judges whether this terminal has this professional authority of visit; If; Execution in step 207, otherwise, execution in step 206.
In step 205, management server judges whether the terminal has corresponding authority, mainly is the authority whether corresponding user of audit has certain service/application program corresponding with service of visit.For example: the service that operator opens has 10 yuan of monthly payments, and the business (network address) that two kinds of 30 yuan of monthly payments, every kind of service can be visited is different.Each concrete user authority information can be kept in the database, perhaps is responsible for by special managing entitlement server.
Management server can Query Database or is communicated by letter with special right management server, based on the identification information at terminal and the identification information of business to be visited, can judge whether this terminal has the authority of visit current page.
Step 206: management server returns error message to the terminal, finishes current flow process.
Step 207: management server obtains the identifying information of this professional identification information corresponding page and sends to application server according to the corresponding relation of the identifying information of the identification information of the business of preserving and the page.
Step 208: application server is searched and loads the video/audio code stream of the corresponding page according to the identifying information of the page that receives through application component.
Step 209: application server sends to the terminal according to the identification information at the terminal of carrying in the web service access request with the video/audio code stream that finds.
Step 210: the decoding of video/audio code stream that end-on is received offers the user with the displaying result of the Webpage of correspondence.
Here, the mode that provides comprises: display image, play sound etc.
Step 211: the terminal receives the internal actions of the Webpage of user's triggering.
Step 212: the key code that the action that the terminal provides request, this service to provide to carry current triggering in the request to the application server service of sending produces and/or the positional information of the mouse place page.
Step 213: application server according to the key code that should current trigger action produces that obtains and/or the position of the mouse place page, is searched the video/audio code stream of the position correspondence page of this key code preserved to this page and/or the mouse place page through application component.
Step 214: application server sends to the terminal with the video/audio code stream that finds.
Step 215: the decoding of video/audio code stream that end-on is received offers the user with the displaying result of the Webpage of correspondence.
In addition, when the terminal received the web page browsing termination request of user's input, the request of should stopping sent to management server in the present embodiment.Management server stops request according to this web page browsing, and the disconnection of control application server links with terminal room.
Describe with the process of object lesson: according to the internal structure of Webpage above-mentioned steps 211 to step 215; The user can trigger the inner action of webpage such as link action and/or focus action; When link action of user's clicking trigger; When perhaps changing the focus action on the webpage, these actions all can trigger page changes.In Fig. 3, the page 1 has a link A, when focus is linking on the A; When the user chooses through keyboard or mouse; Can trigger the action of this link, the terminal provides request to the application server service of sending, and application server returns the audio medium stream of looking of the page 2 that this link A is linked to the terminal; Thereby on the terminal, loaded the page 2, variation has taken place in the page.For another example, Fig. 4 has represented the trigger action that other a kind of page changes.This page has several linked terms: " literal picture A ", " literal picture B ".At present focus is at " literal picture A ", and this moment, this focus had the image effect (among the figure with box indicating) of a Gao Liang.This moment, the user can trigger following actuation of keys through keyboard: upper and lower, left and right.When the user had triggered " right side " key, this focus was transferred to " literal picture B ", and the terminal provides request to the application server service of sending; Application server returns to the terminal and looks audio medium stream; This looks the new page that the audio medium stream correspondence comprises the high bright effect of " literal picture B ", thereby on the terminal, loads the new page, and therefore the high bright effect of " literal picture A " disappears; The high bright effect of " literal picture B " shows that at the new page variation has taken place the page.
Embodiment 3:
This embodiment 3 has proposed a kind of system that web service is provided, and referring to Fig. 5, comprising:
Precoding server 500 is used for displaying result with each page of website and is encoded to and looks audio medium stream and storage, and preserves the identifying information of each page and the corresponding relation of looking audio medium stream of encoding out;
Terminal 501 is used for sending web service to management server 502 and inserts request, the identification information of carried terminal, the identification information of business to be visited in wherein should asking;
Management server 502; Be used to receive the web service of sending at said terminal 501 and insert request; Corresponding relation according to the identifying information of the identification information of the business of preserving and the page; Obtain the identifying information of this professional identification information corresponding page, and the identifying information of the said page that will obtain sends to application server 503;
Application server 503 is used for the identifying information according to the page that receives, and searches and load the audio medium stream of looking of the corresponding page, according to the identification information at the terminal of carrying in the web service access request, this is looked audio medium stream send to said terminal 501.
In system of the present invention, said precoding server 500 also is used for the entry address Web page loading according to the website, and the displaying result of Web page loading is carried out video encoding; According to the internal structure of the said webpage that loads, the displaying result of each inner action corresponding page of this webpage is carried out video encoding, wherein, the inner action of said webpage comprises link action and/or focus action.
In system of the present invention; Said application server 503; Also being used to receive the service of sending when the 501 pairs of said pages in said terminal trigger the webpage internal actions provides request, and wherein this service provides the positional information of the key code and/or the mouse place page of the action generation of carrying current triggering in the request; Through the position of application component according to the key code and/or the mouse place page of this current trigger action generation that obtains; Search this key code preserved to this page and/or the mouse place page the corresponding page in position look audio medium stream, this that finds looked audio medium stream sends to said terminal 501.
In system of the present invention; Said precoding server 500; Also be used for the displaying result of each page of website is encoded to the audio medium stream of looking corresponding to different resolution respectively; And, preserve the identifying information of each page and the corresponding relation of looking audio medium stream of corresponding every kind of different resolution of encoding out respectively to every kind of different resolution; Search the audio medium stream of looking of corresponding resolution according to the terminal resolution information that carries in the web service request.
In system of the present invention, management server 502 also is used for inserting the identification information at the terminal 501 that request carries and the identification information of business to be visited according to this web service, and the access rights at this terminal 501 are verified; When this terminal of checking has this professional authority of visit, obtain the identifying information of this professional identification information corresponding page.
Need to prove; This precoding server 500 can be an independent station server in embodiments of the present invention; Perhaps can be built in application server 503 inside, perhaps be built in other servers inside, can carry out video encoding to the webpage of showing through the browser core.
Technical scheme of the present invention can be applied to provide through the terminal miscellaneous service field of web service.Such as; Digital TV field, Web TV (Internet Protocol television, IPTV) field, mobile phone business field, internet arena etc., correspondingly; Terminal among the present invention can be the terminal in miscellaneous service field, such as STB, mobile phone, computer etc.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.