CN111163216A - Image transmission method and electronic equipment - Google Patents
Image transmission method and electronic equipment Download PDFInfo
- Publication number
- CN111163216A CN111163216A CN201911269675.5A CN201911269675A CN111163216A CN 111163216 A CN111163216 A CN 111163216A CN 201911269675 A CN201911269675 A CN 201911269675A CN 111163216 A CN111163216 A CN 111163216A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- image
- message
- sent
- electronic equipment
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 230000005540 biological transmission Effects 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 claims abstract description 37
- 230000000977 initiatory effect Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 19
- 238000004590 computer program Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 230000004044 response Effects 0.000 description 10
- 238000012790 confirmation Methods 0.000 description 7
- 239000002609 medium Substances 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000006163 transport media Substances 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/10—Multimedia information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention provides an image transmission method and electronic equipment, relates to the technical field of communication, and aims to solve the problems that the existing electronic equipment is single in a mode of displaying a head portrait of an opposite user in a call interface and cannot be flexibly replaced. The method comprises the following steps: receiving a first image sent by second electronic equipment, wherein the first image is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment; and displaying a first image in an avatar area in a first interface, wherein the first interface comprises an incoming call interface of a first call connection or a call interface of a second call connection. The method is applied to the scene that the electronic equipment carries out IMS conversation.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an image transmission method and electronic equipment.
Background
With the rapid development of communication technology, electronic devices are more and more widely used, and users have higher and higher requirements for the performance of the electronic devices.
When the user talks with other users through the electronic equipment, the electronic equipment can display the related information of the opposite user, such as the name, the telephone number, the place of the telephone number, the head portrait and the like of the opposite user on the call interface.
However, since the avatar of the opposite user displayed on the call interface by the electronic device is usually the default avatar of the electronic device system or the avatar pre-stored in the electronic device by the user, the manner in which the avatar of the opposite user is displayed on the call interface by the electronic device is relatively single and cannot be flexibly replaced.
Disclosure of Invention
The embodiment of the invention provides an image transmission method and electronic equipment, and aims to solve the problems that the existing electronic equipment is single in a mode of displaying a head portrait of an opposite user in a call interface and cannot be flexibly replaced.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an image transmission method, where the method is applied to a first electronic device, and the method includes: receiving a first image sent by second electronic equipment, wherein the first image is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment; and displaying a first image in an avatar area in a first interface, wherein the first interface comprises an incoming call interface of the first call connection or a call interface of the second call connection.
In a second aspect, an embodiment of the present invention provides an image transmission method, which is applied to a second electronic device, and includes: sending a target message to the first electronic device, wherein the target message comprises a first image, and the target message is sent when the second electronic device requests to establish a first communication connection with the first electronic device or sent after the second electronic device establishes a second communication connection with the first electronic device; the target message is a first Session Initiation Protocol (SIP) message or a Message Session Relay Protocol (MSRP) message.
In a third aspect, an embodiment of the present invention provides a first electronic device, where the first electronic device includes a receiving module and a display module. The receiving module is used for receiving a first image sent by second electronic equipment, wherein the first image is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment; the display module is used for displaying the first image received by the receiving module in the head portrait area of the first interface, and the first interface comprises an incoming call interface of the first call connection or a call interface of the second call connection.
In a fourth aspect, an embodiment of the present invention provides a second electronic device, where the second electronic device includes a sending unit. The device comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending a target message to first electronic equipment, the target message comprises a first image, and the target message is sent when second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment; wherein, the target message is the first SIP message or the MSRP message.
In a fifth aspect, an embodiment of the present invention provides a first electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the image transmission method as in the first aspect.
In a sixth aspect, an embodiment of the present invention provides a second electronic device, where the electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the computer program, when executed by the processor, implements the steps of the image transmission method in the first aspect.
In a seventh aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the image transmission method in the first or second aspect.
In the embodiment of the present invention, the first electronic device may receive a first image sent by the second electronic device (sent when the second electronic device requests to establish a first communication connection with the first electronic device, or sent after establishing a second communication connection with the first electronic device); and displaying the first image in an avatar area in a first interface (an incoming call interface including a first call connection, or a call interface including a second call connection). According to the scheme, the first electronic equipment can receive the image sent by the second electronic equipment when the second electronic equipment requests to establish the first call connection with the first electronic equipment, and the image is displayed in the head portrait area of the incoming call interface of the first call connection; and the first electronic device can also receive an image sent by the second electronic device after the second electronic device establishes a call connection with the first electronic device, and display the image in the avatar area of the call interface of the second call connection, so that the first electronic device can display the image sent by the other electronic device on the incoming call interface or the call interface in the process of calling through the first electronic device (including ringing, off-hook and after off-hook), that is, the first electronic device can display the image sent by the other electronic device in the incoming call interface or the avatar area of the call interface of the call connection, so that the first electronic device can display the avatar of the other user in a flexible manner in the call process.
Drawings
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an image transmission method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an application of an image transmission method according to an embodiment of the present invention;
fig. 4 is a second schematic diagram of an image transmission method according to an embodiment of the present invention;
FIG. 5 is a second flowchart illustrating an application of the image transmission method according to the embodiment of the present invention;
fig. 6 is a third schematic diagram of an image transmission method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a second electronic device according to an embodiment of the present invention;
fig. 9 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first electronic device and the second electronic device, etc. are for distinguishing different electronic devices, and are not for describing a specific order of the electronic devices.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides an image transmission method and electronic equipment, wherein first electronic equipment can receive a first image (sent when the second electronic equipment requests to establish a first call connection with the first electronic equipment or sent after the second electronic equipment establishes a second call connection with the first electronic equipment) sent by second electronic equipment; and displaying the first image in an avatar area in a first interface (an incoming call interface including a first call connection, or a call interface including a second call connection). According to the scheme, the first electronic equipment can receive the image sent by the second electronic equipment when the second electronic equipment requests to establish the first call connection with the first electronic equipment, and the image is displayed in the head portrait area of the incoming call interface of the first call connection; and the first electronic device can also receive an image sent by the second electronic device after the second electronic device establishes a call connection with the first electronic device, and display the image in the avatar area of the call interface of the second call connection, so that the first electronic device can display the image sent by the other electronic device on the incoming call interface or the call interface in the process of calling through the first electronic device (including ringing, off-hook and after off-hook), that is, the first electronic device can display the image sent by the other electronic device in the incoming call interface or the avatar area of the call interface of the call connection, so that the first electronic device can display the avatar of the other user in a flexible manner in the call process.
The electronic device (including the first electronic device and the second electronic device) in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the image transmission method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the image transmission method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the image transmission method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the image transmission method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic devices (including the first electronic device and the second electronic device) in the embodiment of the present invention may be mobile electronic devices, or may also be non-mobile electronic devices. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
An execution subject of the image transmission method provided in the embodiment of the present invention may be the electronic device (including the first electronic device and the second electronic device), or may also be a functional module and/or a functional entity capable of implementing the image transmission method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the image transmission method provided by the embodiment of the present invention.
The image transmission method provided by the embodiment of the present invention may be applied to a scenario in which a first electronic device and a second electronic device perform an Internet protocol multimedia system (IMS) call (which may also be referred to as voice over long term evolution (VoLTE) service). The second electronic device may send an image (e.g., a first image in the embodiment of the present invention) to the first electronic device when it requests to establish a call connection (e.g., a first call connection in the embodiment of the present invention) with the first electronic device, so that when the first electronic device receives a call request of the second electronic device, the first electronic device may receive the image sent by the second electronic device and display the image in a portrait area of an incoming call interface of the call connection. Or, the second electronic device may send an image to the first electronic device after it establishes a call connection with the first electronic device, so that when the first electronic device and the second electronic device maintain a call connection, the first electronic device may receive the image sent by the second electronic device and display the image in the avatar area of the call interface of the call connection. Therefore, in the process of using the first electronic device to carry out a call, the first electronic device can display the image sent by the opposite electronic device (namely, the second electronic device) on the incoming call interface or the call interface of the call connection, so that the way of displaying the head portrait of the opposite user by the first electronic device in the call process is flexible.
It should be noted that, in the embodiment of the present invention, the first electronic device may be a called electronic device, and the second electronic device may be a calling electronic device.
The following describes an exemplary image transmission method according to an embodiment of the present invention with reference to the drawings.
As shown in fig. 2, an embodiment of the present invention provides an image transmission method, which may be applied to a first electronic device and a second electronic device, and includes the following S201 to S203.
S201, the second electronic device sends the first image to the first electronic device.
The first image may be sent by the second electronic device when the second electronic device requests to establish the first call connection with the first electronic device, or may be sent by the second electronic device after the second electronic device establishes the second call connection with the first electronic device.
In the embodiment of the present invention, when a second electronic device requests to establish a first call connection with a first electronic device, the second electronic device may send the first image to the first electronic device; or, after the second electronic device establishes a call connection with the first electronic device, the second electronic device may transmit the first image to the first electronic device.
It should be noted that, in the embodiment of the present invention, the first call connection and the second call connection may be used to distinguish a timing when the second electronic device sends the first image to the first electronic device. The first call connection may indicate a call connection started from a request of the second electronic device for establishing a call connection with the second electronic device, and the second call connection may indicate a call connection after the second electronic device establishes a call connection with the first electronic device.
Optionally, in this embodiment of the present invention, the first image may be an image preset in the second electronic device by the user of the second electronic device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the invention, the second electronic equipment can send the first image to the first electronic equipment when the second electronic equipment requests to establish the call connection with the first electronic equipment; or the second electronic device may send the first image to the first electronic device after establishing the call connection with the first electronic device, so that the second electronic device may send the first image to the first electronic device in a process of establishing the call connection with the first electronic device (including requesting to establish the call connection or after establishing the call connection), and thus, the second electronic device may have a flexible opportunity to send the first image to the first electronic device in a process of establishing the call connection with the first electronic device.
Optionally, in the embodiment of the present invention, the step S201 may be specifically implemented by the step S201a described below.
S201a, the second electronic device sends a target message to the first electronic device, wherein the target message comprises the first image.
The target message is a Session Initiation Protocol (SIP) message or a Message Session Relay Protocol (MSRP) message.
It can be understood that the target message is sent when the second electronic device requests to establish the first call connection with the first electronic device, or sent to the first electronic device by the second electronic device after the second electronic device establishes the second call connection with the first electronic device.
In the embodiment of the present invention, the second electronic device may carry the first image in the target message and send the target message to the first electronic device. That is, the second electronic device may transmit the first image to the first electronic device through the target message.
Optionally, in this embodiment of the present invention, a message type of the first SIP message may be a request (invite) type, that is, the first SIP message may also be referred to as a first invite message.
It should be noted that, in the embodiment of the present invention, the first invite message (i.e., the first SIP message) may be a call request message sent by the second electronic device to the first electronic device, so that when the second electronic device requests to establish a call connection with the first electronic device, the second electronic device may directly carry the first image in the first invite message and send the first image to the first electronic device, and thus the second electronic device may send the first image to the first electronic device without adding an additional SIP message, which may reduce the cost of SIP signaling of the second electronic device.
In the embodiment of the present invention, since bytes of the MSRP message are not limited, when the second electronic device sends the first image to the first electronic device through the MSRP message, the size of the first image is not limited, so that the second electronic device can send an image (for example, a high definition image) with any size to the first electronic device, and thus the quality of the first image sent by the second electronic device to the first electronic device can be improved.
Optionally, the first image may be located in a message body of the target message.
In a case that the target message is the first SIP message, the type indication information in the header field of the target message may be used to indicate that a message body type of the target message is a Multipurpose Internet Mail Extensions (MIME) type.
Optionally, in this embodiment of the present invention, when the target message is the first SIP message, the second electronic device may use a MIME type in a media type (content-type, that is, the type indication information) of a message body carried in the indication in the header field of the first SIP message, and transmit the first image carried in the message body of the first SIP message. As such, the second electronic device may transmit the first image to the first electronic device.
The following describes an exemplary message format (i.e., the first SIP message) after the invite message (i.e., the SIP message) carries an image.
The following are exemplary:
the above is the message body format of the first SIP message, from-boundary 71 after the SDP content to the last boundary 71.
It should be noted that, in the embodiment of the present invention, compared to the message body type (application/sdp) of the conventional SIP message, the message body type of the header field of the first SIP message is increased by the partial component (multipart)/mixed (mixed) type in the MIME and the boundary71 separator, so that the second electronic device can send the first image through the first SIP message.
Optionally, when the target message is an MSRP message, the second electronic device may transmit the MSRP message by carrying the first image. As such, the second electronic device may transmit the first image to the first electronic device.
The following describes an exemplary format of the MSRP message after carrying an image.
The following are exemplary:
it should be noted that, in the embodiment of the present invention, after the second electronic device establishes the second communication connection with the first electronic device, the second electronic device may send the MSRP message to the first electronic device at any time, and the number of times that the second electronic device sends the MSRP message to the first electronic device is not limited.
S202, the first electronic device receives a first image sent by the second electronic device.
In the embodiment of the invention, after the second electronic device sends the first image to the first electronic device, the first image can be received at the first electronic device. Specifically, in a case where the second electronic device requests to establish the first call connection with the first electronic device and sends the first image, the first electronic device may receive the first image when receiving the request of the first call connection sent by the second electronic device; in a case where the first image is transmitted after the second electronic device establishes the second communication connection with the first electronic device, the first electronic device may receive the first image while maintaining the second communication connection with the second electronic device.
Optionally, in the embodiment of the present invention, as for the S201a, the S202 may be specifically implemented by the following S202 a.
S202a, the first electronic device receives a target message sent by the second electronic device, wherein the target message comprises the first image.
The target message may be a first SIP message or may be an MSRP message.
In the embodiment of the present invention, for the related descriptions of the first image, the target message, the first SIP message, and the MSRP message, reference may be specifically made to the detailed descriptions of the first image, the target message, the first SIP message, and the MSRP message in the foregoing embodiment, and in order to avoid repetition, details are not described here again.
S203, the first electronic equipment displays a first image in the head portrait area in the first interface.
The first interface may include an incoming call interface for the second electronic device to request a first call connection (hereinafter, referred to as a first call connection) with the first electronic device, or may include a call interface for a second call connection (hereinafter, referred to as a second call connection) between the second electronic device and the first electronic device.
In the embodiment of the present invention, after the first electronic device receives the first image, the first electronic device may display the first image on the first interface, so that the first electronic device may display the first image in the avatar area of the incoming call interface of the first call connection or the call interface of the second call connection.
Optionally, in the embodiment of the present invention, in a case that the first interface includes the incoming call interface of the first call connection, the first interface may further include a call interface of the first call connection.
That is to say, after the first electronic device establishes the first call connection with the second electronic device, the first electronic device may continue to display the first image on the call interface of the first call connection.
In the embodiment of the present invention, when the first electronic device receives the first image through the target message, the first electronic device may analyze the target message first, and then display the first image analyzed by the first electronic device in the avatar area in the first interface.
The embodiment of the invention provides an image transmission method, because a first electronic device can receive an image sent by a second electronic device when the second electronic device requests to establish a first call connection with the first electronic device, and the image is displayed in a head portrait area of a call interface of the first call connection; and the first electronic device can also receive an image sent by the second electronic device after the second electronic device establishes a call connection with the first electronic device, and display the image in the avatar area of the call interface of the second call connection, so that the first electronic device can display the image sent by the other electronic device on the incoming call interface or the call interface in the process of calling through the first electronic device (including ringing, off-hook and after off-hook), that is, the first electronic device can display the image sent by the other electronic device in the incoming call interface or the avatar area of the call interface of the call connection, so that the first electronic device can display the avatar of the other user in a flexible manner in the call process.
Optionally, in this embodiment of the present invention, the second electronic device sends the first image to the first electronic device at different timings, and the second electronic device may send the first image through different messages (that is, the target messages are also different). The following describes an exemplary relationship between the timing of the second electronic device sending the first image to the first electronic device and the target message in two possible implementations, respectively.
The first implementation mode comprises the following steps: the first image is sent to the first electronic equipment by the second electronic equipment when the second electronic equipment requests to establish a first call connection with the first electronic equipment; the target message is a first SIP message.
With reference to fig. 3, an implementation flow of the image transmission method according to the embodiment of the present invention corresponding to the first implementation manner is exemplarily described below.
For example, as shown in fig. 3, assuming that the second electronic device is a calling electronic device and the first electronic device is a called electronic device, the calling electronic device may send a first SIP message (including a first image) to the called electronic device when initiating an invite request (i.e., a call connection request) to the called electronic device; after the called electronic device rings (i.e., after the called electronic device sends a 180 ringing response to the calling electronic device), the called electronic device may display the first image in the avatar area of the incoming call interface corresponding to the invite request.
It should be noted that, after the calling electronic device and the called electronic device successfully establish the call connection corresponding to the invite request, the called electronic device may continue to display the first image in the avatar area of the call interface of the call connection.
In addition, the first electronic device may further display the phone number and the name of the user of the second electronic device on the incoming call interface corresponding to the invite request.
The second implementation mode comprises the following steps: the first image is sent to the first electronic equipment by the second electronic equipment after the second communication connection is established between the second electronic equipment and the first electronic equipment; the target message is an MSRP message.
Optionally, for the second implementation manner, before the second electronic device sends the target message to the first electronic device, the second electronic device and the first electronic device may first establish an MSRP media stream (which may also be referred to as MSRP media or an MSRP media path) between the first electronic device and the second electronic device, and then the second electronic device may send the target message to the first electronic device through the MSRP media stream, and the first electronic device may also receive the target message sent by the second electronic device through the MSRP media stream.
For example, in conjunction with fig. 2, as shown in fig. 4, before S201, the image transmission method provided in the embodiment of the present invention may further include S204 described below. Specifically, S201 may be implemented as S201b described below, and S202 may be implemented as S202b described below.
S204, the second electronic equipment and the first electronic equipment establish MSRP media stream between the first electronic equipment and the second electronic equipment.
S201b, the second electronic device sends the target message to the first electronic device through the MSRP media stream.
S202b, the first electronic device receives the target message sent by the second electronic device through the MSRP media stream.
In this embodiment of the present invention, before the second electronic device sends the first image to the first electronic device, the second electronic device and the first electronic device may first establish an MSRP media stream between the first electronic device and the second electronic device, and then the second electronic device may send the target message (including the first image) to the first electronic device through the MSRP media stream, so that the first electronic device may receive the target message sent by the second electronic device through the MSRP media stream.
It is to be understood that the MSRP media stream described above may be a media stream for transmitting images.
Optionally, in this embodiment of the present invention, a manner of establishing the MSRP media stream by the first electronic device and the second electronic device may be: and after the first electronic device receives the enemy SIP message, the first electronic device may send a first confirmation message (e.g., a 200 OK response message) to the second electronic device, and after the second electronic device receives the first confirmation message, the MSRP media stream between the first electronic device and the second electronic device is successfully established.
It is understood that after the first electronic device and the second electronic device complete a handshake, an MSRP media stream is established between the first electronic device and the second electronic device.
Optionally, in this embodiment of the present invention, a message body of the second SIP message may include an SDP parameter for establishing an MSRP media stream.
The following is an exemplary description of a message format (i.e., the second SIP message) in which the SIP message (i.e., invite message) carries SDP parameters for establishing MSRP media streams.
The following are exemplary:
the above is the format of the message body part of the second SIP message, wherein the transport media description and media attribute part may be SDP parameters for establishing MSRP media streams.
Optionally, in this embodiment of the present invention, a message body of the first acknowledgement message may include an SDP parameter for acknowledging establishment of an MSRP media stream.
The following describes an exemplary message format (i.e., the first acknowledgement message) in which the acknowledgement message (i.e., the 200 OK response message) carries the SDP parameters that confirm establishment of the MSRP media stream.
The following are exemplary:
the above is the format of the message body part of the first acknowledgement message, where the transport media description and media attributes may establish SDP parameters of the MSRP media stream for acknowledgement.
With reference to fig. 5, an implementation flow of the image transmission method according to the embodiment of the present invention corresponding to the second implementation manner is exemplarily described below.
For example, assuming that the second electronic device is a calling electronic device and the first electronic device is a called electronic device, the calling electronic device may send a second SIP message (including an SDP parameter for establishing an MSRP media stream) to the called electronic device when initiating an invite request (i.e., a call connection request) to the called electronic device, and the called electronic device rings (i.e., receives the invite request sent by the calling electronic device); after the called electronic device goes off-hook, the called electronic device may send a 200 OK response message (i.e., a first acknowledgement message) to the calling electronic device, and then the calling electronic device sends an Acknowledgement Character (ACK) to the called electronic device, so that the calling electronic device may establish an MSRP media stream with the called electronic device.
It is appreciated that after the calling electronic device and the called electronic device can successfully establish a call connection, the calling electronic device can establish an MSRP media stream with the called electronic device.
After the MSRP media stream is established between the calling electronic device and the called electronic device, the calling electronic device may send an MSRP message (carrying a first image) to the called electronic device, and after the called electronic device receives the MSRP message, the called device may display the first image in a header area of a call interface (i.e., a call interface of the second call connection).
Optionally, after the called electronic device receives the MSRP message sent by the calling electronic device, the called electronic device may send a confirmation message (e.g., 200 OK response message) to the calling electronic device to indicate that the called electronic device receives the MSRP message sent by the calling electronic device.
In the embodiment of the invention, the quality of service (QoS) of the MSRP media stream transmission message is higher than the QoS of the ordinary data transmission message or data, so that the quality of the first image transmitted by the second electronic device to the first electronic device can be ensured.
Optionally, in the embodiment of the present invention, after the step S202, the image transmission method provided in the embodiment of the present invention may further include the step S205 described below.
It should be noted that the execution sequence between S203 and S205 may not be limited in the embodiment of the present invention. In actual implementation, S203 may be executed first, and then S205 may be executed; s205 may be executed first, and then S203 may be executed. The embodiment of the present invention is exemplarily illustrated by first executing S203 and then executing S205.
S205, the first electronic equipment sets the first image as a head portrait or a background image corresponding to the second electronic equipment user in the target application program.
The target application program may be an application program in which information of a user of the second electronic device is stored in the first electronic device.
Optionally, in this embodiment of the present invention, the target application may be a chat application, a game application, or a shopping application and other applications that can store information of a contact in the first electronic device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, after the first electronic device receives the first image, the first electronic device may set the first image as a head portrait or a background image corresponding to the target application program of the second electronic device user, so that the first electronic device can more flexibly apply the first image.
Optionally, with reference to fig. 2, as shown in fig. 6, the image transmission method provided in the embodiment of the present invention may further include 206-S208 described below.
S206, the first electronic device sends the second image to the second electronic device.
The second image may be used as an image of a user of the first electronic device corresponding to a first call connection established between the second electronic device and the first electronic device, or the second image may be used as an avatar of a user of the first electronic device corresponding to a second call connection established between the second electronic device and the first electronic device.
And S207, the second electronic equipment receives the second image sent by the first electronic equipment.
And S208, the second electronic equipment displays a second image in the head portrait area in the first call interface.
The first communication interface may be a communication interface of the first communication connection, or may be a communication interface of the second communication connection.
In this embodiment of the present invention, the first electronic device may further send the second image to the second electronic device, and when the second electronic device receives the second image, the second electronic device may display the second image in an avatar area of a call interface of a call connection (including the first call connection and the second call connection) established between the second electronic device and the first electronic device.
It should be noted that, in the embodiment of the present invention, for the first call connection, after the first electronic device responds to the call request of the second electronic device, the first electronic device may send the second image to the second electronic device.
Optionally, in this embodiment of the present invention, the second image may be an image preset in the first electronic device.
In the first case: when the first image is that the second electronic device requests to establish the first call connection with the first electronic device, and the second electronic device sends the first image to the first electronic device, the first electronic device may send the second image to the second electronic device when confirming that the first call connection is established.
Optionally, for the first case, the first electronic device may send the second image to the second electronic device through a second confirmation message (e.g., a 200 OK response message).
The following describes an exemplary message format (i.e., the second confirmation message) after the confirmation message (i.e., the 200 OK response message) carries the image.
The following are exemplary:
the above is the message body format of the second acknowledgement message, from-boundary 71 to the last-boundary 71 after.
The first case will be described below with reference to fig. 3.
For example, as shown in fig. 3, assuming that the second electronic device is a calling electronic device and the first electronic device is a called electronic device, the called electronic device may send a 200 OK response message (including a first image) to the calling electronic device when it is off-hook, and after receiving the 200 OK response message, the calling electronic device may send an ACK to the called electronic device, and may display the second image in an image area of a call interface of the first call connection.
In the second case: in a case where the first image is sent to the first electronic device by the second electronic device after the second electronic device establishes the second communication connection with the first electronic device, the first electronic device may send the second image to the second electronic device after establishing the second communication connection with the second electronic device.
It is to be understood that, for the second case described above, the embodiment of the present invention may not limit the execution sequence between S201-S203 and S206-S208. In actual implementation, S201 to S203 may be executed first, and then S206 to S208 may be executed; it is also possible to perform S206-S208 first and then S201-S203. The embodiment of the present invention is exemplarily illustrated by first performing S201 to S203 and then performing S206 to S208.
Optionally, for the second case, the first electronic device may send the second image to the second electronic device through an MSRP message.
It should be noted that, for the related description of the MSRP message, reference may be specifically made to the specific description of the MSRP message in the foregoing embodiment, and details are not described here again to avoid repetition.
The second case will be described below with reference to fig. 5.
For example, as shown in fig. 5, assuming that the second electronic device is a calling electronic device and the first electronic device is a called electronic device, after an MSRP media stream between the calling electronic device and the called electronic device is established, the called electronic device may send an MSRP message (carrying a second image) to the calling electronic device through the MSRP media stream, so that after the calling electronic device receives the MSRP message, the calling device may display the second image in a header area of a call interface (i.e., a call interface of the second call connection).
Optionally, after the calling electronic device receives the MSRP message sent by the called electronic device, the calling electronic device may send a confirmation message (e.g., 200 OK response message) to the called electronic device to indicate that the calling electronic device receives the MSRP message sent by the called electronic device.
In the embodiment of the invention, because the first electronic device can also send the image to the second electronic device, the electronic devices of the two parties can send the image to each other in the process of establishing the call connection between the first electronic device and the second electronic device.
Optionally, in the embodiment of the present invention, after S207, the image transmission method provided in the embodiment of the present invention may further include S209 described below.
It should be noted that the execution sequence between S208 and S209 may not be limited by the embodiment of the present invention. In actual implementation, S208 may be executed first, and then S209 may be executed; s208 may be executed first, and then S209 may be executed. The embodiment of the present invention is exemplarily illustrated by first executing S208 and then executing S209.
S209, the second electronic device sets the second image as a head portrait or a background image corresponding to the first electronic device user in the first target application program.
The first target application program may be an application program in which information of a user of the first electronic device is stored in the second electronic device.
Optionally, in this embodiment of the present invention, the first target application may be a chat application, a game application, or a shopping application and other applications that can store information of a contact in the second electronic device. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
In the embodiment of the present invention, after the second electronic device receives the second image, the second electronic device may set the second image as the avatar or the background image corresponding to the first target application program of the user of the first electronic device, so that the second electronic device can more flexibly apply the second image.
In the embodiment of the present invention, the image transmission methods shown in the above drawings are all exemplarily described with reference to one drawing in the embodiment of the present invention. In specific implementation, the image transmission method shown in each of the above drawings may also be implemented by combining any other drawings that may be combined, which are illustrated in the above embodiments, and details are not described here again.
As shown in fig. 7, an embodiment of the present invention provides a first electronic device 300, where the first electronic device 300 includes a receiving module 301 and a display module 302. The receiving module 301 may be configured to receive a first image sent by a second electronic device, where the first image is sent when the second electronic device requests to establish a first call connection with the first electronic device, or sent after the second electronic device establishes a second call connection with the first electronic device; the display module 302 may be configured to display the first image received by the receiving module 301 in an avatar area in a first interface, where the first interface includes an incoming call interface of a first call connection or a call interface of a second call connection.
Optionally, under the condition that the first interface includes an incoming call interface of the first call connection, the first interface further includes a call interface of the first call connection.
Optionally, the receiving module 301 may be specifically configured to receive a target message sent by the second electronic device, where the target message includes the first image; the target message is a first SIP message or an MSRP message.
Optionally, the first image is located in a message body of the target message; and when the target message is the first SIP message, the type indication information in the header field of the target message is used for indicating that the message body type of the target message is the MIME type.
Optionally, the target message is an MSRP message; as shown in fig. 7, the first electronic device 300 further includes an execution module 303; an executing module 303, configured to establish an MSRP media stream between the first electronic device and the second electronic device before the receiving module 301 receives the target message sent by the second electronic device; the receiving module 301 may be specifically configured to receive a target message sent by the second electronic device through the MSRP media stream.
Optionally, as shown in fig. 7, the first electronic device 300 may further include a sending module 304. A sending module 304, configured to send a second image to the second electronic device, where the second image is used as an avatar of a user of the first electronic device corresponding to the first call connection or the second call connection.
Optionally, as shown in fig. 7, the first electronic device 300 may further include a setting module 305. The setting module 305 is configured to, after the receiving module 301 receives the first image sent by the second electronic device, set the first image as an avatar or a background image corresponding to the second electronic device user in a target application program, where the target application program is an application program in the first electronic device, where information of the second electronic device user is stored.
The electronic device provided by the embodiment of the invention can realize each process executed by the electronic device in the embodiment of the image transmission method, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
The embodiment of the invention provides a first electronic device, which can receive an image sent by a second electronic device when the second electronic device requests to establish a first call connection with the first electronic device, and display the image in a head portrait area of a call interface of the first call connection; and the first electronic device can also receive an image sent by the second electronic device after the second electronic device establishes a call connection with the first electronic device, and display the image in the avatar area of the call interface of the second call connection, so that the first electronic device can display the image sent by the other electronic device on the incoming call interface or the call interface in the process of calling through the first electronic device (including ringing, off-hook and after off-hook), that is, the first electronic device can display the image sent by the other electronic device in the incoming call interface or the avatar area of the call interface of the call connection, so that the first electronic device can display the avatar of the other user in a flexible manner in the call process.
As shown in fig. 8, an embodiment of the present invention provides a second electronic device 400, and the second electronic device 400 may include a transmitting unit 401. A sending unit 401, configured to send a target message to a first electronic device, where the target message includes a first image, and the target object is sent when a second electronic device requests to establish a first call connection with the first electronic device, or sent after the second electronic device establishes a second call connection with the first electronic device; the target message is a first SIP message or an MSRP message.
Optionally, the first image is located in a message body of the target message; and when the target message is the first SIP message, the type indication information in the header field of the target message is used for indicating that the type of the message body of the target message is the MIME type.
Optionally, the target message is an MSRP message; as shown in fig. 8, the second electronic device 400 further comprises an execution unit 402. An executing unit 402, configured to establish an MSRP media stream between the second electronic device and the first electronic device before the sending module 401 sends the target message to the first electronic device; the sending module 401 may be specifically configured to send the target message to the first electronic device through the MSRP media stream.
Optionally, as shown in fig. 8, the second electronic device 400 may further include a receiving unit 403, a display unit 404, and a setting unit 405. A receiving unit 403, which may be used to receive a second image sent by the first electronic device; a display unit 404, configured to display the second image received by the receiving unit 403 in an avatar area in a first call interface, where the first call interface is a call interface of a first call connection or a second call connection; or, the setting unit 405 may be configured to set the second image received by the receiving module 403 as a head portrait or a background image corresponding to the first electronic device user in a first target application program, where the first target application program is an application program in the second electronic device, where information of the first electronic device user is stored.
The electronic device provided by the embodiment of the invention can realize each process executed by the electronic device in the embodiment of the image transmission method, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
The embodiment of the invention provides a second electronic device, which can send a target message (including a first image) to a first electronic device when the second electronic device requests to establish a call connection with the first electronic device; or the second electronic device may send the target message to the first electronic device after establishing the call connection with the first electronic device, so that the second electronic device may send the target message to the first electronic device in a process of establishing the call connection with the first electronic device (including requesting to establish the call connection or after establishing the call connection), and thus, the second electronic device may have a flexible opportunity to send the target message to the first electronic device in a process of establishing the call connection with the first electronic device.
Fig. 9 is a hardware schematic diagram of an electronic device (including a first electronic device and a second electronic device) for implementing various embodiments of the invention. As shown in fig. 9, electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
In the case that the electronic device is a first electronic device, the processor 110 of the first electronic device is configured to control the radio frequency unit 101 to receive a first image sent by a second electronic device; and controls the display unit 106 to display the first image received by the radio frequency unit 101 in the avatar area in the first interface. The first image is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment, or is sent after the second electronic equipment establishes a second communication connection with the first electronic equipment; the first interface includes an incoming call interface of the first call connection or a call interface of the second call connection.
It can be understood that, in the embodiment of the present invention, the receiving module 301 in the structural schematic diagram of the first electronic device (for example, fig. 7) may be implemented by the radio frequency unit 101 of the first electronic device; the display module 302 in the structural schematic diagram of the first electronic device may be implemented by the display unit 106 of the first electronic device; the executing module 303 in the schematic structural diagram of the first electronic device may be implemented by the processor 110 of the first electronic device; the transmitting module 304 in the structural schematic diagram of the first electronic device may be implemented by the radio frequency unit 101 of the first electronic device; the setting module 305 in the schematic structural diagram of the first electronic device may be implemented by the processor 110 of the first electronic device.
The embodiment of the invention provides a first electronic device, which can receive an image sent by a second electronic device when the second electronic device requests to establish a first call connection with the first electronic device, and display the image in a head portrait area of a call interface of the first call connection; and the first electronic device can also receive an image sent by the second electronic device after the second electronic device establishes a call connection with the first electronic device, and display the image in the avatar area of the call interface of the second call connection, so that the first electronic device can display the image sent by the other electronic device on the incoming call interface or the call interface in the process of calling through the first electronic device (including ringing, off-hook and after off-hook), that is, the first electronic device can display the image sent by the other electronic device in the incoming call interface or the avatar area of the call interface of the call connection, so that the first electronic device can display the avatar of the other user in a flexible manner in the call process.
In the case that the electronic device is a second electronic device, the processor 110 of the second electronic device is configured to control the radio frequency unit 101 to send a target message to the first electronic device, where the target message includes a first image, and the target message is sent when the second electronic device requests to establish a first call connection with the first electronic device, or sent after establishing a second call connection between the second electronic device and the first electronic device. The target message is a first SIP message or an MSRP message.
It can be understood that, in the embodiment of the present invention, the sending unit 401 in the structural schematic diagram of the second electronic device (for example, fig. 8) may be implemented by the radio frequency unit 101 of the second electronic device; the executing unit 402 in the schematic structural diagram of the second electronic device may be implemented by the processor 110 of the second electronic device; the receiving unit 403 in the structural schematic diagram of the second electronic device may be implemented by the radio frequency unit 101 of the second electronic device; the display unit 404 in the structural schematic diagram of the second electronic device may be implemented by the display unit 106 of the second electronic device; the setting unit 405 in the structural schematic diagram of the second electronic device may be implemented by the processor 110 of the second electronic device.
The embodiment of the invention provides a second electronic device, which can send a target message (including a first image) to a first electronic device when the second electronic device requests to establish a call connection with the first electronic device; or the second electronic device may send the target message to the first electronic device after establishing the call connection with the first electronic device, so that the second electronic device may send the target message to the first electronic device in a process of establishing the call connection with the first electronic device (including requesting to establish the call connection or after establishing the call connection), and thus, the second electronic device may have a flexible opportunity to send the target message to the first electronic device in a process of establishing the call connection with the first electronic device.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 9, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides a first electronic device, which includes the processor 110 shown in fig. 9, the memory 109, and a computer program stored in the memory 109 and capable of being executed on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned embodiment of the image transmission method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
Optionally, an embodiment of the present invention further provides a second electronic device, which includes the processor 110 shown in fig. 9, the memory 109, and a computer program stored in the memory 109 and capable of being executed on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned embodiment of the image transmission method, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor shown in fig. 9, the computer program implements each process of the image transmission method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (13)
1. An image transmission method applied to a first electronic device is characterized by comprising the following steps:
receiving a first image sent by second electronic equipment, wherein the first image is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment;
and displaying the first image in an avatar area in a first interface, wherein the first interface comprises an incoming call interface of the first communication connection or a communication interface of the second communication connection.
2. The method of claim 1, wherein the first interface further comprises a call interface of the first call connection if the first interface comprises an incoming call interface of the first call connection.
3. The method of claim 1, wherein receiving the first image transmitted by the second electronic device comprises:
receiving a target message sent by the second electronic equipment, wherein the target message comprises the first image;
the target message is a first Session Initiation Protocol (SIP) message or a Message Session Relay Protocol (MSRP) message.
4. The method of claim 3, wherein the first image is located in a message body of the target message;
wherein, in case that the target message is the first SIP message, the type indication information in the header field of the target message is used to indicate that the message body type of the target message is a multipurpose internet mail extensions, MIME, type.
5. The method of claim 3, wherein the target message is a MSRP message;
before the receiving the target message sent by the second electronic device, the method further includes:
establishing an MSRP media stream between the first electronic device and the second electronic device;
the receiving the target message sent by the second electronic device includes:
and receiving the target message sent by the second electronic equipment through the MSRP media stream.
6. The method according to any one of claims 1 to 5, further comprising:
and sending a second image to the second electronic equipment, wherein the second image is used as the head portrait of the first electronic equipment user corresponding to the first call connection or the second call connection.
7. The method according to any one of claims 1 to 5, wherein after receiving the first image transmitted by the second electronic device, the method further comprises:
and setting the first image as a head portrait or a background image corresponding to a second electronic equipment user in a target application program, wherein the target application program is the application program in which the information of the second electronic equipment user is stored in the first electronic equipment.
8. An image transmission method applied to a second electronic device is characterized by comprising the following steps:
sending a target message to first electronic equipment, wherein the target message comprises a first image, and the target message is sent when the second electronic equipment requests to establish a first communication connection with the first electronic equipment or sent after the second electronic equipment establishes a second communication connection with the first electronic equipment;
the target message is a first Session Initiation Protocol (SIP) message or a Message Session Relay Protocol (MSRP) message.
9. The method of claim 8, wherein the first image is located in a message body of the target message;
wherein, in case that the target message is the first SIP message, the type indication information in the header field of the target message is used to indicate that the type of the message body of the target message is a multipurpose internet mail extensions, MIME, type.
10. The method of claim 8, wherein the target message is an MSRP message;
before the target message sent to the first electronic device, the method further includes:
establishing an MSRP media stream between the second electronic device and the first electronic device;
the target message sent to the first electronic device includes:
and sending the target message to the first electronic equipment through the MSRP media stream.
11. The method according to any one of claims 8 to 10, further comprising:
receiving a second image sent by the first electronic equipment;
displaying the second image in an avatar area in a first call interface, wherein the first call interface is a call interface of the first call connection or the second call connection; or,
and setting the second image as a head portrait or a background image corresponding to a first electronic device user in a first target application program, wherein the first target application program is an application program in which information of the first electronic device user is stored in the second electronic device.
12. A first electronic device, comprising a receiving module and a display module;
the receiving module is configured to receive a first image sent by a second electronic device, where the first image is sent when the second electronic device requests to establish a first call connection with the first electronic device, or is sent after the second electronic device establishes a second call connection with the first electronic device;
the display module is configured to display the first image received by the receiving module in an avatar area in a first interface, where the first interface includes an incoming call interface of the first call connection or includes a call interface of the second call connection.
13. A second electronic device, characterized in that the second electronic device comprises a transmitting unit;
the sending unit is configured to send a first image to a first electronic device, where the first image is sent when the second electronic device requests to establish a first call connection with the first electronic device, or sent after the second electronic device establishes a second call connection with the first electronic device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911269675.5A CN111163216A (en) | 2019-12-11 | 2019-12-11 | Image transmission method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911269675.5A CN111163216A (en) | 2019-12-11 | 2019-12-11 | Image transmission method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111163216A true CN111163216A (en) | 2020-05-15 |
Family
ID=70557041
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911269675.5A Pending CN111163216A (en) | 2019-12-11 | 2019-12-11 | Image transmission method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111163216A (en) |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585538A (en) * | 2003-08-20 | 2005-02-23 | 英华达(南京)科技有限公司 | Mobile phone image processing method and processor |
CN1744704A (en) * | 2004-08-30 | 2006-03-08 | 日本电气株式会社 | communication terminal device, television telephone control method and television telephone control program |
CN1744703A (en) * | 2004-09-03 | 2006-03-08 | 三星电子株式会社 | The equipment of call treatment and method in video communication network |
CN101047629A (en) * | 2006-03-30 | 2007-10-03 | 华为技术有限公司 | Implementing method of customer multi-media tag service |
CN101076151A (en) * | 2007-07-09 | 2007-11-21 | 中兴通讯股份有限公司 | Multi-medium color-image system and method for transmitting multi-medium color image during process of talk |
CN101102454A (en) * | 2007-06-29 | 2008-01-09 | 中兴通讯股份有限公司 | Method for setting personalized head image information of business card via mobile phone video phone |
CN101854440A (en) * | 2009-04-03 | 2010-10-06 | 华为终端有限公司 | Multimedia ring-tone uploading method, multimedia ring-tone server and UE |
CN101945175A (en) * | 2010-09-26 | 2011-01-12 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for automatically adding contact information and mobile terminal |
CN101977201A (en) * | 2010-11-05 | 2011-02-16 | 中国电信股份有限公司 | Method for expanding Call-Info header carried service information in SIP information |
CN102158816A (en) * | 2010-12-10 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method for displaying set images on electronic equipment of opposite side during talking connection establishing |
CN102361493A (en) * | 2011-10-28 | 2012-02-22 | 上海华勤通讯技术有限公司 | Mobile terminal and method for setting address list head portrait |
US20140086105A1 (en) * | 2012-09-21 | 2014-03-27 | Pantech Co., Ltd. | Device and method for providing drawing screen sharing service |
CN104853042A (en) * | 2015-05-06 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Mobile terminal-based short-message chart processing method and system |
CN104869346A (en) * | 2014-02-26 | 2015-08-26 | 中国移动通信集团公司 | Method and electronic equipment for processing image in video call |
-
2019
- 2019-12-11 CN CN201911269675.5A patent/CN111163216A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1585538A (en) * | 2003-08-20 | 2005-02-23 | 英华达(南京)科技有限公司 | Mobile phone image processing method and processor |
CN1744704A (en) * | 2004-08-30 | 2006-03-08 | 日本电气株式会社 | communication terminal device, television telephone control method and television telephone control program |
CN1744703A (en) * | 2004-09-03 | 2006-03-08 | 三星电子株式会社 | The equipment of call treatment and method in video communication network |
CN101047629A (en) * | 2006-03-30 | 2007-10-03 | 华为技术有限公司 | Implementing method of customer multi-media tag service |
CN101102454A (en) * | 2007-06-29 | 2008-01-09 | 中兴通讯股份有限公司 | Method for setting personalized head image information of business card via mobile phone video phone |
CN101076151A (en) * | 2007-07-09 | 2007-11-21 | 中兴通讯股份有限公司 | Multi-medium color-image system and method for transmitting multi-medium color image during process of talk |
CN101854440A (en) * | 2009-04-03 | 2010-10-06 | 华为终端有限公司 | Multimedia ring-tone uploading method, multimedia ring-tone server and UE |
CN101945175A (en) * | 2010-09-26 | 2011-01-12 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for automatically adding contact information and mobile terminal |
CN101977201A (en) * | 2010-11-05 | 2011-02-16 | 中国电信股份有限公司 | Method for expanding Call-Info header carried service information in SIP information |
CN102158816A (en) * | 2010-12-10 | 2011-08-17 | 上海合合信息科技发展有限公司 | Method for displaying set images on electronic equipment of opposite side during talking connection establishing |
CN102361493A (en) * | 2011-10-28 | 2012-02-22 | 上海华勤通讯技术有限公司 | Mobile terminal and method for setting address list head portrait |
US20140086105A1 (en) * | 2012-09-21 | 2014-03-27 | Pantech Co., Ltd. | Device and method for providing drawing screen sharing service |
CN104869346A (en) * | 2014-02-26 | 2015-08-26 | 中国移动通信集团公司 | Method and electronic equipment for processing image in video call |
CN104853042A (en) * | 2015-05-06 | 2015-08-19 | 惠州Tcl移动通信有限公司 | Mobile terminal-based short-message chart processing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540655B (en) | Caller identification processing method and mobile terminal | |
CN112799577B (en) | Method, terminal and storage medium for projecting small window | |
CN108282759B (en) | Service processing method and mobile communication terminal | |
CN112637410B (en) | Method, terminal and storage medium for displaying message notification | |
CN112631535A (en) | Screen projection reverse control method and device, mobile terminal and storage medium | |
CN107147803A (en) | A kind of way of recording, terminal device and computer-readable recording medium | |
CN111479309A (en) | Service processing method, user equipment and computer readable storage medium | |
WO2021017785A1 (en) | Data transmission method and terminal device | |
CN110475303B (en) | Data transmission method and terminal equipment | |
CN109151741B (en) | Multimedia message receiving method and terminal | |
CN111093289A (en) | Service transmission method and electronic equipment | |
CN110955397A (en) | Method for setting frame rate of game terminal, game terminal and storage medium | |
CN110796438A (en) | Message sending method and mobile terminal | |
CN107678622B (en) | Application icon display method, terminal and storage medium | |
CN111314903B (en) | Information sharing method and electronic equipment | |
CN111343591B (en) | Session information processing method and electronic equipment | |
CN109462829B (en) | Call transfer method, device and computer readable storage medium | |
CN109711850B (en) | Secure payment method, device and computer readable storage medium | |
CN109005377B (en) | Video processing method and terminal equipment | |
CN111050108A (en) | Method and device for realizing multi-channel video call and electronic equipment | |
CN107566607B (en) | Notification display method, mobile terminal and computer readable storage medium | |
CN112887776B (en) | Method, equipment and computer readable storage medium for reducing audio delay | |
CN108668007A (en) | Processing method, mobile terminal and the storage medium of new information in a kind of mobile terminal | |
CN109640000B (en) | Rich media communication method, terminal equipment and computer readable storage medium | |
CN111092874A (en) | Text information transmission method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200515 |
|
RJ01 | Rejection of invention patent application after publication |