CN103023870A - Method, device and equipment for outputting data in message - Google Patents

Method, device and equipment for outputting data in message Download PDF

Info

Publication number
CN103023870A
CN103023870A CN2012104589707A CN201210458970A CN103023870A CN 103023870 A CN103023870 A CN 103023870A CN 2012104589707 A CN2012104589707 A CN 2012104589707A CN 201210458970 A CN201210458970 A CN 201210458970A CN 103023870 A CN103023870 A CN 103023870A
Authority
CN
China
Prior art keywords
resource
review information
type
message
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012104589707A
Other languages
Chinese (zh)
Other versions
CN103023870B (en
Inventor
林俊琦
曾健
赵振海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201210458970.7A priority Critical patent/CN103023870B/en
Publication of CN103023870A publication Critical patent/CN103023870A/en
Application granted granted Critical
Publication of CN103023870B publication Critical patent/CN103023870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method, a device and equipment for outputting data in a message, relating to the technical field of network. The method comprises the following steps of: identifying the uniform resource identifier in the message; obtaining the resource type of the resources to which the uniform resource identifier points; and determining the preview information of the resources according to the resource type and outputting the preview information. According to the method provided by the embodiment of the invention, the resources to which the URI (Uniform Resource Identifier) points can be visually identified by showing the preview information corresponding to the resources to which the URI points. In addition, a user does not need to trigger the external program to analyze the URI to obtain the resources; and therefore, the operation of the user is simplified.

Description

The output intent of data, device and equipment in a kind of message
Technical field
The present invention relates to network technology, particularly relate to output intent, device and the equipment of data in a kind of message.
Background technology
At present, the user often can add generic resource identifier (UniformResource Identifier, be called for short URI) in conversation class message, with to the other side's content recommendation.For example, using mobile phone to receive short message, or when using MSN to receive instant message, in message, tending to URI.Wherein URI can to and on the network available every kind of resource such as html document, image, video segment, program position.Therefore, the URI in the message can point to some resource in the network.
If the user wants to know described URI and pointed to what resource, or want to check described resource, just usually need to click described URI, and then trigger outside application program, by external application described URI process is processed, thereby obtained and open described resource.
But, when above-mentioned method will be obtained URI in the message, need program corresponding to clicking trigger, just can check the resource that URI is pointed, complex operation by this program.
Summary of the invention
The embodiment of the invention provides output intent, device and the equipment of data in a kind of message, can solve the loaded down with trivial details problem of acquisition methods of the resource that URI points in the message.
In order to address the above problem, the embodiment of the invention discloses the output intent of data in a kind of message, comprising:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
Preferably, the generic resource identifier in the described identification message, in the following way: meet the character string of default form in the identification message as the generic resource identifier.
Preferably, when described universal resource identifier is the universal resource identifier of redirect type, the described resource type of obtaining described universal resource identifier resource pointed, in the following way: obtain described universal resource identifier in the resource type through the final resource of pointing to after the redirect.
Preferably, described pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of the predetermined fraction of the predetermined fraction of described resource, described resource or described resource.
Preferably, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
Preferably, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
Preferably, describedly determine that according to described resource and described resource type before the pre-review information of described resource, described method also comprises: obtain described resource according to described universal resource identifier.
Preferably, the described pre-review information of described output adopts following form: described message and described pre-review information are exported with preset mode.
Preferably, after the generic resource identifier in the identification message, also comprise: obtain described resource according to described universal resource identifier.
The embodiment of the invention also discloses the output device of data in a kind of message, comprising:
Identification module is for the generic resource identifier of identification message;
Acquisition module is for the resource type of obtaining described universal resource identifier resource pointed;
Output module is used for determining the pre-review information of described resource according to described resource type, and exports described pre-review information.
Preferably, described identification module specifically is used for identification message and meets the character string of default form as the generic resource identifier.
Preferably, described acquisition module, obtains described universal resource identifier in the resource type through the final resource of pointing to after the redirect at concrete being used for when described universal resource identifier is the universal resource identifier of redirect type.
Preferably, described pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of the predetermined fraction of the predetermined fraction of described resource, described resource or described resource.
Preferably, described output module, the concrete resource type that is used for definite described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
Preferably, described output module concrete is used for determining that the resource type of described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
Preferably, described acquisition module also is used for obtaining described resource according to described universal resource identifier before determining the pre-review information of described resource according to described resource and described resource type; Or after the generic resource identifier in identification message, obtain described resource according to described universal resource identifier.
Preferably, described output module, concrete being used for exports described message and described pre-review information with preset mode.
The embodiment of the invention also discloses a kind of equipment, described equipment comprises:
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
The present invention includes following advantage:
At first, after obtaining message, from message, identify URI in the embodiment of the invention, and obtain the resource type of URI resource pointed.Determine again the pre-review information of this resource according to resource type, and export described pre-review information.In the embodiment of the invention, the resource type of resource is different, and its pre-review information that adopts is also different, resource can be exported with different pre-review informations in message in the embodiment of the invention, method is flexible, is convenient to embody the characteristics of resource, thereby can identify intuitively the resource that URI points to.And the user does not need to trigger external program again URI is resolved Gains resources, has simplified user's operation.
Secondly, in the embodiment of the invention, can be according to the resource type of URI resource pointed, determine the pre-review information of resource, this pre-review information can be the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of predetermined fraction, this predetermined fraction of resource or resource, can adopt different forms to express URI resource pointed, the way of output of resource is various.
Again, when exporting pre-review information in the embodiment of the invention, can in message, export pre-review information with preset mode output message and pre-review information, or difference output message and pre-review information, the mode of message and URI resource pointed is various.
Description of drawings
Fig. 1 is the output intent flow chart of data in the described a kind of message of the embodiment of the invention;
Fig. 2 is the first output intent flow chart of data in the described message of the embodiment of the invention;
Fig. 3 is the second output intent flow chart of data in the described message of the embodiment of the invention;
Fig. 4 is the output device structure chart of data in the described a kind of message of the embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The user uses mobile phone to receive short message, or when adopting MSN to receive instant message, some resource in the network may be by directly not being transferred to the user in message, but adopt the form of URI to transmit, described URI has pointed to described resource, thereby can obtain described resource by described URI.
For this situation, the embodiment of the invention has proposed the output intent of data in a kind of message, can by operations such as parsings, show according to the described resource of certain mode in message for the URI in the message.Concrete grammar is as follows:
With reference to Fig. 1, provided the output intent flow chart of data in the described a kind of message of the embodiment of the invention.
Step 101, the URI in the identification message.
If there is URI in the embodiment of the invention in the message, can according to this URI resource pointed, determine how to show this resource in message.Therefore after getting access to first message, at first to detect this message, detect whether there is URI in this message.For the message that has URI, if only show this URI in message, the user does not also know what the resource that this URI points to is, also needs to trigger external program and obtains, plays this resource, very loaded down with trivial details of method.
In the embodiment of the invention, detect have URI in the message after, can identify the URI in the message.Wherein, described URI normally is made of one group of character string, therefore can identify the character string in the message.Certainly, URI may possess certain form, or meets some rule, and then also can adopt the modes such as this form or employing regular expression to identify, thus the URI in the other outbound message.
Preferably, described URI points to the resource in the network, multimedia resources such as video, picture, the and for example site resource such as webpage.
Step 102 is obtained the resource type of URI resource pointed.
Above-mentioned identify URI after, can resolve this URI, URI possesses some form or rule usually, then can identify this URI according to form or rule, also can resolve URI according to form or rule, thereby obtain the relevant information of the resource in the URI network pointed, comprise the resource type of this resource.
In the embodiment of the invention, resource type can be the larger types of relative Repeat such as picture, video, positional information and website; Also can be jpg, the bmp form of picture, the concrete classification under a certain type such as the avi of video, rmvb form, the application does not do restriction to this.
Step 103 is determined the pre-review information of resource according to resource type, and exports this pre-review information.
After getting access to the resource type of resource, can this resource type determine how to export this resource, namely determine the pre-review information of message and this resource, then export this pre-review information.Wherein, described pre-review information is to carry out the content that generality is showed to resource.
For example, resource is picture, can directly show described picture in message.If resource is audio frequency, the icon that then can display the play in message just can have been play after clicking.If resource is a certain network address, then can in message, show site title or Net station logo (logo or trade mark).Certainly, also can first output message export again pre-review information.
In sum, after obtaining message, can directly from message, identify URI, and obtain the resource type of URI resource pointed in the embodiment of the invention.Determine again the pre-review information of this resource according to this resource type, and export described pre-review information.In the embodiment of the invention, the resource type of resource is different, and its pre-review information that adopts is also different, resource can be exported according to different pre-review informations in message in the embodiment of the invention, method is flexible, is convenient to embody the characteristics of resource, thereby can identify intuitively the resource that URI points to.And the user does not need calling external program that URI is resolved, Gains resources, and method of operation is simple.
In the embodiment of the invention, the method for URI comprises in the identification message:
Meet the character string of default form in the identification message as URI.
URI is a kind of citation form of address in the network, with the simple characters string of certain unified (standardized) mode identifying resource.Thereby the form that can adopt according to URI, to URI identify, parsing etc.
In the actual treatment, may and not only comprise the character string that consists of URI in the message, also comprise some other character strings, thereby will detect, identify all kinds of character strings in the message according to default form, thereby identify the character string that consists of URI, namely identify the URI in the message.
In the embodiment of the invention, a kind of default form of URI can be ": //<complete path〉".
Wherein,<complete path〉path of expression URI resource pointed, i.e. resource address.
Particularly,<complete path〉can comprise<authority<path 〉, also be that resource address comprises:<authority〉and<path 〉
Wherein,<authority〉top element among the whole URI of expression, be used for URI is managed, among the URI except<authority part all be subjected to<authority manage.
<path〉in comprise the concrete data of the address of the resource that URI is pointed, and the concrete memory address of resource is in order at<authority〉the basis on, the address of resource is carried out further clear and definite, specifically referring to 3.3 parts among the RFC2396.
For example, a string character in the message is: //<complete path, can resolve it for URI, then ": // " afterwards be resource address, the resource address of this URI is example.com.
In the embodiment of the invention, the default form of the another kind of URI can for "<scheme 〉: //<completepath<query ".
Wherein, "<scheme〉" be protocol-identifier, can be used for the analysis mode of this URI of expression, concrete,<scheme〉can be designated the agreement of resolving the required use of current URI.Namely by<scheme〉can determine the employed agreement of current URI, then according to this agreement relevant regulations, just can resolve current URI.
Wherein, the Internet digital distribution mechanism (Internet Assigned Numbers Authority, IANA) has distributed many scheme as standard.Wherein, the resource that the URI of some scheme points to is readable for the people, can listen, such as HTTP (HTTP-Hypertext transfer protocol, http), and file transfer protocol (FTP) (File Transfer Protocol, ftp) etc.; Some cannot directly be identified by the people, makes a telephone call to such as tel(...), mailto (mails to ...), geo (demonstration geographical position) etc.Therefore, according to<scheme〉agreement of sign, which kind of resource what can determine that URI transmits is.
"? " be separator, be used for distinguishing "<complete path〉" and "<query〉", distinguish as adopting "/".
"<query〉" be query string, for the querying condition of the resource that identifies current URI execution.
In the actual treatment, in a URI, must be for comprising<complete path 〉, it is resource address, and<scheme〉and<query〉be non-essential, in URI, can comprise<scheme and<query 〉, also can comprise<scheme〉and<query〉one of them, even<scheme〉and<query〉do not comprise.
For example, character string " http://example.com/one.jpg " meets default form, when it is identified,<scheme〉be http partly, namely use the http agreement to resolve, ": // " afterwards and separator "/" before be<complete path part, be that example.com is the path of this URI resource pointed, separator "/" afterwards be<query part, be that one.jpg is the querying condition of resource under this path, can filter out the resource that current URI points to by this querying condition.
In the embodiment of the invention, if URI is: //example.com/one.jpg, do not comprise<scheme〉part, then give tacit consent to URI<scheme part is added to http, namely acquiescence adopts the http agreement to resolve.
Therefore, be understandable that, when the URI in the message be http://example.com/one.jpg or: //during example.com/one.jpg, sensing be unified resource.
In the embodiment of the invention, when URI is the URI of redirect type, obtain the resource type of this URI resource pointed, in the following way:
Obtain URI in the resource type through the final resource of pointing to after the redirect.
In the embodiment of the invention URI<scheme in the agreement that comprises of part, part agreement is to support redirect, adopt namely that resource address may not be the final address of this resource of storage among the URI of this agreement, but will be by this resource address of access, jump to by on the final address of storing this resource thereby carry out again redirect, further get access to the resource type of the resource of URI sensing.
Specify said process below in conjunction with embodiment.
From message, identify after the URI, just can get access to the resource address of URI resource pointed, then send access request to described resource, to get access to the resource type of resource and resource.Specific as follows:
Suppose, the URI that identifies from message is http://omz.me/2l, according to the default form of URI, protocol-identifier<scheme〉be http, resource address<complete path〉be omz.me, query string<query〉be 2l.
Then can get access to resource address omz.me, and send access request to this resource address.Usually the resource in the network is all managed by a server, so after sending access request to resource address, the server under this resource address will send return messages, then the corresponding return information that can receive the server of described resource address.
In embodiments of the present invention, the represented agreement of protocol-identifier can be supported redirect, for example adopts the http agreement, or the https agreement.
Wherein, http and https agreement are supported permanent redirect and temporary redirect.Concrete, the conditional code 301 that permanent redirect is returned, temporary redirect return state code 302.Wherein, 301 redirects are applied in the change of website domain name usually, and the user that Website server will be accessed old domain name by 301 redirects transfers on the new domain name.It is short network address service that the typical case of 302 redirects uses.In addition, the type of some agreement support Gains resources from return head is such as http (s) agreement.Http (s) refers to http or https.
If in the process of the resource that identification URI points to, server returns above conditional code, then needs the URI after the redirect is resolved, identifies, the URI after this redirect is placed on the return information of http (s), or claims to return in the location field of head.Then access is continued in Gains resources address can the URI after redirect.
In the embodiment of the invention, when the needs redirect, obtain the resource address among the URI, resource address is sent access request, receive return information, judge whether that again needing the process of redirect is the process of a circulation, until when getting access to the final address of resource and namely not needing redirect, or until after reaching the maximum times of redirect, above-mentioned cyclic process finishes.
For above-mentioned URI:http: //omz.me/2l, when the resource address of this URI was conducted interviews, available return information was as follows:
HTTP/1.1301?Moved?Permanently
Date:Thu,13?Sep?2012?08:56:20?GMT
Server:Apache
Set-Cookie:bb2_screener_=1347526580+216.131.120.218;path=/
Location:http://ww2.sinaimg.cn/large/4d6b87b3jw1dwuzop7zfoj.jpg
Vary:Accept-Encoding
Content-Type:text/html
Then the conditional code in the return information is 301, need to carry out redirect, further can obtain the URI that carries out redirect to be from location field:
htp://ww2.sinaimg.cn/large/4d6b87b3jw1dwuzop7zfoj.jpg。
Then according to this URI this resource address is conducted interviews, gets access to return information as follows:
HTTP/1.1200?OK
Expires:Wed,12?Dec?2012?08:56:35GMT
Date:Thu,13?Sep?2012?08:56:35?GMT
Server:Apache
X-Powered-By:PHP/5.2.14
X-DEBUG-ICACH?E:HIT(100806,4.08)
Pragma:public
Cache-Control:max-age=7776000
Last-Modified:Sat,24Dec?1983?08:00:00?GMT
X-DEBUG-IDC:GZ
Content-Length:100806
Content-Type:image/jpeg
X-Via:1.1?stsz86:8108(Cdn?Cache?Server?V2.0),1.1dg10:8107(CdnCache?Server?V2.0)
Connection:keep-alive
Then conditional code is 200, does not need to carry out redirect.
In the embodiment of the invention, comprise the Content-Type field in the return information of above-mentioned http (s) agreement, this field is that the multifunctional network mail of the resource that shows that this URI is pointed expands service (Multipurpose Internet Mail Extensions, be called for short MIME) type, i.e. a kind of form of resource type.For this resource, only resolve it and return the resource type that head can identify resource.After namely initiating access to the resource address of URI resource pointed, can get access to from the Content-Type field of return information the resource type of this URI resource pointed.As above resource type is image/jpeg in the example, is the reference format of picture.
Described MIME is a kind of multi purpose internet mail extensions.Come the identification data type with being attached to document mime type before in the http protocol, if the resource type of multimedia resource.
In the embodiment of the invention, pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of predetermined fraction of predetermined fraction, resource of resource or resource.
Resource type is different, and the pre-review information of exporting in message is also just different, and some resource can directly be exported in message, and some resource output content in message only, also some resource only shows in message that the content that can represent this resource gets final product.
Therefore, when the pre-review information of resource allocation, can according to the resource format of resource, determine which kind of content of this resource of output.With the part content of this resource output predetermined fraction as resource.For example, for web page resources, predetermined fraction can be the title division of this webpage or this webpage.
Then pre-review information can be the predetermined fraction of resource just, can export the content that predetermined fraction comprises in message.
Pre-review information also can be the preview graph of predetermined fraction, and preview graph is to adopt the form of picture to show this predetermined fraction, specifically can comprise: thumbnail and sectional drawing.
For example, resource is picture, and predetermined fraction is exactly this picture, and then preview graph can be the thumbnail of this picture.In the embodiment of the invention, can preset the size of the thumbnail that shows in the message, when exporting this resource in the mode of preview graph, what export in the message just can be the thumbnail of preset size.
And for example, resource is webpage, and predetermined fraction is the title division of this webpage, and preview graph can be the sectional drawing of this web page title part, so just can export the part sectional drawing of webpage in the message.
Pre-review information can also be the shortcut of application program corresponding to the resource type of this resource.Some resource that URI points to may need to trigger outside application program when exporting, such as video or audio frequency, therefore, resource for this class, can need determine according to the resource type of this resource the application program of triggering, then in message, export the shortcut of this application program, as the prompt access that triggers this application program, thereby can start fast this application program, export fast this resource.
In the embodiment of the invention, determine the pre-review information of resource according to resource type, in the following way:
The resource type of determining resource is webpage or picture; In buffer memory, show this webpage or picture, and the predetermined fraction of webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
After the resource type of above-mentioned definite resource, if resource type is webpage or picture, then this webpage or picture be can obtain, this webpage or picture then in the buffer memory of terminal, shown.Therefore the embodiment of the invention has preset output for the resource of different resource type predetermined fraction can carry out sectional drawing to the predetermined fraction of webpage or picture, thereby obtain the preview graph of this webpage or picture.
In the embodiment of the invention, if resource is picture, then predetermined fraction just can be this picture, then it is carried out the thumbnail that sectional drawing just can be regarded as this picture.
In the embodiment of the invention, preview graph also can be the contents such as the picture of expressing resource, icon, when being the website such as resource type, can obtain the Logo of this website, exports in message as preview graph.
In the embodiment of the invention, determine the pre-review information of resource according to resource type, in the following way:
The resource type of determining resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and pre-review information is linked to this resource.
After the resource type of above-mentioned definite resource, when if resource type is video or audio frequency, can determine to play this video or audio application, then obtain the shortcut of this application program, this shortcut as pre-review information, and is linked to this pre-review information on this resource, namely when triggering this pre-review information and be shortcut, can be linked on this video or the audio frequency, play fast.
For example, when the type of the resource of pointing to as URI is video (or audio frequency), in order to reduce the waste of resource, save user's the resources such as flow, can then temporarily not obtain and change video (or audio frequency) resource.But in conversation message, show a player icon, when the user wanted to see this video (or audio frequency), click was obtained video (audio frequency) resource again, and is play after playing.
And for example, can get access to the first frame of video, be presented in the message, and show that simultaneously a play button is (concrete, this play button can appear in one's mind on the picture of video the first frame), when the user wants to see this video, after the click play button is play, obtain again the surplus resources of video, and show.
In the embodiment of the invention, determine also to comprise: obtain its resource pointed according to URI before the pre-review information of resource according to resource and resource type.
Get access to after the URI in the message, can obtain the resource type of this URI resource pointed, follow-uply determine to obtain the resource address among this URI before the pre-review information of resource according to resource and resource type, obtain the resource that URI points to from this resource address.
For example, if resource is mime type, then when initiating access to its resource address, can be from return head the resource type of Gains resources fast, after getting access to resource type, obtaining this resource.
In the embodiment of the invention, after the generic resource identifier in the identification message, also comprise: obtain its resource pointed according to URI.
Get access to after the URI in the message, can obtain the resource address among this URI, can obtain the resource that URI points to from this resource address first, after the resource of obtaining the URI sensing, just can obtain the resource type of this resource.Wherein, some resource is not mime type, can't be from return information when its resource address is conducted interviews the Gains resources type, then can obtain this resource from resource address first, then just can determine the resource type of this resource.
As to get access to resource be geographic position data, just can determine that resource type is the geographical position, can show the location of this geographical position on map in message, or the data such as longitude and latitude in this geographical position.In the actual treatment among the URI of this resource<and scheme〉part is geo.
In the embodiment of the invention, the output pre-review information adopts following form: message and pre-review information are exported with preset mode.
Wherein, preset mode is the output message that sets in advance and the form of pre-review information, as export pre-review information in message, and for example exports respectively pre-review information and message.
When comprising URI in the message, can obtain the resource type of URI resource pointed and this resource, and then determine the pre-review information of this resource, thereby according to preset mode output message and pre-review information.For example, export pre-review information after the URI in message, and for example, export again pre-review information after the first output message.
Based on the discussion of above-described embodiment, the below discusses the display mode of data in the message for example.
If be the resource of mime type among the URI, can process in the following way.
With reference to Fig. 2, provided the first output intent flow chart of data in the described message of the embodiment of the invention.
Step 201, the URI in the identification message;
Step 202 is obtained the resource type of URI resource pointed;
Step 203 is obtained URI resource pointed;
Step 204 detects the resource type of this resource;
Step 205 determines that the resource type of described resource is webpage or picture, shows described webpage or picture in buffer memory, and the predetermined fraction of described webpage or picture is carried out sectional drawing, with the sectional drawing result as pre-review information;
Step 206, the resource type of determining described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource;
As another preferred embodiment, when resource type is video or audio frequency, can also be with the schematic diagram of this video or audio frequency as pre-review information, this schematic diagram can for the vivid picture of expression audio or video, also can obtain a wherein frame for resolving for video.
In addition, can also use following mode:
In the message display box, insert and play frame, be audio or video in order to represent described resource, and be linked to described resource, when the user clicks, download and play described resource.
Step 207 is exported described message and described pre-review information with preset mode.
If be not the resource of mime type among the URI, can process in the following way.
With reference to Fig. 3, provided the second output intent flow chart of data in the described message of the embodiment of the invention.
Step 301, the URI in the identification message;
Step 302 is obtained URI resource pointed;
Step 303 is obtained the resource type of URI resource pointed;
Step 304 is determined the pre-review information of resource according to resource type;
Step 305 is exported message and pre-review information with preset mode.
In sum, in the embodiment of the invention, can be according to the resource type of URI resource pointed, determine the pre-review information of resource, this pre-review information can be the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of predetermined fraction, this predetermined fraction of resource or resource, can adopt different forms to express URI resource pointed, the way of output of resource is various.
Secondly, when exporting pre-review information in the embodiment of the invention, can in message, export pre-review information with preset mode output message and pre-review information, or difference output message and pre-review information, the mode of message and URI resource pointed is various.
With reference to Fig. 4, provided the output device structure chart of data in the described a kind of message of the embodiment of the invention.
Accordingly, the embodiment of the invention also provides the output device of data in a kind of message, comprising: identification module 11, acquisition module 12 and output module 13.Wherein:
Identification module 11 is for the generic resource identifier of identification message;
Acquisition module 12 is for the resource type of obtaining described universal resource identifier resource pointed;
Output module 13 is used for determining the pre-review information of described resource according to described resource type, and exports described pre-review information.
Described identification module specifically is used for identification message and meets the character string of default form as the generic resource identifier.
In the embodiment of the invention, described acquisition module 12, obtains described universal resource identifier in the resource type through the final resource of pointing to after the redirect at concrete being used for when described universal resource identifier is the universal resource identifier of redirect type.
In the embodiment of the invention, described pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of the predetermined fraction of the predetermined fraction of described resource, described resource or described resource.
In the embodiment of the invention, described output module 13, the concrete resource type that is used for definite described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
In the embodiment of the invention, described output module 13 concrete is used for determining that the resource type of described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
In the embodiment of the invention, described acquisition module 12 also is used for obtaining described resource according to described universal resource identifier before determining the pre-review information of described resource according to described resource and described resource type; Or after the generic resource identifier in identification message, obtain described resource according to described universal resource identifier.
In the embodiment of the invention, described output module 13, concrete being used for exports described message and described pre-review information with preset mode.
The embodiment of the invention also provides a kind of equipment, and described equipment comprises:
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
Optionally, the generic resource identifier in the described identification message, in the following way: meet the character string of default form in the identification message as the generic resource identifier.
Optionally, when described universal resource identifier is the universal resource identifier of redirect type, the described resource type of obtaining described universal resource identifier resource pointed, in the following way: obtain described universal resource identifier in the resource type through the final resource of pointing to after the redirect.
Optionally, the shortcut of application program corresponding to the resource type of the icon of the resource type of the preview graph of the predetermined fraction of the described pre-review information predetermined fraction that is described resource, described resource, the described resource of indication or described resource.
Optionally, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
Optionally, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
Optionally, describedly determine that according to described resource and described resource type before the pre-review information of described resource, described method also comprises: obtain described resource according to described universal resource identifier.
Optionally, the described pre-review information of described output adopts following form: described message and described pre-review information are exported with preset mode.
Optionally, after the generic resource identifier in the identification message, also comprise: obtain described resource according to described universal resource identifier.
The present embodiment also provides a kind of non-volatile readable storage medium, store one or more modules (programs) in this storage medium, when these one or more modules are used in the equipment with touch screen, can be so that this equipment be carried out the instruction (instructions) of following steps:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
Optionally, the generic resource identifier in the described identification message, in the following way: meet the character string of default form in the identification message as the generic resource identifier.
Optionally, when described universal resource identifier is the universal resource identifier of redirect type, the described resource type of obtaining described universal resource identifier resource pointed, in the following way: obtain described universal resource identifier in the resource type through the final resource of pointing to after the redirect.
Optionally, the shortcut of application program corresponding to the resource type of the icon of the resource type of the preview graph of the predetermined fraction of the described pre-review information predetermined fraction that is described resource, described resource, the described resource of indication or described resource.
Optionally, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
Optionally, the described pre-review information of determining described resource according to described resource type, in the following way: the resource type of determining described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
Optionally, describedly determine that according to described resource and described resource type before the pre-review information of described resource, described method also comprises: obtain described resource according to described universal resource identifier.
Optionally, the described pre-review information of described output adopts following form: described message and described pre-review information are exported with preset mode.
Optionally, after the generic resource identifier in the identification message, also comprise: obtain described resource according to described universal resource identifier.
For device embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operating space, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, commodity or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, commodity or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
Above display packing and device to data in the message provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (18)

1. the output intent of data in the message is characterized in that, comprising:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
2. method according to claim 1 is characterized in that, the generic resource identifier in the described identification message, in the following way:
Meet the character string of default form in the identification message as the generic resource identifier.
3. method according to claim 1 is characterized in that, when described universal resource identifier is the universal resource identifier of redirect type, and the described resource type of obtaining described universal resource identifier resource pointed, in the following way:
Obtain described universal resource identifier in the resource type through the final resource of pointing to after the redirect.
4. method according to claim 1, it is characterized in that, described pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of the predetermined fraction of the predetermined fraction of described resource, described resource or described resource.
5. method according to claim 4 is characterized in that, the described pre-review information of determining described resource according to described resource type, in the following way:
The resource type of determining described resource is webpage or picture;
In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
6. method according to claim 4 is characterized in that, the described pre-review information of determining described resource according to described resource type, in the following way:
The resource type of determining described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
7. according to claim 5 or 6 described methods, it is characterized in that, describedly determine that according to described resource and described resource type before the pre-review information of described resource, described method also comprises:
Obtain described resource according to described universal resource identifier.
8. method according to claim 1 is characterized in that, the described pre-review information of described output adopts following form:
Described message and described pre-review information are exported with preset mode.
9. method according to claim 1 is characterized in that, after the generic resource identifier in the identification message, also comprises:
Obtain described resource according to described universal resource identifier.
10. the output device of data in the message is characterized in that, comprising:
Identification module is for the generic resource identifier of identification message;
Acquisition module is for the resource type of obtaining described universal resource identifier resource pointed;
Output module is used for determining the pre-review information of described resource according to described resource type, and exports described pre-review information.
11. device according to claim 10 is characterized in that,
Described identification module specifically is used for identification message and meets the character string of default form as the generic resource identifier.
12. device according to claim 10 is characterized in that,
Described acquisition module, obtains described universal resource identifier in the resource type through the final resource of pointing to after the redirect at concrete being used for when described universal resource identifier is the universal resource identifier of redirect type.
13. device according to claim 10, it is characterized in that, described pre-review information is the shortcut of application program corresponding to the resource type of the icon of resource type of preview graph, the described resource of indication of the predetermined fraction of the predetermined fraction of described resource, described resource or described resource.
14. device according to claim 13 is characterized in that,
Described output module, the concrete resource type that is used for definite described resource is webpage or picture; In buffer memory, show described webpage or picture, and the predetermined fraction of described webpage or picture carried out sectional drawing, with the sectional drawing result as pre-review information.
15. device according to claim 13 is characterized in that,
Described output module concrete is used for determining that the resource type of described resource is video or audio frequency, take indicate described resource as the icon of video or audio frequency as pre-review information, and described pre-review information is linked to described resource.
16. according to claim 10,14 or 15 arbitrary described devices, it is characterized in that,
Described acquisition module also is used for obtaining described resource according to described universal resource identifier before determining the pre-review information of described resource according to described resource and described resource type; Or after the generic resource identifier in identification message, obtain described resource according to described universal resource identifier.
17. device according to claim 10 is characterized in that,
Described output module, concrete being used for exports described message and described pre-review information with preset mode.
18. an equipment is characterized in that, described equipment comprises:
One or more processors;
Memory; With
One or more modules, described one or more module stores are in described memory and be configured to be carried out by described one or more processors, and wherein, described one or more modules have following function:
Generic resource identifier in the identification message;
Obtain the resource type of described universal resource identifier resource pointed;
Determine the pre-review information of described resource according to described resource type, and export described pre-review information.
CN201210458970.7A 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message Active CN103023870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210458970.7A CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210458970.7A CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Publications (2)

Publication Number Publication Date
CN103023870A true CN103023870A (en) 2013-04-03
CN103023870B CN103023870B (en) 2016-08-31

Family

ID=47972001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210458970.7A Active CN103023870B (en) 2012-11-14 2012-11-14 The output intent of data, device and equipment in a kind of message

Country Status (1)

Country Link
CN (1) CN103023870B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN104010224A (en) * 2014-06-17 2014-08-27 合一网络技术(北京)有限公司 Method and system for making video playing final image serve as icon of video
CN104954395A (en) * 2014-03-24 2015-09-30 腾讯科技(深圳)有限公司 Method and device for information push
WO2016119744A1 (en) * 2015-01-29 2016-08-04 U3D Limited Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same
CN108628870A (en) * 2017-03-16 2018-10-09 北京搜狗科技发展有限公司 A kind of web preview method and apparatus
CN109391540A (en) * 2018-10-31 2019-02-26 珠海市小源科技有限公司 A kind of processing method and processing device of RCS message
CN109660852A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 Video previewing method, storage medium, equipment and system before recorded video publication
CN111586235A (en) * 2019-02-15 2020-08-25 三星电子株式会社 Electronic device, method, and computer-readable medium for dynamically laying out messages

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243923A1 (en) * 2003-03-14 2004-12-02 Manabu Nakamura Information providing apparatus and information display device for displaying page information transmitted from information providing apparatus
CN1924860A (en) * 2006-10-08 2007-03-07 网之易信息技术(北京)有限公司 Search engine based search result fast pre-reading device
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN101504649A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Page resource processing method and apparatus
CN101706796A (en) * 2008-11-14 2010-05-12 北京搜狗科技发展有限公司 Method and device for showing webpage resources
CN102117291A (en) * 2009-12-30 2011-07-06 北京搜狗科技发展有限公司 Method and system for displaying network resources
CN102209044A (en) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 Method for displaying picture message, apparatus and system thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040243923A1 (en) * 2003-03-14 2004-12-02 Manabu Nakamura Information providing apparatus and information display device for displaying page information transmitted from information providing apparatus
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN1924860A (en) * 2006-10-08 2007-03-07 网之易信息技术(北京)有限公司 Search engine based search result fast pre-reading device
CN101504649A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Page resource processing method and apparatus
CN101706796A (en) * 2008-11-14 2010-05-12 北京搜狗科技发展有限公司 Method and device for showing webpage resources
CN101477535A (en) * 2008-12-30 2009-07-08 华为技术有限公司 Web page display method, request processing method, apparatus and system
CN102117291A (en) * 2009-12-30 2011-07-06 北京搜狗科技发展有限公司 Method and system for displaying network resources
CN102209044A (en) * 2010-03-29 2011-10-05 腾讯科技(深圳)有限公司 Method for displaying picture message, apparatus and system thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9916285B2 (en) 2013-06-28 2018-03-13 Uc Mobile Limited Generating a preview of a web page for a mobile terminal
CN103353886A (en) * 2013-06-28 2013-10-16 优视科技有限公司 Method and system for previewing webpage
CN104954395B (en) * 2014-03-24 2019-04-16 腾讯科技(深圳)有限公司 Information-pushing method and device
CN104954395A (en) * 2014-03-24 2015-09-30 腾讯科技(深圳)有限公司 Method and device for information push
CN104010224B (en) * 2014-06-17 2016-01-13 合一网络技术(北京)有限公司 Using the method and system of video playback final image as video icon
CN104010224A (en) * 2014-06-17 2014-08-27 合一网络技术(北京)有限公司 Method and system for making video playing final image serve as icon of video
WO2016119744A1 (en) * 2015-01-29 2016-08-04 U3D Limited Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same
TWI574165B (en) * 2015-01-29 2017-03-11 阿貝爾環球國際有限公司 Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same
CN108628870A (en) * 2017-03-16 2018-10-09 北京搜狗科技发展有限公司 A kind of web preview method and apparatus
CN109660852A (en) * 2017-10-10 2019-04-19 武汉斗鱼网络科技有限公司 Video previewing method, storage medium, equipment and system before recorded video publication
CN109660852B (en) * 2017-10-10 2021-06-15 武汉斗鱼网络科技有限公司 Video preview method, storage medium, device and system before release of recorded video
CN109391540A (en) * 2018-10-31 2019-02-26 珠海市小源科技有限公司 A kind of processing method and processing device of RCS message
CN111586235A (en) * 2019-02-15 2020-08-25 三星电子株式会社 Electronic device, method, and computer-readable medium for dynamically laying out messages
CN111586235B (en) * 2019-02-15 2023-02-21 三星电子株式会社 Electronic device and computer-readable medium for dynamically laying out messages

Also Published As

Publication number Publication date
CN103023870B (en) 2016-08-31

Similar Documents

Publication Publication Date Title
CN103023870A (en) Method, device and equipment for outputting data in message
KR101362384B1 (en) The method and system for browsing things of internet of things on ip using web platform
CN103269396B (en) The method and system that a kind of pair of mobile terminal is managed
US20070133876A1 (en) Device, method, and computer program product for enhancing the use of electronic forms in mobile devices
US20060242248A1 (en) Shortcut generator for services accessible via a messaging service system
US9660821B2 (en) Method and system for sharing content files using a computer system and data network
CN107346320B (en) Data calling method and device
CN102196037A (en) Method and apparatus for accessing services of a device
CN101771928B (en) Method and system and proxy server for Webpage transmitting
CN104702675A (en) Response method and device of user events
KR20160008552A (en) Web platform with select-to-call functionality
CN113076294A (en) Information sharing method and device
KR101290977B1 (en) Message transfer method using push server and the system thereby
CN102629194A (en) Novel application store adaptor facing mobile terminals
KR101265164B1 (en) System for providing shorten URL browsing with branding , method thereof, and web client thereof
CN102469155A (en) Application service and sharing methods in home network system
CN105408887A (en) Reverse number look up
CN108932243B (en) Method and device for refreshing webpage
JP5696096B2 (en) Communication terminal device, billing device, and information distribution system
CN102469101A (en) Method and server for application service in home network system
JP2011175460A (en) Document browsing system and document conversion server
CN103793459B (en) Webpage opening method and device
CN106487861B (en) Network data providing method and device
US10503742B2 (en) Electronic device and method of searching data records
CN106534238B (en) Method and device for providing offline application service for user

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant