CN106209575A - Method for sending information, acquisition methods, device and interface system - Google Patents

Method for sending information, acquisition methods, device and interface system Download PDF

Info

Publication number
CN106209575A
CN106209575A CN201610463536.6A CN201610463536A CN106209575A CN 106209575 A CN106209575 A CN 106209575A CN 201610463536 A CN201610463536 A CN 201610463536A CN 106209575 A CN106209575 A CN 106209575A
Authority
CN
China
Prior art keywords
information
type
file
encoded
predetermined format
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
CN201610463536.6A
Other languages
Chinese (zh)
Other versions
CN106209575B (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.)
Xiamen Black Mirror Technology Co., Ltd.
Original Assignee
XIAMEN HUANSHI NETWORK 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 XIAMEN HUANSHI NETWORK TECHNOLOGY Co Ltd filed Critical XIAMEN HUANSHI NETWORK TECHNOLOGY Co Ltd
Priority to CN201610463536.6A priority Critical patent/CN106209575B/en
Publication of CN106209575A publication Critical patent/CN106209575A/en
Application granted granted Critical
Publication of CN106209575B publication Critical patent/CN106209575B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

This application discloses a kind of method for sending information, in order to solve in existing instant messaging, the inefficient problem that the information sender formula taked under sending the scene of different types of information exists.Method includes: transmitting terminal determines the information of at least two type being sent to receiving terminal;According to the coded system made an appointment with receiving terminal, information to be encoded is encoded to the file destination possessing predetermined format;Wherein, described information to be encoded, at least include the information of described at least two type;The described file destination possessing predetermined format is encapsulated in packet, and described packet is sent to receiving terminal.The application is also disclosed a kind of information transmitting apparatus, and a kind of information getting method and device, and a kind of interface system.

Description

