WO2017076315A1 - 页面显示方法、装置、系统以及页面显示辅助方法、装置 - Google Patents
页面显示方法、装置、系统以及页面显示辅助方法、装置 Download PDFInfo
- Publication number
- WO2017076315A1 WO2017076315A1 PCT/CN2016/104505 CN2016104505W WO2017076315A1 WO 2017076315 A1 WO2017076315 A1 WO 2017076315A1 CN 2016104505 W CN2016104505 W CN 2016104505W WO 2017076315 A1 WO2017076315 A1 WO 2017076315A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- multimedia
- target page
- page
- resource
- client
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/43—Querying
- G06F16/438—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Definitions
- the present application relates to a display technology, and in particular to a page display method, apparatus, system, and page display assistance method and apparatus.
- multimedia resources which can be video, music, books, etc.
- multimedia resources which can be video, music, books, etc.
- the multimedia resources in the website can only be downloaded through a browser or other downloading software. Local and then watchable through the local player.
- the user experience is poor and does not meet the development trend of the Internet.
- the website does not have an online playing capability. Therefore, the user needs to download the multimedia resources on the website to the local browser through the browser, and then launch the local browser or the built-in APP of the mobile phone to play.
- multimedia resources on many websites are only regarded as a kind of download resource, and do not utilize the online play attribute of multimedia resources. Therefore, there is a need for a page display method, apparatus, system, and page display assistance method and apparatus that can play multimedia resources in a page online.
- One technical problem to be solved by the present application is to provide a page display method, apparatus and system capable of playing multimedia resources in a page online.
- a page display method including:
- the multimedia resource is searched for in the target page that the user desires to access, and the type of the multimedia resource is identified; in the case where the multimedia resource is found, a multimedia player corresponding to the type of the multimedia resource is inserted in the target page.
- the target page that the user desires to access can be processed, the multimedia resource in the target page is found, and the type of the multimedia resource is identified, and then the corresponding multimedia player is inserted according to the type of the identified multimedia resource.
- the multimedia resources in the page can be played online to improve the browsing experience of the user.
- the method may further include: determining, according to the URL address of the target page and the preset URL rule, whether the target page includes the multimedia resource.
- the URL rule includes a list of one or more URL addresses
- the step of determining whether the target page includes multimedia resources based on the URL address of the target page and a preset URL rule includes:
- the URL rule includes a preset address format
- the step of determining whether the target page includes a multimedia resource according to the URL address of the target page and a preset URL rule comprises:
- the target page includes a multimedia resource
- the target page includes the multimedia resource
- the URL rule may be a preset list containing a plurality of URL addresses, and the URL address belonging to the list may be considered to contain multimedia resources, and the target may be determined according to a preset URL list (or a URL address database). Whether the URL address of the page contains multimedia resources.
- the URL rule may also be a manually set URL address format, and the URL address conforming to the format may be considered as a page containing multimedia resources.
- the server may determine whether the target page includes the multimedia resource, and if the server determines that the target page includes the multimedia resource, the server sends the resource identification configuration item to the client, and the client responds to the resource identification configuration item. Find multimedia resources in the target page and identify the type of multimedia resources.
- the work of determining whether the target page includes the multimedia resource can be completed by the server, and the work of finding the multimedia resource in the target page and identifying the type of the multimedia resource is completed by the client. In this way, a certain degree of configuration sharing responsibility can be achieved, and the complexity of the method can be simplified.
- the step of the server sending the resource identification configuration item to the client may include: the server inserting the resource identification configuration item into a header of the page file of the target page; and the server sends the target page including the resource identification configuration item to the client.
- the resource identification configuration item can be obtained from the header, so that the operation of finding and identifying the multimedia resource can be performed based on the resource identification configuration item.
- the server may divide the content of the target page into multiple blocks, and mark the block, and the resource identification configuration item includes the label information of the block, and the client is based on Annotating information, identifying a plurality of blocks, and finding multimedia resources in a plurality of blocks of the target page in a predetermined priority order, and identifying the type of the found multimedia resource.
- the plurality of blocks may include a download link block, a content title block, a page title block, a text block
- the client may use a content title block, a download link block, a page title block, and a text block.
- the predetermined priority order is to find multimedia resources block by block.
- the server may further divide the block for the content in the target page, mark the divided block, and then send the label information of the block to the client.
- the client can identify the partitions divided by the server according to the annotation information, and then the client can search for multimedia resources block by block in a predetermined priority order. In this way, the efficiency of finding can be improved.
- the resource identification configuration item may further include a multimedia player insertion location, and based on the multimedia player insertion location, the client may insert a multimedia player corresponding to the type of the multimedia resource at a corresponding position of the target page.
- the client can insert the corresponding multimedia player into the target page according to the preset insertion position of the multimedia player on the server side.
- the client program and the related cascading style sheet may be configured, and the client program and the cascading style sheet are delivered to the client, and the client is based on the client program and the cascading style.
- the table may perform the step of finding a multimedia resource and identifying the type of the multimedia resource in the target page that the user desires to access.
- the client can implement the operation of finding the multimedia resource in the target page and identifying the type of the multimedia resource based on the client program and the cascading style sheet delivered by the server.
- a method for displaying a page display executed on a server side including: determining whether a target page that the user desires to access includes a multimedia resource; and determining that the target page includes a multimedia resource, to the client
- the resource identification configuration item is sent, and the resource identification configuration item enables the client to find multimedia resources in the target page and identify the type of the multimedia resource.
- the server may filter the target page that includes the multimedia resource, and may send a class to the client to find the multimedia resource and identify the multimedia resource in the target page.
- Type of instruction
- the step of sending the resource identification configuration item to the client may include inserting the resource identification configuration item into a header of the page file of the target page, and sending the target page including the resource identification configuration item to the client.
- the method may further include: dividing the content of the target page into a plurality of blocks in the case that the target page includes the multimedia resource, and labeling the block, the resource identification configuration item including the tag information of the block.
- the server may further divide a plurality of blocks according to the content of the page, and correspondingly make a label, and send the label information to the client, so that the client can find the multimedia resource according to the block.
- the method may further include: in a case that the server determines that the target page includes the multimedia resource, the server configures a client program for searching for the multimedia resource in the target page and identifying the type of the multimedia resource, and the related cascading style sheet, and The client issues the client program and the cascading style sheet.
- the server can also send the following to the client to execute a program file for finding multimedia resources and identifying multimedia resources in the target page.
- a page display apparatus including: a multimedia resource search and identification module, configured to search for a multimedia resource in a target page that the user desires to access, and identify a type of the multimedia resource;
- the module is configured to insert a multimedia player corresponding to the type of the multimedia resource in the target page when the multimedia resource is found.
- a page display auxiliary device including: a multimedia resource determining module, configured to determine whether a target page that the user desires to access includes a multimedia resource; and a resource identification configuration item issuing module, configured to If the target page includes the multimedia resource, the resource identification configuration item is sent to the client, and the resource identification configuration item enables the client to find the multimedia resource in the target page and identify the type of the multimedia resource.
- the page display auxiliary device may further include: a block dividing module, in determining When the target page includes the multimedia resource, the content of the target page is divided into a plurality of blocks, and the block is marked, and the tag information of the block is sent to the resource identification configuration item issuing module.
- a block dividing module in determining When the target page includes the multimedia resource, the content of the target page is divided into a plurality of blocks, and the block is marked, and the tag information of the block is sent to the resource identification configuration item issuing module.
- the page display auxiliary device may further include: a client program and a cascading style sheet sending module, configured to: in the case that the target page includes the multimedia resource, configured to search for the multimedia resource in the target page and identify the multimedia resource.
- a client program and a cascading style sheet sending module configured to: in the case that the target page includes the multimedia resource, configured to search for the multimedia resource in the target page and identify the multimedia resource.
- Types of client programs and related cascading style sheets and deliver client programs and cascading style sheets to clients.
- a page display system including a client that searches for a multimedia resource in a target page that the user desires to access, and identifies a type of the multimedia resource in response to the user's page access request.
- the client finds the multimedia resource, the client inserts a multimedia player corresponding to the type of the multimedia resource in the target page.
- the page display system may further include a server, wherein the client or the server may determine whether the target page includes the multimedia resource based on the URL address of the target page and a preset URL rule.
- the client may send the user's page access request to the server, and the server determines whether the target page includes the multimedia resource. If the server determines that the target page includes the multimedia resource, the server sends the resource identification configuration item to the client, and the client sends the resource identification configuration item to the client. In response to receiving the resource identification configuration item, the terminal searches for a multimedia resource in the target page and identifies the type of the multimedia resource.
- the server may insert the resource identification configuration item into the header of the page file of the target page and send the target page containing the resource identification configuration item to the client.
- the server determines that the target page includes the multimedia resource
- the server divides the content of the target page into a plurality of blocks, and labels the block
- the resource identification configuration item includes the label information of the block
- the client is based on the label
- the information identifies a plurality of blocks and searches for multimedia resources in a plurality of blocks of the target page in a predetermined priority order and identifies the type of the found multimedia resource.
- the resource identification configuration item may further include a multimedia player insertion location, and the base At the multimedia player insertion location, the client can insert a multimedia player corresponding to the identified type of multimedia resource at a corresponding location on the target page.
- the server may configure the client program and the related cascading style sheet, and deliver the client program and the cascading style sheet to the client, the client is based on the client program and the cascading
- the style sheet performs an operation of finding a multimedia resource and identifying a type of the multimedia resource in a target page that the user desires to access.
- FIG. 1 shows a schematic block diagram of a page display system in accordance with one embodiment of the present application.
- FIGS. 2 and 3 illustrate a comparison of effects of opening a page with multimedia resources using the display system of the present application and opening a page with multimedia resources using an existing device.
- FIG. 4 shows a schematic flow chart of a page display method of the present application.
- FIG. 5 shows a schematic flow chart of a page display assisting method of the present application.
- FIG. 6 shows a schematic flow chart of optional steps that the page display assisting method of the present application may include.
- Fig. 7 shows a schematic block diagram of a page display device of the present application.
- Fig. 8 is a schematic block diagram showing a page display assisting device of the present application.
- FIG. 9 is a schematic block diagram showing an optional structure that can be included in the page display device of the present application.
- FIG. 10 shows a structural block diagram of a computing device provided in accordance with an embodiment of the present application.
- FIG. 1 is a schematic block diagram of a page display system in accordance with one embodiment of the present application, and shows a schematic flow diagram of the functionality of the system.
- the page display system in the embodiment of the present application may include a client 1 .
- the client 1 can find multimedia resources in the page that the user desires to access and identify the type of the multimedia resource to display the multimedia resources that may be included in the page in the page that the user desires to access.
- the client 1 can search for a multimedia resource in the target page that the user desires to access in response to the user's page access request, and identify the type of the multimedia resource. In the case where the client 1 finds a multimedia resource, the client 1 can also insert a multimedia player corresponding to the type of the multimedia resource in the target page.
- the client 1 may be a client browser, or may be a client software such as a reading software or a music player.
- the target page can be a web page that the user desires to access, or a page that the user accesses in other client software.
- the client 1 can find and identify the multimedia resource in the target page, and then insert and identify the multimedia resource by using the predetermined predetermined location on the target page.
- the corresponding multimedia player can realize online play of multimedia resources. In this way, the user can directly browse the multimedia resources in the page content without downloading the multimedia resources in the target page, thereby greatly improving the user experience.
- the page display system of the present application may also optionally include the server 2.
- the client 1 can send a page access request of the user to the server 2, and the server 2 determines whether the target page may contain multimedia resources.
- the server 2 determines whether the target page may contain multimedia resources.
- the target page By determining the target page through the client 1 or the server 2, it can be initially determined whether the target page may contain multimedia resources. For a target page that may contain multimedia resources, client 1 may perform related operations of finding multimedia resources in the target page and identifying the type of multimedia resources. In this way, on the one hand, the client 1 does not need to perform operations such as searching and recognizing multimedia resources for each page, thereby improving work efficiency, and on the other hand, does not affect the experience when the user browses a page that does not include multimedia resources.
- the server 2 can determine whether the target page may include multimedia resources. In the case that the server determines that the target page may include multimedia resources, the server 2 may send a resource identification configuration item to the client 1, and the client 1 responds. After receiving the resource identification configuration item, the multimedia resource can be found in the target page and the type of the multimedia resource is identified.
- the resource identification configuration item enables the client to perform an operation of finding a multimedia resource in the target page and identifying the type of the multimedia resource. Therefore, the resource identification configuration item may be an instruction program used to start the client to perform a search and identify operation in the target page.
- the server 2 may insert the resource identification configuration item into the header of the page file of the target page, and send the target page including the resource identification configuration item to the client 1. That is to say, the resource identification configuration item can be embedded in the header of the page file of the target page in the form of a script program, and then the target page containing the resource identification configuration item is sent to the client 1. In this way, the client 1 can automatically find the multimedia resource in the target page and identify the type of the multimedia resource according to the target page fed back by the server 2.
- the server 2 may further divide the content of the target page into a plurality of blocks, and mark the block, and mark the block with the block.
- the resource identification configuration item of the information is sent to the client 1.
- the client 1 can identify a plurality of blocks divided by the server 2, and search for multimedia resources in a plurality of blocks of the target page according to a predetermined priority order, and identify the type of the found multimedia resource.
- the plurality of blocks may include a download link block, a content title block, a page title block, and a text block.
- the client may search for multimedia resources block by block in a predetermined priority order of the content title block, the download link block, the page title block, and the text block.
- the resource identification configuration item sent by the server 2 to the client 1 may further include a multimedia player insertion location, and the client 1 may insert and identify at the corresponding position of the target page based on the received multimedia player insertion location.
- the type of multimedia resource corresponds to the multimedia player.
- the operation S100 performed by the client may be performed by a program built in the client, or may be executed by a program sent by the server 2 to the client 1.
- the server 2 may configure the client program and the related cascading style sheet (CSS), and deliver the client program and the cascading style sheet client to the client 1.
- the terminal 1 Based on the client program and the Cascading Style Sheet (CSS), the terminal 1 can perform an operation of finding a multimedia resource and identifying the type of the multimedia resource in the target page that the user desires to access.
- the server 2 can insert the client program and the cascading style sheet (CSS) into the target page, and send the same to the client 1 together with the resource identification configuration item inserted into the page. In this way, the client can automatically find and identify the multimedia resources in the target page according to the received target page.
- CSS cascading style sheet
- the page display system of this embodiment includes a client and a server, and is applied to a webpage display. Show.
- the client may be a client browser, and may receive a webpage access request of the user, and send the webpage access request to the server.
- the server can determine, according to the preset URL rule, whether the target webpage that the user desires to access meets the URL rule.
- the URL rule may be a pre-established database containing a URL of a multimedia resource, or may be a manually preset URL format.
- the URL rule includes a list of one or more URL addresses
- the step of determining whether the target page includes multimedia resources based on the URL address of the target page and a preset URL rule includes:
- the URL rule includes a preset address format
- the step of determining whether the target page includes a multimedia resource according to the URL address of the target page and a preset URL rule comprises:
- a URL rule can be set to the following format:
- the server can match the URL that the user desires to access with the set URL rule, and if it matches, the URL that the user desires to access may be considered to contain multimedia resources.
- the server may pre-identify the different content in the page through the XPath, that is, the content in the page may be divided by Xpath, for example, Divide the content of the page into a download link block, a content title block, a page title block (document.title), and a text block (text), and then mark the areas by corresponding programs.
- the location of the block For example, it can be labeled by the following code.
- the server can convert it into a JSON format that is easy for the client to read.
- the converted JSON format is as follows:
- the server can then insert the converted JSON data into the ⁇ head> area of the target page.
- the domain, along with the landing page, is sent to the client.
- the ⁇ head> area inserted into the target web page can be implemented with the following code:
- the server determines, according to the preset URL rule, that the URL that the user desires to access may include multimedia resources
- the server delivers the client resources (JS and CSS) to the client.
- the client resource can also be embedded in the webpage file, for example, can be inserted into the header of the webpage file, and then the webpage file is sent to the client.
- the client After receiving the client resources sent by the server, the client can perform key steps such as a multimedia identification algorithm.
- the client can read the JSON data, save it to the window (window.jsonPath), and then convert the XPath in the JSON to the DOM object data and save it to the window (window.jsonData), so that Using the window.jsonData data, combined with the multimedia recognition algorithm, the multimedia type (MUSIC_TYPE, VIDEO_TYPE) is identified.
- the multimedia algorithm may include:
- the data composition and priority may be: the order of the content title block, the download link block, the page title (document.title), and the text block (text).
- the implementation code can be as follows:
- Parameter data is an object containing link, title, text
- Reg_result _analyFormatByText(data.title,reg_str);
- -reg_result _analyFormatByLink(data.link,reg_str);
- Reg_result _analyFormatByTitleTag(reg_str);
- Reg_result _analyFormatByText(data.text,reg_str);
- the implementation code can be as follows:
- Var bannerTemp template('list/music',options),//template data
- Var playerTemp template('list/video',options),//template data
- FIGS. 2 and 3 illustrate a comparison of effects of opening a page with multimedia resources using the display system of the present application and opening a page with multimedia resources using an existing device.
- the image on the left side of Figure 2 is to open a webpage with video resources using an existing client.
- the effect diagram of the time, the image on the right side of FIG. 2 is an effect diagram when the page display system of the present application is used to open a webpage with the same video resource on the client side.
- the image on the left side of FIG. 3 is an effect diagram when opening a webpage with music resources using an existing client, and the image on the right side of FIG. 3 is an effect diagram when a webpage with the same music resource is opened on the client side using the page display system of the present application. .
- the page display system of the present application can identify the multimedia resources contained in the page, and insert a corresponding multimedia player into the page to play the multimedia resources in the page online.
- FIG. 4 shows a schematic flow chart of a page display method of the present application.
- the page display method of the present application can be executed on the client.
- step S100 in response to the user's page access request, the multimedia resource is found in the target page that the user desires to access, and the type of the multimedia resource is identified.
- step S200 in the case where the multimedia resource is found, a multimedia player corresponding to the type of the multimedia resource is inserted in the target page.
- FIG. 5 shows a schematic flow chart of a page display assisting method of the present application.
- the page display assisting method of the present application can be executed on the server side.
- step S300 it is determined whether the target page that the user desires to access includes multimedia resources.
- the target page may be included in the multimedia resource according to the URL address of the target page and a preset URL rule.
- the URL rule may be a URL rule preset by summarizing the URL rule of the webpage including the multimedia resource, and according to the set URL rule, it may be determined whether the target page may include the multimedia resource.
- the URL The rule may also be a pre-set list containing a plurality of URL addresses, and the URL address belonging to the list may be considered to contain multimedia resources. Specifically, a plurality of URLs including multimedia resources may be pre-stored, stored in a database, and then the URL of the target page is compared with the URL in the database to determine whether the target page may include multimedia resources.
- step S300 can also be performed by the client, that is, the client itself determines whether the target page contains multimedia resources.
- step S400 if it is determined that the target page includes the multimedia resource, the resource identification configuration item is sent to the client, and the resource identification configuration item enables the client to find the multimedia resource in the target page and identify the type of the multimedia resource.
- the resource identification configuration item may be inserted into the header of the page file of the target page, and the target page including the resource identification configuration item is sent to the client.
- FIG. 6 shows a schematic flow chart of optional steps that the page display assisting method of the present application may include.
- the method may further include a step S500.
- the target page includes the multimedia resource
- the content of the target page is divided into multiple blocks, and the block is marked, and the resource identification configuration item is Includes labeling information for the block.
- the method may further include a step S600, where the server determines that the target page includes the multimedia resource, the server is configured to search for the multimedia resource in the target page and identify the type of the multimedia resource.
- Programs and related Cascading Style Sheets (CSS) and deliver client programs and Cascading Style Sheets (CSS) to the client.
- FIG. 6 shows a case where step S600 is executed after step S400 and step S500. It should be understood that step S600 may be performed in synchronization with steps S400 and S500, or may be performed before step S400 and step S500.
- the page display method and the page display assisting method of the present application have been completely described so far.
- the page display assisting method of the present application can be applied to the page display method of the present application, that is, the page display method of the present application may further include related steps in the page assisting method.
- Fig. 7 shows a schematic block diagram of a page display device of the present application.
- the page display device includes a multimedia resource search and identification module 100 and a multimedia player insertion module 200.
- the multimedia resource search and identification module 100 is configured to search for a multimedia resource in a target page that the user desires to access, and identify a type of the multimedia resource.
- the multimedia player insertion module 200 is configured to insert a multimedia player corresponding to the type of the multimedia resource in the target page in the case of finding the multimedia resource.
- Fig. 8 is a schematic block diagram showing a page display assisting device of the present application.
- the page display assistance device includes a multimedia resource determination module 300 and a resource identification configuration item delivery module 400.
- the multimedia resource judging module 300 is configured to determine whether the target page that the user desires to access includes a multimedia resource.
- the resource identification configuration item issuance module 400 is configured to send a resource identification configuration item to the client when the target page includes the multimedia resource, and the resource identification configuration item enables the client to find the multimedia resource and identify the multimedia resource in the target page. type.
- FIG. 9 shows a schematic block diagram of an optional structure that can be included in the page display device of the present application.
- the page display assistance device may also optionally include a block partitioning module 500.
- the block division module 500 will determine that the target page contains multimedia resources,
- the content of the target page is divided into a plurality of blocks, and the block is marked, and the tag information of the block is sent to the resource identification configuration item issuing module.
- the page display auxiliary device may also optionally include a client program and a cascading style sheet issuing module 600.
- the client program and the cascading style sheet issuing module 600 are configured to configure a client program and a related cascading style sheet for searching for a multimedia resource in the target page and identifying a type of the multimedia resource, if the target page includes the multimedia resource. And delivering the client program and cascading style sheet to the client.
- the page display auxiliary device of the present application can be applied to the page display device of the present application, that is, the page display device of the present application may further include a related structure in the page auxiliary device.
- the page display method, apparatus, system, and page display assisting method and apparatus disclosed in the present application share the responsibility and simplify the complexity of the algorithm through a certain degree of configuration, thereby achieving higher cost performance.
- the page display method, device, system, and page display assisting method and apparatus disclosed in the present application when browsing a page containing multimedia resources, the user can enjoy multimedia resources such as videos, music, books, and the like without downloading through downloading.
- the method according to the present application can also be implemented as a computer program comprising computer program code instructions for performing the various steps defined above in the above method of the present application.
- the method according to the present application may also be embodied as a computer program product comprising a computer readable medium having stored thereon a computer for performing the above-described functions defined in the above method of the present application program.
- the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
- FIG. 10 is a structural block diagram of a computing device provided according to an embodiment of the present application.
- the computing device can be implemented as various types of computer devices, such as desktops, portable computers, tablets, smart phones, personal data assistants (PDAs), smart wearable devices, or other types of computer devices, but is not limited to any particular form.
- the computer can include a processing module 100, a storage subsystem 200, an input device 300, a display 400, a network interface 500, and a bus 600.
- the processing module 100 can be a multi-core processor or multiple processors.
- processing module 100 can include a general purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like.
- processor 100 can use a customized circuit Now, for example, an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the processing module 100 can be a similar circuit that executes executable instructions stored on itself.
- the processing module 100 can execute executable instructions stored on the storage subsystem 200.
- Storage subsystem 200 can include various types of storage units, such as system memory, read only memory (ROM), and persistent storage.
- the ROM can store static data or instructions required by the processing module 100 or other modules of the computer.
- the persistent storage device can be a readable and writable storage device.
- the persistent storage device may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off.
- the persistent storage device employs a mass storage device (eg, magnetic or optical disk, flash memory) as the permanent storage device.
- the persistent storage device can be a removable storage device (eg, a floppy disk, an optical drive).
- the system memory can be a readable and writable storage device or a volatile read/write storage device, such as dynamic random access memory.
- System memory can store instructions and data that some or all of the processors need at runtime.
- storage subsystem 200 can include any combination of computer readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic disks and/or optical disks can also be employed.
- storage subsystem 200 can include removable storage devices that are readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM) ), read-only Blu-ray discs, ultra-density discs, flash cards (such as SD cards, minSD cards, Micro-SD cards, etc.), magnetic floppy disks, and so on.
- the computer readable storage medium does not include a carrier wave and an instantaneous electronic signal transmitted by wireless or wire.
- the storage subsystem 200 can store one or more software programs that can be executed by the processing module 100 or resource files that need to be invoked.
- the resource files can include some third-party libraries, including but not limited to audio libraries, video libraries. , 2D graphics library, 3D graphics library.
- the user interface can be provided by one or more user input devices 300, display 400, and/or one or more other user output devices.
- the input device 300 can include a user to A device that inputs signals to a computer that the computer can interpret to include specific user requests or information.
- a web address may be input to the user interface through a keyboard to display webpage content corresponding to the input webpage.
- input device 300 can include some or all of a keyboard button, touch screen, mouse or other pointing device, scroll wheel, click wheel, dial, button, switch, keypad, microphone, and the like.
- the display 400 can display computer generated images, and can include various types of image devices such as cathode ray tubes (CRTs), liquid crystal displays (LCDs), light emitting diodes (LEDs) including organic light emitting diodes (OLEDs), projection systems. And other collections of supporting electronic devices (such as DACs, ADCs, signal processors, etc.). In some embodiments, it is also possible to additionally provide other user output devices, or to replace display 400, such as a signal light, a speaker, a tactile sensor, a printer, and the like.
- image devices such as cathode ray tubes (CRTs), liquid crystal displays (LCDs), light emitting diodes (LEDs) including organic light emitting diodes (OLEDs), projection systems. And other collections of supporting electronic devices (such as DACs, ADCs, signal processors, etc.).
- the user interface can be provided through a graphical user interface.
- Certain areas of the display 400 define some visual graphical elements as interactive objects or control objects that the user selects through the input device 300.
- the user can operate the user input device 300 to move the specified location input URL on the screen, and control the display of the webpage content corresponding to the webpage on the display 400.
- a touch device that can recognize a user gesture can be used as an input device that can, but need not, be associated with an array on display 300.
- Network interface 500 provides sound and/or data communication functionality to the computer.
- network interface 500 can include a radio frequency transceiver to communicate sound and/or data (eg, using cellular telephone technology, such as 3G, 4G or EDGE, WIFI data network technology), GPS accepting modules, and/or other Module.
- network interface 500 can provide an additional wireless network connection or an alternative wireless interface.
- Network interface 500 may be a combination of hardware (eg, antennas, modems, codecs, and other analog and/or digital signal processing circuits) and software modules.
- the bus 600 can include various systems, external devices, and chip buses that connect various components within the computer.
- bus 600 connects processing device 100 to storage subsystem 200, and may also connect input device 300 and display 400.
- Bus 600 can also make the computer pass
- the network interface 500 is connected to the network.
- the computer can be part of multiple networked computer devices. Any or all of the components of the computer can be used in concert in embodiments of the present application.
- Some embodiments include electronic components, such as a microprocessor, a memory that stores computer instructions and data in a computer readable storage medium. Many of the features described in the Detailed Description section can be implemented by the method steps of executing computer instructions stored on a computer readable storage medium. When these computer instructions are executed, the computer processing unit performs various functions of the instructions.
- the embodiment of the program instructions or computer code may be machine code, such as code compiled using a computer, electronic component or microprocessor of the object to be parsed to compile other high-level languages.
- the computer is schematic.
- the computer may have other functions not specifically described (eg, mobile call, GPS, power management, one or more cameras, various connection ports or accessories for connecting external devices, etc.).
- the specific functional modules involved in the computer 100 are described herein, and the description of these functional modules is for convenience of description, and does not mean a specific physical configuration of the functional components. Moreover, these functional modules do not need to be in one-to-one correspondence with physical modules.
- the module can be configured to perform various operations, such as by programming or setting up appropriate control circuitry, and the module may be reconfigured according to initial settings.
- Embodiments of the present application can be implemented in various devices, including electronic devices, by using a combination of hardware and software.
- the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to the computing device, the computing device can be Instructions (instructions) that perform the following steps:
- the method further includes: determining, according to the URL address of the target page and a preset URL rule, whether the target page includes a multimedia resource.
- the URL rule includes a list of one or more URL addresses
- Determining, according to the URL address of the target page and a preset URL rule, the step of determining whether the target page includes a multimedia resource comprises: acquiring a target URL address of the target page; determining the target URL address and the list Whether there is a match for one or more URL addresses; if so, it is determined whether the target page contains multimedia resources.
- the URL rule includes a preset address format
- the step of determining, according to the URL address of the target page and a preset URL rule, whether the target page includes a multimedia resource includes: acquiring the target page a target URL address, the target URL address having a corresponding target address format; determining whether the target address format is consistent with the preset address format; if yes, determining whether the target page includes a multimedia resource.
- the server determines whether the target page includes a multimedia resource, and if the server determines that the target page includes a multimedia resource, the server sends a resource identification configuration item to the client, where the client And in response to receiving the resource identification configuration item, searching for a multimedia resource in the target page, and identifying a type of the multimedia resource.
- the step of the server sending a resource identification configuration item to the client includes: the server inserting the resource identification configuration item into a header of a page file of the target page; the server includes The target page of the resource identification configuration item is sent to the client.
- the server determines that the target page includes a multimedia resource
- the server divides the content of the target page into multiple blocks, and labels the block
- the resource identification configuration item includes annotation information of the block
- the client identifies the plurality of blocks based on the annotation information, and searches for multimedia in a plurality of blocks of the target page according to a predetermined priority order. Resources and identify the type of multimedia resource found.
- the plurality of blocks include a download link block, a content title block, a page title block, a text block
- the client uses a content title block, a download link block, and a page title area.
- the predetermined priority order of the blocks and the text blocks is used to find the multimedia resources block by block.
- the resource identification configuration item further includes a multimedia player insertion location, and the client inserts a type of the multimedia resource at a corresponding position of the target page based on the multimedia player insertion location. Corresponding multimedia player.
- the method further includes: if the server determines that the target page includes a multimedia resource, the server configures a client program and an associated cascading style sheet, and delivers the client program to the client And the cascading style sheet, the client performing the step of searching for a multimedia resource and identifying a type of the multimedia resource in a target page that the user desires to access based on the client program and the cascading style sheet.
- Determining whether the target page that the user desires to access includes multimedia resources
- the resource identification configuration item enables the client to find the multimedia resource in the target page and identify the multimedia resource. type.
- each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
- the functions noted in the blocks may also occur in a different order than the ones in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种页面显示方法、装置、系统以及页面显示辅助方法、装置。其中,在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型(S100);在找到多媒体资源的情况下,在目标页面中插入与多媒体资源的类型相对应的多媒体播放器(S200)。由此,通过在目标页面中寻找多媒体资源并识别多媒体资源的类型,然后根据识别的多媒体资源的类型插入相应的多媒体播放器,可以在线播放页面中的多媒体资源,提高用户的浏览体验。
Description
本申请要求在2015年11月05日提交中国专利局、申请号为201510750632.4、发明名称为“页面显示方法、装置、系统以及页面显示辅助方法、装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及一种显示技术,具体地说,涉及一种页面显示方法、装置、系统以及页面显示辅助方法、装置。
随着网络及其相关技术的发展,现今人们花在电子设备上的时间越来越多。例如,人们会通过电脑、手机、IPAD等电子设备浏览网页,观看多媒体视频、欣赏多媒体音乐、阅读书籍等等。
但是,目前很多网站本身不具备多媒体资源(可以是视频、音乐、书籍等资源)的在线播放能力,使得用户登录这些网站后,只能通过浏览器或其它下载软件将网站中的多媒体资源下载到本地,然后才能通过本地的播放器进行观看。用户的体验较差,不符合互联网的发展趋势。
例如,当用户使用手机访问上述资源网站时,由于网站不具有在线播放能力。因此,用户需要将网站上的多媒体资源通过浏览器下载到本地,然后调起本地浏览器或手机内置的APP才能进行播放。
综上,很多网站上的多媒体资源都只被视为一种下载资源,而没有利用多媒体资源的在线播放属性。因此,需要一种页面显示方法、装置、系统以及页面显示辅助方法、装置,其能够在线播放页面中的多媒体资源。
发明内容
本申请要解决的一个技术问题是提供一种页面显示方法、装置及系统,其能够在线播放页面中的多媒体资源。
根据本申请的一个方面,公开了一种页面显示方法,包括:
在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型;在找到多媒体资源的情况下,在目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
由此,可以对用户期望访问的目标页面进行处理,找出目标页面中的多媒体资源,并识别出多媒体资源的类型,然后根据识别的多媒体资源的类型插入相应的多媒体播放器。这样,就可以在线播放页面中的多媒体资源,提高用户的浏览体验。
优选地,该方法还可以包括:基于目标页面的URL地址和预先设定的URL规则,判断目标页面是否包含多媒体资源。
优选地,所述URL规则包括有一个或多个URL地址的列表,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:
获取所述目标页面的目标URL地址;
判断所述目标URL地址与所述列表中的一个或多个URL地址是否存在匹配项;
若是,则判断为所述目标页面是否包含多媒体资源。
优选地,所述URL规则包括预设地址格式,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:
获取所述目标页面的标URL地址,所述目标URL地址具有对应的目标地址格式;
判断所述目标地址格式与所述预设地址格式是否一致;
若是,则判断为所述目标页面是否包含多媒体资源。
由此,可以首先对用户期望访问的目标页面进行一个初步判断,
初步判断目标页面是否包含多媒体资源,在判断目标页面包含多媒体资源的情况下,再执行在目标页面中寻找多媒体资源的操作,而对于判定为不包含多媒体资源的页面,可以直接将页面内容显示给用户。例如,可以通过将预先设立的URL规则与目标页面的URL地址做匹配,来判断目标页面是否包含多媒体资源。其中,URL规则可以是预先设定的包含多个URL地址的列表,属于该列表的URL地址可以认为其包含多媒体资源,此时可以根据预先设定的URL列表(或URL地址数据库)来判断目标页面的URL地址是否包含多媒体资源。另外,URL规则还可以是人工设定的一种URL地址格式,符合该格式的URL地址可以认为是包含多媒体资源的页面。
优选地,可以由服务器判断目标页面是否包含多媒体资源,在服务器判定所述目标页面包含多媒体资源的情况下,服务器向客户端下发资源识别配置项,客户端响应于接收到资源识别配置项,在目标页面中寻找多媒体资源,并识别多媒体资源的类型。
由此,可以将判断目标页面是否包含多媒体资源的工作交由服务器完成,将寻找目标页面中的多媒体资源并识别多媒体资源的类型的工作交由客户端完成。这样,可以实现一定程度的配置分享职责、简化方法的复杂度。
优选地,服务器向客户端下发资源识别配置项的步骤可以包括:服务器将资源识别配置项插入目标页面的页面文件的头部;服务器将包含有资源识别配置项的目标页面发送给客户端。
由此,客户端在解析页面文件时,从头部就可以得到资源识别配置项,从而可以基于资源识别配置项执行寻找并识别多媒体资源的操作。
优选地,在服务器判定目标页面包含多媒体资源的情况下,服务器可以将目标页面的内容划分成多个区块,并对区块进行标注,资源识别配置项包括区块的标注信息,客户端基于标注信息,识别多个区块,并按照预定优先级顺序在目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。
优选地,多个区块可以包括下载链接区块、内容标题区块、页面标题区块、文本区块,客户端可以以内容标题区块、下载链接区块、页面标题区块、文本区块的预定优先级顺序,逐个区块地寻找多媒体资源。
由此,服务器在判定目标页面包含多媒体资源的情况下,还可以针对目标页面中的内容划分区块,并对划分的区块进行标注,然后将区块的标注信息发送给客户端。这样,客户端可以根据标注信息,识别服务器划分的区块,然后客户端可以以预定优先级顺序逐个区块地寻找多媒体资源。这样,可以提高寻找效率。
优选地,资源识别配置项还可以包括多媒体播放器插入位置,基于多媒体播放器插入位置,客户端可以在目标页面的相应位置插入与多媒体资源的类型相对应的多媒体播放器。
由此,客户端就能够根据服务器端预先设定的多媒体播放器插入位置,在目标页面中插入相应的多媒体播放器。
优选地,服务器判定目标页面包含多媒体资源的情况下,还可以配置客户端程序和相关的层叠样式表,并向客户端下发客户端程序和层叠样式表,客户端基于客户端程序和层叠样式表,可以执行在用户期望访问的目标页面中寻找多媒体资源并识别多媒体资源的类型的步骤。
由此,客户端基于服务器端下发的客户端程序和层叠样式表就可以实现在目标页面中寻找多媒体资源并识别多媒体资源的类型的操作。
根据本申请的另一个方面,还公开了一种在服务器端执行的页面显示辅助方法,包括:判断用户期望访问的目标页面是否包含多媒体资源;在判定目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,资源识别配置项使得客户端能够在目标页面中寻找多媒体资源并识别多媒体资源的类型。
由此,服务器端可以筛选出包含多媒体资源的目标页面,并可以向客户端下发在目标页面中寻找多媒体资源并识别多媒体资源的类
型的指令。
优选地,向客户端下发资源识别配置项的步骤可以包括:将资源识别配置项插入目标页面的页面文件的头部,并将包含有资源识别配置项的目标页面发送给所述客户端。
优选地,方法还可以包括:在判定目标页面包含多媒体资源的情况下,将目标页面的内容划分成多个区块,并对区块进行标注,资源识别配置项包括区块的标注信息。
由此,对于包含多媒体资源的页面,服务器端还可以根据页面的内容划分多个区块,并相应地做出标注,将标注信息发送给客户端,方便客户端按区块寻找多媒体资源。
优选地,方法还可以包括:在服务器判定目标页面包含多媒体资源的情况下,服务器配置用来在目标页面中寻找多媒体资源并识别多媒体资源的类型的客户端程序和相关的层叠样式表,并向客户端下发客户端程序和层叠样式表。
由此,服务器还可以下发给客户端用以执行在目标页面中寻找多媒体资源并识别多媒体资源的程序文件。
根据本申请的另一个方面,还公开了一种页面显示装置,包括:多媒体资源寻找识别模块,用于在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型;多媒体播放器插入模块,用于在找到多媒体资源的情况下,在目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
根据本申请的另一个方面,还公开了一种页面显示辅助装置,包括:多媒体资源判断模块,用于判断用户期望访问的目标页面是否包含多媒体资源;资源识别配置项下发模块,用于在判定目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,资源识别配置项使得客户端能够在目标页面中寻找多媒体资源并识别多媒体资源的类型。
优选地,页面显示辅助装置还可以包括:区块划分模块,在判定
目标页面包含多媒体资源的情况下,将目标页面的内容划分成多个区块,并对区块进行标注,并将区块的标注信息发送给资源识别配置项下发模块。
优选地,页面显示辅助装置还可以包括:客户端程序和层叠样式表下发模块,用于在判定目标页面包含多媒体资源的情况下,配置用来在目标页面中寻找多媒体资源并识别多媒体资源的类型的客户端程序和相关的层叠样式表,并向客户端下发客户端程序和层叠样式表。
根据本申请的另一个方面,还公开了一种页面显示系统,包括客户端,客户端响应于用户的页面访问请求,在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型在客户端找到多媒体资源的情况下,客户端在所述目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
优选地,页面显示系统还可以包括服务器,其中,客户端或服务器可以基于目标页面的URL地址和预先设定的URL规则,判断目标页面是否包含多媒体资源。
优选地,客户端可以将用户的页面访问请求发送给服务器,由服务器判断目标页面是否包含多媒体资源,在服务器判定目标页面包含多媒体资源的情况下,服务器向客户端下发资源识别配置项,客户端响应于接收到资源识别配置项,在目标页面中寻找多媒体资源,并识别多媒体资源的类型。
优选地,服务器可以将资源识别配置项插入目标页面的页面文件的头部,并将包含有资源识别配置项的目标页面发送给所述客户端。
优选地,在服务器判定目标页面包含多媒体资源的情况下,服务器将目标页面的内容划分成多个区块,并对区块进行标注,资源识别配置项包括区块的标注信息,客户端基于标注信息,识别多个区块,并按照预定优先级顺序在目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。
优选地,资源识别配置项还可以包括多媒体播放器插入位置,基
于多媒体播放器插入位置,客户端可以在目标页面的相应位置插入与识别出的多媒体资源的类型相对应的多媒体播放器。
优选地,在服务器判定目标页面包含多媒体资源的情况下,服务器可以配置客户端程序和相关的层叠样式表,并向客户端下发客户端程序和层叠样式表,客户端基于客户端程序和层叠样式表,执行在用户期望访问的目标页面中寻找多媒体资源并识别多媒体资源的类型的操作。
综上,基于本申请公开的页面显示方法、装置、系统以及页面显示辅助方法、装置,用户在浏览包含多媒体资源的页面时,不需要通过下载就可以在线欣赏多媒体资源。
通过结合附图对本公开示例性实施方式进行更详细的描述,本公开的上述以及其它目的、特征和优势将变得更加明显,其中,在本公开示例性实施方式中,相同的参考标号通常代表相同部件。
图1示出了根据本申请的一个实施例的页面显示系统的示意性方框图。
图2、图3示出了使用本申请的显示系统打开带有多媒体资源的页面和使用现有装置打开带有多媒体资源的页面的效果对比图。
图4示出了本申请的页面显示方法的示意性流程图。
图5示出了本申请的页面显示辅助方法的示意性流程图。
图6示出了本申请的页面显示辅助方法可以包括的可选步骤的示意性流程图。
图7示出了本申请的页面显示装置的示意性方框图。
图8示出了本申请的页面显示辅助装置的示意性方框图。
图9示出了本申请的页面显示装置的可以包括的可选结构的示意性方框图;
图10示出了根据本申请实施方式提供的计算设备的结构框图。
下面将参照附图更详细地描述本公开的优选实施方式。虽然附图中显示了本公开的优选实施方式,然而应该理解,可以以各种形式实现本公开而不应被这里阐述的实施方式所限制。相反,提供这些实施方式是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。
I.页面显示系统
图1是根据本申请的一个实施例的页面显示系统的示意性方框图,并示出了系统的功能的示意性流程图。
如图1所示,本申请实施例中的页面显示系统可以包括客户端1。客户端1可以在用户期望访问的页面中寻找多媒体资源并识别多媒体资源的类型,以在用户期望访问的页面中显示页面中可能包含的多媒体资源。
具体地说,客户端1可以响应于用户的页面访问请求,在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型。在客户端1找到多媒体资源的情况下,客户端1还可以在目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
其中,客户端1可以是客户端浏览器,也可以是阅读软件、音乐播放器等其它客户端APP。目标页面可以是用户期望访问的网页,也可以是用户在其它客户端软件中访问的页面。
由此,当用户期望访问的目标页面中包含有多媒体资源时,客户端1就可以将目标页面中的多媒体资源寻找并识别出来,然后通过在目标页面总的预定位置插入与识别出的多媒体资源相对应的多媒体播放器,就可以实现多媒体资源的在线播放。这样,用户不需要下载目标页面中的多媒体资源就可以直接在浏览页面内容中的多媒体资源,大大提升用户的体验。
由于并不是所有的页面中都包含多媒体资源,因此,对于用户期望访问的目标页面,如果客户端1都执行在目标页面中寻找、识别多媒
体资源的操作,会不必要地增大客户端1的工作负荷,这样,显然是不合理的。因此,如图1所示,本申请的页面显示系统还可以可选地包括服务器2。客户端1可以将用户的页面访问请求发送给服务器2,由服务器2判断目标页面是否可能包含多媒体资源。当然,也可以由客户端1判断目标页面是否可能包含多媒体资源。
通过客户端1或服务器2对目标页面进行判断,可以初步判断目标页面是否可能包含多媒体资源。对于可能包含多媒体资源的目标页面,客户端1可以执行在目标页面中寻找多媒体资源并识别多媒体资源的类型的相关操作。这样,一方面,客户端1就不用对每个页面都进行多媒体资源的寻找、识别等操作,提高工作效率,另一方面,不会影响用户浏览不包含多媒体资源的页面时的体验。
如图1所示,可以由服务器2判断目标页面是否可能包含多媒体资源,在服务器判定目标页面可能包含多媒体资源的情况下,服务器2可以向客户端1下发资源识别配置项,客户端1响应于接收到资源识别配置项,就可以在目标页面中寻找多媒体资源,并识别多媒体资源的类型。
资源识别配置项使得客户端能够执行在目标页面中寻找多媒体资源并识别所述多媒体资源的类型的操作。因此,资源识别配置项可以是用来启动客户端执行在目标页面中寻找、识别操作的一个指令程序。
其中,服务器2可以将资源识别配置项插入目标页面的页面文件的头部,并将包含有资源识别配置项的目标页面发送给客户端1。也就是说,可以将资源识别配置项以脚本程序的形式嵌入到目标页面的页面文件的头部,然后将包含有资源识别配置项的目标页面发送给客户端1。这样,客户端1根据服务器2反馈来的目标页面就可以自动在目标页面中寻找多媒体资源并识别多媒体资源的类型。
另外,如图1所示,在判断目标页面可能包含多媒体资源的情况下,服务器2还可以将目标页面的内容划分成多个区块,并对区块进行标注,将带有区块的标注信息的资源识别配置项发送给客户端1。
客户端1基于接收到的标注信息,可以识别服务器2划分的多个区块,并按照预定优先级顺序在目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。其中,多个区块可以包括下载链接区块、内容标题区块、页面标题区块、文本区块。此时,客户端可以以内容标题区块、下载链接区块、页面标题区块、文本区块的预定优先级顺序,逐个区块地寻找多媒体资源。
作为一种优选,服务器2下发给客户端1的资源识别配置项还可以包括多媒体播放器插入位置,客户端1基于接收到的多媒体播放器插入位置,可以在目标页面的相应位置插入与识别出的多媒体资源的类型相对应的多媒体播放器。
另外,客户端执行的操作S100,可以由客户端内置的程序进行,也可以由服务器2下发给客户端1的程序执行。
具体地说,服务器2在判断目标页面可能包含多媒体资源的情况下,服务器2可以配置客户端程序和相关的层叠样式表(CSS),并向客户端1下发客户端程序和层叠样式表客户端1基于客户端程序和层叠样式表(CSS),可以执行在用户期望访问的目标页面中寻找多媒体资源并识别多媒体资源的类型的操作。
其中,服务器2可以将客户端程序和层叠样式表(CSS)插入到目标页面中,连同插入到页面中的资源识别配置项,一起下发给客户端1。这样,客户端就可以根据接收到的目标页面,自动寻找、识别目标页面中的多媒体资源。
以上结合图1详细叙述了本申请的页面显示系统可以包括的结构,以及相关结构可以具有的功能。
下面就具体实施例详细叙述本申请的页面显示系统的工作过程。
下面所描述的实施例是以用户访问网页为例来说明本申请的页面显示系统的工作过程的,应该知道,本申请的页面显示系统也适用于用户访问的其它页面(如软件APP中的页面)。
本实施例的页面显示系统包括客户端和服务器,应用于网页显
示。其中,客户端可以是客户端浏览器,可以接收用户的网页访问请求,并将网页访问请求发送至服务器。
服务器可以根据预设的URL规则判断用户期望访问的目标网页是否符合URL规则。其中,URL规则可以是预先建立的包含多媒体资源的URL的数据库,也可以是人工预设的一种URL格式。
优选地,所述URL规则包括有一个或多个URL地址的列表,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:
获取所述目标页面的目标URL地址;
判断所述目标URL地址与所述列表中的一个或多个URL地址是否存在匹配项;
若是,则判断为所述目标页面是否包含多媒体资源。
优选地,所述URL规则包括预设地址格式,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:
获取所述目标页面的标URL地址,所述目标URL地址具有对应的目标地址格式;
判断所述目标地址格式与所述预设地址格式是否一致;
若是,则判断为所述目标页面是否包含多媒体资源。
例如,URL规则可以设置成如下的格式:
这样,服务器可以将用户期望访问的URL与设定的URL规则进行正则规则匹配,如果匹配上,则可以认为用户期望访问的URL是可能包含多媒体资源的。
当服务器根据预设的URL规则判定用户期望访问的URL可能包含多媒体资源的情况下,服务器可以通过Xpath预先标识页面中不同内容,即可以通过Xpath对页面中的内容进行区块划分,例如,可以将页面中的内容划分成下载链接区块(link)、内容标题区块(title)、页面标题区块(document.title)以及文本区块(text),然后可以通过相应的程序来标注这些区块的位置。例如,可以通过如下的代码进行标注。
(字段说明:title资源标题;link资源地址;size媒体资源大小,单个或多个;videoPos播放器插入位置),其中,上述代码示意性地表示了可以抽取的内容,应该知道,也可以根据上述编码方式来抽取页面中的内容标题区块(title)、页面标题区块(document.title)。
为了客户端可以更好地识别上述标注信息,服务器可以将其转换为客户端容易读取的JSON格式,转换后的JSON格式如下:
[
{
′name′:′title′,
′path′:′//div[@class=″title”]′
},
{
′name′:′link′,
′path′:′//div[@class=″content″]/div[2]//a[@class=″touch″]′
},
{
′name′:′size′,
′path′:
′//div[@class=″content″]/div[2]/div[2]|//div[@class=″menu_row″]//a[@class=″touch″][cont ains(text(),″x″)]′
},
{
′name′:′videoPos′,
′path′:′//body//div[@class=″head″]′
}
]
然后服务器可以将转换后的JSON数据插入到目标网页的<head>区
域,连同目标网页一起发送给客户端。插入到目标网页的<head>区域可以通过如下代码实现:
<script type=”text/javascript”>
var uc_json_detail=[上述JSON数据];
</script>
在服务器根据预设的URL规则判定用户期望访问的URL可能包含多媒体资源的情况下,服务器向客户端下发客户端资源(JS和CSS)。其中,客户端资源也可以嵌入到网页文件中,例如可以插入到网页文件的头部,然后将网页文件下发给客户端。
客户端在接收到服务器下发的客户端资源后,就可以执行多媒体识别算法等关键步骤。
具体地说,客户端可以读取JSON数据,将其存到window中(window.jsonPath),然后将JSON中的Xpath转换为DOM对象数据,存到window中(window.jsonData),这样,就可以利用window.jsonData数据,结合多媒体识别算法,识别出多媒体类型(MUSIC_TYPE、VIDEO_TYPE)。
其中,多媒体算法可以包括:
1)定义多媒体类型常用格式,可以由如下代码实现:
var formatConfig={
music:[′mp3′,′wav′,′amr′,′mid′],video:[′mp4′,′3gp′,′avi′]
};
2)针对jsonData按照优先级依次分析查询,识别formatConfig后缀关键字。数据组成及优先级可以是:内容标题区块(title)、下载链接区块(link)、页面标题(document.title)、文本区块(text)的顺序。
实现代码可以如下:
//参数data为包含link、title、text的对象
var analyserFormat=function(data){
var reg_result=null;
for(var cf in formatConfig){
var cfdata=formatConfig[cf],reg_str=cfdata.join(′|′);
if(data.title){
reg_result=_analyFormatByText(data.title,reg_str);
if(reg_result)break;
}
if(data.link&&data.link.nodeName.toLowerCase()===′a′){
-reg_result=_analyFormatByLink(data.link,reg_str);
if(reg_result)break;
}
if(document.title){
reg_result=_analyFormatByTitleTag(reg_str);
if(reg_result)break;
}
if(data.text){
reg_result=_analyFormatByText(data.text,reg_str);
if(reg_result)break;
}
}
if(reg_result&®_result.length>0){
return reg_result[0];
}else{
return″;
}
};
//下载链接分析:【文本值、href属性值、title属性值】
var_analyFormatByLink=function(link,regexp){
var regObj=new RegExp(regexp,′i′),arr=[],
result=″;
if(link.nodeType===1&&link.tagName.toLowerCase()===′a′){
arr.push(link.href);arr.push(link.title);arr.push(link.textContent.trim());
}else if(link.nodeType===2||link.nodeType===3){
arr.push(link.textContent.trim());
}
for(var i=0;i<arr.length;i++){
if(arr[i]&®Obj.exec(arr[i])){result=regObj.exec(arr[i]);break;
}
}
return result;
};
//分析页面title
var_analyFormatByTitleTag=function(regexp){
var regObj=new RegExp(regexp,′i′);
return regObj.exec(document.title);
};
//根据传入文本内容,分析格式
var_analyFormatByText=function(text,regexp){
var regObj=new RegExp(regexp,′i′);
return regObj.exec(text);
};
3)analyserFormat方法识别出资源类型,赋值pageType=MUSIC_TYPE或VIDEO_TYPE。至此,就可以识别出页面中包含的多媒体资源的类型。在识别出页面中包含的多媒体资源的类型后,就可以在客户端组装相应的多媒体播放器,并将其插入到预设的位置。
其实现代码可以如下:
if(pageType===MUSIC_TYPE){
createMusicTemp();
}else if(pageType===VIDEO_TYPE){
createVideoTemp();
}
//音乐播放器模板
var createMusicTemp=function(options){
var bannerTemp=template(′list/music′,options),//模板数据
oBanner=doc.createElement(′div′);oBanner.id=′uc_music_player′;oBanner.className=′uc-banner-wrapper′;oBanner.innerHTML=bannerTemp;
body.appendChild(oBanner);
};
//视频播放器模板
var createVideoTemp=function(options){
var playerTemp=template(′list/video′,options),//模板数据
oPlayer=doc.createElement(′div′),
oPos=options.videoPos;//视频插入位置oPlayer.id=′uc__video_player′;oPlayer.innerHTML=playerTemp;
if(oPos&&oPos.parentNode){
oPos.parentNode.insertBefore(oPlayer,oPos.nextSibling);
}
};
至此,就可以实现在页面中插入与页面中的多媒体资源的类型相对应的播放器。
图2、图3示出了使用本申请的显示系统打开带有多媒体资源的页面和使用现有装置打开带有多媒体资源的页面的效果对比图。
其中,图2左边图像是使用现有的客户端打开带有视频资源的网页
时的效果图,图2右边图像是使用本申请的页面显示系统在客户端打开同样带有视频资源的网页时的效果图。图3左边图像是使用现有的客户端打开带有音乐资源的网页时的效果图,图3右边图像是使用本申请的页面显示系统在客户端打开同样带有音乐资源的网页时的效果图。
通过对比可知,本申请的页面显示系统可以将页面中包含的多媒体资源识别出来,并在页面中插入相应的多媒体播放器,以在线播放页面中的多媒体资源。
上文已详细描述了本申请的页面显示系统,并就具体实施例进一步阐述了本申请的页面显示系统的工作过程。下面将描述下本申请公开的页面显示方法及页面显示辅助方法及相应的装置。
下面描述的方法和装置中的大部分步骤或功能与上文所描述的系统的功能相同。为了避免重复,这里重点描述方法、装置可以具有的步骤、结构,对于步骤、结构中的一些细节则不再赘述,可以参考上文中的相应描述。
II.页面显示方法及页面显示辅助方法
图4示出了本申请的页面显示方法的示意性流程图。其中,本申请的页面显示方法可以在客户端执行。
在步骤S100,响应于用户的页面访问请求,在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型。
在步骤S200,在找到多媒体资源的情况下,在目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
图5示出了本申请的页面显示辅助方法的示意性流程图。其中,本申请的页面显示辅助方法可以在服务器端执行。
在步骤S300,判断用户期望访问的目标页面是否包含多媒体资源。
其中,可以根据目标页面的URL地址和预先设定的URL规则,判断目标页面是否可能包含多媒体资源。其中,URL规则可以是通过总结包含多媒体资源的网页的URL规律而预先设定的URL规则,根据设定好的URL规则就可以判断目标页面是否可能包含多媒体资源。另外,URL
规则也可以是预先设定的包含多个URL地址的列表,属于该列表的URL地址可以认为其可能包含多媒体资源。具体地说,可以预先保存包含多媒体资源的多个URL,将其存入数据库,然后将目标页面的URL与数据库中的URL进行比对,以判断目标页面是否可能包含多媒体资源。
另外,步骤S300也可以由客户端执行,即由客户端自己判断目标页面是否包含多媒体资源。
在步骤S400,在判定目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,资源识别配置项使得客户端能够在目标页面中寻找多媒体资源并识别多媒体资源的类型。
其中,可以将资源识别配置项插入目标页面的页面文件的头部,并将包含有资源识别配置项的目标页面发送给客户端。
图6示出了本申请的页面显示辅助方法可以包括的可选步骤的示意性流程图。
如图6所示,方法还可以可选地包括步骤S500,在判定目标页面包含多媒体资源的情况下,将目标页面的内容划分成多个区块,并对区块进行标注,资源识别配置项包括区块的标注信息。
如图6所示,方法还可以可选地包括步骤S600,在服务器判定目标页面包含多媒体资源的情况下,服务器配置用来在目标页面中寻找多媒体资源并识别所述多媒体资源的类型的客户端程序和相关的层叠样式表(CSS),并向客户端下发客户端程序和层叠样式表(CSS)。
其中,图6中示出了步骤S600在步骤S400、步骤S500之后执行时的情况,应该知道,步骤S600可以与步骤S400、步骤S500同步执行,也可以在步骤S400、步骤S500之前执行。
至此已完整地描述了本申请的页面显示方法和页面显示辅助方法。另外,应该知道,本申请的页面显示辅助方法可以应用于本申请的页面显示方法,即本申请的页面显示方法还可以包括页面辅助方法中的相关步骤。
III.页面显示装置及页面显示辅助装置
图7示出了本申请的页面显示装置的示意性方框图。
如图7所示,页面显示装置包括多媒体资源寻找识别模块100和多媒体播放器插入模块200.
多媒体资源寻找识别模块100用于在用户期望访问的目标页面中寻找多媒体资源,并识别多媒体资源的类型。
多媒体播放器插入模块200用于在找到多媒体资源的情况下,在目标页面中插入与多媒体资源的类型相对应的多媒体播放器。
图8示出了本申请的页面显示辅助装置的示意性方框图。
如图8所示,页面显示辅助装置包括多媒体资源判断模块300和资源识别配置项下发模块400。
多媒体资源判断模块300用于判断用户期望访问的目标页面是否包含多媒体资源。
资源识别配置项下发模块400用于在判定目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,资源识别配置项使得客户端能够在目标页面中寻找多媒体资源并识别多媒体资源的类型。
图9示出了本申请的页面显示装置的可以包括的可选结构的示意性方框图。
如图9所示,页面显示辅助装置还可以可选地包括区块划分模块500。区块划分模块500在判定目标页面包含多媒体资源的情况下,将
目标页面的内容划分成多个区块,并对区块进行标注,并将区块的标注信息发送给资源识别配置项下发模块。
如图9所示,页面显示辅助装置还可以可选地包括客户端程序和层叠样式表下发模块600。
客户端程序和层叠样式表下发模块600用于在判定目标页面包含多媒体资源的情况下,配置用来在目标页面中寻找多媒体资源并识别多媒体资源的类型的客户端程序和相关的层叠样式表,并向客户端下发所述客户端程序和层叠样式表。
至此,已完整地描述了本申请的页面显示装置和页面显示辅助装
置。另外,应该知道,本申请的页面显示辅助装置可以应用于本申请的页面显示装置,即本申请的页面显示装置还可以包括页面辅助装置中的相关结构。
上文中已经参考附图详细描述了根据本申请的页面显示方法、装置、系统以及页面显示辅助方法、装置。
综上,本申请公开的页面显示方法、装置、系统以及页面显示辅助方法、装置,通过一定程度的配置分享职责、简化算法的复杂度,从而性价比更高。基于本申请公开的页面显示方法、装置、系统以及页面显示辅助方法、装置,用户在浏览包含多媒体资源的页面时,不需要通过下载就可以在线欣赏视频、音乐、书籍等多媒体资源。
此外,根据本申请的方法还可以实现为一种计算机程序,该计算机程序包括用于执行本申请的上述方法中限定的上述各步骤的计算机程序代码指令。或者,根据本申请的方法还可以实现为一种计算机程序产品,该计算机程序产品包括计算机可读介质,在该计算机可读介质上存储有用于执行本申请的上述方法中限定的上述功能的计算机程序。本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。
其中,图10示出了根据本申请实施方式提供的计算设备的结构框图。该计算设备可以实施为各种类型的计算机装置,例如台式机、便携式计算机、平板电脑、智能手机、个人数据助理(PDA)、智能穿戴设备,或者其他类型的计算机装置,但是不限于任何特定形式。计算机可以包括处理模块100,存储子系统200,输入装置300、显示器400、网络接口500,以及总线600。
处理模块100可以是一个多核的处理器,也可以包含多个处理器。在一些实施例中,处理模块100可以包含一个通用的主处理器以及一个或多个特殊的协处理器,例如图形处理器(GPU)、数字信号处理器(DSP)等等。在一些实施例中,处理器100可以使用定制的电路实
现,例如特定用途集成电路(applicationspecificintegratedcircuit,ASIC)或者现场可编程逻辑门阵列(fieldprogrammablegatearrays,FPGA)。在一些实施方式中,处理模块100可以是类似的电路执行存储在自身上的可执行指令。在另外一些实施方式中,处理模块100可以执行存储在存储子系统200上的可执行指令。
存储子系统200可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理模块100或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储子系统200可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储子系统200可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、minSD卡、Micro-SD卡等等)、磁性软盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。在一些实施方式中,存储子系统200能够存储一个或多个能被处理模块100执行的软件程序或需要调用的资源文件,资源文件可以包含一些第三方库,包括但不限于音频库、视频库、2D图形库、3D图形库。
用户界面可以由一个或多个用户输入装置300、显示器400,和/或一个或多个其他用户输出设备提供。输入装置300可以包括用户向
计算机输入信号的装置,计算机可以解释这些信号包含有特定的用户请求或信息。在一些实施方式中,可以通过键盘向用户界面输入网址,显示输入网址对应的网页内容。在一些实施方式中,输入装置300可以包含一些或所有的键盘按钮、触摸屏、鼠标或其他定点设备、滚轮、点击轮、转盘、按键、开关、小型键盘、麦克风等等。
显示器400可以显示由计算机生成的图像,可以包括各种类型的图像设备,例如阴极射线管(CRT)、液晶显示器(LCD)、发光二极管(LED)(包括有机发光二极管(OLED))、投射系统等等与其他支持电子装置(例如DAC、ADC、信号处理器等等)的集合。在一些实施方式中,也可能额外提供其他用户输出设备,或者取代显示器400,例如信号灯、扬声器、触觉传感器、打印机等。
在一些实施方式中,用户界面可以通过图形用户界面提供。在显示器400中的某些区域定义一些可视的图形元素作为用户通过输入装置300选择的交互对象或者控制对象。例如,用户可以操作用户输入装置300移动屏幕上的指定位置输入网址,控制在显示器400上显示该网址对应的网页内容。在一些实施方式中,可以识别用户手势的触摸设备作为输入设备,这些手势可以但不必须与显示器300上的阵列相联系。
网络接口500为计算机提供声音和/或数据通讯功能。在一些实施方式中,网络接口500可以包括射频收发器来传递声音和/或数据(例如使用蜂窝式电话技术,例如3G、4G或EDGE、WIFI的数据网络技术)、GPS接受模块和/或其他模块。在一些实施方式中,网络接口500可以提供额外的无线网络连接或替代无线接口。网络接口500可以是硬件(例如天线、调制解调器、编解码器以及其他模拟和/或数字信号处理电路)和软件模块的结合。
总线600可以包括各种连接计算机内部各部件的系统、外部设备和芯片总线。例如总线600将处理装置100和存储子系统200连接,还可以连接输入装置300和显示器400。总线600也可以使得计算机通过
网络接口500与网络连接。在这种情况下,计算机可以作为多个联网计算机设备的一部分。计算机的任意或所有部件都可以在本申请的实施方式中协调使用。
一些实施方式中包含电子元件,例如微处理器、在计算机可读存储媒介中存储有计算机指令和数据的存储器。在具体实施方式部分描述的许多特征都可以通过执行存储在计算机可读存储媒介上的计算机指令的方法步骤实现。当这些计算机指令被执行,计算机处理单元完成指令的各种功能。程序指令或计算机编码的实施方式可以是机器码,例如使用计算机、电子元件或待解析器的微处理器编译其他高级语言得到的代码。
需要理解的是,计算机是示意性的。计算机可以具有其他没有具体描述的功能(例如移动通话、GPS、电源管理,一个或多个摄像头、各种用于连接外部设备的连接端口或附件等等)。进一步,此处对计算机100涉及的特定功能模块进行了描述,这些功能模块的描述是为了便于描述,而且也不意味着对功能部件特定的物理配置。而且,这些功能模块不需要与物理模块一一对应。模块可以被配置成用来完成各种操作,例如通过编程或设置合适的控制电路,模块也可能会根据初始设置重新被配置。本申请的实施例可以在各种设备包括电子设备中,通过使用硬件和软件的结合来实现。
本实施例还提供了一种非易失性可读存储介质,该存储介质中存储有一个或多个模块(programs),该一个或多个模块被应用在计算设备时,可以使得该计算设备执行如下步骤的指令(instructions):
在用户期望访问的目标页面中寻找多媒体资源,并识别所述多媒体资源的类型;在找到多媒体资源的情况下,在所述目标页面中插入与所述多媒体资源的类型相对应的多媒体播放器。
可选的,还包括:基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源。
可选的,所述URL规则包括有一个或多个URL地址的列表,所述
基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:获取所述目标页面的目标URL地址;判断所述目标URL地址与所述列表中的一个或多个URL地址是否存在匹配项;若是,则判断为所述目标页面是否包含多媒体资源。
可选的,所述URL规则包括预设地址格式,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:获取所述目标页面的标URL地址,所述目标URL地址具有对应的目标地址格式;判断所述目标地址格式与所述预设地址格式是否一致;若是,则判断为所述目标页面是否包含多媒体资源。
可选的,其中,由服务器判断所述目标页面是否包含多媒体资源,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器向客户端下发资源识别配置项,所述客户端响应于接收到所述资源识别配置项,在所述目标页面中寻找多媒体资源,并识别所述多媒体资源的类型。
可选的,其中,所述服务器向客户端下发资源识别配置项的步骤包括:所述服务器将所述资源识别配置项插入所述目标页面的页面文件的头部;所述服务器将包含有资源识别配置项的目标页面发送给所述客户端。
可选的,其中,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器将所述目标页面的内容划分成多个区块,并对所述区块进行标注,所述资源识别配置项包括所述区块的标注信息,所述客户端基于所述标注信息,识别所述多个区块,并按照预定优先级顺序在所述目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。
可选的,其中,所述多个区块包括下载链接区块、内容标题区块、页面标题区块、文本区块,所述客户端以内容标题区块、下载链接区块、页面标题区块、文本区块的预定优先级顺序,逐个区块地寻找所述多媒体资源。
可选的,其中,所述资源识别配置项还包括多媒体播放器插入位置,基于所述多媒体播放器插入位置,所述客户端在所述目标页面的相应位置插入与所述多媒体资源的类型相对应的多媒体播放器。
可选的,还包括:在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器配置客户端程序和相关的层叠样式表,并向所述客户端下发所述客户端程序和所述层叠样式表,所述客户端基于所述客户端程序和所述层叠样式表,执行所述在用户期望访问的目标页面中寻找多媒体资源并识别所述多媒体资源的类型的步骤。
本实施例提供的一种非易失性可读存储介质还可以使得该计算设备执行如下步骤的指令(instructions):
判断用户期望访问的目标页面是否包含多媒体资源;
在判定所述目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,所述资源识别配置项使得所述客户端能够在所述目标页面中寻找多媒体资源并识别所述多媒体资源的类型。
附图中的流程图和框图显示了根据本申请的多个实施例的系统和方法的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标记的功能也可以以不同于附图中所标记的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许
多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。
Claims (23)
- 一种页面显示方法,包括:在用户期望访问的目标页面中寻找多媒体资源,并识别所述多媒体资源的类型;在找到多媒体资源的情况下,在所述目标页面中插入与所述多媒体资源的类型相对应的多媒体播放器。
- 根据权利要求1所述的页面显示方法,还包括:基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源。
- 根据权利要求2所述的页面显示方法,所述URL规则包括有一个或多个URL地址的列表,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:获取所述目标页面的目标URL地址;判断所述目标URL地址与所述列表中的一个或多个URL地址是否存在匹配项;若是,则判断为所述目标页面是否包含多媒体资源。
- 根据权利要求2所述的页面显示方法,所述URL规则包括预设地址格式,所述基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源的步骤包括:获取所述目标页面的标URL地址,所述目标URL地址具有对应的目标地址格式;判断所述目标地址格式与所述预设地址格式是否一致;若是,则判断为所述目标页面是否包含多媒体资源。
- 根据权利要求2所述的页面显示方法,其中,由服务器判断所述目标页面是否包含多媒体资源,在所述服务器 判定所述目标页面包含多媒体资源的情况下,所述服务器向客户端下发资源识别配置项,所述客户端响应于接收到所述资源识别配置项,在所述目标页面中寻找多媒体资源,并识别所述多媒体资源的类型。
- 根据权利要求5所述的页面显示方法,其中,所述服务器向客户端下发资源识别配置项的步骤包括:所述服务器将所述资源识别配置项插入所述目标页面的页面文件的头部;所述服务器将包含有资源识别配置项的目标页面发送给所述客户端。
- 根据权利要求6所述的页面显示方法,其中,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器将所述目标页面的内容划分成多个区块,并对所述区块进行标注,所述资源识别配置项包括所述区块的标注信息,所述客户端基于所述标注信息,识别所述多个区块,并按照预定优先级顺序在所述目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。
- 根据权利要求7所述的页面显示方法,其中,所述多个区块包括下载链接区块、内容标题区块、页面标题区块、文本区块,所述客户端以内容标题区块、下载链接区块、页面标题区块、文本区块的预定优先级顺序,逐个区块地寻找所述多媒体资源。
- 根据权利要求8所述的页面显示方法,其中,所述资源识别配置项还包括多媒体播放器插入位置,基于所述多媒体播放器插入位置,所述客户端在所述目标页面的 相应位置插入与所述多媒体资源的类型相对应的多媒体播放器。
- 根据权利要求5所述的页面显示方法,还包括:在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器配置客户端程序和相关的层叠样式表,并向所述客户端下发所述客户端程序和所述层叠样式表,所述客户端基于所述客户端程序和所述层叠样式表,执行所述在用户期望访问的目标页面中寻找多媒体资源并识别所述多媒体资源的类型的步骤。
- 一种在服务器端执行的页面显示辅助方法,包括:判断用户期望访问的目标页面是否包含多媒体资源;在判定所述目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,所述资源识别配置项使得所述客户端能够在所述目标页面中寻找多媒体资源并识别所述多媒体资源的类型。
- 一种页面显示装置,包括:多媒体资源寻找识别模块,用于在用户期望访问的目标页面中寻找多媒体资源,并识别所述多媒体资源的类型;多媒体播放器插入模块,用于在找到多媒体资源的情况下,在所述目标页面中插入与所述多媒体资源的类型相对应的多媒体播放器。
- 一种页面显示辅助装置,包括:多媒体资源判断模块,用于判断用户期望访问的目标页面是否包含多媒体资源;资源识别配置项下发模块,用于在判定所述目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,所述资源识别配置项使得所述客户端能够在所述目标页面中寻找多媒体资源并识别所述多 媒体资源的类型。
- 一种页面显示系统,包括客户端,所述客户端响应于用户的页面访问请求,在用户期望访问的目标页面中寻找多媒体资源,并识别所述多媒体资源的类型,在所述客户端找到多媒体资源的情况下,所述客户端在所述目标页面中插入与所述多媒体资源的类型相对应的多媒体播放器。
- 根据权利要求14所述的页面显示系统,还包括服务器,其中,所述客户端或所述服务器基于所述目标页面的URL地址和预先设定的URL规则,判断所述目标页面是否包含多媒体资源。
- 根据权利要求15所述的页面显示系统,其中,所述客户端将用户的页面访问请求发送给所述服务器,由所述服务器判断所述目标页面是否包含多媒体资源,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器向客户端下发资源识别配置项,所述客户端响应于接收到所述资源识别配置项,在所述目标页面中寻找多媒体资源,并识别所述多媒体资源的类型。
- 根据权利要求16所述的页面显示系统,其中,所述服务器将所述资源识别配置项插入所述目标页面的页面文件的头部,并将包含有资源识别配置项的目标页面发送给所述客户端。
- 根据权利要求17所述的页面显示系统,其中,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器将所述目标页面的内容划分成多个区块,并对所述区块进行标注,所述资源识别配置项包括所述区块的标注信息,所述客户端基于所述标注信息,识别所述多个区块,并按照预定优先级顺序在所述目标页面的多个区块中寻找多媒体资源,并识别找到的多媒体资源的类型。
- 根据权利要求18所述的页面显示系统,其中,所述资源识别配置项还包括多媒体播放器插入位置,基于所述多媒体播放器插入位置,所述客户端在所述目标页面的相应位置插入与识别出的多媒体资源的类型相对应的多媒体播放器。
- 根据权利要求16所述的页面显示系统,其中,在所述服务器判定所述目标页面包含多媒体资源的情况下,所述服务器配置客户端程序和相关的层叠样式表,并向所述客户端下发所述客户端程序和所述层叠样式表,所述客户端基于所述客户端程序和所述层叠样式表,执行所述在用户期望访问的目标页面中寻找多媒体资源并识别所述多媒体资源的类型的操作。
- 一种计算设备,包括:一个或多个处理器;存储器;和一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块配置用于:在用户期望访问的目标页面中寻找多媒体资源,并识别所述多媒体资源的类型;在找到多媒体资源的情况下,在所述目标页面中插入与所述多媒体资源的类型相对应的多媒体播放器。
- 一种计算设备,包括:一个或多个处理器;存储器;和一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块配置用于:判断用户期望访问的目标页面是否包含多媒体资源;在判定所述目标页面包含多媒体资源的情况下,向客户端下发资源识别配置项,所述资源识别配置项使得所述客户端能够在所述目标页面中寻找多媒体资源并识别所述多媒体资源的类型。
- 一种在其上记录有用于执行权利要求1-11所述方法的程序的计算机可读存储介质。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US15/970,293 US10997360B2 (en) | 2015-11-05 | 2018-05-03 | Page display method, device, and system, and page display assist method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510750632.4 | 2015-11-05 | ||
CN201510750632.4A CN105589922A (zh) | 2015-11-05 | 2015-11-05 | 页面显示方法、装置、系统以及页面显示辅助方法、装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/970,293 Continuation US10997360B2 (en) | 2015-11-05 | 2018-05-03 | Page display method, device, and system, and page display assist method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017076315A1 true WO2017076315A1 (zh) | 2017-05-11 |
Family
ID=55929502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/104505 WO2017076315A1 (zh) | 2015-11-05 | 2016-11-04 | 页面显示方法、装置、系统以及页面显示辅助方法、装置 |
Country Status (3)
Country | Link |
---|---|
US (1) | US10997360B2 (zh) |
CN (1) | CN105589922A (zh) |
WO (1) | WO2017076315A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582899A (zh) * | 2018-10-26 | 2019-04-05 | 平安科技(深圳)有限公司 | 页面加载方法、装置、计算机设备及存储介质 |
CN112925999A (zh) * | 2019-12-05 | 2021-06-08 | 北京沃东天骏信息技术有限公司 | 数据处理方法、数据存储方法、服务器和客户端 |
CN113761442A (zh) * | 2021-08-10 | 2021-12-07 | 远光软件股份有限公司 | 一种页面内容审核方法、装置、设备以及存储介质 |
CN114238673A (zh) * | 2021-12-14 | 2022-03-25 | 北京字跳网络技术有限公司 | 内容展示方法、装置、设备及存储介质 |
WO2023072296A1 (zh) * | 2021-11-01 | 2023-05-04 | 北京字跳网络技术有限公司 | 多媒体信息处理方法、装置、电子设备和存储介质 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105589922A (zh) * | 2015-11-05 | 2016-05-18 | 广州市动景计算机科技有限公司 | 页面显示方法、装置、系统以及页面显示辅助方法、装置 |
CN108287918B (zh) * | 2018-02-13 | 2020-07-07 | Oppo广东移动通信有限公司 | 基于应用页面的音乐播放方法、装置、存储介质和电子设备 |
US11599325B2 (en) | 2019-01-03 | 2023-03-07 | Bluebeam, Inc. | Systems and methods for synchronizing graphical displays across devices |
CN111737611B (zh) * | 2019-05-23 | 2024-07-16 | 北京京东尚科信息技术有限公司 | 统计页面访问时长的方法、装置、客户端及电子设备 |
CN112199524A (zh) * | 2020-09-29 | 2021-01-08 | 北京字节跳动网络技术有限公司 | 多媒体资源匹配及展示方法、装置、电子设备和介质 |
CN113656693A (zh) * | 2021-08-17 | 2021-11-16 | 上海哔哩哔哩科技有限公司 | 资源获取方法及装置 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102929971A (zh) * | 2012-10-15 | 2013-02-13 | 长春指南针科技有限公司 | 一种多媒体信息播放方法和系统 |
CN103577479A (zh) * | 2012-08-06 | 2014-02-12 | 腾讯科技(深圳)有限公司 | 网页内容显示方法及系统 |
US20140325323A1 (en) * | 2013-04-28 | 2014-10-30 | Tencent Technology (Shenzhen) Company Limited | Online video playing method and apparatus and computer readable medium |
CN104572953A (zh) * | 2014-12-29 | 2015-04-29 | 北京奇虎科技有限公司 | 一种基于搜索结果页面触发音乐播放的方法及装置 |
CN104866512A (zh) * | 2014-02-26 | 2015-08-26 | 腾讯科技(深圳)有限公司 | 提取网页内容的方法、装置及系统 |
CN105589922A (zh) * | 2015-11-05 | 2016-05-18 | 广州市动景计算机科技有限公司 | 页面显示方法、装置、系统以及页面显示辅助方法、装置 |
Family Cites Families (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6625581B1 (en) | 1994-04-22 | 2003-09-23 | Ipf, Inc. | Method of and system for enabling the access of consumer product related information and the purchase of consumer products at points of consumer presence on the world wide web (www) at which consumer product information request (cpir) enabling servlet tags are embedded within html-encoded documents |
US7210093B1 (en) | 2000-03-09 | 2007-04-24 | International Business Machines Corporation | Method, system, and program for displaying pages downloaded from over a network in an application window |
US6832220B1 (en) | 2000-08-03 | 2004-12-14 | Microsoft Corporation | Method and apparatus for file searching, accessing file identifiers from reference page |
US8707185B2 (en) | 2000-10-10 | 2014-04-22 | Addnclick, Inc. | Dynamic information management system and method for content delivery and sharing in content-, metadata- and viewer-based, live social networking among users concurrently engaged in the same and/or similar content |
US20060091203A1 (en) | 2001-05-04 | 2006-05-04 | Anton Bakker | Systems and methods for the identification and presenting of information |
AU2003210591A1 (en) | 2002-01-18 | 2003-09-04 | Sales Automation Support, Inc. | Mobile marketing system |
US7263688B2 (en) * | 2002-09-23 | 2007-08-28 | Realnetworks, Inc. | Method and apparatus for dynamic data-type management |
US7860820B1 (en) * | 2005-05-31 | 2010-12-28 | Vignette Software, LLC | System using content generator for dynamically regenerating one or more fragments of web page based on notification of content change |
US8484308B2 (en) | 2004-07-02 | 2013-07-09 | MatrixStream Technologies, Inc. | System and method for transferring content via a network |
US8156116B2 (en) | 2006-07-31 | 2012-04-10 | Ricoh Co., Ltd | Dynamic presentation of targeted information in a mixed media reality recognition system |
WO2006093394A1 (en) * | 2005-03-04 | 2006-09-08 | Chutnoon Inc. | Server, method and system for providing information search service by using web page segmented into several information blocks |
US20070094691A1 (en) | 2005-10-24 | 2007-04-26 | Gazdzinski Robert F | Method and apparatus for on-demand content transmission and control over networks |
US7757289B2 (en) * | 2005-12-12 | 2010-07-13 | Finjan, Inc. | System and method for inspecting dynamically generated executable code |
US8024762B2 (en) | 2006-06-13 | 2011-09-20 | Time Warner Cable Inc. | Methods and apparatus for providing virtual content over a network |
US8418217B2 (en) | 2006-09-06 | 2013-04-09 | Verizon Patent And Licensing Inc. | Systems and methods for accessing media content |
US7941092B2 (en) | 2006-11-22 | 2011-05-10 | Bindu Rama Rao | Media distribution server that presents interactive media to a mobile device |
US8041781B2 (en) | 2007-03-16 | 2011-10-18 | Yahoo! Inc. | System and method for providing web system services for storing data and context of client applications on the web |
US8756293B2 (en) | 2007-04-23 | 2014-06-17 | Nholdings Sa | Providing a user with virtual computing services |
US8055708B2 (en) | 2007-06-01 | 2011-11-08 | Microsoft Corporation | Multimedia spaces |
US8275681B2 (en) * | 2007-06-12 | 2012-09-25 | Media Forum, Inc. | Desktop extension for readily-sharable and accessible media playlist and media |
US20090089448A1 (en) | 2007-09-28 | 2009-04-02 | David Sze | Mobile browser with zoom operations using progressive image download |
US9594730B2 (en) * | 2010-07-01 | 2017-03-14 | Yahoo! Inc. | Annotating HTML segments with functional labels |
US20140207911A1 (en) * | 2013-01-22 | 2014-07-24 | James Kosmach | System and method for embedding multimedia controls and indications in a webpage |
CN104284250A (zh) * | 2013-07-12 | 2015-01-14 | 贝壳网际(北京)安全技术有限公司 | 一种视频处理方法、装置、服务器和客户端设备 |
US20150163268A1 (en) * | 2013-12-11 | 2015-06-11 | Lexmark International, Inc. | System and Methods for Dynamically Loading a Compatible Media Player Based on a User's Environment |
CN104834646A (zh) * | 2014-02-11 | 2015-08-12 | 腾讯科技(深圳)有限公司 | 网页显示方法、客户端及系统 |
CN104469467B (zh) * | 2014-12-10 | 2018-05-04 | 北京奇虎科技有限公司 | 一种浏览器客户端中进行视频播放的方法、装置和系统 |
-
2015
- 2015-11-05 CN CN201510750632.4A patent/CN105589922A/zh active Pending
-
2016
- 2016-11-04 WO PCT/CN2016/104505 patent/WO2017076315A1/zh active Application Filing
-
2018
- 2018-05-03 US US15/970,293 patent/US10997360B2/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103577479A (zh) * | 2012-08-06 | 2014-02-12 | 腾讯科技(深圳)有限公司 | 网页内容显示方法及系统 |
CN102929971A (zh) * | 2012-10-15 | 2013-02-13 | 长春指南针科技有限公司 | 一种多媒体信息播放方法和系统 |
US20140325323A1 (en) * | 2013-04-28 | 2014-10-30 | Tencent Technology (Shenzhen) Company Limited | Online video playing method and apparatus and computer readable medium |
CN104866512A (zh) * | 2014-02-26 | 2015-08-26 | 腾讯科技(深圳)有限公司 | 提取网页内容的方法、装置及系统 |
CN104572953A (zh) * | 2014-12-29 | 2015-04-29 | 北京奇虎科技有限公司 | 一种基于搜索结果页面触发音乐播放的方法及装置 |
CN105589922A (zh) * | 2015-11-05 | 2016-05-18 | 广州市动景计算机科技有限公司 | 页面显示方法、装置、系统以及页面显示辅助方法、装置 |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582899A (zh) * | 2018-10-26 | 2019-04-05 | 平安科技(深圳)有限公司 | 页面加载方法、装置、计算机设备及存储介质 |
CN112925999A (zh) * | 2019-12-05 | 2021-06-08 | 北京沃东天骏信息技术有限公司 | 数据处理方法、数据存储方法、服务器和客户端 |
CN113761442A (zh) * | 2021-08-10 | 2021-12-07 | 远光软件股份有限公司 | 一种页面内容审核方法、装置、设备以及存储介质 |
CN113761442B (zh) * | 2021-08-10 | 2024-01-19 | 远光软件股份有限公司 | 一种页面内容审核方法、装置、设备以及存储介质 |
WO2023072296A1 (zh) * | 2021-11-01 | 2023-05-04 | 北京字跳网络技术有限公司 | 多媒体信息处理方法、装置、电子设备和存储介质 |
CN114238673A (zh) * | 2021-12-14 | 2022-03-25 | 北京字跳网络技术有限公司 | 内容展示方法、装置、设备及存储介质 |
CN114238673B (zh) * | 2021-12-14 | 2024-06-11 | 北京字跳网络技术有限公司 | 内容展示方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US10997360B2 (en) | 2021-05-04 |
CN105589922A (zh) | 2016-05-18 |
US20180253406A1 (en) | 2018-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017076315A1 (zh) | 页面显示方法、装置、系统以及页面显示辅助方法、装置 | |
US10122839B1 (en) | Techniques for enhancing content on a mobile device | |
WO2020063019A1 (zh) | 信息处理方法、装置、存储介质、电子设备及系统 | |
US10025758B2 (en) | Support for non-native file types in web application environment | |
KR102006396B1 (ko) | 브라우징 액티비티에 기초하여 정합 애플리케이션을 식별하는 기법 | |
US9342233B1 (en) | Dynamic dictionary based on context | |
US10346523B1 (en) | Content synchronization across devices | |
US20120084373A1 (en) | Computer device for reading e-book and server for being connected with the same | |
US20140201178A1 (en) | Generation of related content for social media posts | |
US20100083102A1 (en) | Online Content Editing of Dynamic Websites | |
TW201443670A (zh) | 提供不計內容格式及類型之內容可存取性的虛擬庫 | |
US20160321225A1 (en) | Transfer of content between documents of different storage types | |
US20150058713A1 (en) | Method and apparatus for sharing media content and method and apparatus for displaying media content | |
CN105745646A (zh) | 本机应用程序搜索结果 | |
US20140164366A1 (en) | Flat book to rich book conversion in e-readers | |
US9292321B2 (en) | System, method and computer-readable recording medium for synchronous script lazy loading | |
US9223870B2 (en) | Decoration of search results by third-party content providers | |
US20180150217A1 (en) | Search method, client terminal, and graphical user interface | |
TWI609280B (zh) | 在電子閱讀器環境中基於內容及物件元資料的搜尋 | |
US20160315997A1 (en) | File transfer method, device, and system | |
WO2013106424A1 (en) | Method and apparatus for displaying suggestions to a user of a software application | |
US20140156626A1 (en) | Embedded externally hosted content in search result page | |
US11539800B2 (en) | Electronic device and control method therefor | |
KR20150046862A (ko) | 클라우드 컴퓨팅 기반의 데이터 제공 방법, 이를 위한 시스템 및 장치 | |
US20180341717A1 (en) | Providing instant preview of cloud based file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16861583 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16861583 Country of ref document: EP Kind code of ref document: A1 |