WO2015062539A1 - 获取及加载影音文件信息的方法和装置 - Google Patents

获取及加载影音文件信息的方法和装置 Download PDF

Info

Publication number
WO2015062539A1
WO2015062539A1 PCT/CN2014/090010 CN2014090010W WO2015062539A1 WO 2015062539 A1 WO2015062539 A1 WO 2015062539A1 CN 2014090010 W CN2014090010 W CN 2014090010W WO 2015062539 A1 WO2015062539 A1 WO 2015062539A1
Authority
WO
WIPO (PCT)
Prior art keywords
video file
address
video
webpage
audio
Prior art date
Application number
PCT/CN2014/090010
Other languages
English (en)
French (fr)
Inventor
李锦伟
任寰
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201310535484.5A external-priority patent/CN103823829B/zh
Priority claimed from CN201310538290.0A external-priority patent/CN103593423A/zh
Priority claimed from CN201310538628.2A external-priority patent/CN103605696B/zh
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2015062539A1 publication Critical patent/WO2015062539A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method and apparatus for acquiring video file information, and a method and apparatus for loading video file information in a browser.
  • users can search for audio and video files on the Internet. Users can search for audio and video files through Baidu, Google or other search engines. Users can enter keywords in search engines and then click search options to search for audio and video files. The server will return a large number of files. The search results are presented to the user.
  • the search results returned by the server are generally the link addresses of some audio-visual websites.
  • the audio-visual website corresponding to the link address of the video-visual website is entered. If the user wants to obtain a certain video file, the keyword of the video file to be searched is required to be input again in the search interface provided by the video website, so that the video file to be searched can be obtained from the video website.
  • the video website since the video website is obtained according to a keyword searched by a search engine, the video website includes the keyword, but the information including the keyword in the video website may be one.
  • the video file may also be a text file. Therefore, the user may not be able to obtain the video file to be searched from the video website.
  • the existing technology has problems: the search process is cumbersome, complicated, and time consuming; the search results are not intuitive and the accuracy is low.
  • the present invention has been made in order to provide a method and apparatus for acquiring video file information that overcomes the above problems or at least partially solves the above problems, and a method and apparatus for loading video file information in a browser.
  • a method for loading video file information in a browser includes: sending a search request to a background server, wherein the search request includes a search a video file keyword; receiving a video file search result returned by the background server; wherein the video file search result includes: web search result information corresponding to the video file keyword and the webpage search result information corresponding webpage a link address of the playable video file included in the browser; loading and displaying the webpage search result information corresponding to the video file keyword and the playable video included in the webpage corresponding to the webpage search result information in association with the browser side The link address of the file.
  • an apparatus for loading video file information in a browser includes: a sending module configured to send a search request to a background server, wherein the search request includes a video file key for searching a first receiving module configured to receive a video file search result returned by the background server; wherein the video file search result includes: webpage search result information corresponding to the video file keyword and the webpage search result The information corresponding to the link address of the playable video file included in the webpage; the first loading display module is configured to load and display the webpage search result information corresponding to the video file keyword in association with the browser side; the second loading display And a module configured to load and display a link address of the playable video file included in the webpage corresponding to the webpage search result information in association with the browser side.
  • a method for acquiring video file information includes: receiving a search request, wherein the search request includes: a video file key for searching and a set direct play video file. a webpage search result information corresponding to the video file keyword; the video file address corresponding to the video file indicated by the video file keyword that satisfies the set condition of directly playing the video file; The address of the video file includes: a link address of the playable video file included in the webpage search result information corresponding to the webpage; and the webpage search result information corresponding to the acquired videofile keyword and the webpage search result information The link address of the playable video file contained in the web page is returned to the browser.
  • an apparatus for obtaining a video file address including: a second receiving module configured to receive a search request, wherein the search request includes: a video file keyword and a setting for searching a condition for directly playing the video file; the first obtaining module is configured to obtain webpage search result information corresponding to the video file keyword; and the second acquiring module is configured to acquire a condition for directly playing the video file that satisfies the setting And the video file address corresponding to the video file indicated by the video file keyword; wherein the video file address includes: a link address of the playable video file included in the webpage corresponding to the webpage search result information; The back module is configured to return the obtained webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage to the browser.
  • a method for loading video file information in another browser comprising: receiving input video file search data, identifying a video file keyword from the video file search data; determining and identifying Whether the audio-visual file keyword hits the audio-visual file vocabulary, wherein the audio-visual file vocabulary indicates a correspondence between the audio-visual file keyword supported by the at least one background server and the keyword identifier; when the audio-visual file keyword hits In the audio-visual file vocabulary, the keyword identifier of the video file keyword is queried from the audio-visual file vocabulary, and the keyword identifier is sent to a background server for information query; and the receiving back-end server includes Playing the query result of the link address of the audio and video file, popping up an interactive window, displaying the query result in the interactive window; and when receiving the audio and video file playing instruction sent to the interactive window, loading the playable video file Link the audio and video files corresponding to the address, and call the corresponding audio and video file playback plugin Put the video file.
  • an apparatus for playing a web audio file includes: an identification module configured to receive input video file search data, and to identify a video file keyword from the video file search data
  • the determining module is configured to determine whether the recognized video file keyword hits the audio-visual file vocabulary, wherein the audio-visual file vocabulary indicates a correspondence between the video file keyword supported by the at least one background server and the keyword identifier;
  • a query module configured to: when the video file keyword hits the audio-visual file vocabulary, query a keyword identifier of the video file keyword from the audio-visual file vocabulary, and send the keyword identifier to the background
  • the server performs information query;
  • the display module is configured to receive a query result including a link address of the playable video file returned by the background server, pop up an interaction window, and display the query result in the interaction window;
  • the play module is configured to be Receiving a video file playback instruction sent to the interactive window,
  • the carrier can play audio and video files link address corresponding to the audio and video files, and invokes the corresponding video file play
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform said party Any one or more of the laws.
  • a computer readable medium storing a computer program as described above.
  • the webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage are loaded and displayed in association with the browser side.
  • the user can find the link address of the playable video file, and the user can directly view the video file by clicking the option corresponding to the link address, and the operation is simple, from issuing the search request to obtaining Search results take a short time.
  • Searching for the link address of the playable audio and video file is directly displayed on the browser side, and the performance is intuitive.
  • the link address of the playable audio and video file corresponds to the video file that the user searches for, and the obtained search result has high accuracy.
  • FIG. 1 is a flowchart of a method for loading video file information in a browser in a first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for loading video file information in a browser in a second embodiment of the present invention
  • FIG. 3 is a schematic diagram of loading and displaying search results on the browser side in the embodiment shown in FIG. 2;
  • FIG. 4 is a schematic diagram of still loading and displaying search results on the browser side in the embodiment shown in FIG. 2;
  • FIG. 5 is a flowchart of a method for loading video file information in a browser in a third embodiment of the present invention.
  • FIG. 6 is a flow chart of playing a video file in the embodiment shown in FIG. 5;
  • FIG. 7 is a flowchart of a method for loading video file information in a browser according to a fourth embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for obtaining an address of a video file in a fifth embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for obtaining an address of a video file in a sixth embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for loading video file information in a browser in a seventh embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an interaction window in the embodiment shown in FIG. 10;
  • Figure 12 is a schematic illustration of another interactive window in the embodiment of Figure 10;
  • FIG. 13 is a flowchart of a method for loading video file information in a browser in an eighth embodiment of the present invention.
  • FIG. 14 is a structural block diagram of an apparatus for loading video and audio file information in a browser in a ninth embodiment of the present invention.
  • 15 is a structural block diagram of an apparatus for acquiring an address of a video and audio file in a tenth embodiment of the present invention.
  • Figure 16 is a block diagram showing the structure of a link address selection in the embodiment shown in Figure 15;
  • 17 is a structural block diagram of an apparatus for loading video and audio file information in a browser in an eleventh embodiment of the present invention.
  • FIG. 18 is a structural block diagram of an apparatus for loading video and audio file information in a browser according to a twelfth embodiment of the present invention.
  • Figure 19 is a schematic block diagram showing a computing device for performing the method according to the present invention.
  • Fig. 20 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the method for loading audio and video file information in a browser includes:
  • step 102 a search request is sent to the background server.
  • the search request includes a video file keyword for searching.
  • Step 104 Receive a video file search result returned by the background server.
  • the video file search result may include: a webpage search result information corresponding to the video file keyword and a link address of the playable video file included in the webpage search result information corresponding webpage.
  • the link address of the playable video file is an address at which the video file can be directly played.
  • step 106 the webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage are loaded and displayed in association with the browser side.
  • a search result page may be loaded on the browser side, and the webpage search result information corresponding to the video file keyword and the webpage search result information corresponding webpage may be loaded and displayed on the search result page.
  • a method for loading video file information in a browser loads and displays a web page corresponding to the video file keyword directly on the browser side according to the result returned by the background server.
  • the search result information and the link address of the playable video file included in the webpage corresponding to the webpage search result information are intuitive.
  • the link address of the video and audio file can be directly displayed on the browser side, and the other link addresses that are not the audio and video files are not displayed to the user, so the obtained search result has high accuracy.
  • the user after the user inputs the keyword once, the user can find the link address of the playable video file, and the operation is simple, and the time from issuing the search request to obtaining the search result is short.
  • FIG. 2 there is shown a flow chart of a method of loading video file information in a browser in a second embodiment of the present invention.
  • the method for loading audio and video file information in the browser includes:
  • step 202 the browser sends a search request to the background server.
  • the search request includes a video file keyword for searching.
  • Step 204 The browser receives the video file search result returned by the background server.
  • the video file search result includes: a web search corresponding to the video file keyword
  • the download result information and the webpage search result information correspond to a link address of the playable video file included in the webpage.
  • Step 206 Load and display webpage search result information corresponding to the video file keyword in association with the browser side.
  • the webpage search result information may include: a first level to an N-1th video file address, where N is a positive integer greater than or equal to 3, and the first level to the Nth The level 1 video file address is the parent address of the link address of the playable video file.
  • the step 206 can include the following sub-steps:
  • Sub-step 2062 the browser loads and displays the webpage corresponding to the first-level video file address on the browser side according to the first-level video file address.
  • Sub-step 2064 the browser selects any one or more video file addresses corresponding to the first-level video file address from the second-level to N-1th video file addresses.
  • Sub-step 2066 The browser generates a link corresponding to the selected one or more video file addresses in the webpage corresponding to the first-level video file address.
  • Step 208 The link address of the playable video file included in the webpage corresponding to the webpage search result information is loaded and displayed in association with the browser side.
  • the step 208 may include the following sub-steps:
  • Sub-step 2082 the browser loads the video playback option corresponding to the video file information according to the video file information indicated by the link address of the playable video file.
  • the video file information may include: episode information of the audio and video file, definition information of the audio and video file, format information of the audio and video file, integrity information of the audio and video file, version information of the audio and video file, and a plug-in required for playing the audio and video file. At least one of the information.
  • the video play option corresponding to the video file information may be loaded on the webpage corresponding to the first-level video file address, and the video play option may include: episode option, definition option, integrity At least one of the options and playback format options.
  • Sub-step 2084 the browser displays the video playback option in the webpage search result information corresponding webpage.
  • FIG. 3 it is a schematic diagram of loading and displaying search results on the browser side in the embodiment shown in FIG. 2.
  • the implementation flow of the step 206 and the step 208 will be described in detail below with reference to FIG. 3.
  • the browser receives search results returned by the backend server based on the keyword "crazy primitive".
  • the search result page shown in FIG. 3 is loaded and generated. Any one or more of the video file addresses of the second to N-1th video file addresses are displayed in a link form on the search result page, such as the link address 1, the link address 2, and the link address in the figure. 3, link address 4 and link address 5 and so on.
  • the video and audio playback options are displayed corresponding to the link address 1, the link address 2, the link address 3, the link address 4, and the link address 5.
  • the link address 1 has a play option 1, a play option 2, and a play option 3;
  • the link address 2 has a play option 4, a play option 5, a play option 6 and a play option 7.
  • the video file can be directly played;
  • the web page corresponding to the link address can be opened to view detailed information of the video file, for example, the actor information and movie review of the video file.
  • the link address and the play option may be displayed on the search result page by using a title form, and the title content may include video file information or other attribute information of the video file.
  • FIG. 4 it is another schematic diagram of loading and displaying search results on the browser side in the embodiment shown in FIG. 2.
  • the search result page is loaded according to the above-mentioned level 1 video file address returned by the background server. Display the link address in the form of a title, and display the audio and video playback options in the BD Complete Set, QMV, Preemptive, Full, DVD, HD HD, DVDSCR, TS or Blu-ray options.
  • the method for loading video and audio file information in a browser can directly play a video and audio file after clicking the video and audio playback option, thereby reducing the search and click operation; at the same time, the browser automatically Screening and obtaining audio and video files that can be directly played and displayed to the user, avoiding manual screening operations, improving the accuracy of search results and saving time.
  • the method for loading audio and video file information in the browser according to the embodiment of the present invention provides various types of audio and video playback options for users to select, and the search results are rich and diverse. The user can intuitively select the video file that meets the requirements according to the information displayed by the video playback option.
  • the method for loading video file information in the browser may include:
  • Step 502 Send a search request to the background server.
  • the search request includes a video file keyword for searching.
  • Step 504 Receive a video file search result returned by the background server.
  • the video file search result includes: a webpage search result information corresponding to the video file keyword and a link address of the playable video file included in the webpage search result information corresponding webpage.
  • Step 506 The webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage are loaded and displayed in association with the browser side.
  • Step 508 When the link address of the playable video file loaded and displayed on the browser side is triggered, load a built-in webpage, enter a video mode of the browser, and play a video file that matches the search request.
  • the step 508 may include the following sub-steps:
  • Sub-step 5082 generating a core web address according to the link address of the playable video file.
  • the core web address includes: a video mode startup address and a link address of the playable video file.
  • the core address may further include a virtual address.
  • the core URL includes: an audio and video mode activation address, a link address and a virtual address of the playable video file as an example.
  • Sub-step 5084 loading a built-in webpage, and entering an address into the browser's audio and video mode according to the video mode.
  • Sub-step 5086 the virtual address is displayed in the address bar of the browser.
  • the real video file address may be displayed in the address bar of the browser, or other information or address set according to need, such as a default address.
  • Sub-step 5088 playing the video file matching the search request directly in the video mode according to the link address of the playable video file.
  • the core website may further include: plug-in information for playing the video file.
  • the sub-step 5088 may include:
  • Sub-step 602 according to the plug-in information for playing the video file, calling a play plug-in for playing the video file.
  • Sub-step 604 playing and playing directly in the video mode using the called play plugin Search for video files that match the request.
  • the method for loading audio and video file information in the browser of the embodiment of the present invention provides a video and audio mode for playing a searched video and audio file, and in the audio and video mode, a play plugin that satisfies the playing of the audio and video file can be called.
  • the playing of the video file avoids the problem that the playing plug-in in the webpage does not support playing the video file when the video file is played in the webpage mode.
  • the method for loading video file information in the browser may include:
  • step 702 a search request is sent to the background server.
  • the search request includes a video file keyword for searching.
  • Step 704 Receive a video file search result returned by the background server.
  • the video file search result includes: a webpage search result information corresponding to the video file keyword and a link address of the playable video file included in the webpage search result information corresponding webpage.
  • Step 706 The webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage are loaded and displayed in association with the browser side.
  • Step 708 When the link address of the playable video file loaded and displayed on the browser side is triggered, load a built-in webpage, enter a video mode of the browser, and play a video file that matches the search request.
  • At least one of the following options may be loaded in the browser webpage in the audio and video mode: sending to an option, scanning a QR code option, viewing an original webpage option, a search option, and a cloud cache option. And download options.
  • step 710 is performed, that is, the link address of the playable video file is sent to the mobile terminal.
  • step 712 is performed, that is, generating a two-dimensional code according to the link address of the playable video file.
  • step 714 is performed, that is, the parent address of the link address of the playable video file is loaded and displayed on the browser side.
  • step 716 is performed, that is, in the video mode, a search request is sent to the background server.
  • the user can directly input a keyword in a browser webpage in the audio and video mode, and then trigger a search option, and the browser directly sends the keyword input by the user to the background server in the audio and video mode to perform a video file search.
  • step 718 is executed to download the video file offline cache that matches the search request to the cloud disk.
  • step 720 is performed, that is, downloading the video file that matches the search request; and loading a download built-in page, displaying the downloading and downloading in the download built-in page And searching for the video file that matches the search request; and/or displaying the downloaded video file that matches the search request in the download built-in page.
  • the download built-in page can include three areas: all tasks, downloading tasks, and downloading completed tasks.
  • the video file that is being downloaded and matched with the search request may be displayed in the downloading task area, and the video file that has been downloaded and matched with the search request may be displayed in the download completion task area, and may be in all task areas.
  • a video file that matches the search request being downloaded, a video file that has been downloaded that matches the search request, and a video file that is to be downloaded that matches the search request are displayed.
  • the browser webpage in the audio and video mode may also be loaded with a playlist, a hotcast recommendation, and a play recording option.
  • the method for loading the video file information in the browser may further include the following steps:
  • Step 722 Load a link address of the playable video file in the playlist, and display a video file corresponding to the link address of the playable video file.
  • Step 724 Load a link address of the video file of the network hot broadcast in the hot broadcast recommendation, and display a video file corresponding to the link address of the video file that is broadcasted by the network.
  • Step 726 Save the play record of the video file that matches the search request.
  • step 728 is performed, that is, loading a play record built-in page, and displaying the play record in the play record built-in page.
  • the method for loading audio and video file information in the browser of the embodiment of the present invention implements the provision of video resources supported by a plurality of play plugins in the browser, and is an address link of the video file that can be directly played. It can be switched to the theater mode for playback, saving search time and improving the accuracy of search results.
  • a plurality of options are loaded in the browser webpage in the audio and video mode for the user to select, which improves user interactivity.
  • the method for obtaining an address of a video file may include:
  • Step 802 receiving a search request.
  • the search request includes: a video file keyword for searching and a set condition for directly playing the video file.
  • Step 804 Obtain webpage search result information corresponding to the video file keyword.
  • Step 806 Acquire a video file address corresponding to the video file indicated by the video file keyword that satisfies the condition of the set direct play video file.
  • the video file address may include: a link address of the playable video file included in the webpage corresponding to the webpage search result information.
  • the address of the video file that matches the keyword is stored in the server.
  • Step 808 Return the obtained webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage to the browser.
  • the method for obtaining the address of the video file directly obtains the link address of the playable video file that can directly play the video file directly in the background server, and the search efficiency is high and the time is short.
  • the search results are highly accurate.
  • the method for obtaining an address of a video file may include:
  • step 902 the server receives the search request.
  • the search request includes: a video file keyword for searching and a set condition for directly playing the video file.
  • Step 904 The server acquires webpage search result information corresponding to the video file keyword.
  • Step 906 The server acquires a video file address corresponding to the video file indicated by the video file keyword that satisfies the condition of the set direct play video file.
  • the video file address may include: a link address of the playable video file included in the webpage corresponding to the webpage search result information.
  • the video file address may further include: a first level to an N-1th video file address, and N is a positive integer greater than or equal to 3.
  • the step 906 can include the following sub-steps:
  • Sub-step 9062 the server acquires a first-level video file address that matches the video file indicated by the video file keyword.
  • Sub-step 9064 the server acquires the second to N-1th video and audio file addresses corresponding to the first-level video file address; and acquires the next-level sub-address of the N-1th audio-video file, The next sub-address of the N-1th video file is the N-th video file address.
  • the server stores the first-level video file address corresponding to the video file keyword, and according to the crawler program, the server can obtain the second to the second corresponding to the first-level video file address. N-level video file address.
  • Sub-step 9066 the server selects, from the Nth-level video file address, a video file address that satisfies the condition of the set direct play video file, as a link of the playable video file included in the webpage search result information corresponding webpage. address.
  • the condition for directly playing the video file includes the information of the plug-in that directly plays the video file.
  • the step 9066 may include the following sub-steps:
  • Sub-step 90662 the server traverses the file object model DOM tree node of the web page corresponding to the Nth-level video file address, and acquires node information of the DOM tree node.
  • Sub-step 90664 the server filters the node information of the information of the plug-in that satisfies the set direct play video file from the node information of the DOM tree node.
  • Sub-step 90666 the server determines the video file address corresponding to the filtered node information as the link address of the playable video file.
  • the traversal operation is performed by traversing a video element that can be directly played in a browser side QVOD plug-in, a Baidu audio and video plug-in, a Flash plug-in, and/or other playing plug-ins, and obtains corresponding audio-visual elements.
  • the file address, and the obtained video file address is the link address of the playable video file.
  • the node information that satisfies the information of the set plug-in that directly plays the video file may be an ⁇ object> element under the browser, or may be a ⁇ video> element used in chrome.
  • Step 908 The server returns the obtained webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage to the browser.
  • the method for obtaining the address of the video file can directly identify and obtain the address of the video file that can be directly played in the background server, thereby reducing the manual search operation process of the user and saving time.
  • the search result satisfies the set condition of directly playing the video file, and the obtained search result has high accuracy.
  • the method for loading audio and video file information in the browser includes the following steps 1002 to 1010:
  • Step 1002 Receive input video file search data, and identify a video file keyword from the video file search data.
  • all video file search data input by the user received by the browser for example, a search keyword included in the webpage including the content of the video file, a search keyword received in the address bar, and a search term received in the search bar, It is possible to perform operations for identifying video file keywords.
  • a method for identifying a video file keyword from video file search data includes extracting a search keyword and filtering a portion of the search keyword that is not related to the content of the video file. For example, when the browser accesses the URLs baidu.com, google.com.hk, soso.com, youdao.com, sogou.com, yahoo.cn, cn.bing.com, jike.com, so.360.
  • Cn extract search keywords through the search engine; filter out the following parts of the keyword: online, watch, Baidu, fast broadcast, QVOD, HD, version, download, video, BD, DVD, complete, HD, TS, preempt , movies, audio and video files, complete works, tv, etc., and words that are not related to the content of audio and video files.
  • Step 1004 Determine whether the recognized video file keyword hits the audio-visual file vocabulary.
  • the audio-visual file vocabulary indicates a correspondence between a video file keyword supported by at least one back-end server and a keyword identifier.
  • the audio-visual file vocabulary is generated based on information of a video file obtained from at least one background server, including a video file keyword and a keyword identifier of the video file keyword.
  • the video file keyword is "101 marriage proposal" and the keyword identifier is "2072".
  • the method for creating and maintaining a video file vocabulary is to acquire information of a video file from at least one background server, thereby creating and maintaining a vocabulary of the video file.
  • the background server as the video file content server such as the QVOD server as an example
  • the background server extracts the val value by reading the QVOD video file keyword interface: http://qbho.kuaibo.com/get/QvodSearch/ (eg, The keyword identifier), the id value, and then remove the non-video file keywords in the keyword, thereby creating a video file vocabulary.
  • the audio-visual file vocabulary has an automatic update mechanism and can be updated periodically.
  • Determining whether the recognized video file keyword hits the audio-visual file vocabulary includes: receiving the audio-visual file vocabulary sent by the background server and saving to the local, determining whether the recognized video file keyword hits the saved local audio-visual file vocabulary; Or, the recognized video file keyword is sent to the background server, and the background server compares the video file keyword with the video file vocabulary in the background server, and determines the recognized video and audio according to the comparison result returned by the background server. Whether the file keyword hits the audio and video file vocabulary.
  • Step 1006 When the video file keyword hits the audio-visual file vocabulary, the keyword identifier of the video file keyword is queried from the audio-visual file vocabulary, and the keyword identifier is sent to the background server for information query.
  • the background server in step 1006 of this embodiment is a background server for creating and maintaining a video file vocabulary.
  • the background server performs the information query through the keyword identifier, and can query the required query result.
  • Step 1008 Receive a query result including a link address of the playable video file returned by the background server, pop up an interaction window, and display the query result in the interaction window.
  • the pop-up interactive window includes: determining whether the received query result is valid, if yes, popping up the interactive window; otherwise, the interactive window is not popped; or detecting whether the current search result tab for popping the interactive window is after receiving the video file search data
  • the first tab page generated if it is, the interactive window pops up in the search result tab page; otherwise, the interactive window is not popped up, so that only the search window is prompted to pop up the window, and the user does not pop up the prompt after turning the page; or Determine whether the content in the audio-visual file vocabulary is empty. If yes, the interactive window does not pop up. Otherwise, the interactive window pops up.
  • step 1002 further includes determining, according to the video file pop-up parameter, whether to perform step 1004 to step 1008, where the video file pop-up parameter indicates whether the browser performs the pop-up interaction window operation. For example, when the video file pop-up parameter is 0, the browser does not The operation of popping up the interactive window is performed; when the video file popup parameter is 1, the browser performs the operation of popping up the interactive window.
  • step 1008 further includes setting, according to the pop-up proportional parameter, whether an interactive window pops up, and the pop-up proportional parameter indicates a proportion of the pop-up interactive window when the query result of the link address including the playable video file returned by the background server is received.
  • the value of the pop-up ratio parameter in this embodiment is 0 to 100. For example, a value of 30 indicates that the interactive window pops up at a ratio of 30%, that is, only 30% of the query results including the link address of the playable video file returned by the background server are received. The probability of popping up the interactive window).
  • the detection of the current search tab for the pop-up interactive window is the first tab generated after receiving the video file search data, so that the interactive window is not popped when the tab is switched or closed, thereby avoiding misoperation.
  • the query result returned by the background server further includes a story introduction, an actor information, a director information, a language, a year, a region, a type, and a comment information.
  • step 1008 may further include filtering information such as a search result provider, version information, a video file name, a protagonist, an actor information, and the like according to a link address of the playable video file.
  • 11 is a schematic diagram showing an interactive window of a method for loading video file information in a browser using an embodiment of the present invention
  • FIG. 12 is a diagram showing another method of loading video file information in a browser using an embodiment of the present invention. Schematic diagram of the interactive window. The user can send a video file playback command by clicking the interactive window.
  • the specific pop-up mode of the interactive window can be set as needed, for example, from above. Sliding out, sliding up from the bottom up, etc.
  • Step 1010 When receiving the video file play instruction sent by the interaction window, loading the video file corresponding to the link address of the playable audio file, and calling the corresponding video file play plug-in to play the video file.
  • the search results of some audio and video files can only be played by using a specific browser or a specific playing tool, and the user cannot click the link but cannot play the video file.
  • the browser does not give hints or identify defects before the user clicks on the link.
  • the present invention can further include: closing the interaction window when at least one of the following conditions is met: the video file playback instruction sent to the interaction window is not received within a predetermined time (eg, within 15 seconds); or, the interaction The search result tab page where the window is located is switched to a new tab page; or, a window close instruction sent to the interactive window is received; or the interactive window loses focus.
  • a predetermined time e.g, within 15 seconds
  • the query result in step 1008 further includes a video file download address
  • the method of the present invention further includes: when receiving the video file download command sent to the interaction window, downloading the video file corresponding to the video file download address.
  • the video file download button may be preset in the interaction window, and when the user clicks the video file download button, the video file corresponding to the video file download address is downloaded.
  • downloading the audio and video file corresponding to the video file download address includes: when the plurality of video file download addresses of the same video file are included in the query result, pre-judge the download rate of the plurality of video file download addresses, and select the determined The video file download address corresponding to the fastest download rate is used to download the audio and video files. This way you can increase the speed of downloading.
  • the method of the present invention further includes entering the video file mode after opening the start webpage, or entering the video file mode after receiving the instruction sent to the interactive window.
  • the webpage loads and plays the video file in full screen.
  • the method of the present invention further includes: when playing the video file in the audio file mode, buffering the played video file in the client or the background server, generating and saving the play record of the video file; using the play record, calling the corresponding video and audio
  • the file playback plug-in plays the cached video file from a predetermined point in time.
  • the method of the present invention further includes: binding the cached video file, the generated play record, and a user account instructing to play the video file as personal data for playing the video file of the user account.
  • FIG. 13 there is shown a detailed flowchart of a practical application of a method of loading video file information in a browser according to an eighth embodiment of the present invention.
  • Step 1302 Receive video file search data input by the user in the browser search bar.
  • Step 1304 extracting a search keyword.
  • Step 1306 Filter the part of the search keyword that is not related to the content of the video file to obtain the video file keyword.
  • Step 1308 Determine whether the recognized video file keyword hits the local video file vocabulary. If not, the process is exited, and if so, step 1310 is performed.
  • Step 1310 Query the keyword identifier of the video file keyword from the local audio-visual file vocabulary; send the keyword identifier to the background server to perform information query.
  • Step 1312 Receive a query result that is returned by the backend server and includes a link address of the playable video file.
  • step 1314 it is determined whether the received query result is valid. If not, the process is exited. If yes, step 1316 is performed.
  • Step 1316 It is detected whether the search result tab page currently used for popping up the interactive window is the first tab page generated after receiving the video file search data. If not, the flow is exited, and if yes, step 1318 is performed.
  • step 1318 an interactive window pops up, and the query result is displayed in the interactive window.
  • Step 1320 Monitor the video file playback instruction sent by the user to the interaction window.
  • step 1322 when the video file playback command is monitored, the video file corresponding to the link address of the video file can be loaded, and the corresponding video file playing plug-in is called to play the video file.
  • the video file playing plug-in here may be integrated in the browser, or may be downloaded and installed when receiving the video file playing instruction sent by the user to the interactive window.
  • the method may further include a determining step of determining whether the corresponding video file play plug-in (such as a QVOD client) has been installed in the browser, and if so, calling the corresponding video and audio
  • the file playback plug-in plays the audio-visual file; if not, the audio-visual file is played after the corresponding audio-video file playing plug-in is installed.
  • the interactive window is not popped up, according to the existing You can play audio and video files in the audio and video file playback mode.
  • the search by the search engine in the browser can directly realize the on-demand playback of the web video file, and the user can play the web video file with one click, thereby achieving the effect of one-click play.
  • the program can enter the video file mode in the browser to load and play the on-demand video file.
  • FIG. 14 a block diagram showing the structure of an apparatus for loading video file information in a browser in a ninth embodiment of the present invention is shown.
  • the device for loading video file information in the browser may include:
  • the sending module 1402 is configured to send a search request to the background server, where the search request includes a video file keyword for searching.
  • the first receiving module 1404 is configured to receive the video file search result returned by the background server, where the video file search result includes: webpage search result information corresponding to the video file keyword and the webpage search result information Corresponding to the link address of the playable video file included in the web page.
  • the first loading display module 1406 is configured to load and display the webpage search result information corresponding to the video file keyword in association with the browser side.
  • the webpage search result information may include: a first level to an N-1th video file address, N is a positive integer greater than or equal to 3, and the first level to the N-1th The video file address is the parent address of the link address of the playable video file.
  • the first loading display module 1406 may include:
  • the webpage loading module 14062 is configured to load and display the webpage corresponding to the first-level video and audio file address on the browser side according to the first-level video and audio file address.
  • the video file address selection module 14064 is configured to select any one or more video file addresses corresponding to the first level video file address from the second level to the N-1th video file address.
  • the link loading module 14066 is configured to generate, in the search result page, a link corresponding to the selected one or more video file addresses.
  • the second loading display module 1408 is configured to load and display a link address of the playable video file included in the webpage search result information corresponding webpage in association with the browser side.
  • the second loading display module 1408 may include:
  • the video play option generating module 14082 is configured to load the video play option corresponding to the video file information according to the video file information indicated by the link play address of the playable video file.
  • the video file information includes: episode information of the audio and video file, definition information of the audio and video file, format information of the audio and video file, integrity information of the audio and video file, version information of the audio and video file, and plug-in information required for playing the audio and video file. At least one of the information.
  • the video playback option display module 14084 is configured to display the video playback option in the webpage search result information corresponding webpage.
  • the device for loading the video file information in the browser may further include:
  • the video playback module 1410 is configured to: when the link address of the playable video file loaded and displayed on the browser side is triggered, load a built-in webpage, enter a video mode of the browser, and play the video and audio matching the search request. file.
  • the video playback module 1410 may include:
  • the core URL generating module 14102 is configured to generate a core web address according to the link address of the playable video file.
  • the core web address may include: a video mode startup address, a link address of the playable video file, and a virtual address. And playing the plugin information of the video file.
  • the video mode startup module 14104 is configured to load a built-in webpage and enter an address into the browser's audio and video mode according to the audio and video mode.
  • the direct play module 14106 is configured to directly play the video file matching the search request in the video mode according to the link address of the playable video file.
  • the core website further includes: a virtual address; the device device for loading the video file information of the embodiment further includes:
  • the address display module 14108 is configured to display the virtual address in the address bar of the browser after the video mode startup module carries a built-in webpage and enters the video mode of the browser according to the video mode activation address.
  • the core website further includes: the plug-in information for playing the video file; the device for loading the video file information of the embodiment further includes:
  • the plug-in calling module 141010 is configured to invoke a play plug-in for playing the video file according to the plug-in information for playing the video file.
  • the plugin launch module 141012 is configured to use the invoked play plugin to play the video file that matches the search request directly in the video mode.
  • At least one of a send to option, a scan QR code option, a view original web page option, a search option, a cloud cache option, and a download option may be loaded in the browser webpage in the audio and video mode.
  • a send to option a scan QR code option
  • a view original web page option a search option
  • a cloud cache option a download option
  • the device for loading video file information in the browser may further include at least one of the following modules:
  • Sending to the module 1412 configured to send the link address of the playable video file to the mobile terminal when the sending to option is triggered;
  • the two-dimensional code generating module 1414 is configured to generate a two-dimensional code according to the link address of the playable video file when the scanning two-dimensional code option is triggered;
  • the parent address display module 1416 is configured to load and display a parent address of the link address of the playable video file on the browser side when the view original web page option is triggered;
  • the background search module 1418 is configured to send a search request to the background server in the video mode when the search option is triggered.
  • the cloud cache module 1420 is configured to download the audio and video files that match the search request to the cloud disk when the cloud cache option is triggered.
  • the downloading module 1422 is configured to: when the download option is triggered, download the video file that matches the search request; and load a download built-in page, and display the downloaded device in the download built-in page And searching for the video file that matches the search request; and/or displaying the downloaded video file that matches the search request in the download built-in page.
  • the browser webpage in the audio and video mode may also be loaded with a playlist, a hotcast recommendation, and a play recording option.
  • the device for loading video file information in the browser may further include:
  • the playlist module 1424 is configured to load a link address of the playable video file in the playlist, and display a video file corresponding to the link address of the playable video file.
  • the hotspot recommendation module 1426 is configured to load a link address of the video file of the network hot broadcast in the hot broadcast recommendation, and display the video file corresponding to the link address of the video file that is broadcasted by the network.
  • the play record saving module 1428 is configured to save the play record of the video file matched with the search request after the video play module plays the video file matched with the search request.
  • the play record display module 1430 is configured to load a play record built-in page when the play record option is triggered, and display the play record in the play record built-in page.
  • the search request sent by the sending module 1402 further includes: setting a condition for directly playing the video file; and the webpage search result information loaded and displayed by the first loading display module 1406 corresponds to the playable video file included in the webpage.
  • the link address includes: a video file address included in the webpage search result information corresponding to the condition that the set direct play video file is included in the webpage.
  • the apparatus for loading video file information in the browser of the embodiment of the present invention directly loads and displays the webpage search result information corresponding to the video file keyword and the webpage search result in association with the browser side.
  • the information corresponds to the link address of the playable video file included in the webpage, and the search time is short.
  • the user can directly play the audio and video file by clicking the link address of the playable audio and video file, and the search result has high accuracy and the display form is intuitive.
  • FIG. 15 a block diagram of a device for acquiring a video file address in a tenth embodiment of the present invention is shown.
  • the device for obtaining an address of a video file includes:
  • the second receiving module 1502 is configured to receive a search request, where the search request includes: a video file key for searching and a set condition for directly playing the video file.
  • the first obtaining module 1504 is configured to acquire webpage search result information corresponding to the video file keyword.
  • the second obtaining module 1506 is configured to acquire a video file address corresponding to the video file indicated by the video file keyword that satisfies the condition of the set direct play video file.
  • the address of the video file includes: a link address of the playable video file included in the webpage corresponding to the webpage search result information.
  • the result returning module 1508 is configured to return the acquired webpage search result information corresponding to the video file keyword and the link address of the playable video file included in the webpage search result information corresponding webpage to the browser.
  • the video file address may further include: a first level to an N-1th video file address, and N is a positive integer greater than or equal to 3.
  • the second obtaining module 1506 may include:
  • the third obtaining module 15062 is configured to acquire the video and audio indicated by the video file keyword The file of the level 1 video file that matches the file.
  • the fourth obtaining module 15064 is configured to acquire the second to N-1th audio and video file addresses corresponding to the first-level video file address, and acquire the next-level sub-address of the N-1th video file.
  • the next-level sub-address of the N-1th video file is an N-th video file address.
  • the link address selection module 15066 is configured to select, from the Nth-level video file address, a video file address that satisfies the condition of the set direct play video file, as the playable video included in the webpage corresponding to the webpage search result information.
  • the condition for directly playing the video file includes the information of the plug-in that directly plays the video file.
  • the link address selection module 15066 may include:
  • the node information obtaining module 1602 is configured to traverse a file object model DOM tree node of the web page corresponding to the Nth-level video file address, and acquire node information of the DOM tree node;
  • the screening module 1604 is configured to filter, from the node information of the DOM tree node, node information that obtains information of the plug-in that directly sets the video file to be played directly;
  • the link address determining module 1606 is configured to determine the video file address corresponding to the filtered node information as the link address of the playable video file.
  • the device for obtaining the address of the video file stores the address of the video file obtained according to the crawler program in the background server, and can directly obtain the address of the video file according to the search request.
  • the address of the video file that can be played directly.
  • Obtaining audio and video file addresses is fast and efficient, and it also ensures the accuracy of the search results obtained.
  • FIG. 17 a block diagram of an embodiment of an apparatus for loading video file information in another browser in an eleventh embodiment of the present invention is shown.
  • the apparatus for loading video file information in the browser includes:
  • the identification module 1702 is configured to receive the input video file search data, and identify the video file keyword from the video file search data.
  • the identification module 1702 can search for all the video file data input by the user in the browser, for example, the search keyword input in the webpage, the search keyword input in the address bar, and the search term input in the search bar.
  • the operation of identifying the video file keyword includes extracting a search keyword and filtering a portion of the search keyword that is not related to the content of the video file.
  • search engine For example, when users use baidu.com, google.com.hk, soso.com, youdao.com, sogou.com, yahoo.cn, cn.bing.com, Jike.com, so.360.cn, through the search engine to extract search keywords; filter out the following parts of the keyword: online, watch, Baidu, fast broadcast, QVOD, HD, version, download, video, BD, DVD , complete, HD, TS, preemptive, movie, audio and video files, complete works, tv, etc., and words that are not related to the content of audio and video files.
  • the determining module 1704 is configured to determine whether the recognized video file keyword hits the video file vocabulary, and the video file vocabulary indicates the correspondence between the video file keyword supported by the at least one background server, such as the video file content server, and the keyword identifier.
  • the audio-visual file vocabulary is generated based on information of the video file obtained from at least one background server.
  • the operation of creating and maintaining a video file vocabulary is done by a cloud server or a background server.
  • the determining module 1704 in this embodiment is configured to receive the audio-visual file vocabulary sent by the background server and save it to the local, and determine whether the recognized video file keyword hits the saved local audio-visual file vocabulary; or, it will recognize
  • the video file keyword is sent to the cloud server, and the cloud server compares the video file keyword with the video file vocabulary in the cloud server, and determines whether the recognized video file keyword hits according to the comparison result returned by the cloud server.
  • the audio and video file vocabulary; or, the recognized video file keyword is sent to the background server, and the background server compares the video file keyword with the video file vocabulary in the background server, according to the comparison result returned by the background server. It is judged whether the recognized video file keyword hits the audio-visual file vocabulary.
  • the query module 1706 is configured to: when the video file keyword hits the audio-visual file vocabulary, query the keyword identifier of the video file keyword from the audio-visual file vocabulary, and send the keyword identifier to the background server to perform information query.
  • the display module 1708 is configured to receive a query result that includes a link address of the playable video file returned by the background server, pop up an interaction window, and display the query result in the interaction window.
  • the display module 1708 in this embodiment is further configured to determine whether the received query result is valid, if yes, the interactive window is popped up; otherwise, the interactive window is not popped; or, whether the search result tab page currently used for popping the interactive window is detected is The first tab page generated after receiving the video file search data, if yes, the interactive window pops up in the search result tab page; otherwise, the interactive window is not popped up; or, whether the content in the video file vocabulary is empty, if not The interactive window pops up, otherwise, the interactive window pops up.
  • the playing module 1710 is configured to: when receiving the video file playing instruction sent by the interactive window, loading the video file corresponding to the link address of the playable video file, and calling the corresponding video file playing plug-in to play the video file.
  • the playing module 1710 in this embodiment is further configured to: when playing the video file in the audio file mode, cache the played video file in a client or a cloud server or a background server, and generate and save a play record of the video file; Using the play record, the corresponding video file play plug-in is called to play the cached video file from a predetermined time point.
  • the playing module 1710 in this embodiment is further configured to bind the cached video file, the generated play record, and the user account that is instructed to play the video file, as the personal data played by the video file of the user account.
  • FIG. 18 there is shown a block configuration diagram of an embodiment of an apparatus for loading video file information in a browser in a twelfth embodiment of the present invention.
  • the apparatus shown in Fig. 18 is substantially the same as the apparatus of the eleventh embodiment shown in Fig. 17, and includes:
  • the identification module 1802 is configured to receive the input video file search data, and identify the video file keyword from the video file search data.
  • the determining module 1804 is configured to determine whether the recognized video file keyword hits the video file vocabulary, and the video file vocabulary indicates the correspondence between the video file keyword supported by the at least one background server, such as the video file content server, and the keyword identifier.
  • the audio-visual file vocabulary is generated based on information of the video file obtained from at least one background server.
  • the operation of creating and maintaining a video file vocabulary is done by a cloud server or a background server.
  • the query module 1806 is configured to: when the video file keyword hits the audio-visual file vocabulary, query the keyword identifier of the video file keyword from the audio-visual file vocabulary, and send the keyword identifier to the background server to perform information query.
  • the display module 1808 is configured to receive a query result that includes a link address of the playable video file returned by the background server, pop up an interaction window, and display the query result in the interaction window.
  • the playing module 1810 is configured to: when receiving the video file playing instruction sent by the interactive window, loading the video file corresponding to the link address of the playable video file, and calling the corresponding video file playing plug-in to play the video file.
  • the device for loading the video file information in the browser in this embodiment is different from the device shown in FIG. 17 in that the device for loading the video file information in the browser in this embodiment further includes:
  • the closing module 1812 is configured to: after the pop-up interaction window is closed, close the interaction window when at least one of the following conditions is met: the video file playback instruction sent to the interaction window is not received within a predetermined time; or, the interaction window is located Switch the search results tab to a new tab; or, A window close instruction sent to the interactive window is received; or the interactive window loses focus.
  • the device for loading the video file information in the browser further includes: a downloading module 1814 configured to download the video and audio when receiving the video file downloading instruction sent to the interactive window, when the video file download address is further included in the query result.
  • the video file corresponding to the file download address.
  • the downloading module 1814 of the embodiment is further configured to: when the query result includes the plurality of video file download addresses of the same video file, pre-judging the download rate of the plurality of video file download addresses, and selecting the fastest download to be determined.
  • the video file download address corresponding to the rate is used to download the video file.
  • the device for loading the video file information in the browser may further include: a video file mode starting module 1816 configured to enter the video file mode after opening the start webpage, or entering the video file after receiving the instruction sent to the interactive window. mode. Among them, in the video file mode, the webpage loads and plays the web video file in full screen.
  • the apparatus for loading video file information in the browser may be configured to compare the video file keyword with the video file vocabulary to query the keyword identifier and obtain the content from the background server according to the keyword identifier.
  • the query result of the link address of the audio and video file can be played, and the returned query result includes the link address of the playable video file that can directly play the audio and video file, which solves the problem that the user needs to click the page multiple times to play the video file in the prior art;
  • the corresponding video file playing plug-in in the browser to play the video file, the problem of the prior art that can not recognize the video file link that can only be played by using a specific browser or a specific playing tool is solved, and the video file is improved. Search for accuracy and the effectiveness of audio and video file playback efficiency.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some of some or all of the components of an apparatus for acquiring and loading video file information in accordance with an embodiment of the present invention. Or all features.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 19 illustrates that the acquisition and loading of video file information according to the present invention can be implemented.
  • a computing device such as an application server.
  • the computing device conventionally includes a processor 1910 and a computer program product or computer readable medium in the form of a memory 1920.
  • the memory 1920 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 1920 has a memory space 1930 for program code 1931 for performing any of the method steps described above.
  • storage space 1930 for program code may include various program code 1931 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similar to the storage 1920 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 2031', code that can be read by, for example, a processor such as 1910, which when executed by the server causes the server to perform various steps in the methods described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种获取及加载影音文件信息的方法和装置,其中,一种加载影音文件信息的方法包括:发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用的影音文件关键字;接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。通过本发明解决了搜索过程操作繁琐、复杂,耗时久;搜索结果不直观、准确度低的问题。