Method for sending information, acquisition methods, device and interface system
Technical field
The application relates to field of computer technology, particularly relates to a kind of method for sending information, acquisition methods, device and interface System.
Background technology
User is using during instant communication client exchanges, can by send different types of information to Other users express intention.Wherein, type mentioned here, it is usually and according to the form of expression of information, information is divided And obtain, such as can include but not limited to word, picture, audio frequency, animation or video etc..
According to prior art, between user when using JICQ to exchange, single information sends and can only send out Send a type of information.Such as, text " hello ", picture " head portrait of smile " and audio frequency are sent when user A expectation to user B Time " hello ", need the information of these three type is transmitted respectively.
Above-mentioned information sender formula has a drawback in that, inefficient.
Summary of the invention
The embodiment of the present application provides a kind of method for sending information, in order to solve in existing instant messaging, is sending inhomogeneity The inefficient problem that the information sender formula taked under the scene of the information of type exists.
The embodiment of the present application also provides for a kind of information transmitting apparatus, and a kind of information getting method and device.
The embodiment of the present application also provides for a kind of interface system.
The embodiment of the present application employing following technical proposals:
A kind of method for sending information, including: transmitting terminal determines the information of at least two type being sent to receiving terminal;
According to the coded system made an appointment with receiving terminal, information to be encoded is encoded to the target possessing predetermined format File;Wherein, described information to be encoded, at least include the information of described at least two type;
The described file destination possessing predetermined format is encapsulated in packet, and is sent to described packet receive End.
A kind of information getting method, including:
The packet that receiving terminal receiving end/sending end sends;Described packet, comprises the file destination of predetermined format;Described mesh Mark file comprises the information of at least two type;
According to the decoding process made an appointment with transmitting terminal, the described file destination possessing predetermined format is decoded, To obtain the information of described at least two type.
A kind of information transmitting apparatus, including:
Information determination unit, for determining the information of at least two type being sent to receiving terminal;
Coding unit, for according to the coded system made an appointment with receiving terminal, is encoded to information to be encoded to possess The file destination of predetermined format;Wherein, described information to be encoded, including the information of described at least two type;
Transmitting element, for being encapsulated into the described file destination possessing predetermined format in packet, and by described data Bag is sent to receiving terminal.
A kind of information acquisition device, including:
Packet receives unit, the packet sent for receiving end/sending end;Described packet, comprises and possesses predetermined format File destination;Described file destination comprises the information of at least two type;
Decoding unit, for according to the decoding process made an appointment with transmitting terminal, to the described target possessing predetermined format File is decoded, to obtain the information of described at least two type.
A kind of interface system, including:
Information determination unit to be sent, for determining the information of at least two type being sent to receiving terminal;
Information sends control, is used for the information that detects and sends instruction;After detecting that described information sends instruction, according in advance With the coded system of information receiving end agreement, information to be encoded is encoded to the file destination possessing predetermined format;By described The file destination possessing predetermined format is encapsulated in packet, and described packet is sent to receiving terminal;Wherein, wait described in compile The information of code, including the information of the described at least two type that information determination unit to be sent is determined.
At least one technical scheme above-mentioned that the embodiment of the present application uses can reach following beneficial effect:
Owing to transmitting terminal can will be sent at least the two of receiving terminal according to the coded system made an appointment with receiving terminal The information of type is encoded to the file destination possessing predetermined format, and is sent to receiving terminal, such that it is able to realize in a number Carrying the different types of information of at least two according in bag, the information under the scene sending different types of information that improves sends Efficiency.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please is used for explaining the application, is not intended that the improper restriction to the application.In the accompanying drawings:
A kind of method for sending information that Fig. 1 provides for the embodiment of the present application implement schematic flow sheet;
Fig. 2 is the schematic diagram that the first client and the second client carry out instant messaging;
Fig. 3 is the schematic diagram at a kind of interface shown by the first client in mobile phone 1;
Fig. 4 is the schematic diagram at the another kind of interface shown by the first client in mobile phone 1;
Fig. 5 be in the embodiment of the present application second client obtain described at least two type information realize flow process Figure;
The concrete structure schematic diagram of a kind of information transmitting apparatus that Fig. 6 provides for the embodiment of the present application;
The concrete structure schematic diagram of a kind of information acquisition device that Fig. 7 provides for the embodiment of the present application;
The concrete structure schematic diagram of a kind of interface system that Fig. 8 provides for the embodiment of the present application;
The schematic diagram of a kind of user interface that Fig. 9 provides for the embodiment of the present application;
The schematic diagram of the another kind of user interface that Figure 10 provides for the embodiment of the present application.
Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described by corresponding accompanying drawing.Obviously, described embodiment is only the application one Section Example rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of the application protection.
Below in conjunction with accompanying drawing, describe the technical scheme that each embodiment of the application provides in detail.
Embodiment 1
For solving in existing instant messaging, the information sender formula taked under sending the scene of different types of information The inefficient problem existed, the embodiment of the present application provides a kind of method for sending information.The execution master of this method for sending information Body, can be various user terminal, can be such as PC (Personal Computer, PC), smart mobile phone, flat board Computer, Wearable device (such as intelligent watch or intelligent helmet etc.).This method for sending information, can be specifically by described user The client installed in terminal completes.Client mentioned here, can be such as instant communication client;Or, also Can be other kinds of client, such as social platform client or net purchase class client, etc..Described executive agent is not Constitute the restriction to the application.
For ease of describing, as a example by the embodiment of the present application executive agent in this way is instant communication client, to the party The specific implementation of method is described in detail.
Refer to Fig. 1, for the embodiment of the present application provide a kind of method for sending information implement schematic flow sheet.Should Method mainly comprises the steps:
Step 11, instant communication client (then claim the first client) determines and is sent to receiving terminal (the second client) The information of at least two type;
Below in conjunction with accompanying drawing 2 and accompanying drawing 3, some optional implementations of step 11 are described.
As in figure 2 it is shown, be the first client and the schematic diagram of the second client carrying out instant messaging.In Fig. 2, use peace Equipped with the user A of the mobile phone 1 of the first client, passing through service with the user B using the mobile phone 2 being provided with the second client End (also referred to as server) carries out instant messaging.
As it is shown on figure 3, the schematic diagram at the interface shown by the first client in mobile phone 1.In this interface in Fig. 3, Comprise following viewing area:
Chat content viewing area 31: for showing user A and the chat content of user B.Wherein, in Fig. 3, chat content shows Show that in district 31, present displayed content includes: the cartoon character 311 of user A, the cartoon character 312 of user B, and user A and use Family B carries out the information that instant messaging is mutual, such as text " hello ".
Input text area 32: for receiving and showing text that inputted by user A, that be sent to user B, in figure Text " has been had a meal ".
Animation selects district 33: for the title of the animation file that display is arranged in the first client.Wherein, referred to herein Animation file, can be the first client and the most openable animation file of the second client.If the first client is opened The animation file (hereinafter for the animation file chosen) that the title of the animation file that user A chooses is corresponding, then the use in Fig. 3 The cartoon character 311 of family A can produce corresponding animation effect such as, if the first client opens the animation that user A chooses File " extremely happy ", the then cartoon character 311 of user A, can make and compare the behavior that the expression of exaggeration is the most happy, to represent " extremely happy " this emotion.The animation file that user A chooses can also be sent to the second client that user B is used, the Two clients, by opening this animation file, can make the cartoon character 311 of the user A shown by the second client produce accordingly Animation effect.
Being in animation selects the title position of the animation file in district 33 to be provided with control.First client can be in order to Using described control, monitoring user A is for the click behavior of the title of animation file.If monitoring user A to certain animation file Title there occurs click behavior, then the first client can by animation file corresponding for the title of clicked animation file, It is defined as the selected animation file of user A.The animation file that user A is selected, may act as being sent to the second client Animation file.
It should be noted that select in district 33 after the title of the animation file of display when user selectes animation, for making to use Family A know selected animation file specifically which, the first client is it may also be determined that corresponding with selected animation file Text, and show in input text area 32.As it is shown on figure 3, the text " [smile fatuously animation] " in input text area 32, it is The text that animation file that user A has selected is corresponding.First client can be according to character " [] ", it is determined that in input text area 32 Text whether be the text corresponding to animation.Specifically, if in text is in this character [], then the explanation text be corresponding to The text of animation file;And if text is not in character [], then explanation text does not corresponds to the text of animation file.
Additionally, in interface shown in Fig. 3, also comprise " animation selects and word inputs switching push button " 34, this button, be The control that first client provides.Depending on actual demand, in interface shown in Fig. 3, it is also possible to do not comprise this button.
If user clicks on this button 34 shown in Fig. 3, the first client can be triggered by showing this interface shown in Fig. 3, cut It is changed to the interface shown as shown in Figure 4.This interface shown in Fig. 4, specifically includes that
Trigger the button 41 of the first client recording voice i.e., show the button of " pin and speak ";
The title of various animation files, as smiled, dance lightly, smiling fatuously;
Switching the Show Button of the title of the animation file of different emotions i.e., shows happy, angry bottom interface Or the button of the word such as calmness.
Based on interface as shown in Figure 4, if user pins the button 41 of recorded speech, then can trigger the first client and enter Row voice recording.The voice data recorded can be preserved by the first client, and the voice data that will preserve, as treating It is sent to one of information of the second client.
In the embodiment of the present application, if information being classified according to the difference of the form of expression of information, then input text area Text in 32, belongs to " text " this type, and animation selects the animation file corresponding to title of the animation file in district 33, Belong to " animation " this type, and the voice data of the first client recording, then belong to " audio frequency " this type.The application implements In example, mainly as a example by " type of information is to divide according to the form of expression of information to obtain " this situation, it is introduced.
In the embodiment of the present application, the first client determines the opportunity of the information being sent to the second client, it is, in general, that Be " the first client complete primary information send after, before carrying out another primary information transmission " this time period.At this What the time period was determined is sent to the information of the second client, can be sent to visitor when carrying out described another primary information and sending Family end.
Such as, in the embodiment of the present application, it is assumed that after the first client completes primary information transmission, user A is defeated at text Enter district 32 have input text " hello ", and the title that have selected animation file in animation selects district 33 " smiles fatuously ", such as Fig. 3 institute Show.So, click on " transmission " button in Fig. 3 at user A, and trigger before the first client carries out another primary information transmission, The information of the information both types in the animation file of text " hello " and entitled " smiling fatuously " can be determined by one client For being sent to the information of the second client (receiving terminal).
The most such as, if assuming, after the first client completes primary information transmission, user A inputs in input text area 32 Text " hello ", and the title that have selected animation file in animation selects district 33 " smiles fatuously ", as it is shown on figure 3, additionally, user A also triggers the first client and is switched to interface as shown in Figure 4, and triggers the first client recording voice data.So, exist User A clicks on " transmission " button in Fig. 4, and triggers before the first client carries out another primary information transmission, and the first client can With by text " hello ", entitled " smiling fatuously " animation file in information and the information of voice data these three type, determine For being sent to the information of the second client.
In the embodiment of the present application, after the first client completes primary information transmission, before carrying out another primary information transmission, the One client under the control of user A, can also obtain picture file or the video file etc. of the photographic head shooting of mobile phone 1, makees For being sent to the information of the second client.
What the first client was determined is sent to the information of the second client, all can be saved in internal memory, in order to enter Row subsequent treatment.
The specific implementation of described subsequent treatment introduced below.
Step 12, information to be encoded, according to the coded system made an appointment with receiving terminal, is encoded to by the first client Possesses the file destination of predetermined format;
Wherein, described information to be encoded, including the letter by performing the described at least two type that step 11 is determined Breath.
If being sent to the information of the second client, including two kinds of information, then described in possess the mesh of predetermined format Mark file comprises the information of the two type;If being sent to the information of the second client, including the information of three types, The information comprising described three types in the file destination of predetermined format is possessed described in then;The rest may be inferred.
The method provided due to the embodiment of the present application, is primarily directed to the information being sent to the second client determined Including the situation of the information of at least two type, therefore, for the ease of describing, hereinafter it is sent to the second client by determine The information of end, is referred to as " information of at least two type ".
In the embodiment of the present application, so that the follow-up target literary composition possessing predetermined format described in get of the second client After part, it is possible to use the information reading manner matched with information type, in the described file destination possessing predetermined format The information of described at least two type is read out, it is also possible to will be " for characterizing information each class of described at least two type The type information of type ", be encoded to described in possess in the file destination of predetermined format.For ease of describing, hereinafter will be used for characterizing institute State the respective type of type information of information of at least two type, referred to as type information.
The respective type of type information of information for characterizing described at least two type mentioned here, can be described The mark of the respective correct reading manner of information of at least two type;Or, the respective class of information of described at least two type Type identifies;Or, it is also possible to it is the information of other any respective types of information that can characterize described at least two type.
When the respective type of type information of information for characterizing described at least two type, it it is described at least two type The mark of information respective correct reading manner time, for the second client, the second client according to the type information, Corresponding correct reading manner can be called, the information of described at least two type is read out.
Such as, if in the information of described at least two type, there is the information of " picture " type, then, described packet In the mark of correct reading manner of information of " picture " type, can be that the reading manner according to picture file correctly reads institute Stating mark x of the read method of the information of " picture " type, according to this mark x, the second client can call corresponding reading Method, correctly reads the information of described " picture " type;If in the information of described at least two type, there is " text " The information of type, then, the mark of the correct reading manner of the information of " text " type in described packet, can be according to literary composition The reading manner of presents correctly reads mark y of the read method of the information of " text " type, according to this mark y, the second visitor Family end can call corresponding read method, correctly reads the information of described " text " type.Above-mentioned read method x, Y, all can be set in advance in the second client.
When described type information, when being the respective type identification of information of described at least two type, for the second client For end, the second client, according to the type information, can call corresponding correct reading manner, to described at least two type Information be read out.
Such as, if in the information of described at least two type, there is the information of " video " type, then, the second client The type identification p of the information according to " video " type in described packet, by searching type identification and the reading side of information The mapping relations of method, it may be determined that the read method mapped with type identification p phase, and according to the read method determined, to " depending on Frequently " information of type correctly reads;If in the information of described at least two type, there is the information of " text " type, that , the second client is according to the type identification q of the information of " text " type in described packet, by searching the type of information Mark and the mapping relations of read method, it may be determined that the read method mapped with type identification q phase, and according to the reading determined Access method, correctly reads the information of " text " type.Above-mentioned mapping relations and read method p, q, all can be in advance It is arranged in the second client.
Described in detail below how by type information and the information of described at least two type, it is encoded to possess predetermined format File destination.
In the embodiment of the present application, it is provided that following two coded system:
Mode one: the coding of packing manner.Which mainly comprises the steps:
Step I: the first client, by the information of described at least two type, saves as corresponding different types of information literary composition Part;
Specifically, the information of the described at least two type determined can be sorted out by the first client, and will return The same type of information that class obtains, saves as the file of respective type.Such as the information of audio types is stored as audio frequency literary composition Part, the information of animation types is stored as animation file, etc..Audio file mentioned here and animation file, may be collectively referred to as letter Breath file.
Step II: the first client according to second client agreement coding mode information (such as compression coding mode), By the information configuration file of containing type information, and perform the described different types of message file that step I preservation obtains, compile Code is compressed file.This compressed file, is the file destination possessing predetermined format.To show differentiation, mentioned here pre-fix Formula can be described as the first predetermined format.
Wherein, described information configuration file, can be such as to use following manner to generate:
According to the respective type of information of the described at least two type determined, determine the letter of described at least two type The mark (or type identification of the information of described at least two type) of the reading manner of breath;The described at least two that will determine The mark (or type identification of the information of described at least two type) of the reading manner of the information of type as type information, and Type information is saved as information configuration file.
This information configuration file, can be a text.Text file, can comprise some records.Described The quantity of some records, can be identical with the number of types of described at least two type.Each in described some records Record, records the type information that a type of information in the information having described at least two type is corresponding respectively, additionally, also The unique identifier of the information of the type can be recorded.
Wherein, in individual event record, the unique identifier of the certain type of information of record, can be to utilize eap-message digest to calculate The information that the information of the type is calculated and produces by method the 5th edition (Message Digest Algorithm 5, MD5) is plucked Want (MD5 value).Based on the unique identifier in information configuration file, it is possible to achieve for the corresponding information in described file destination Completeness check.Such as, the second client is after receiving described file destination, for some type of in described file destination Information, the second client can calculate the MD5 value that the information of the type is corresponding, and compare the MD5 value and described target calculated The MD5 value of the information corresponding to the type in file is the most consistent;If it is consistent, it is determined that the information of the type is complete; If it is inconsistent, it is determined that the information of the type is incomplete.For incomplete information, the second client can be abandoned it Reading.
In the embodiment of the present application, so that the second client is after receiving described file destination, it is possible to determine institute State which record in the information respectively corresponding informance configuration file of at least two type, can possess predetermined format described In file destination, the information setting up described at least two type is closed with the mapping of corresponding record in described information configuration file System.Such as, so that information the putting in order in described file destination of described at least two type, join with described information Put putting in order of every record in file corresponding, this corresponding relation sequentially, it is possible to as described at least two The information of type and the mapping relations of corresponding record in described information configuration file.
Certainly, described mapping relations, it is also possible to be just directly recorded in information configuration file.Such as, certain information configuration Content in file can be such that
{"audio":"file1.mp3","text":"desc.txt"}
This is the content of a json form, and this content specifically includes two key-value pairs, and " key " is that message file is in system In mark, be also the type of message file, such as audio frequency " audio " or text " text ", " value " is the literary composition of message file Part name.According to this information configuration file, receiving terminal can possess predetermined format according to the type represented by " key " from receive File destination in, read message file using " be worth " file1.mp3 corresponding with " key " as filename, as audio frequency File.It should be noted that " reading " described in the embodiment of the present application, it also it is a kind of decoding.Such as, for file destination In using file1.mp3 as this message file of filename as a example by, " reading " this message file, refer to according to filename The decoding process that suffix matches, decodes this message file.Specifically, can press according to the suffix " .mp3 " of file name According to the decoding process of the file for this form of mp3, decode this message file file1.mp3.Similarly, for extended formatting Message file, it would however also be possible to employ corresponding decoding process is decoded, and the embodiment of the present application no longer illustrates.
Connect literary composition, so that the second client is after receiving described file destination, it is possible to described in determining at least two Which record in the information of type corresponding informance configuration file respectively, the first client and the second client can also be in advance Arrange putting in order of different types of information in described file destination.Such as, the first client and the second client can be about In fixed described file destination, the sequence of different types of information is followed successively by: " picture ", " text " and " video ", in this situation Under, if the information of described at least two type that the first client is determined only includes the information of " text " and " video " type, Then can be using certain information of making an appointment as the information of " picture " type, with " text " and " video " type determined Information is ranked up, and utilizes all information after information configuration file and sequence, generates described file destination.
In the embodiment of the present application, the first client is according to the coding mode information with the second client agreement, it is also possible to be Other modes in addition to compression coding mode, this is not defined by the embodiment of the present application.
Mode two: the coding of informix mode
Which mainly comprises the steps:
Step I: the first client, by the information of described at least two type, saves as corresponding different types of information literary composition Part;
Specifically, the information of the described at least two type determined can be sorted out by the first client, and will return The same type of information that class obtains, saves as the file of respective type.Such as the information of audio types is stored as audio frequency literary composition Part, the information of animation types is stored as animation file, etc..Audio file mentioned here and animation file, may be collectively referred to as letter Breath file.
Step II: the first client is according to the first coded system with the second client agreement, by described at least two class The message file of the information of type correspondence respectively and corresponding type information, save as specified file and (can be such as one two Binary file);Then, according still further to the second coded system with the second client agreement, it is encoded to described specified file to possess The file destination of predetermined format.To show differentiation, predetermined format mentioned here can be described as the second predetermined format.
Described first coded system and the second coded system, collectively form the first client and the letter of the second client agreement Breath coded system.
In view of for computer, each file can be considered as binary file, therefore, it can passing through Perform all message files that step I obtains, in comprehensive storage to same binary file F.Come according to this thinking below A kind of mode implementing step II is described in detail:
Which specifically may include steps of:
Step one: create binary file F for preserving message file;
Step 2: determine the binary length value by performing the message file that step I obtains, and two will determined After system length value carries out binary coding, write by performing binary file F that step one creates;
Assume that all message files obtained by performing step I include File1, File2 and File3, then, by holding Row step 2, such as may determine that the binary length value of message file File1.Wherein, File1, File2 and File3, be letter The title of breath file.
The binary length value of File1, generally refers to the total bytes of File1.The binary length value assuming File1 is 512 bytes, then, binary coding can be carried out to 512, obtain the binary number " 0,000 0000 of corresponding 32 0000 0,000 0,000 0,010 0,000 0000 ", and by this binary number described binary file F is write.
Step 3: the mark of reading manner corresponding for described in step 2 a message file is carried out binary coding After, write described binary file F;
After such as the mark of reading manner corresponding for File1 being carried out binary coding, write described binary file F.
Step 4: after the type identification of described in step 2 a message file is carried out binary coding, writes institute State binary file F;
After such as the type identification of File1 being carried out binary coding, write described binary file F.
In the embodiment of the present application, the type identification of message file can be saved in for preserving " sorting out of type identification Table " in this form, and set up the mapping relations of message file and the type identification of message file, such as, information can be set up The title " File1 " of file and the mapping relations of the type identification of this message file.As a example by " File1 ", should based on set up Mapping relations, can determine, according to " File1 ", the type identification mapped mutually with " File1 ".
Step 5: by certain message file described in step 2 itself, write described binary file F.
Respectively each message file is performed step 2~step 5, it is possible to achieve by each message file and corresponding Binary length, the mark of reading manner and type identification, all write described binary file F.
By performing in binary file F (to show differentiation, hereinafter referred to as binary file F') that above-mentioned steps obtains, respectively The arrangement mode planting content is as follows:
The binary system that the mark of the reading manner of binary number-> File1 that the binary length value of File1 is corresponding is corresponding The binary system that the binary length value of binary number-> File1-> File2 that the type identification of number-> File1 is corresponding itself is corresponding Binary number-> File2 that the type identification of binary number-> File2 that the mark of the reading manner of number-> File2 is corresponding is corresponding Itself-> binary number corresponding to the mark of the reading manner of binary number-> File3 corresponding to the binary length value of File3- > binary number-> File3 itself that the type identification of File3 is corresponding.
In the embodiment of the present application, the execution sequence to above-mentioned steps two~step 4 is not defined, if the first client In advance described execution sequence is arranged with the second client, namely in agreement binary file F', the arrangement of various contents is suitable Sequence, in order to the second client can determine putting in order of various contents in binary file F'.
After obtaining binary file F', the first client can be according to the second coded system to described binary file F' Encode, thus obtain the file destination possessing predetermined format.When the second coded system is compression coding mode, obtain The file destination possessing predetermined format is a compressed file.
Described second coded system, it is also possible to be other modes in addition to compression coding mode, the embodiment of the present application pair This is not defined.
Using the coding of informix mode, due to the first coded system, generally only client and server can Know that therefore there is a certain degree of confidentiality.In this case, when being packaged with the file destination that possesses predetermined format After packet is intercepted by third party, owing to third party is difficult to know described first coded system, the therefore ratio of the content in packet Less easily it is cracked.Visible, use the coding of informix mode, so that the anti-of the packet being subsequently generated cracks energy Power is higher, thus guarantee information sends the safety of process.
First client, after being successfully generated the file destination possessing predetermined format, performs following step 13.
Step 13, the file destination possessing predetermined format obtained by performing step 12 is encapsulated into number by the first client In wrapping, and described packet is sent to receiving terminal.
Usually, in order to send information to the second client, user A often sends to the first client input information and refers to Order, to trigger the first client end response in this instruction, sends information to the second client.Such as, user A can be by clicking on such as " transmission " button in Fig. 3, sends instruction to the first client input information;First client receive this information send refer to After order, the packet being packaged with the file destination possessing predetermined format can be sent to the second client.
In the embodiment of the present application, the first client can be after receiving the transmission instruction of this information, according to the first client The communication protocol that end and the second client use, comprises described target literary composition by the described file destination encapsulation title possessing predetermined format The packet of part, sends described packet to the second client the most again.Wherein, this file destination can be as described packet Informosome.
Especially, when the first client and the second client are instant communication client, the first client end response in Information sends instruction, using described packet as instant communication message, is sent to the second client.
Use the such scheme that the embodiment of the present application provides, owing to the first client can be according to the second client in advance The coded system of agreement, is encoded to the mesh possessing predetermined format by the information being sent at least two type of the second client Mark file, and it is sent to the second client, such that it is able to realize carrying the different types of letter of at least two in a packet Breath, improves the information transmitting efficiency under the scene sending different types of information.
Further, owing to, in addition to sending the information of described at least two type, also described type information being sent to second Client, so that the second client can determine for described in correct reading at least two according to described type information The reading manner of the information of type, and then utilize described reading manner that the information of described at least two type is read out, So as the information of carrying out displaying.
Further below how the information of described at least two type it is read out and to show by the second client, carrying out It is discussed in detail.
Refer to Fig. 5, obtain the reality of the information of described at least two type for the second client in the embodiment of the present application Existing flow chart, mainly comprises the steps:
Step 51, the second client receives the packet that the first client sends;
Described packet, from the foregoing it will be appreciated that comprise the file destination possessing predetermined format;Described file destination comprises The information of at least two type.
If the first client and the second client are instant communication client, then the second client can be specifically to receive Described packet that first client sends, as instant communication message.
Step 52, the second client according to the decoding process made an appointment with transmitting terminal, possesses predetermined format to described File destination is decoded, to obtain the information of described at least two type.
Second client, after receiving described packet, is first according between the first client and the second client use Communication protocol, described packet is decapsulated, thus described in getting, possesses the file destination of predetermined format;Then, The decoding process made an appointment described in can using, is decoded the described file destination possessing predetermined format, to obtain State the information of at least two type.
From introduction above, the first client, when possessing the file destination of predetermined format described in generating, at least may be used To use two ways.Mode one is the coding of packing manner, and mode two is the coding of informix mode.
When the first client uses mode for the moment, and the described file destination possessing predetermined format is entered by the second client After row decoding, described message file and corresponding configuration file can be directly obtained.Such as, when the volume that the first client uses When code mode is certain compression coding mode, then the second client can be to utilize corresponding compression coding mode, to described target File decompresses, thus gets described message file and corresponding configuration file.
And when the first client uses mode two, the second client can encode according to previously described second The decoding process (can be described as the second decoding process) that mode is corresponding, is decoded described file destination, obtains treating further The file of decoding, can be the most such as described binary file F';Then, further use and above described the To described, the decoding process (can be described as the first decoding process) that one coded system is corresponding, treats that the file decoded further solves Code, such as, is decoded described binary file F', thus obtains each message file.
When the first client uses mode for the moment, and the second client can get information from described packet and join Put file, and the message file that the information of described at least two type is corresponding.Owing to described information configuration file comprising class Type information, and, the type information in described information configuration file possesses mapping relations with the information of described message file, because of This, the second client is after getting type information, follow-up to be shown the information of described at least two type, then may be used According to all types of information in configuration file, the information in corresponding message file is read out, and reading is obtained Information is shown.
Specifically, when the second client is from described file destination, the type information got is " picture " class During mark x of the reading manner of the information of type, according to the type information, the second client can be called and map with this mark x phase Reading manner, the information of " picture " type mapped with this mark x phase got is read out, obtains corresponding picture File, and show;When the second client is from described file destination, another type information got is " text " class During mark y of the correct reading manner of the information of type, according to the type information, the second client can be called and this mark y phase The read method mapped, is read out the information of " text " type mapped with this mark y phase got, and obtains corresponding Text, and show.Wherein, above-mentioned each reading manner, all can be set in advance in the second client, and, the Typically be additionally provided with described each reading manner in two clients calls path and the corresponding mapping identifying (such as above-mentioned x, y etc.) Relation, in order to correctly call reading manner according to mark.
If it should be noted that the second client is also from described file destination, getting the MD5 value of such as message file Unique identifier, then the second client is before being read out the information in message file, it is also possible to according to the first client The unique identifier calculation that end is made an appointment, calculates the unique identifier of message file respectively;Then, compare and calculate Unique identifier is the most consistent with the corresponding unique identifier got from described packet;If consistent, then may determine that This message file is complete, thus is read out this message file;If inconsistent, then may determine that this message file is the completeest Whole, thus this message file is not read out.
When the second client uses mode two, the second client can get bag from described file destination The message file of the correspondence respectively of the information containing described at least two type and the specified file of corresponding type information, as above Described binary file F'.As a example by binary file F', owing to, in binary file F', comprising described at least two type The respectively corresponding message file of information and corresponding type information, and, the second client can be pre-with the first client First arrange different types of information and corresponding type information putting in order in binary file F', therefore, the second visitor Family end is after getting binary file F', follow-up to be shown the information of described at least two type, then can be from Binary file obtains type information, and according to type information, the information in corresponding message file is read out, and The information read is shown.
Below as a example by getting described binary file F' from described file destination, introduce the second client and enter two The process step of file F' processed:
Step one: the second client is using the second decoding process to be decoded described file destination, thus obtains two After binary file F', create a text (or a internal storage data) and be used for depositing information configuration table;
Step 2: the second client, from the beginning of position is read in the appointment of binary file F', reads informosome in order In binary number, and the binary number in addition to message file that will read, be saved in information configuration successively by reading order In table;
Such as, continue to use precedent, when the content in binary file F' is as follows:
The binary system that the mark of the reading manner of binary number-> File1 that the binary length value of File1 is corresponding is corresponding The binary system that the binary length value of binary number-> File1-> File2 that the type identification of number-> File1 is corresponding itself is corresponding Binary number-> File2 that the type identification of binary number-> File2 that the mark of the reading manner of number-> File2 is corresponding is corresponding Itself-> binary number corresponding to the mark of the reading manner of binary number-> File3 corresponding to the binary length value of File3- > binary number-> File3 itself that the type identification of File3 is corresponding.
Further, in addition to each message file itself, when other each binary numbers are respectively 32, the second client can be from two First bit of binary file F' starts, and extracts front 32 bits, as first in binary file F' The binary length of message file (i.e. File1);Extract the 33rd~the 64th, as first letter in binary file F' The mark of the reading manner of breath file;Extract the 65th~the 96th, as first message file in binary file F' Type identification.Those data extracted, can be saved in information configuration table.Corresponding to the data of same message file, It is saved in the same item of information configuration table.
It should be noted that according to the binary length of first message file, be withdrawn as binary file F' In first message file (i.e. File1) type identification binary number after, can be according to this binary length (such as 512 Position), determine binary number in binary file F', that be arranged in this binary length (such as 512) after the type identifies, As first message file in binary file F'.
Step 3: the second client calculates in binary file F' the unique identifier of each message file respectively (such as MD5 Value), and recorded in information configuration table;
The every the most corresponding message file by performing step 2 and step 3, in information configuration table.In individual event The information of record includes: the binary length of certain message file (such as File1) in binary file F', this message file The mark of reading manner, the type identification of this message file.
Step 4: when all types of information in described binary file F' to be shown by the second client, the Two clients read information configuration table, and according to the information in information configuration table, it is achieved to the letter in described binary file F' The reading of breath file.
Such as, after the second client receives for the information displaying instruction of described binary file F', the second client End from information configuration table, be successively read every in binary length, and as the data of type information (such as reading manner Mark or the type identification of message file), and according to described binary length, from described binary file F', determine letter Cease file, and then the message file determined is read out by use pattern information.
Step 5: the message file read is shown by the second client.
In the embodiment of the present application, multiple exhibition method can be used.
Specifically, the different types of message file read separately can be shown.Such as, reading is worked as To message file include picture file and audio file time, the picture file that can will read, display in the second client Interface in, the audio file read is played out meanwhile.Or, the picture file that will read, show the second visitor In the interface of family end, and behind the 2nd second after completing the display to described picture file, the audio file read is broadcast Put.
Or, can be associated the different types of message file read showing, the most compound displaying.Such as, When the message file read includes animation file and audio file, the second client can determine dynamic according to audio file How the animating image drawn in file correspondingly should carry out shape of the mouth as one speaks change, i.e. determines the shape of the mouth as one speaks of animating image according to audio file Variation pattern;After determining shape of the mouth as one speaks variation pattern, the second client can be play dynamic while playing audio file Draw file, and according to described shape of the mouth as one speaks variation pattern, change the shape of the mouth as one speaks of animating image in described animation file.
It should be noted that in the embodiment of the present application, the first client before message file is encoded, or Two clients, after successfully reading message file, all can carry out the conversion in type of information.Such as, for the first client For end, the first client is before encoding message file, and the some type of information that can user be inputted is (such as " literary composition Originally " information of type), it is converted into another type of information (such as the information of " audio frequency " type), letter conversion obtained the most again Breath, as the one in the information of described at least two type, with other kinds of information and type information, is encoded to together Possesses the file destination of predetermined format.And for for the second client, the second client after message file is read out, The certain type of file that can will read, is converted into other kinds of file.Such as, the audio file that will read, turn Turn to text, and show converting the text message obtained.
Embodiment 2
For the inventive concept identical with the embodiment of the present application 1, the embodiment of the present application 2 provides a kind of information transmitting apparatus, In order to solve in existing instant messaging, the information sender formula taked under sending the scene of different types of information exists Inefficient problem.The concrete structure schematic diagram of this device as shown in Figure 6, including following function unit:
Information determination unit 61, for determining the information of at least two type being sent to receiving terminal.
Coding unit 62, for according to the coded system made an appointment with receiving terminal, is encoded to tool by information to be encoded The file destination of standby predetermined format.Wherein, described information to be encoded, including information determination unit 61 determine described at least Two kinds of information.
Transmitting element 63, the file destination being used for possessing described in being obtained by coding unit 62 predetermined format is encapsulated into data Bao Zhong, and described packet is sent to receiving terminal.
So that receiving terminal can be accurately read the information of described at least two type, in one embodiment, In described information to be encoded, also include the respective type of type information of information for characterizing described at least two type.
In one embodiment, coding unit 62 specifically may be used for: by the information of described at least two type, preserves For corresponding different types of message file;According to described coding mode information, by described different types of message file and Described type information, is encoded to the file destination possessing predetermined format.
Optionally, coding unit 62 is according to described coding mode information, by described different types of message file and institute State type information, be encoded to the file destination possessing predetermined format, specifically may include that according to described coding mode information, will Described different types of message file and comprise the information configuration file of described type information, is encoded to possess predetermined format File destination.If coding mode information mentioned here includes compression coding mode, then coding unit 62 specifically may be used for: root According to described coding mode information, by described different types of message file and the information configuration literary composition that comprises described type information Part, is encoded to the compressed file as described file destination.
In one embodiment, described coding mode information, the first coded system and the second coded system can be included. In this case, coding unit 62 specifically may be used for: according to described first coded system, by described different types of letter Breath file and described type information save as pending file;According to described second coded system, by described pending file It is encoded to the file destination possessing predetermined format.
When described second coded system includes compression coding mode, coding unit 62 may be used for: according to described second Coded system, is the compressed file as described file destination using described pending document No..
Optionally, the information of previously described at least two type, at least two including in following information:
Text;Picture;Audio frequency;Animation;Video.
Optionally, this information transmitting apparatus described in the embodiment of the present application and described receiving terminal, can be all IMU Letter client.
Use this device that the embodiment of the present application provides, owing to this device can be according to the coding made an appointment with receiving terminal Mode, is encoded to the information being sent at least two type of receiving terminal the file destination possessing predetermined format, and sends To receiving terminal, such that it is able to realize carrying the different types of information of at least two in a packet, improve and sending not With the information transmitting efficiency under the scene of the information of type.
For the inventive concept identical with the embodiment of the present application 1, the embodiment of the present application also provides for a kind of information acquisition device, Information for sending the method using the embodiment of the present application 1 to provide obtains.Specifically, the tool of this information acquisition device Body structural representation is as it is shown in fig. 7, comprises following function unit:
Packet receives unit 71, the packet sent for receiving end/sending end.
Described packet, comprises the file destination possessing predetermined format;Described file destination comprises at least two type Information.
Decoding unit 72, for according to the decoding process made an appointment with transmitting terminal, to the described mesh possessing predetermined format Mark file is decoded, to obtain the information of described at least two type.
Optionally, described in possess in the file destination of predetermined format, also include for characterizing described at least two type The respective type of type information of information.
In one embodiment, described device can also include Information reading unit.This Information reading unit, is used for The described file destination possessing predetermined format, according to the decoding process made an appointment with transmitting terminal, is solved by decoding unit 72 Code, after obtaining the information of described at least two type, according to the described type letter being decoded obtaining to described file destination Breath, uses the information reading manner that the respective type of information with described at least two type matches respectively, reads acquisition The information of described at least two type.
Information in order to read Information reading unit is shown, this acquisition of information dress that the embodiment of the present application provides Put and can also include: display unit, for using the respective class of information with described at least two type at Information reading unit The information reading manner that type matches respectively, after reading the information of the described at least two type obtained, shows the institute read State the information of at least two type.
Specifically, display unit, may be used for the information of the compound described at least two type shown and read.
Use this information acquisition device that the embodiment of the present application provides, owing to receiving what unit 71 received for packet The file destination of the predetermined format comprised in the packet sent by transmitting terminal, this device can be made an appointment according to transmitting terminal Decoding process, the described file destination possessing predetermined format is decoded, to obtain the information of described at least two type, Thus it is successfully realized the information getting at least two type from a packet, improve the acquisition efficiency of information, solve Certainly in existing instant messaging, the efficiency that the information sender formula taked under sending the scene of different types of information exists is relatively Low problem.
Embodiment 3
For the inventive concept identical with the embodiment of the present application 1 and embodiment 2, the embodiment of the present application also provides for a kind of interface System, in order to solve in existing instant messaging, the information sender formula taked under sending the scene of different types of information The inefficient problem existed.The concrete structure schematic diagram of this interface system as shown in Figure 8, including following functional unit:
Information determination unit 81 to be sent, for determining the information of at least two type being sent to receiving terminal;
Information sends control 82, is used for the information that detects and sends instruction;After detecting that described information sends instruction, according in advance The coded system first arranged with information receiving end, is encoded to the file destination possessing predetermined format by information to be encoded;By institute State and possess the file destination of predetermined format and be encapsulated in packet, and described packet is sent to receiving terminal.This information sends Control 82, the form of expression in the user interface can be a button, showing in user interface 90 as shown in Figure 9 The button 93 " sent ".
Wherein, described information to be encoded, the described at least two class determined including information determination unit 81 to be sent The information of type.
In one embodiment, described information to be encoded, also include the letter for characterizing described at least two type Cease respective type of type information.
In the embodiment of the present application 3, information sends how control 82 realizes information to be encoded is encoded to possess pre-fixing The file destination of formula, and then be that packet is transmitted by described target envelope, may refer to being correlated with in the embodiment of the present application 1 Describing, here is omitted.
In one embodiment, described information determination unit 81 to be sent, specifically can include candidate as shown in Figure 8 Information display subelement 811 and information choose control 812.Wherein:
Candidate information display subelement 811, is available for, for display in the user interface, the candidate information that user chooses.
Information chooses control 812, shows the described candidate information of subelement 811 display for candidate information for detection Choose instruction;After choosing instruction described in detecting, choose, according to described, the candidate information being selected that instruction is corresponding, determine and treat It is sent to the information of receiving terminal.Information chooses control 812, can be arranged on candidate information viewing area 91.Such as, candidate information is worked as During for the title of animation file, information choose control 812 detect the title for described animation file choose instruction after, Can determine that corresponding animation file is as being sent to receiving terminal according to the described title choosing animation file corresponding to instruction Information;When candidate information is dynamic expression file, information is chosen control 812 and is being detected for described dynamic expression file Choose instruction after, can directly determine described in choose the dynamic expression file that instruction is corresponding, as being sent to receiving terminal Information.
For candidate information display subelement 811, candidate information display subelement 811, such as can be such as Fig. 9 institute In candidate information viewing area 91 in the user interface 90 shown, display candidate information, candidate information mentioned here, the most permissible It is dynamic expression file, it is also possible to be the title of animation file, etc..
In the embodiment of the present application 3, display is the candidate information of display in candidate information viewing area 91, can be same type Information, it is also possible to include different types of information.When the display candidate information in candidate information viewing area 91 is same type Information (or candidate information corresponding same type of information) time, information choose control 812 determine described in candidate's letter of being selected Breath (or candidate information corresponding same type of information), different types of as the described at least two being sent to receiving terminal A type of information in information;When the display candidate information in candidate information viewing area 91 includes different types of information, When the candidate information being selected described in and includes (or corresponding) different types of information, information is chosen control 812 and is determined described quilt The different types of information of the candidate information chosen included (or corresponding), as receiving terminal to be sent described at least two not With information different types of in the information of type.
In the embodiment of the present application 3, the information of receiving terminal can be sent to from primary input for the ease of user, described to be sent Information determination unit 81, it is also possible to include inputting acquisition of information subelement 813.This input acquisition of information subelement 813, is used for obtaining Take the information inputted by message input device.
Message input device mentioned here, generally refers to the information input dress of the equipment that this interface system is arranged on Put.This message input device such as can include but not limited at least one in touch screen, keyboard, mike and photographic head.
In the embodiment of the present application, information determination unit 81 to be sent, can both include that candidate information showed subelement 811 He Information chooses control 812, includes again inputting acquisition of information subelement 813;Or, information determination unit 81 to be sent, it is also possible to Only include that candidate information display subelement 811 and information choose control 812, and do not include inputting acquisition of information subelement 813;Or Person, information determination unit 81 to be sent, it is also possible to do not include that candidate information display subelement 811 and information choose control 812, and Only include inputting acquisition of information subelement 813.The embodiment of the present application only requires that information determination unit 81 to be sent can meet acquisition To the different types of information of at least two, the concrete structure of information determination unit 81 to be sent is not limited.
For message input device mentioned above, when described message input device includes keyboard or touch screen Time, described input acquisition of information subelement 813, specifically may be used for: show Text Entry in the user interface;And, obtain Take the text message inputted by described Text Entry.As a example by the user interface shown in Fig. 9, such as, this user interface 90 In Text Entry 92, be input Text Entry shown by acquisition of information subelement 813.
When described message input device includes mike, described input acquisition of information subelement 813, specifically for: User interface shows voice recording button control;And, it is performed the first assigned operation at described voice recording button control After, obtain and the audio signal inputted by mike is converted the voice data obtained, as the information of described input.Should First assigned operation, can be such as with the head of a household by user interface display this voice recording button control, etc..
When described message input device includes photographic head, described input acquisition of information subelement 813, specifically for: User interface shows video record button control;And, it is performed the second assigned operation at described video record button control After, obtain the view data photographed by photographic head, as the information of described input.Second assigned operation mentioned here, Can be such as user click or long by this voice recording button control of display in user interface, etc..
In the embodiment of the present application, it is contemplated that the limited area of user interface, if input acquisition of information subelement 81 exists simultaneously One user interface both showed described Text Entry, had shown again that described voice recording button control and described video record were pressed Button control, may cause the content in user interface to seem that comparison is crowded, is not used in user's exact operations, therefore, input letter Breath obtains subelement 81 can show described Text Entry and described voice recording button control in different user interface respectively Part (or described video record button control).
Such as, when described message input device includes keyboard or touch screen, described input acquisition of information subelement 813, specifically may be used for: in user interface 90 as shown in Figure 9, show Text Entry 92;And, obtain by described The text message of Text Entry 92 input.Additionally, input acquisition of information subelement 813 can also be aobvious in user interface 90 Show that animation selects and word inputs toggle control 94.Animation select and word input toggle control 94 Main Function, be for Detection changing interface instruction.This changing interface instruct, be such as by click animation select and word input toggle control 94 and Trigger.
Described input acquisition of information subelement 813, may be used for selecting to detect with word input toggle control 94 at animation After instructing to described changing interface, by the user interface 90 shown as shown in Figure 9, switch to display user circle as shown in Figure 10 Face 100.Described input acquisition of information subelement 813 can hide described Text Entry 92 in this user interface 100.Separately On the one hand, candidate information display subelement 811, may be used for candidate information, show and show that described text is defeated being originally used for Enter the viewing area of frame 92.Specifically, in user interface 100, user shows the viewing area of candidate information, shown in Figure 10 Candidate information viewing area 101.Correspondingly, in user interface 100, information chooses control 812 for detecting display in this time That selects the described candidate information in information display area 101 chooses instruction;After choosing instruction described in detecting, choose according to described The candidate information being selected that instruction is corresponding, determines the information being sent to receiving terminal.In user interface 100, this information is selected Take control 812, may be in candidate information viewing area 101 as shown in Figure 10.
Additionally, input acquisition of information subelement 813 can show voice recording button control 102 in user interface 100. Voice recording button control 102, is used for detecting whether user performs the first assigned operation for voice recording button control.Defeated Enter acquisition of information subelement 813, can detect that user performs for this voice recording button at voice recording button control 102 During the first assigned operation, obtain and the audio signal inputted by mike is converted the voice data obtained, as institute State the information of input.
Or, input information acquisition unit 813 can also show video record button control (figure in user interface 100 Not shown in 10).Video record button control, is used for detecting whether user performs the second finger for video record button control Fixed operation.Input acquisition of information subelement 813, can video record button control detect user for this voice recording by When button performs the second assigned operation, obtain and the video signal inputted by photographic head converted the video data obtained, Information as described input.
Information in order to realize choosing user shows, described interface system can also include:
Composite information display unit 83, the letter of the described at least two type for described information to be encoded is included Breath carries out compound display.Different types of information for including information to be encoded carries out the region of compound display, can To see the composite information viewing area 95 in Fig. 9 and Figure 10.
Composite information display unit 83, it is also possible to the different types of information for sending transmitting terminal carries out compound aobvious Show.How different types of information is carried out compound display, may refer to associated description in embodiment 1 and embodiment 2, the most not Repeat again.
About the functional realiey mode of the functional unit that this interface system of the embodiment of the present application offer is comprised, the most detailed Part, may refer to the relevant introduction in embodiment 1 and embodiment 2, and here is omitted.
Use this interface system that the embodiment of the present application provides, it is possible to achieve provide the user and can choose or input difference The user interface of the information of type, and and/or choose for the input of information based on user, according in advance with information receiving end about Fixed coded system, is sent to receiving terminal after information to be encoded is encoded to possess the file destination of predetermined format, thus carries Supply a kind of high efficiency information sender formula, solved in existing instant messaging, in the scene sending different types of information The inefficient problem that lower taked information sender formula exists.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the reality in terms of the application can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the application can use at one or more computers wherein including computer usable program code The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of product.
The application is with reference to method, equipment (system) and the flow process of computer program according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/output interface, net Network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, can be used for the information that storage can be accessed by a computing device.According to defining herein, calculate Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data signal and the carrier wave of modulation.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to nonexcludability Comprise, so that include that the process of a series of key element, method, commodity or equipment not only include those key elements, but also wrap Include other key elements being not expressly set out, or also include want intrinsic for this process, method, commodity or equipment Element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including key element Process, method, commodity or equipment there is also other identical element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program. Therefore, the embodiment in terms of the application can use complete hardware embodiment, complete software implementation or combine software and hardware Form.And, the application can use can be with depositing at one or more computers wherein including computer usable program code The shape of the upper computer program implemented of storage media (including but not limited to disk memory, CD-ROM, optical memory etc.) Formula.
These are only embodiments herein, be not limited to the application.To those skilled in the art, The application can have various modifications and variations.All made within spirit herein and principle any amendment, equivalent, Improve, within the scope of should be included in claims hereof.

Claims (22)

1. a method for sending information, it is characterised in that including:
Transmitting terminal determines the information of at least two type being sent to receiving terminal;
According to the coded system made an appointment with receiving terminal, information to be encoded is encoded to the target literary composition possessing predetermined format Part;Wherein, described information to be encoded, including the information of described at least two type;
The described file destination possessing predetermined format is encapsulated in packet, and described packet is sent to receiving terminal.
2. the method for claim 1, it is characterised in that in described information to be encoded, also includes for characterizing described The respective type of type information of information of at least two type.
3. method as claimed in claim 2, it is characterised in that transmitting terminal according to the coded system made an appointment with receiving terminal, Information to be encoded is encoded to the file destination possessing predetermined format, including:
Transmitting terminal, by the information of described at least two type, saves as corresponding different types of message file;
According to described coding mode information, by described different types of message file and described type information, it is encoded to possess The file destination of predetermined format.
4. method as claimed in claim 3, it is characterised in that according to described coding mode information, by described different types of Information and described type information, be encoded to the file destination possessing predetermined format, including:
According to described coding mode information, described different types of message file and the information that comprises described type information are joined Put file, be encoded to the file destination possessing predetermined format.
5. method as claimed in claim 4, it is characterised in that described coding mode information, including compression coding mode;Then
According to described coding mode information, described different types of message file and the information that comprises described type information are joined Put file, be encoded to the file destination possessing predetermined format, including:
According to described coding mode information, described different types of message file and the information that comprises described type information are joined Put file, be encoded to the compressed file as described file destination.
6. method as claimed in claim 3, it is characterised in that described coding mode information, including the first coded system and the Two coded systems;Then
According to described coding mode information, by described different types of message file and described type information, it is encoded to possess The file destination of predetermined format, including:
According to described first coded system, described different types of message file and described type information are saved as pending File;
According to described second coded system, it is the file destination possessing predetermined format by described pending document No..
7. method as claimed in claim 6, it is characterised in that described second coded system, including compression coding mode;Then
According to described second coded system, it is the file destination possessing predetermined format by described pending document No., including:
According to described second coded system, it is the compressed file as described file destination using described pending document No..
8. an information getting method, it is characterised in that including:
The packet that receiving terminal receiving end/sending end sends;Described packet, comprises the file destination possessing predetermined format;Described mesh Mark file comprises the information of at least two type;
According to the decoding process made an appointment with transmitting terminal, the described file destination possessing predetermined format is decoded, to obtain Obtain the information of described at least two type.
9. method as claimed in claim 8, it is characterised in that described in possess in the file destination of predetermined format, also include using In the respective type of type information of information characterizing described at least two type.
10. method as claimed in claim 9, it is characterised in that from according to the decoding process made an appointment with transmitting terminal, to institute Stating and possess the file destination of predetermined format and be decoded, after obtaining the information of described at least two type, described method is also wrapped Include:
Receiving terminal, according to the described type information being decoded obtaining to described file destination, uses and described at least two type The information reading manner that matches respectively of the respective type of information, read the information of the described at least two type obtained.
11. methods as claimed in claim 10, it is characterised in that receiving terminal uses each with the information of described at least two type From the information reading manner that matches respectively of type, after reading the information of the described at least two type obtained, described method Also include:
Receiving terminal shows the information of the described at least two type read.
12. methods as claimed in claim 11, it is characterised in that the described at least two type that receiving terminal displaying reads Information, including:
Receiving terminal is combined the information showing the described at least two type read.
13. 1 kinds of information transmitting apparatus, it is characterised in that including:
Information determination unit, for determining the information of at least two type being sent to receiving terminal;
Coding unit, for according to the coded system made an appointment with receiving terminal, is encoded to possess predetermined by information to be encoded The file destination of form;Wherein, described information to be encoded, including the information of described at least two type;
Transmitting element, for being encapsulated in packet by the described file destination possessing predetermined format, and sends out described packet Give receiving terminal.
14. devices as claimed in claim 13, it is characterised in that in described information to be encoded, also include for characterizing State the respective type of type information of information of at least two type.
15. devices as claimed in claim 14, it is characterised in that coding unit, are used for:
By the information of described at least two type, save as corresponding different types of message file;
According to described coding mode information, by described different types of message file and described type information, it is encoded to possess The file destination of predetermined format.
16. 1 kinds of information acquisition devices, it is characterised in that including:
Packet receives unit, the packet sent for receiving end/sending end;Described packet, comprises the mesh possessing predetermined format Mark file;Described file destination comprises the information of at least two type;
Decoding unit, for according to the decoding process made an appointment with transmitting terminal, to the described file destination possessing predetermined format It is decoded, to obtain the information of described at least two type.
17. devices as claimed in claim 16, it is characterised in that described in possess in the file destination of predetermined format, also include For characterizing the respective type of type information of information of described at least two type.
18. devices as claimed in claim 17, it is characterised in that described device also includes:
Information reading unit, at decoding unit according to the decoding process made an appointment with transmitting terminal, to described possess predetermined The file destination of form is decoded, and after obtaining the information of described at least two type, carries out according to described file destination The described type information that decoding obtains, uses the information that the respective type of information with described at least two type matches respectively Reading manner, reads the information of the described at least two type obtained.
19. 1 kinds of interface systems, it is characterised in that including:
Information determination unit to be sent, for determining the information of at least two type being sent to receiving terminal;
Information sends control, is used for the information that detects and sends instruction;Detect described information send instruction after, according in advance with letter The coded system of breath receiving terminal agreement, is encoded to the file destination possessing predetermined format by information to be encoded;Possess described The file destination of predetermined format is encapsulated in packet, and described packet is sent to receiving terminal;Wherein, described to be encoded Information, including the information of the described at least two type that information determination unit to be sent is determined.
20. interface systems as claimed in claim 19, it is characterised in that described information determination unit to be sent, including:
Candidate information display subelement, is available for, for display in the user interface, the candidate information that user chooses;
Information chooses control, chooses instruction for detection for described candidate information;After choosing instruction described in detecting, root Choose, according to described, the candidate information being selected that instruction is corresponding, determine the information being sent to receiving terminal.
21. interface systems as described in claim 19 or 20, it is characterised in that described information determination unit to be sent, including:
Information determination unit to be sent, including:
Input acquisition of information subelement, for according to the information inputted by message input device, determining and be sent to receiving terminal Information.
22. systems as claimed in claim 25, it is characterised in that:
When described message input device includes touch screen or keyboard, described input acquisition of information subelement, specifically for: User interface shows Text Entry;And, obtain the text message inputted by described Text Entry;
When described message input device includes mike, described input acquisition of information subelement, specifically for: in user interface Middle display voice recording button control;And, after described voice recording button control is performed the first assigned operation, obtain logical Cross the audio signal of mike input and be converted into voice data, as the information of described input;
When described message input device includes photographic head, described input acquisition of information subelement, specifically for: in user interface Middle display video record button control;And, after described video record button control is performed the second assigned operation, obtain logical Cross the view data that photographic head photographs, as the information of described input.
CN201610463536.6A 2016-06-23 2016-06-23 Method for sending information, acquisition methods, device and interface system Active CN106209575B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610463536.6A CN106209575B (en) 2016-06-23 2016-06-23 Method for sending information, acquisition methods, device and interface system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610463536.6A CN106209575B (en) 2016-06-23 2016-06-23 Method for sending information, acquisition methods, device and interface system

Publications (2)

Publication Number Publication Date
CN106209575A true CN106209575A (en) 2016-12-07
CN106209575B CN106209575B (en) 2019-09-24

Family

ID=57461852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610463536.6A Active CN106209575B (en) 2016-06-23 2016-06-23 Method for sending information, acquisition methods, device and interface system

Country Status (1)

Country Link
CN (1) CN106209575B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766571A (en) * 2017-11-08 2018-03-06 北京大学 The search method and device of a kind of multimedia resource
CN109547327A (en) * 2018-11-01 2019-03-29 苏州达家迎信息技术有限公司 A kind of method for sending information, device, storage medium and equipment
CN112583878A (en) * 2019-09-30 2021-03-30 北京百度网讯科技有限公司 Vehicle information checking method, device, equipment and medium
CN115442469A (en) * 2022-08-31 2022-12-06 南京维沃软件技术有限公司 Message output and message sending method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183827A1 (en) * 2007-01-30 2008-07-31 At&T Knowledge Ventures, Lp System and method for multimedia messaging
CN101247589A (en) * 2007-07-04 2008-08-20 华为技术有限公司 Mobile terminal data conversion/backup method, device and system
CN104159203A (en) * 2014-08-29 2014-11-19 蓝信工场(北京)科技有限公司 Method and device of carrying out mixed arrangement on multimedia information in chat dialog box
CN105141567A (en) * 2014-05-26 2015-12-09 腾讯科技(深圳)有限公司 Interactive data processing method and system of terminal application and service end and interaction method
CN105207886A (en) * 2015-08-12 2015-12-30 深圳前海珩昌科技有限公司 Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080183827A1 (en) * 2007-01-30 2008-07-31 At&T Knowledge Ventures, Lp System and method for multimedia messaging
CN101247589A (en) * 2007-07-04 2008-08-20 华为技术有限公司 Mobile terminal data conversion/backup method, device and system
CN105141567A (en) * 2014-05-26 2015-12-09 腾讯科技(深圳)有限公司 Interactive data processing method and system of terminal application and service end and interaction method
CN104159203A (en) * 2014-08-29 2014-11-19 蓝信工场(北京)科技有限公司 Method and device of carrying out mixed arrangement on multimedia information in chat dialog box
CN105207886A (en) * 2015-08-12 2015-12-30 深圳前海珩昌科技有限公司 Instant messaging (IM) message sending and display methods, IM message sending and display devices, and IM message system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766571A (en) * 2017-11-08 2018-03-06 北京大学 The search method and device of a kind of multimedia resource
CN109547327A (en) * 2018-11-01 2019-03-29 苏州达家迎信息技术有限公司 A kind of method for sending information, device, storage medium and equipment
CN112583878A (en) * 2019-09-30 2021-03-30 北京百度网讯科技有限公司 Vehicle information checking method, device, equipment and medium
CN112583878B (en) * 2019-09-30 2023-03-14 阿波罗智能技术(北京)有限公司 Vehicle information checking method, device, equipment and medium
CN115442469A (en) * 2022-08-31 2022-12-06 南京维沃软件技术有限公司 Message output and message sending method and device

Also Published As

Publication number Publication date
CN106209575B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
US20190342241A1 (en) Systems and methods for manipulating and/or concatenating videos
CN109120866B (en) Dynamic expression generation method and device, computer readable storage medium and computer equipment
US10210002B2 (en) Method and apparatus of processing expression information in instant communication
CN109729420A (en) Image processing method and device, mobile terminal and computer readable storage medium
US20200195842A1 (en) Information pushing method, storage medium, terminal device, and server
KR102081229B1 (en) Apparatus and method for outputting image according to text input in real time
CN106209575A (en) Method for sending information, acquisition methods, device and interface system
US20140045467A1 (en) Method and apparatus for recording information during a call
JP2024513640A (en) Virtual object action processing method, device, and computer program
CN114880062A (en) Chat expression display method and device, electronic device and storage medium
US20140163956A1 (en) Message composition of media portions in association with correlated text
CN107888989A (en) A kind of interactive system and method live based on internet
CN108984071A (en) Text recombination method, device, terminal device and computer readable storage medium
CN112843681B (en) Virtual scene control method and device, electronic equipment and storage medium
CN110768896B (en) Session information processing method and device, readable storage medium and computer equipment
CN116055762A (en) Video synthesis method and device, electronic equipment and storage medium
US10972746B2 (en) Method of combining image files and other files
CN108509059B (en) Information processing method, electronic equipment and computer storage medium
CN114567693B (en) Video generation method and device and electronic equipment
CN110166345A (en) Resource sharing method, resource acquiring method, device and storage medium
CN112035206B (en) Message processing method and device
CN108228773A (en) A kind of method and device realized information and preserved
CN113536744A (en) Conference recording method and device
WO2016173136A1 (en) Terminal application processing method and device thereof
CN111625740A (en) Image display method, image display device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190326

Address after: 361012 3F-A193, Innovation Building C, Software Park, Xiamen Torch High-tech Zone, Xiamen City, Fujian Province

Applicant after: Xiamen Black Mirror Technology Co., Ltd.

Address before: 9th Floor, Maritime Building, 16 Haishan Road, Huli District, Xiamen City, Fujian Province, 361000

Applicant before: XIAMEN HUANSHI NETWORK TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant