Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, the present invention provides a kind of numbers
According to acquisition methods and device.
In a first aspect, being applied to terminal the present invention provides a kind of data capture method, being provided with data in the terminal
Search box, which comprises
Obtain the multimedia messages that user inputs in the data search frame;
Corresponding multimedia search request is generated according to the multimedia messages;
Send multimedia search request to predetermined server, so as to the predetermined server receive it is described more
When media research is requested, Xiang Suoshu terminal sends corresponding multi-medium data;
The multi-medium data that the predetermined server is sent is received, the multi-medium data is asked to the multimedia search
The response asked.
It is optionally, described to generate corresponding multimedia search request according to the multimedia messages, comprising:
Extract the keyword in the multimedia messages;
Generate the multimedia search request for carrying the keyword.
Optionally, the multi-medium data is music data.
Optionally, the music data carries lyrics information, the method also includes:
Browsing pages are created on the terminal;
The lyrics information is shown on the browsing pages, wherein when playing the music in the music data, institute
It is corresponding with the playback progress of the music to state lyrics information.
Optionally, the predetermined server is YouTube server.
Second aspect, the present invention provides a kind of data acquisition facilities, are applied to terminal, are provided with data in the terminal
Search box, described device include:
Acquiring unit, the multimedia messages inputted in the data search frame for obtaining user;
Generation unit is requested for generating corresponding multimedia search according to the multimedia messages;
Transmission unit, for sending the multimedia search request to predetermined server, so as in the predetermined server
When receiving multimedia search request, Xiang Suoshu terminal sends corresponding multi-medium data;
Receiving unit, the multi-medium data sent for receiving the predetermined server, the multi-medium data is to institute
State the response of multimedia search request.
Optionally, the generation unit, is specifically used for:
Extract the keyword in the multimedia messages;
Generate the multimedia search request for carrying the keyword.
Optionally, the multi-medium data is music data.
Optionally, the music data carries lyrics information, described device further include:
Creating unit, for creating browsing pages on the terminal;
Display unit, for showing the lyrics information on the browsing pages, wherein playing the music data
In music when, the lyrics information is corresponding with the playback progress of the music.
Optionally, the predetermined server is YouTube server.
Above-mentioned technical proposal provided in an embodiment of the present invention has the advantages that compared with prior art
Data capture method and device provided in an embodiment of the present invention are being obtained by the way that data search frame is arranged at the terminal
When taking the multimedia messages that family inputs in data search frame, corresponding multimedia search is generated according to multimedia messages and is asked
It asks;To predetermined server send multimedia search request, so as to predetermined server receive multimedia search request when, to
Terminal sends corresponding multi-medium data;The multi-medium data that predetermined server is sent is received, multi-medium data is to multimedia
The response of searching request.User only need to input relevant information in data search frame in this way, can be obtained by search default
The data that server returns, facilitate the use of user at the terminal.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of data capture method provided in an embodiment of the present invention, as shown in Figure 1, this method can be applied to end
End, and data search frame is provided in the terminal, this method may include steps of:
Step S110 obtains the multimedia messages that user inputs in data search frame.
The embodiment of the present invention can be is provided with a data search box, such as music searching frame on mobile phone, by this
Music data etc. on the accessible YouTube server of search box.User is being searched for by using the data search frame in this way
Relevant information is inputted inside frame, such as when song title, corresponding music data on accessible YouTube server.
Step S120 generates corresponding multimedia search according to multimedia messages and requests.
Wherein, which can be with specifically:
Step S121 extracts the keyword in multimedia messages.
Step S122 generates the multimedia search request for carrying keyword.
For example, much superfluous may be included inside these texts when user has input many texts in data search frame
Remaining information may return if all will all be sent to predetermined server comprising the multimedia messages and much request nothing with user
The data of pass.At this moment terminal can first pre-process the multimedia messages, extract the keyword in multimedia messages, will
Multimedia search request comprising the keyword is sent to predetermined server, so that predetermined server can return to effective number
According to.
Step S130 sends multimedia search request to predetermined server, to receive more matchmakers in predetermined server
When body searching request, corresponding multi-medium data is sent to terminal.
Step S140, receives the multi-medium data that predetermined server is sent, and multi-medium data is requested multimedia search
Response.
When user inputs multimedia messages in data search frame and scans for, at this moment terminal is generated believes comprising the multimedia
The multimedia search of breath is requested, and multimedia search request is sent to predetermined server.Illustratively, user searches in data
When inputting " lonely " in rope frame, terminal sends the searching request comprising " lonely " to YouTube server, so as to
YouTube returns to song relevant to " lonely " etc..
Wherein, the multi-medium data in the embodiment of the present invention can be music.In this method provided in an embodiment of the present invention,
The music data can carry lyrics information, this method further include:
Step S141, creates browsing pages at the terminal.
Step S142, shows lyrics information on browsing pages, wherein when playing the music in music data, the lyrics
Information is corresponding with the playback progress of music.
For the embodiment of the present invention by creating browsing pages at the terminal, the music data that predetermined server is returned is clear at this
It lookes on the page and shows, such as show that on browsing pages, the lyrics and broadcasting carry out etc., facilitate user to appreciate music.
Data capture method provided in an embodiment of the present invention is obtaining user by the way that data search frame is arranged at the terminal
When the multimedia messages inputted in data search frame, corresponding multimedia search is generated according to multimedia messages and is requested;To pre-
If server sends multimedia search request, when receiving multimedia search request, to be sent out to terminal in predetermined server
Send corresponding multi-medium data;The multi-medium data that predetermined server is sent is received, multi-medium data is asked to multimedia search
The response asked.User only need to input relevant information in data search frame in this way, can obtain predetermined server by search
The data of return facilitate the use of user at the terminal.
As the specific implementation of the above method, in another embodiment provided by the invention, as shown in Fig. 2, additionally providing
A kind of data acquisition facility, the device are located in terminal, and data search frame is provided in the terminal, the apparatus may include:
Acquiring unit 10, the multimedia messages inputted in the data search frame for obtaining user;
Generation unit 20 is requested for generating corresponding multimedia search according to the multimedia messages;
Transmission unit 30, for sending the multimedia search request to predetermined server, so as in the preset service
For device when receiving multimedia search request, Xiang Suoshu terminal sends corresponding multi-medium data;
Receiving unit 40, the multi-medium data sent for receiving the predetermined server, the multi-medium data is pair
The response of the multimedia search request.
In another embodiment provided by the invention, the generation unit 20 is specifically used for:
Extract the keyword in the multimedia messages;
Generate the multimedia search request for carrying the keyword.
In another embodiment provided by the invention, the multi-medium data is music data.
In another embodiment provided by the invention, the music data carries lyrics information, described device further include:
Creating unit, for creating browsing pages on the terminal;
Display unit, for showing the lyrics information on the browsing pages, wherein playing the music data
In music when, the lyrics information is corresponding with the playback progress of the music.
In another embodiment provided by the invention, which is characterized in that the predetermined server is YouTube server.
It since the device corresponds to the above method, just repeats no more here, referring specifically to the corresponding implementation of the above method
Example.
Data acquisition facility provided in an embodiment of the present invention is obtaining user by the way that data search frame is arranged at the terminal
When the multimedia messages inputted in data search frame, corresponding multimedia search is generated according to multimedia messages and is requested;To pre-
If server sends multimedia search request, when receiving multimedia search request, to be sent out to terminal in predetermined server
Send corresponding multi-medium data;The multi-medium data that predetermined server is sent is received, multi-medium data is asked to multimedia search
The response asked.User only need to input relevant information in data search frame in this way, can obtain predetermined server by search
The data of return facilitate the use of user at the terminal.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting
Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair
It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and applied principle and features of novelty phase one herein
The widest scope of cause.