Description

获取及加载影音文件信息的方法和装置 技术领域
本发明涉及互联网技术领域,具体涉及一种获取影音文件信息的方法和装置、以及一种浏览器中加载影音文件信息的方法和装置。
背景技术
随着互联网技术的发展,互联网上的资源也越来越多,越来越繁杂。以用户在网上搜索影音文件为例,用户可以通过百度、谷歌或其它搜索引擎进行影音文件的搜索,用户在搜索引擎中输入关键字,然后点击搜索选项进行影音文件的搜索,服务器会返回大量的搜索结果展现给用户。
然而,服务器返回的搜索结果一般都是一些影音网站的链接地址,用户点击影音网站的链接地址之后,进入的是所述影音网站的链接地址对应的影音网站。如果用户想要得到某一影音文件,则需要在所述影音网站提供的搜索界面中再次输入待查找的影音文件的关键字,以便能够从所述影音网站中获取所述待查找的影音文件。此时可能存在如下问题:
首先,由于所述影音网站是根据搜索引擎搜索用户输入的关键字得到的,所述影音网站中虽然包含所述关键字,然而,在所述影音网站中包含所述关键字的信息可能是一个影音文件,也可能是一个文本文件,因此,用户从所述影音网站中可能不能得到所述待查找的影音文件。
其次,即使在所述影音网站中,存在所述待查找的影音文件,用户仍需要多次点击操作之后,才能得到所述待查找影音文件。
综上所述,针对影音文件的搜索,现有技术存在的问题是:搜索过程操作繁琐、复杂,耗时久;搜索结果不直观、准确度低。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种获取影音文件信息的方法和装置,以及一种浏览器中加载影音文件信息的方法和装置。
依据本发明的一个方面,提供了一种浏览器中加载影音文件信息的方法,包括:发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用 的影音文件关键字;接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
根据本发明的另一方面,提供了一种浏览器中加载影音文件信息的装置,包括:发送模块,配置为发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用的影音文件关键字;第一接收模块,配置为接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;第一加载显示模块,配置为在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息;第二加载显示模块,配置为在浏览器侧相关联地加载和显示所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
根据本发明的又一方面,提供了一种获取影音文件信息的方法,包括:接收搜索请求,其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件;获取所述影音文件关键字对应的网页搜索结果信息;获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址;其中,所述影音文件地址包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
根据本发明的再一方面,提供了一种获取影音文件地址的装置,包括:第二接收模块,配置为接收搜索请求,其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件;第一获取模块,配置为获取所述影音文件关键字对应的网页搜索结果信息;第二获取模块,配置为获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址;其中,所述影音文件地址包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;结果返 回模块,配置为将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
根据本发明的另一方面,提供了另一种浏览器中加载影音文件信息的方法,包括:接收输入的影音文件搜索数据,从所述影音文件搜索数据中识别出影音文件关键字;判断识别出的所述影音文件关键字是否命中影音文件词表,其中,所述影音文件词表指示至少一个后台服务器支持的影音文件关键字与关键字标识的对应关系;当所述影音文件关键字命中所述影音文件词表时,从所述影音文件词表中查询所述影音文件关键字的关键字标识,将所述关键字标识发送至后台服务器,进行信息查询;接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将所述查询结果在该交互窗口中展示;当接收到对所述交互窗口发送的影音文件播放指令时,加载所述可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放所述影音文件。
根据本发明的又一方面,提供了一种对网页影音文件进行播放的装置,包括:识别模块,配置为接收输入的影音文件搜索数据,从所述影音文件搜索数据中识别出影音文件关键字;判断模块,配置为判断识别出的所述影音文件关键字是否命中影音文件词表,其中,所述影音文件词表指示至少一个后台服务器支持的影音文件关键字与关键字标识的对应关系;查询模块,配置为当所述影音文件关键字命中所述影音文件词表时,从所述影音文件词表中查询所述影音文件关键字的关键字标识,将所述关键字标识发送至后台服务器,进行信息查询;展示模块,配置为接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将所述查询结果在该交互窗口中展示;播放模块,配置为当接收到对所述交互窗口发送的影音文件播放指令时,加载所述可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放所述影音文件。
根据本发明的再一方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行上述方 法中的任意一种或多种。
根据本发明的又一方面,提供了一种计算机可读介质,其中存储了如上所述的计算机程序。
根据本发明的方案,在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。用户输入一次关键字之后,就可以查找得到可播放影音文件的链接地址,用户对该链接地址对应的选项进行操作如点击时,即可直接观看该影音文件,操作简单、从发出搜索请求到得到搜索结果耗时短。搜索可播放影音文件的链接地址直接在浏览器侧显示,表现直观,所述可播放影音文件的链接地址即对应为用户所查找的影音文件,得到的搜索结果准确度高。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1是本发明第一实施例中一种浏览器中加载影音文件信息的方法的流程图;
图2是本发明第二实施例中一种浏览器中加载影音文件信息的方法的流程图;
图3是图2所示实施例中一种在浏览器侧加载并显示搜索结果的示意图;
图4是图2所示实施例中又一种在浏览器侧加载并显示搜索结果的示意图;
图5本发明第三实施例中一种浏览器中加载影音文件信息的方法的流程图;
图6是图5所示实施例中播放影音文件的流程图;
图7是本发明第四实施例一种浏览器中加载影音文件信息的方法的流程图;
图8是本发明第五实施例中一种获取影音文件地址的方法的流程图;
图9是本发明第六实施例中一种获取影音文件地址的方法的流程图;
图10是本发明第七实施例中一种浏览器中加载影音文件信息的方法的流程图;
图11是图10所示实施例中的一个交互窗口的示意图;
图12是图10所示实施例中的另一个交互窗口的示意图;
图13是本发明第八实施例中一种浏览器中加载影音文件信息的方法的流程图;
图14是本发明第九实施例中一种浏览器中加载影音文件信息的装置的结构框图;
图15是本发明第十实施例中一种获取影音文件地址的装置的结构框图;
图16是图15所示实施例中一种链接地址选取的结构框图;
图17是本发明第十一实施例中一种浏览器中加载影音文件信息的装置的结构框图;
图18是本发明第十二实施例一种浏览器中加载影音文件信息的装置的结构框图;
图19示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图20示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
参照图1,示出了本发明第一实施例中一种浏览器中加载影音文件信息 的方法的流程图。在本发明实施例中,所述一种浏览器中加载影音文件信息的方法,包括:
步骤102,发送搜索请求至后台服务器。
其中,所述搜索请求中包括搜索用的影音文件关键字。
步骤104,接收由所述后台服务器返回的影音文件搜索结果。
在本发明实施例中,所述影音文件搜索结果可以包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。其中,所述可播放影音文件的链接地址为可以直接播放影音文件的地址。
步骤106,在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
在本发明实施例中,可以在浏览器侧加载一个搜索结果页面,在所述搜索结果页面上加载并显示所述影音文件关键字对应的网页搜索结果信息及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
综上所述,本发明实施例所述一种浏览器中加载影音文件信息的方法,根据后台服务器返回的结果,直接在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址,表现直观。而且在浏览器侧直接显示的是可播放影音文件的链接地址,对应的不是影音文件的其它链接地址是不显示给用户的,因此得到的搜索结果准确度高。同时,用户输入一次关键字之后,就可以查找得到可播放影音文件的链接地址,操作简单、从发出搜索请求到得到搜索结果耗时短。
参照图2,示出了本发明第二实施例中一种浏览器中加载影音文件信息的方法的流程图。本发明实施例中,所述一种浏览器中加载影音文件信息的方法包括:
步骤202,浏览器发送搜索请求至后台服务器。
其中,所述搜索请求中包括搜索用的影音文件关键字。
步骤204,浏览器接收由所述后台服务器返回的影音文件搜索结果。
其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜 索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
步骤206,在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息。
本发明实施例中,所述网页搜索结果信息中可以包括:第1级至第N-1级影音文件地址,其中,N为大于或等于3的正整数,所述第1级至第N-1级影音文件地址为所述可播放影音文件的链接地址的父级地址。
所述步骤206可以包括以下子步骤:
子步骤2062,浏览器根据第1级影音文件地址,在浏览器侧加载并显示所述第1级影音文件地址对应的网页。
子步骤2064,浏览器从第2级至第N-1级影音文件地址中选取任意一个或多个与所述第1级影音文件地址具有对应关系的影音文件地址。
子步骤2066,浏览器在所述第1级影音文件地址对应的网页中,生成所述选取得到的任意一个或多个影音文件地址对应的链接。
步骤208,在浏览器侧相关联地加载和显示所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
在本发明实施例中,所述步骤208可以包括以下子步骤:
子步骤2082,浏览器根据所述可播放影音文件的链接地址所指示的影音文件信息,加载与所述影音文件信息对应的影音播放选项。
其中,所述影音文件信息可以包括:影音文件的剧集信息、影音文件的清晰度信息、影音文件的格式信息、影音文件的完整度信息、影音文件的版本信息和播放影音文件所需的插件信息中的至少一种信息。根据上述影音文件信息,可以在所述第1级影音文件地址对应的网页加载与所述影音文件信息对应的影音播放选项,所述影音播放选项可以包括:剧集选项、清晰度选项、完整度选项和播放格式选项中的至少一种选项。
子步骤2084,浏览器在所述网页搜索结果信息对应网页中,显示所述影音播放选项。
在本发明实施例中,参照图3,是图2所示实施例中一种在浏览器侧加载并显示搜索结果的示意图。下面结合图3,详细说明所述步骤206和所述步骤208的实现流程。
浏览器接收由后台服务器根据关键字“疯狂原始人”返回的搜索结果, 根据所述第1级影音文件地址,加载并生成了如图3所示的搜索结果页面。在所述搜索结果页面上以链接形式展现所述第2级至第N-1级影音文件地址中的任意一个或多个影音文件地址,如图中的链接地址1、链接地址2、链接地址3、链接地址4和链接地址5等等。同时在所述链接地址1、所述链接地址2、所述链接地址3、所述链接地址4和所述链接地址5下相对应的显示影音播放选项。在本发明实施例中,所述链接地址1下有播放选项1、播放选项2和播放选项3;所述链接地址2下有播放选项4、播放选项5和播放选项6和播放选项7。当用户点击播放选项时,可以直接播放影音文件;当用户点击链接地址时,则可以打开所述链接地址对应的网页,查看影音文件的详细信息,例如对所述影音文件的演员信息介绍、影评信息或影音文件内容简介。。
在本发明实施例中,所述链接地址和所述播放选项可以通过标题形式在所述搜索结果页面上显示,所述标题内容可以包括影音文件信息或影音文件的其它属性信息。参照图4,是图2所示实施例中又一种在浏览器侧加载并显示搜索结果的示意图。搜索结果页面是根据后台服务器返回的上述第1级影音文件地址加载得到的。以标题形式显示链接地址,以BD全集、QMV、抢先版、完整版、DVD、高清HD、DVDSCR、TS版或蓝光等选项显示影音播放选项。
综上所述,本发明实施例所述的一种浏览器中加载影音文件信息的方法,用户点击影音播放选项之后就可以直接播放影音文件,减少了查找搜索和点击操作;同时,浏览器自动筛选得到可以直接播放的影音文件并显示给用户,避免了人工筛选操作,提高了搜索结果的准确性,节约了时间。进一步地,本发明实施例所述的浏览器中加载影音文件信息的方法,提供了多种类型的影音播放选项供用户选择,搜索结果丰富、多样化。用户可以很直观的根据所述影音播放选项显示的信息,选择符合需求的影音文件进行播放。
参照图5,示出了本发明第三实施例中一种浏览器中加载影音文件信息的方法的流程图。在本发明实施例中,所述浏览器中加载影音文件信息的方法可以包括:
步骤502,发送搜索请求至后台服务器。
其中,所述搜索请求中包括搜索用的影音文件关键字。
步骤504,接收由所述后台服务器返回的影音文件搜索结果。
其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
步骤506,在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
步骤508,当所述浏览器侧加载和显示的可播放影音文件的链接地址被触发时,加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件。
在本发明实施例中,所述步骤508可以包括以下子步骤:
子步骤5082,根据所述可播放影音文件的链接地址,生成核心网址。
其中,所述核心网址中包括:影音模式启动地址和所述可播放影音文件的链接地址。可选地,所述核心网址中还可以包括虚拟地址。本实施例中,以所述核心网址中同时包括:影音模式启动地址、所述可播放影音文件的链接地址和虚拟地址为例。
子步骤5084,加载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式。
子步骤5086,在所述浏览器的地址栏中显示所述虚拟地址。
需要说明的是,当核心网址中不包括虚拟地址时,则可以在浏览器的地址栏中显示真实的影音文件地址,或者根据需要设定的其它信息或地址,如默认地址等。
子步骤5088,根据所述可播放影音文件的链接地址在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
在本发明实施例中,所述核心网址还可以包括:播放所述影音文件的插件信息。
参照图6,是图5所示实施例中播放影音文件的流程图,所述子步骤5088可以包括:
子步骤602,根据所述播放所述影音文件的插件信息,调用播放所述影音文件的播放插件。
子步骤604,使用调用的播放插件,在所述影音模式中直接播放与所述 搜索请求相匹配的影音文件。
在本发明实施例中,所述核心网址的具体内容可以是:chrome://seappmgr/ExtVideoAssis/HTMLS/VIDEOMODE.HTML?gqv=qvod%3A%2F%2F7817481%7C84F9F2CBEEECB3259D96143FF2BA779C09E2FD05%7C%E5%85%A8%E6%B0%91%E7%9B%AE%E5%87%BB%2B%E9%A2%84%E5%91%8A%E7%89%87.mp4%7C&fakeurl=http%3A%2F%2Fwww.mei11.com%2Fvod%2F46904.html。其中,可以根据地址“chrome://seappmgr/ExtVideoAssis/HTMLS/VIDEOMODE.HTML”进入浏览器的影音模式;在浏览器的地址栏可以显示虚拟地址“http%3A%2F%2Fwww.meill.com%2Fvod%2F46904.html;可以根据地址“gqv=qvod%3A%2F%2F7817481%7C84F9F2CBEEECB3259D96143FF2BA779C09E2FD05%7C%E5%85%A8%E6%B0%91%E7%9B%AE%E5%87%BB%2B%E9%A2%84%E5%91%8A%E7%89%87.mp4%7C&fakeurl”调用qvod播放插件直接播放影音文件。
综上所述,本发明实施例所述浏览器中加载影音文件信息的方法,提供影音模式用来播放搜索得到的影音文件,在所述影音模式下可以调用满足播放所述影音文件的播放插件,播放所述影音文件,避免了在网页模式下播放所述影音文件时,网页中的播放插件不支持播放所述影音文件的问题。
参照图7,示出了本发明第四实施例一种浏览器中加载影音文件信息的方法的流程图。本发明实施例中,所述浏览器中加载影音文件信息的方法可以包括:
步骤702,发送搜索请求至后台服务器。
其中,所述搜索请求中包括搜索用的影音文件关键字。
步骤704,接收由所述后台服务器返回的影音文件搜索结果。
其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
步骤706,在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
步骤708,当所述浏览器侧加载和显示的可播放影音文件的链接地址被触发时,加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件。
本发明实施例中,在所述影音模式下的浏览器网页中可以加载有如下选项中的至少一种选项:发送到选项、扫描二维码选项、查看原网页选项、搜索选项、云缓存选项和下载选项。
当所述发送到选项被触发时,执行步骤710,即:将所述可播放影音文件的链接地址发送至移动终端。
当所述扫描二维码选项被触发时,执行步骤712,即:根据所述可播放影音文件的链接地址生成二维码。
当所述查看原网页选项被触发时,执行步骤714,即:在浏览器侧加载并显示所述可播放影音文件的链接地址的父级地址。
当所述搜索选项被触发时,执行步骤716,即:在所述影音模式下,发送搜索请求至后台服务器。例如,用户可以直接在影音模式下的浏览器网页中输入关键字,然后触发搜索选项,浏览器直接在所述影音模式下将用户输入的关键字发送至后台服务器,进行影音文件的搜索。
当所述云缓存选项被触发时,执行步骤718,即:将与所述搜索请求相匹配的影音文件离线缓存下载至云盘中。
当所述下载选项被触发时,执行步骤720,即:下载所述与所述搜索请求相匹配的影音文件;并,加载一个下载内置页面,在所述下载内置页面中显示正在下载的与所述搜索请求相匹配的影音文件;和/或,在所述下载内置页面中显示已下载完成的与所述搜索请求相匹配的影音文件。例如,下载内置页面中可以包括:全部任务、正在下载任务和下载完成任务三个区域。可以在正在下载任务区域中显示正在下载的与所述搜索请求相匹配的影音文件,可以在下载完成任务区域中显示已下载完成的与所述搜索请求相匹配的影音文件,可以在全部任务区域中显示正在下载的与所述搜索请求相匹配的影音文件、已下载完成的与所述搜索请求相匹配的影音文件、和待下载的与所述搜索请求相匹配的影音文件。
本发明实施例中,所述影音模式下的浏览器网页中还可以加载有播放列表、热播推荐和播放记录选项。在所述步骤708之后,所述浏览器中加载影音文件信息的方法还可以包括以下步骤:
步骤722,在所述播放列表中加载所述可播放影音文件的链接地址,并显示所述可播放影音文件的链接地址对应的影音文件。
步骤724,在所述热播推荐中加载网络热播的影音文件的链接地址,并显示所述网络热播的影音文件的链接地址对应的影音文件。
步骤726,保存所述与所述搜索请求相匹配的影音文件的播放记录。
当所述播放记录选项被触发时,执行步骤728,即:加载一个播放记录内置页面,并将所述播放记录在所述播放记录内置页面中显示。
综上所述,本发明实施例所述浏览器中加载影音文件信息的方法,在浏览器中实现了多种播放插件支持的视频资源的提供,而且是直接可以进行播放的影音文件的地址链接,直接可以切换到影院模式下进行播放,节约了搜索时间,提高了搜索结果的准确性。同时,在所述影音模式下的浏览器网页中加载有多个选项供用户选择,提高了用户交互性。
参照图8,示出了本发明第五实施例中一种获取影音文件地址的方法的流程图。本发明实施例中,所述获取影音文件地址的方法可以包括:
步骤802,接收搜索请求。
其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件。
步骤804,获取所述影音文件关键字对应的网页搜索结果信息。
步骤806,获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址。
在本发明实施例中,所述影音文件地址可以包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。在服务器中存储的有符合所述关键字的影音文件地址。
步骤808,将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
综上所述,本发明实施例所述的获取影音文件地址的方法,直接在后台服务器中获得最终可以直接进行影音文件播放的所述可播放影音文件的链接地址,搜索效率高、耗时短,搜索结果准确度高。
参照图9,示出了本发明第六实施例中一种获取影音文件地址的方法的流程图。本发明实施例中,所述获取影音文件地址的方法可以包括:
步骤902,服务器接收搜索请求。
其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件。
步骤904,服务器获取所述影音文件关键字对应的网页搜索结果信息。
步骤906,服务器获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址。
其中,所述影音文件地址可以包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
在本发明实施例中,所述影音文件地址,还可以包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数。所述步骤906可以包括以下子步骤:
子步骤9062,服务器获取与所述影音文件关键字所指示的影音文件相匹配的第1级影音文件地址。
子步骤9064,服务器获取所述第1级影音文件地址具有对应关系的第2至第N-1级影音文件地址;并获取所述第N-1级影音文件的下一级子地址,所述第N-1级影音文件的下一级子地址为第N级影音文件地址。
在本发明实施例中,服务器中存储有所述影音文件关键字对应的所述第1级影音文件地址,根据爬虫程序,服务器可以获取得到所述第1级影音文件地址对应的第2至第N级影音文件地址。
子步骤9066,服务器从第N级影音文件地址中选取满足所述设定的直接播放影音文件的条件的影音文件地址,作为所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。其中,所述设定的直接播放影音文件的条件包括直接播放所述影音文件的插件的信息。
在本发明实施例中,所述步骤9066可以包括以下子步骤:
子步骤90662,服务器遍历所述第N级影音文件地址对应的网页的文件对象模型DOM树节点,获取所述DOM树节点的节点信息。
子步骤90664,服务器从所述DOM树节点的节点信息中,筛选得到满足所述设定的直接播放影音文件的插件的信息的节点信息。
子步骤90666,服务器将所述筛选得到的节点信息对应的影音文件地址确定为所述可播放影音文件的链接地址。
在本发明实施例中,上述的遍历操作是以遍历到了可以在浏览器侧QVOD插件、百度影音插件、Flash插件、和/或其它播放插件中进行直接播放的视频元素,并获取其对应的影音文件地址,获取的影音文件地址为所述可播放影音文件的链接地址。例如,所述满足所述设定的直接播放影音文件的插件的信息的节点信息可以是浏览器下的<object>元素,也可以是chrome中使用的<video>元素。
步骤908,服务器将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
综上所述,本发明实施例所述的获取影音文件地址的方法,可以在后台服务器中,直接识别获取得到可以直接进行播放的影音文件地址,减少了用户的人工搜索操作过程,节约了时间。搜索结果满足设定的直接播放影音文件的条件,得到的搜索结果准确度高。
参照图10,示出了本发明第七实施例中一种浏览器中加载影音文件信息的方法的流程图。在本发明实施例中,所述一种浏览器中加载影音文件信息的方法,包括如下步骤1002至步骤1010:
步骤1002,接收输入的影音文件搜索数据,从所述影音文件搜索数据中识别出影音文件关键字。
本实施例中,对于浏览器接收的用户输入的所有影音文件搜索数据,例如对网页中接收的包括影音文件内容的搜索关键字、地址栏中接收的搜索关键字、搜索栏接收的搜索词,都可以进行识别影音文件关键字的操作。
从影音文件搜索数据中识别出影音文件关键字的方法,包括,提取搜索关键字,以及过滤搜索关键字中与影音文件内容无关的部分。例如,当浏览器所访问的网址是baidu.com、google.com.hk、soso.com、youdao.com、sogou.com、yahoo.cn、cn.bing.com、jike.com、so.360.cn时,通过搜索引擎提取搜索关键字;过滤掉关键字中的如下部分:在线、观看、百度、快播、QVOD、高清、版、下载、影音、BD、DVD、完整、HD、TS、抢先、电影、影音文件、全集、tv等等与影音文件内容无关的词语。
步骤1004,判断识别出的影音文件关键字是否命中影音文件词表。
其中,所述影音文件词表指示至少一个后台服务器支持的影音文件关键字与关键字标识的对应关系。
影音文件词表是根据从至少一个后台服务器获取的影音文件的信息生成的,包括影音文件关键字和影音文件关键字的关键字标识。举例示意,影音文件词表的格式,可以是:影音文件关键字=关键字标识,如
爱的创可贴=2086
被解救的姜戈=2084
神探高伦布=2082
中国星跳跃=2080
画皮之真爱无悔=2078
当男人恋爱时=2076
妈咪=2074
101次求婚=2072
以最后一条记录为例,影音文件关键字是“101次求婚”,关键字标识是“2072”。
影音文件词表的创建与维护方法,是从至少一个后台服务器获取影音文件的信息,从而创建与维护影音文件词表。例如,以后台服务器为影音文件内容服务器如QVOD服务器为例,后台服务器通过读取QVOD影音文件关键字接口:http://qbho.kuaibo.com/get/QvodSearch/,提取其中的val值(如关键字标识),id值,进而去除关键字中的非影音文件关键字,从而创建影音文件词表。进一步地,该影音文件词表具备自动更新机制,可以被定期更新。
判断识别出的影音文件关键字是否命中影音文件词表包括:接收后台服务器下发的影音文件词表并保存至本地,判断识别出的影音文件关键字是否命中已保存的本地影音文件词表;或者,将识别出的影音文件关键字发送至后台服务器,由后台服务器对该影音文件关键字和后台服务器中的影音文件词表进行比对,根据后台服务器返回的比对结果判断识别出的影音文件关键字是否命中影音文件词表。
步骤1006,当影音文件关键字命中影音文件词表时,从影音文件词表中查询该影音文件关键字的关键字标识,将关键字标识发送至后台服务器,进行信息查询。
以QVOD为例,根据关键字标识,向QVOD请求播放页面,以使用百度搜索,关键字标识为2040为例。请求格式为:http://qbho.kuaibo.com/qvod/movie/2040/?wtype=m&s ource=www.baidu.com。
较佳地,本实施例步骤1006中的后台服务器,是创建与维护影音文件词表的后台服务器。
由于关键字标识与影音文件关键字具有对应关系,所以后台服务器通过关键字标识进行信息查询,可以查询得到需要的查询结果。
步骤1008,接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将查询结果在该交互窗口中展示。
弹出交互窗口包括:判断接收到的查询结果是否有效,若是则弹出交互窗口,否则,不弹出交互窗口;或者,检测当前用于弹出交互窗口的搜索结果标签页是否为接收到影音文件搜索数据后生成的首个标签页,若是则在搜索结果标签页中弹出交互窗口,否则,不弹出交互窗口,从而仅对搜索第一页进行弹窗提示,当用户翻页后不再弹出提示;或者,判断影音文件词表中的内容是否为空,若是则不弹出交互窗口,否则,弹出交互窗口。
进一步地,步骤1002,还包括根据影音文件弹出参数判断是否执行步骤1004至步骤1008,影音文件弹出参数表示浏览器是否执行弹出交互窗口的操作,例如,影音文件弹出参数为0时,浏览器不执行弹出交互窗口的操作;影音文件弹出参数为1时,浏览器执行弹出交互窗口的操作。进一步地,步骤1008,还包括根据弹出比例参数设置是否弹出交互窗口,弹出比例参数表示接收后台服务器返回的包括可播放影音文件的链接地址的查询结果时弹出交互窗口的比例。本实施例的弹出比例参数的值为0~100(例如:值为30时表示按30%比例弹出交互窗口,即接收后台服务器返回的包括可播放影音文件的链接地址的查询结果时只有30%的机率弹出交互窗口)。
其中,检测当前用于弹出交互窗口的搜索结果标签页是否为接收到影音文件搜索数据后生成的首个标签页,可以使得在切换或关闭页签时,不弹出交互窗口,避免了误操作。
较佳地,步骤1008中,后台服务器返回的查询结果,还包括剧情介绍、演员信息、导演信息、语言、年份、地区、类型、以及评论信息等。进一步地,步骤1008还可以包括,根据可播放影音文件的链接地址过滤出搜索结果提供方、版本信息、影音文件名称、主演、演员信息等信息。图11示出了使用本发明实施例的浏览器中加载影音文件信息的方法的一个交互窗口的示意图;图12示出了使用本发明实施例的浏览器中加载影音文件信息的方法的另一个交互窗口的示意图。用户通过点击交互窗口,可以发送影音文件播放指令。交互窗口的具体的弹出方式可以根据需要进行设置,例如从上 向下滑出,从下向上滑入等。
步骤1010,当接收到对交互窗口发送的影音文件播放指令时,加载可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放该影音文件。
通过调用影音文件插件播放网页影音文件,能够避免在现有技术中,部分影音文件的搜索结果,只能使用特定的浏览器或特定的播放工具进行播放,存在用户点击链接后却无法播放影音文件的问题,然而浏览器在用户点击该链接之前不会给出提示或进行识别的缺点。
进一步地,本发明还能够包括:当满足下述的至少一种条件时,关闭交互窗口:在预定时间内(如15秒内)未接收到对交互窗口发送的影音文件播放指令;或者,交互窗口所在的搜索结果标签页切换为新的标签页;或者,接收到对交互窗口发送的窗口关闭指令;或者,交互窗口失去焦点。
较佳地,步骤1008中的查询结果中还包括影音文件下载地址,本发明的方法还进一步包括:当接收到对交互窗口发送的影音文件下载指令时,下载影音文件下载地址对应的影音文件。
具体地,可以在交互窗口预设影音文件下载按钮,用户点击影音文件下载按钮时,下载影音文件下载地址对应的影音文件。
优选地,下载影音文件下载地址对应的影音文件包括:当查询结果中包括同一影音文件的多个影音文件下载地址时,对该多个影音文件下载地址的下载速率进行预判断,选取判断出的最快下载速率对应的影音文件下载地址进行影音文件的下载。通过这样的方法可以提高下载的速度。
本发明的方法还包括:在打开起始网页后进入影音文件模式,或者,在接收到对交互窗口发送的指令后进入影音文件模式。其中,在影音文件模式下网页全屏加载并播放影音文件。
本发明的方法还包括:在影音文件模式下播放影音文件时,将所播放的影音文件缓存在客户端或者后台服务器中,生成并保存该影音文件的播放记录;利用播放记录,调用相应的影音文件播放插件从预定时间点开始对缓存的影音文件进行播放。
本发明的方法还包括:将缓存的影音文件、生成的播放记录与指令播放该影音文件的用户账户相绑定,作为该用户账户的影音文件播放的个人数据。
参照图13,示出了本发明第八实施例一种浏览器中加载影音文件信息的方法的一个实际应用的详细的流程图。
本实施例的浏览器中加载影音文件信息的方法包括以下步骤:
步骤1302,接收用户在浏览器搜索栏中输入的影音文件搜索数据。
步骤1304,提取搜索关键字。
步骤1306,过滤搜索关键字中与影音文件内容无关的部分得到影音文件关键字。
步骤1308,判断识别出的影音文件关键字是否命中本地的影音文件词表。若否,则退出流程,若是,则执行步骤1310。
步骤1310,从本地的影音文件词表中查询该影音文件关键字的关键字标识;将关键字标识发送至后台服务器,进行信息查询。
步骤1312,接收后台服务器返回的包括可播放影音文件的链接地址的查询结果。
步骤1314,判断接收到的查询结果是否有效,若否,则退出流程,若是,则执行步骤1316。
步骤1316,检测当前用于弹出交互窗口的搜索结果标签页是否为接收到影音文件搜索数据后生成的首个标签页,若否,则退出流程,若是,则执行步骤1318。
步骤1318,弹出交互窗口,将查询结果在该交互窗口中展示。
步骤1320,监测用户对交互窗口发送的影音文件播放指令。
步骤1322,监测到影音文件播放指令时,加载可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放该影音文件。
这里的影音文件播放插件可以是集成在浏览器中的,也可以是在接收到用户对交互窗口发送的影音文件播放指令时下载安装的。可选地,本步骤中监测到影音文件播放指令后,还可以包括一个判断步骤,即判断浏览器中是否已经安装相应的影音文件播放插件(如QVOD客户端),若是,则调用相应的影音文件播放插件播放影音文件;若否,则在安装相应的影音文件播放插件之后播放影音文件。
较佳地,本实施例中,若退出流程,则不再弹出交互窗口,按照现有的 影音文件播放方式播放影音文件即可。
通过本发明实施例,在浏览器中从搜索引擎处进行搜索就可以直接实现网页影音文件的点播播放,用户只需一次点击即可播放网页影音文件,达到一键播放的效果。而且本方案能够在浏览器中进入影音文件模式对点播的影音文件进行加载播放。
需要说明的是,对于前述的方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明所必需的。
基于与上述浏览器中加载影音文件信息的方法同一发明构思,参照图14,示出了本发明第九实施例中一种浏览器中加载影音文件信息的装置的结构框图。所述浏览器中加载影音文件信息的装置可以包括:
发送模块1402,配置为发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用的影音文件关键字。
第一接收模块1404,配置为接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
第一加载显示模块1406,配置为在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息。
在本发明实施例中,所述网页搜索结果信息中可以包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数,所述第1级至第N-1级影音文件地址为所述可播放影音文件的链接地址的父级地址。可选地,所述第一加载显示模块1406,可以包括:
网页加载模块14062,配置为根据第1级影音文件地址,在浏览器侧加载并显示所述第1级影音文件地址对应的网页。
影音文件地址选取模块14064,配置为从第2级至第N-1级影音文件地址中选取任意一个或多个与所述第1级影音文件地址具有对应关系的影音文件地址。
链接加载模块14066,配置为在所述搜索结果页面中,生成所述选取得到的任意一个或多个影音文件地址对应的链接。
第二加载显示模块1408,配置为在浏览器侧相关联地加载和显示所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
在本发明实施例中,可选地,所述第二加载显示模块1408可以包括:
影音播放选项生成模块14082,配置为根据所述可播放影音文件的链接放地址所指示的影音文件信息,加载与所述影音文件信息对应的影音播放选项。其中,所述影音文件信息包括:影音文件的剧集信息、影音文件的清晰度信息、影音文件的格式信息、影音文件的完整度信息、影音文件的版本信息和播放影音文件所需的插件信息中的至少一种信息。
影音播放选项显示模块14084,配置为在所述网页搜索结果信息对应网页中,显示所述影音播放选项。
在本发明实施例中,可选地,所述浏览器中加载影音文件信息的装置还可以包括:
影音播放模块1410,配置为在所述浏览器侧加载和显示的可播放影音文件的链接地址被触发时,加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件。
可选地,所述影音播放模块1410可以包括:
核心网址生成模块14102,配置为根据所述可播放影音文件的链接地址,生成核心网址;其中,所述核心网址中可以包括:影音模式启动地址、所述可播放影音文件的链接地址、虚拟地址和播放所述影音文件的插件信息。
影音模式启动模块14104,配置为加载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式。
直接播放模块14106,配置为根据所述可播放影音文件的链接地址在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
可选地,所述核心网址还包括:虚拟地址;本实施例的加载影音文件信息的装置装置还包括:
地址显示模块14108,配置为在所述影音模式启动模块载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式之后,在所述浏览器的地址栏中显示所述虚拟地址。
可选地,所述核心网址还包括:播放所述影音文件的插件信息;本实施例的加载影音文件信息的装置还包括:
插件调用模块141010,配置为根据所述播放所述影音文件的插件信息,调用播放所述影音文件的播放插件。
插件启动模块141012,配置为使用调用的播放插件,在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
在本发明实施例中,在所述影音模式下的浏览器网页中可以加载有:发送到选项、扫描二维码选项、查看原网页选项、搜索选项、云缓存选项和下载选项中的至少一种选项。所述浏览器中加载影音文件信息的装置还可以相应地包括以下模块中的至少一种:
发送到模块1412,配置为在所述发送到选项被触发时,将所述可播放影音文件的链接地址发送至移动终端;
二维码生成模块1414,配置为在所述扫描二维码选项被触发时,根据所述可播放影音文件的链接地址生成二维码;
父级地址显示模块1416,配置为在所述查看原网页选项被触发时,在浏览器侧加载并显示所述可播放影音文件的链接地址的父级地址;
后台搜索模块1418,配置为在所述搜索选项被触发时,在所述影音模式下,发送搜索请求至后台服务器。
云缓存模块1420,配置为在所述云缓存选项被触发时,将与所述搜索请求相匹配的影音文件离线缓存下载至云盘中。
下载模块1422,配置为在所述下载选项被触发时,下载所述与所述搜索请求相匹配的影音文件;并,加载一个下载内置页面,在所述下载内置页面中显示正在下载的与所述搜索请求相匹配的影音文件;和/或,在所述下载内置页面中显示已下载完成的与所述搜索请求相匹配的影音文件。
本发明实施例中,所述影音模式下的浏览器网页中还可以加载有播放列表、热播推荐和播放记录选项。可选地,所述浏览器中加载影音文件信息的装置还可以包括:
播放列表模块1424,配置为在所述播放列表中加载所述可播放影音文件的链接地址,并显示所述可播放影音文件的链接地址对应的影音文件。
热播推荐模块1426,配置为在所述热播推荐中加载网络热播的影音文件的链接地址,并显示所述网络热播的影音文件的链接地址对应的影音文件。
播放记录保存模块1428,配置为在所述影音播放模块播放与所述搜索请求相匹配的影音文件之后,保存所述与所述搜索请求相匹配的影音文件的播放记录。
播放记录显示模块1430,配置为在所述播放记录选项被触发时,加载一个播放记录内置页面,并将所述播放记录在所述播放记录内置页面中显示。
可选地,发送模块1402发送的搜索请求中还包括:设定的直接播放影音文件的条件;第一加载显示模块1406加载和显示的网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址,包括:所述网页搜索结果信息对应网页中所包含的、满足所述设定的直接播放影音文件的条件的影音文件地址。
综上所述,本发明实施例所述浏览器中加载影音文件信息的装置,直接在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址,搜索用时短。并且,用户点击所述可播放影音文件的链接地址,可以直接播放影音文件,搜索结果准确度高,展现形式直观。
基于与上述获取影音文件地址的方法同一发明构思,参照图15,示出了本发明第十实施例中一种获取影音文件地址的装置的结构框图。所述获取影音文件地址的装置包括:
第二接收模块1502,配置为接收搜索请求,其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件。
第一获取模块1504,配置为获取所述影音文件关键字对应的网页搜索结果信息。
第二获取模块1506,配置为获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址。其中,所述影音文件地址包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
结果返回模块1508,配置为将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
在本发明实施例中,所述影音文件地址还可以包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数。可选地,所述第二获取模块1506可以包括:
第三获取模块15062,配置为获取与所述影音文件关键字所指示的影音 文件相匹配的第1级影音文件地址。
第四获取模块15064,配置为获取所述第1级影音文件地址具有对应关系的第2至第N-1级影音文件地址;并获取所述第N-1级影音文件的下一级子地址,所述第N-1级影音文件的下一级子地址为第N级影音文件地址。
链接地址选取模块15066,配置为从第N级影音文件地址中选取满足所述设定的直接播放影音文件的条件的影音文件地址,作为所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。其中,所述设定的直接播放影音文件的条件包括直接播放所述影音文件的插件的信息。
参照图16,是图15所示实施例中一种链接地址选取模块的结构框图。可选地,所述链接地址选取模块15066可以包括:
节点信息获取模块1602,配置为遍历所述第N级影音文件地址对应的网页的文件对象模型DOM树节点,获取所述DOM树节点的节点信息;
筛选模块1604,配置为从所述DOM树节点的节点信息中,筛选得到满足所述设定的直接播放影音文件的插件的信息的节点信息;
链接地址确定模块1606,配置为将所述筛选得到的节点信息对应的影音文件地址确定为所述可播放影音文件的链接地址。
综上所述,本发明实施例所述的获取影音文件地址的装置,在后台服务器中存储的有根据爬虫程序得到的影音文件地址,并且可以根据搜索请求直接从存储的影音文件地址中获取得到可以直接进行播放的影音文件地址。获取影音文件地址的速度快、效率高,同时也保证了获取的搜索结果的准确性。
参照图17,示出了本发明第十一实施例中另一种浏览器中加载影音文件信息的装置的一个实施例的结构框图,该浏览器中加载影音文件信息的装置,包括:
识别模块1702,配置为接收输入的影音文件搜索数据,从影音文件搜索数据中识别出影音文件关键字。
本实施例中,识别模块1702对于浏览器中用户输入的所有影音文件搜索数据,例如在网页中输入的搜索关键字、地址栏中输入的搜索关键字、搜索栏输入的搜索词,都可以进行识别影音文件关键字的操作。从影音文件搜索数据中识别出影音文件关键字的方法,包括,提取搜索关键字,以及过滤搜索关键字中与影音文件内容无关的部分。例如,当用户使用baidu.com、google.com.hk、soso.com、youdao.com、sogou.com、yahoo.cn、cn.bing.com、 jike.com、so.360.cn时,通过搜索引擎提取搜索关键字;过滤掉关键字中的如下部分:在线、观看、百度、快播、QVOD、高清、版、下载、影音、BD、DVD、完整、HD、TS、抢先、电影、影音文件、全集、tv等等与影音文件内容无关的词语。
判断模块1704,配置为判断识别出的影音文件关键字是否命中影音文件词表,该影音文件词表指示至少一个后台服务器如影音文件内容服务器支持的影音文件关键字与关键字标识的对应关系。
其中,影音文件词表是根据从至少一个后台服务器获取的影音文件的信息生成的。创建与维护影音文件词表的操作,是由云端服务器或者后台服务器完成的。
本实施例中的判断模块1704,配置为接收后台服务器下发的影音文件词表并保存至本地,判断识别出的影音文件关键字是否命中已保存的本地影音文件词表;或者,将识别出的影音文件关键字发送至云端服务器,由云端服务器对该影音文件关键字和云端服务器中的影音文件词表进行比对,根据云端服务器返回的比对结果判断识别出的影音文件关键字是否命中影音文件词表;或者,将识别出的影音文件关键字发送至后台服务器,由后台服务器对该影音文件关键字和后台服务器中的影音文件词表进行比对,根据后台服务器返回的比对结果判断识别出的影音文件关键字是否命中影音文件词表。
查询模块1706,配置为当影音文件关键字命中影音文件词表时,从影音文件词表中查询该影音文件关键字的关键字标识,将关键字标识发送至后台服务器,进行信息查询。
展示模块1708,配置为接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将查询结果在该交互窗口中展示。
本实施例中的展示模块1708,还配置为判断接收到的查询结果是否有效,若是则弹出交互窗口,否则,不弹出交互窗口;或者,检测当前用于弹出交互窗口的搜索结果标签页是否为接收到影音文件搜索数据后生成的首个标签页,若是则在搜索结果标签页中弹出交互窗口,否则,不弹出交互窗口;或者,判断影音文件词表中的内容是否为空,若是则不弹出交互窗口,否则,弹出交互窗口。
播放模块1710,配置为当接收到对交互窗口发送的影音文件播放指令时,加载可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放该影音文件。
本实施例中的播放模块1710,还配置为在影音文件模式下播放影音文件时,将所播放的影音文件缓存在客户端或者云端服务器或者后台服务器中,生成并保存该影音文件的播放记录;利用播放记录,调用相应的影音文件播放插件从预定时间点开始对缓存的影音文件进行播放。
本实施例中的播放模块1710,还配置为将缓存的影音文件、生成的播放记录与指令播放该影音文件的用户账户相绑定,作为该用户账户的影音文件播放的个人数据。
参照图18,示出了本发明第十二实施例中的一种浏览器中加载影音文件信息的装置的一个实施例的结构框图。图18所示的装置与图17所示的第十一实施例的装置大致相同,包括:
识别模块1802,配置为接收输入的影音文件搜索数据,从影音文件搜索数据中识别出影音文件关键字。
判断模块1804,配置为判断识别出的影音文件关键字是否命中影音文件词表,该影音文件词表指示至少一个后台服务器如影音文件内容服务器支持的影音文件关键字与关键字标识的对应关系。
其中,影音文件词表是根据从至少一个后台服务器获取的影音文件的信息生成的。创建与维护影音文件词表的操作,是由云端服务器或者后台服务器完成的。
查询模块1806,配置为当影音文件关键字命中影音文件词表时,从影音文件词表中查询该影音文件关键字的关键字标识,将关键字标识发送至后台服务器,进行信息查询。
展示模块1808,配置为接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将查询结果在该交互窗口中展示。
播放模块1810,配置为当接收到对交互窗口发送的影音文件播放指令时,加载可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放该影音文件。
本实施例中的浏览器中加载影音文件信息的装置与图17所示装置的不同之处在于,本实施例中的浏览器中加载影音文件信息的装置还包括:
关闭模块1812,配置为在弹出交互窗口之后,当满足下述的至少一种条件时,关闭交互窗口:在预定时间内未接收到对交互窗口发送的影音文件播放指令;或者,交互窗口所在的搜索结果标签页切换为新的标签页;或者, 接收到对交互窗口发送的窗口关闭指令;或者,交互窗口失去焦点。
当所述查询结果中还包括影音文件下载地址时,所述浏览器中加载影音文件信息的装置还包括:下载模块1814,配置为当接收到对交互窗口发送的影音文件下载指令时,下载影音文件下载地址对应的影音文件。
本实施例的下载模块1814,还配置为当查询结果中包括同一影音文件的多个影音文件下载地址时,对该多个影音文件下载地址的下载速率进行预判断,选取判断出的最快下载速率对应的影音文件下载地址进行影音文件的下载。
所述浏览器中加载影音文件信息的装置还可以包括:影音文件模式启动模块1816,配置为在打开起始网页后进入影音文件模式,或者,在接收到对交互窗口发送的指令后进入影音文件模式。其中,在影音文件模式下网页全屏加载并播放网页影音文件。
由上所述,根据本发明实施例的浏览器中加载影音文件信息的装置,可以通过将影音文件关键字与影音文件词表进行比较以查询关键字标识以及根据关键字标识从后台服务器获取包括可播放影音文件的链接地址的查询结果,由于返回的查询结果包括可以直接播放影音文件的可播放影音文件的链接地址,解决了现有技术中用户需要多次点击页面才能播放影音文件的问题;以及通过调用浏览器中相应的影音文件播放插件播放影音文件,解决了现有技术的不能识别只能使用特定的浏览器或特定的播放工具进行播放的影音文件链接的问题,取得了提高影音文件搜索准确度和影音文件播放效率的有益效果。
对于上述装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一种获取及加载影音文件信息的设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图19示出了可以实现根据本发明的获取及加载影音文件信息的 计算设备,例如应用服务器。该计算设备传统上包括处理器1910和以存储器1920形式的计算机程序产品或者计算机可读介质。存储器1920可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1920具有用于执行上述方法中的任何方法步骤的程序代码1931的存储空间1930。例如,用于程序代码的存储空间1930可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1931。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图20所述的便携式或者固定存储单元。该存储单元可以具有与图19的计算设备中的存储器1920类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码2031’,即可以由例如诸如1910之类的处理器读取的代码,这些代码当由服务器运行时,导致该服务器执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的 目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (52)

  1. 一种浏览器中加载影音文件信息的方法,包括:
    发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用的影音文件关键字;
    接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;
    在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息以及所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
  2. 根据权利要求1所述的方法,其中,所述网页搜索结果信息中包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数,所述第1级至第N-1级影音文件地址为所述可播放影音文件的链接地址的父级地址;
    所述在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息的步骤,包括:
    根据第1级影音文件地址,在浏览器侧加载并显示所述第1级影音文件地址对应的网页;
    从第2级至第N-1级影音文件地址中选取任意一个或多个与所述第1级影音文件地址具有对应关系的影音文件地址;
    在所述第1级影音文件地址对应的网页中,生成所述选取得到的任意一个或多个影音文件地址对应的链接。
  3. 根据权利要求1所述的方法,其中,所述在浏览器侧相关联地加载和显示所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址的步骤,包括:
    根据所述可播放影音文件的链接放地址所指示的影音文件信息,加载与所述影音文件信息对应的影音播放选项;其中,所述影音文件信息包括:影音文件的剧集信息、影音文件的清晰度信息、影音文件的格式信息、影音文件的完整度信息、影音文件的版本信息和播放影音文件所需的插件信息中的至少一种信息;
    在所述网页搜索结果信息对应网页中,显示所述影音播放选项。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    当所述浏览器侧加载和显示的可播放影音文件的链接地址被触发时,加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件。
  5. 根据权利要求4所述的方法,其中,所述加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件的步骤,包括:
    根据所述可播放影音文件的链接地址,生成核心网址;其中,所述核心网址中包括:影音模式启动地址和所述可播放影音文件的链接地址;
    加载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式;
    根据所述可播放影音文件的链接地址在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
  6. 根据权利要求5所述的方法,其中,所述核心网址还包括:虚拟地址;
    在所述加载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式的步骤之后,还包括:
    在所述浏览器的地址栏中显示所述虚拟地址。
  7. 根据权利要求5所述的方法,其中,所述核心网址,还包括:播放所述影音文件的插件信息;
    所述根据所述可播放影音文件的链接地址在所述影音模式中直接播放与所述搜索请求相匹配的影音文件的步骤,包括:
    根据所述播放所述影音文件的插件信息,调用播放所述影音文件的播放插件;
    使用调用的播放插件,在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
  8. 根据权利要求4所述的方法,其中,所述影音模式下的浏览器网页中加载有:发送到选项、扫描二维码选项、查看原网页选项和搜索选项中的 至少一种选项;
    所述方法还包括:
    当所述发送到选项被触发时,将所述可播放影音文件的链接地址发送至移动终端;
    当所述扫描二维码选项被触发时,根据所述可播放影音文件的链接地址生成二维码;
    当所述查看原网页选项被触发时,在浏览器侧加载并显示所述可播放影音文件的链接地址的父级地址;
    当所述搜索选项被触发时,在所述影音模式下,发送搜索请求至后台服务器。
  9. 根据权利要求4所述的方法,其中,所述影音模式下的浏览器网页中加载有:播放列表和热播推荐;
    所述方法还包括:
    在所述播放列表中加载所述可播放影音文件的链接地址,并显示所述可播放影音文件的链接地址对应的影音文件;
    在所述热播推荐中加载网络热播的影音文件的链接地址,并显示所述网络热播的影音文件的链接地址对应的影音文件。
  10. 根据权利要求4所述的方法,其中,所述影音模式下的浏览器网页中加载有云缓存选项;
    所述方法还包括:
    当所述云缓存选项被触发时,将与所述搜索请求相匹配的影音文件离线缓存下载至云盘中。
  11. 根据权利要求4所述的方法,其中,所述影音模式下的浏览器网页中加载有下载选项;
    所述方法还包括:
    当所述下载选项被触发时,下载所述与所述搜索请求相匹配的影音文件;并,
    加载一个下载内置页面,在所述下载内置页面中显示正在下载的与所述 搜索请求相匹配的影音文件;和/或,在所述下载内置页面中显示已下载完成的与所述搜索请求相匹配的影音文件。
  12. 根据权利要求4所述的方法,其中,所述影音模式下的浏览器网页中加载有播放记录选项;
    在所述播放与所述搜索请求相匹配的影音文件的步骤之后,所述方法还包括:
    保存所述与所述搜索请求相匹配的影音文件的播放记录;
    当所述播放记录选项被触发时,加载一个播放记录内置页面,并将所述播放记录在所述播放记录内置页面中显示。
  13. 根据权利要求1所述的方法,其中,所述搜索请求中还包括:设定的直接播放影音文件的条件;
    所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址,包括:
    所述网页搜索结果信息对应网页中所包含的、满足所述设定的直接播放影音文件的条件的影音文件地址。
  14. 一种浏览器中加载影音文件信息的装置,包括:
    发送模块,配置为发送搜索请求至后台服务器,其中,所述搜索请求中包括搜索用的影音文件关键字;
    第一接收模块,配置为接收由所述后台服务器返回的影音文件搜索结果;其中,所述影音文件搜索结果包括:所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;
    第一加载显示模块,配置为在浏览器侧相关联地加载和显示所述影音文件关键字对应的网页搜索结果信息;
    第二加载显示模块,配置为在浏览器侧相关联地加载和显示所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
  15. 根据权利要求14所述的装置,其中,所述网页搜索结果信息中包 括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数,所述第1级至第N-1级影音文件地址为所述可播放影音文件的链接地址的父级地址;
    所述第一加载显示模块,包括:
    网页加载模块,配置为根据第1级影音文件地址,在浏览器侧加载并显示所述第1级影音文件地址对应的网页;
    影音文件地址选取模块,配置为从第2级至第N-1级影音文件地址中选取任意一个或多个与所述第1级影音文件地址具有对应关系的影音文件地址;
    链接加载模块,配置为在所述搜索结果页面中,生成所述选取得到的任意一个或多个影音文件地址对应的链接。
  16. 根据权利要求14所述的装置,其中,所述第二加载显示模块,包括:
    影音播放选项生成模块,配置为根据所述可播放影音文件的链接放地址所指示的影音文件信息,加载与所述影音文件信息对应的影音播放选项;其中,所述影音文件信息包括:影音文件的剧集信息、影音文件的清晰度信息、影音文件的格式信息、影音文件的完整度信息、影音文件的版本信息和播放影音文件所需的插件信息中的至少一种信息;
    影音播放选项显示模块,配置为在所述网页搜索结果信息对应网页中,显示所述影音播放选项。
  17. 根据权利要求14所述的装置,其中,所述装置还包括:
    影音播放模块,配置为在所述浏览器侧加载和显示的可播放影音文件的链接地址被触发时,加载一个内置网页,进入浏览器的影音模式,播放与所述搜索请求相匹配的影音文件。
  18. 根据权利要求17所述的装置,其中,所述影音播放模块包括:
    核心网址生成模块,配置为根据所述可播放影音文件的链接地址,生成核心网址;其中,所述核心网址中包括:影音模式启动地址和所述可播放影音文件的链接地址;
    影音模式启动模块,配置为加载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式;
    直接播放模块,配置为根据所述可播放影音文件的链接地址在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
  19. 根据权利要求18所述的装置,其中,所述核心网址还包括:虚拟地址;
    所述装置还包括:
    地址显示模块,配置为在所述影音模式启动模块载一个内置网页,并根据所述影音模式启动地址进入浏览器的影音模式之后,在所述浏览器的地址栏中显示所述虚拟地址。
  20. 根据权利要求18所述的装置,其中,所述核心网址,还包括:播放所述影音文件的插件信息;
    所述直接播放模块包括:
    插件调用模块,配置为根据所述播放所述影音文件的插件信息,调用播放所述影音文件的播放插件;
    插件启动模块,配置为使用调用的播放插件,在所述影音模式中直接播放与所述搜索请求相匹配的影音文件。
  21. 根据权利要求17所述的装置,其中,所述影音模式下的浏览器网页中加载有:发送到选项、扫描二维码选项、查看原网页选项和搜索选项中的至少一种选项;
    所述装置还包括:
    发送到模块,配置为在所述发送到选项被触发时,将所述可播放影音文件的链接地址发送至移动终端;
    二维码生成模块,配置为在所述扫描二维码选项被触发时,根据所述可播放影音文件的链接地址生成二维码;
    父级地址显示模块,配置为在所述查看原网页选项被触发时,在浏览器侧加载并显示所述可播放影音文件的链接地址的父级地址;
    后台搜索模块,配置为在所述搜索选项被触发时,在所述影音模式下, 发送搜索请求至后台服务器。
  22. 根据权利要求17所述的装置,其中,所述影音模式下的浏览器网页中加载有:播放列表和热播推荐;
    所述装置还包括:
    播放列表模块,配置为在所述播放列表中加载所述可播放影音文件的链接地址,并显示所述可播放影音文件的链接地址对应的影音文件;
    热播推荐模块,配置为在所述热播推荐中加载网络热播的影音文件的链接地址,并显示所述网络热播的影音文件的链接地址对应的影音文件。
  23. 根据权利要求17所述的装置,其中,所述影音模式下的浏览器网页中加载有云缓存选项;
    所述装置还包括:
    云缓存模块,配置为在所述云缓存选项被触发时,将与所述搜索请求相匹配的影音文件离线缓存下载至云盘中。
  24. 根据权利要求17所述的装置,其中,所述影音模式下的浏览器网页中加载有下载选项;
    所述装置还包括:
    下载模块,配置为当所述下载选项被触发时,下载所述与所述搜索请求相匹配的影音文件;并,加载一个下载内置页面,在所述下载内置页面中显示正在下载的与所述搜索请求相匹配的影音文件;和/或,在所述下载内置页面中显示已下载完成的与所述搜索请求相匹配的影音文件。
  25. 根据权利要求17所述的装置,其中,所述影音模式下的浏览器网页中加载有播放记录选项;
    所述装置还包括:
    播放记录保存模块,配置为在所述影音播放模块播放与所述搜索请求相匹配的影音文件之后,保存所述与所述搜索请求相匹配的影音文件的播放记录;
    播放记录显示模块,配置为当所述播放记录选项被触发时,加载一个播放记录内置页面,并将所述播放记录在所述播放记录内置页面中显示。
  26. 根据权利要求14所述的装置,其中,所述搜索请求中还包括:设定的直接播放影音文件的条件;
    所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址,包括:
    所述网页搜索结果信息对应网页中所包含的、满足所述设定的直接播放影音文件的条件的影音文件地址。
  27. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-13中的任一个所述的浏览器中加载影音文件信息的方法。
  28. 一种计算机可读介质,其中存储了如权利要求27所述的计算机程序。
  29. 一种获取影音文件信息的方法,包括:
    接收搜索请求,其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件;
    获取所述影音文件关键字对应的网页搜索结果信息;
    获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址;其中,所述影音文件地址包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;
    将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址返回至浏览器。
  30. 根据权利要求29所述的方法,其中,所述影音文件地址还包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数;
    所述获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址的步骤,包括:
    获取与所述影音文件关键字所指示的影音文件相匹配的第1级影音文件地址;
    获取所述第1级影音文件地址具有对应关系的第2至第N-1级影音文件地址;并获取所述第N-1级影音文件的下一级子地址,所述第N-1级影音文 件的下一级子地址为第N级影音文件地址;
    从第N级影音文件地址中选取满足所述设定的直接播放影音文件的条件的影音文件地址,作为所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
  31. 根据权利要求29或30所述的方法,其中,所述设定的直接播放影音文件的条件包括直接播放所述影音文件的插件的信息。
  32. 根据权利要求31所述的方法,其中,
    所述从第N级影音文件地址中选取满足所述设定的直接播放影音文件的条件的影音文件地址,作为所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址的步骤,包括:
    遍历所述第N级影音文件地址对应的网页的文件对象模型DOM树节点,获取所述DOM树节点的节点信息;
    从所述DOM树节点的节点信息中,筛选得到满足所述设定的直接播放影音文件的插件的信息的节点信息;
    将所述筛选得到的节点信息对应的影音文件地址确定为所述可播放影音文件的链接地址。
  33. 一种获取影音文件地址的装置,包括:
    第二接收模块,配置为接收搜索请求,其中,所述搜索请求中包括:搜索用的影音文件关键字和设定的直接播放影音文件的条件;
    第一获取模块,配置为获取所述影音文件关键字对应的网页搜索结果信息;
    第二获取模块,配置为获取满足所述设定的直接播放影音文件的条件的、所述影音文件关键字所指示的影音文件对应的影音文件地址;其中,所述影音文件地址包括:所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址;
    结果返回模块,配置为将获取的所述影音文件关键字对应的网页搜索结果信息和所述网页搜索结果信息对应网页中所包含的可播放影音文件的链 接地址返回至浏览器。
  34. 根据权利要求33所述的装置,其中,所述影音文件地址还包括:第1级至第N-1级影音文件地址,N为大于或等于3的正整数;
    所述第二获取模块,包括:
    第三获取模块,配置为获取与所述影音文件关键字所指示的影音文件相匹配的第1级影音文件地址;
    第四获取模块,配置为获取所述第1级影音文件地址具有对应关系的第2至第N-1级影音文件地址;并获取所述第N-1级影音文件的下一级子地址,所述第N-1级影音文件的下一级子地址为第N级影音文件地址;
    链接地址选取模块,配置为从第N级影音文件地址中选取满足所述设定的直接播放影音文件的条件的影音文件地址,作为所述网页搜索结果信息对应网页中所包含的可播放影音文件的链接地址。
  35. 根据权利要求33或34所述的装置,其中,所述设定的直接播放影音文件的条件包括直接播放所述影音文件的插件的信息。
  36. 根据权利要求35所述的装置,其中,所述链接地址选取模块,包括:
    节点信息获取模块,配置为遍历所述第N级影音文件地址对应的网页的文件对象模型DOM树节点,获取所述DOM树节点的节点信息;
    筛选模块,配置为从所述DOM树节点的节点信息中,筛选得到满足所述设定的直接播放影音文件的插件的信息的节点信息;
    链接地址确定模块,配置为将所述筛选得到的节点信息对应的影音文件地址确定为所述可播放影音文件的链接地址。
  37. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求29-32中的任一个所述的获取影音文件信息的方法。
  38. 一种计算机可读介质,其中存储了如权利要求37所述的计算机程序。
  39. 一种浏览器中加载影音文件信息的方法,包括:
    接收输入的影音文件搜索数据,从所述影音文件搜索数据中识别出影音文件关键字;
    判断识别出的所述影音文件关键字是否命中影音文件词表,其中,所述影音文件词表指示至少一个后台服务器支持的影音文件关键字与关键字标识的对应关系;
    当所述影音文件关键字命中所述影音文件词表时,从所述影音文件词表中查询所述影音文件关键字的关键字标识,将所述关键字标识发送至后台服务器,进行信息查询;
    接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将所述查询结果在该交互窗口中展示;
    当接收到对所述交互窗口发送的影音文件播放指令时,加载所述可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放所述影音文件。
  40. 根据权利要求39所述的方法,其中,所述弹出交互窗口的步骤包括:
    判断接收到的所述查询结果是否有效,若是则弹出交互窗口,否则,不弹出交互窗口;
    或者,
    检测当前用于弹出交互窗口的搜索结果标签页是否为接收到所述影音文件搜索数据后生成的首个标签页,若是则在所述搜索结果标签页中弹出交互窗口,否则,不弹出交互窗口;
    或者,
    判断所述影音文件词表中的内容是否为空,若是则不弹出交互窗口,否则,弹出交互窗口。
  41. 根据权利要求39所述的方法,其中,所述查询结果中还包括影音文件下载地址,所述方法还包括:
    当接收到对所述交互窗口发送的影音文件下载指令时,下载所述影音文 件下载地址对应的影音文件。
  42. 根据权利要求41所述的方法,其中,所述下载所述影音文件下载地址对应的影音文件的步骤包括:
    当所述查询结果中包括同一影音文件的多个影音文件下载地址时,对所述多个影音文件下载地址的下载速率进行预判断,选取判断出的最快下载速率对应的影音文件下载地址进行影音文件的下载。
  43. 根据权利要求39所述的方法,其中,所述方法还包括:
    在打开起始网页后进入影音文件模式,或者,在接收到对所述交互窗口发送的指令后进入影音文件模式,
    其中,在所述影音文件模式下网页全屏加载并播放影音文件。
  44. 根据权利要求43所述的方法,其中,所述方法还包括:
    在影音文件模式下播放网页影音文件时,将所播放的影音文件缓存在客户端或者后台服务器中,生成并保存所述影音文件的播放记录;
    利用所述播放记录,调用相应的影音文件播放插件从预定时间点开始对缓存的影音文件进行播放。
  45. 一种浏览器中加载影音文件信息的装置,包括:
    识别模块,配置为接收输入的影音文件搜索数据,从所述影音文件搜索数据中识别出影音文件关键字;
    判断模块,配置为判断识别出的所述影音文件关键字是否命中影音文件词表,其中,所述影音文件词表指示至少一个后台服务器支持的影音文件关键字与关键字标识的对应关系;
    查询模块,配置为当所述影音文件关键字命中所述影音文件词表时,从所述影音文件词表中查询所述影音文件关键字的关键字标识,将所述关键字标识发送至后台服务器,进行信息查询;
    展示模块,配置为接收后台服务器返回的包括可播放影音文件的链接地址的查询结果,弹出交互窗口,将所述查询结果在该交互窗口中展示;
    播放模块,配置为当接收到对所述交互窗口发送的影音文件播放指令 时,加载所述可播放影音文件的链接地址对应的影音文件,并调用相应的影音文件播放插件播放所述影音文件。
  46. 根据权利要求45所述的装置,其中,
    所述展示模块,还配置为判断接收到的所述查询结果是否有效,若是则弹出交互窗口,否则,不弹出交互窗口;
    或者,
    还配置为检测当前用于弹出交互窗口的搜索结果标签页是否为接收到所述影音文件搜索数据后生成的首个标签页,若是则在所述搜索结果标签页中弹出交互窗口,否则,不弹出交互窗口;
    或者,
    还配置为判断所述影音文件词表中的内容是否为空,若是则不弹出交互窗口,否则,弹出交互窗口。
  47. 根据权利要求45所述的装置,其中,所述查询结果中还包括影音文件下载地址,所述装置还包括下载模块,配置为当接收到对所述交互窗口发送的影音文件下载指令时,下载所述影音文件下载地址对应的影音文件。
  48. 根据权利要求47所述的装置,其中,所述下载模块,还配置为当所述查询结果中包括同一影音文件的多个影音文件下载地址时,对所述多个影音文件下载地址的下载速率进行预判断,选取判断出的最快下载速率对应的影音文件下载地址进行影音文件的下载。
  49. 根据权利要求45所述的装置,其中,所述装置还包括影音文件模式启动模块,配置为在打开起始网页后进入影音文件模式,或者,在接收到用户对所述交互窗口发送的指令后进入影音文件模式,
    其中,在所述影音文件模式下网页全屏加载并播放影音文件。
  50. 根据权利要求49所述的装置,其中,所述播放模块,还配置为在影音文件模式下播放影音文件时,将所播放的影音文件缓存在客户端或者后台服务器中,生成并保存所述影音文件的播放记录;利用所述播放记录,调用相应的影音文件播放插件从预定时间点开始对缓存的影音文件进行播放。
  51. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求39-44中的任一个所述的浏览器中加载影音文件信息的方法。
  52. 一种计算机可读介质,其中存储了如权利要求51所述的计算机程序。
PCT/CN2014/090010 2013-11-01 2014-10-31 获取及加载影音文件信息的方法和装置 WO2015062539A1 (zh)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201310535484.5A CN103823829B (zh) 2013-11-01 2013-11-01 一种对网页视频进行播放的方法和装置
CN201310535484.5 2013-11-01
CN201310538628.2 2013-11-04
CN201310538290.0A CN103593423A (zh) 2013-11-04 2013-11-04 一种浏览器中加载影音文件信息的方法和装置
CN201310538628.2A CN103605696B (zh) 2013-11-04 2013-11-04 一种获取影音文件地址的方法和装置
CN201310538290.0 2013-11-04

Publications (1)

Publication Number Publication Date
WO2015062539A1 true WO2015062539A1 (zh) 2015-05-07

Family

ID=53003385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090010 WO2015062539A1 (zh) 2013-11-01 2014-10-31 获取及加载影音文件信息的方法和装置

Country Status (1)

Country Link
WO (1) WO2015062539A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241301A (zh) * 2018-08-31 2019-01-18 北京优酷科技有限公司 资源推荐方法及装置
CN111158838A (zh) * 2019-12-31 2020-05-15 联想(北京)有限公司 一种信息处理方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950287A (zh) * 2009-07-10 2011-01-19 康佳集团股份有限公司 自动下载装置、方法及系统
CN103345499A (zh) * 2013-06-28 2013-10-09 宇龙计算机通信科技(深圳)有限公司 一种搜索引擎的搜索结果处理方法及装置
CN103593423A (zh) * 2013-11-04 2014-02-19 北京奇虎科技有限公司 一种浏览器中加载影音文件信息的方法和装置
CN103605696A (zh) * 2013-11-04 2014-02-26 北京奇虎科技有限公司 一种获取影音文件地址的方法和装置
CN103823829A (zh) * 2013-11-01 2014-05-28 北京奇虎科技有限公司 一种对网页视频进行播放的方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950287A (zh) * 2009-07-10 2011-01-19 康佳集团股份有限公司 自动下载装置、方法及系统
CN103345499A (zh) * 2013-06-28 2013-10-09 宇龙计算机通信科技(深圳)有限公司 一种搜索引擎的搜索结果处理方法及装置
CN103823829A (zh) * 2013-11-01 2014-05-28 北京奇虎科技有限公司 一种对网页视频进行播放的方法和装置
CN103593423A (zh) * 2013-11-04 2014-02-19 北京奇虎科技有限公司 一种浏览器中加载影音文件信息的方法和装置
CN103605696A (zh) * 2013-11-04 2014-02-26 北京奇虎科技有限公司 一种获取影音文件地址的方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241301A (zh) * 2018-08-31 2019-01-18 北京优酷科技有限公司 资源推荐方法及装置
CN111158838A (zh) * 2019-12-31 2020-05-15 联想(北京)有限公司 一种信息处理方法及装置

Similar Documents

Publication Publication Date Title
WO2015062380A1 (zh) 一种对网页视频进行播放的方法和装置
US11350182B2 (en) Methods, systems, and media for presenting supplemental content relating to media content based on state information that indicates a subsequent visit to the content interface
US11748408B2 (en) Analyzing user searches of verbal media content
US8843467B2 (en) Method and system for providing relevant information to a user of a device in a local network
US8168876B2 (en) Method of displaying music information in multimedia playback and related electronic device
RU2632131C2 (ru) Способ и устройство для создания рекомендуемого списка содержимого
RU2629638C2 (ru) Способ и сервер создания рекомендуемого набора элементов для пользователя
US20170046023A1 (en) Method and apparatus for processing managing multimedia content
US10440435B1 (en) Performing searches while viewing video content
WO2015003663A1 (zh) 一种视频处理方法、装置、服务器和客户端设备
WO2021129122A1 (zh) 书籍查询页面的展示方法、电子设备及计算机存储介质
CN103605696B (zh) 一种获取影音文件地址的方法和装置
US20140040258A1 (en) Content association based on triggering parameters and associated triggering conditions
WO2015062385A1 (zh) 浏览器中加载影音文件信息的方法和装置
WO2017016285A1 (zh) 一种实现多媒体文件下载的方法及装置
WO2015062539A1 (zh) 获取及加载影音文件信息的方法和装置
US20140380146A1 (en) Creating playlist from web page
CN110909201B (zh) 基于播放页面的内容分发方法、计算设备及计算机存储介质
JP4477931B2 (ja) 検索リクエスト装置、検索リクエスト方法、検索リクエストプログラムおよび検索リクエストプログラムを記録したコンピュータ読み取り可能な記録媒体
US20160353176A1 (en) Contextual content programming
US20130275860A1 (en) System and method for assisting information searching
KR102452245B1 (ko) 음악재생기에서 오디오 비디오 연동방법
WO2016023512A1 (zh) 提供内容提供方的定制结果的搜索方法、客户端和系统
KR20170020217A (ko) 멀티미디어 콘텐트를 처리하는 방법 및 장치
US9307181B1 (en) Time-based triggering of related content links

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: 14858311

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: 14858311

Country of ref document: EP

Kind code of ref document: A1