WO2017000781A1 - Video communication method and apparatus - Google Patents

Video communication method and apparatus Download PDF

Info

Publication number
WO2017000781A1
WO2017000781A1 PCT/CN2016/085854 CN2016085854W WO2017000781A1 WO 2017000781 A1 WO2017000781 A1 WO 2017000781A1 CN 2016085854 W CN2016085854 W CN 2016085854W WO 2017000781 A1 WO2017000781 A1 WO 2017000781A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
video
audio
address
port
Prior art date
Application number
PCT/CN2016/085854
Other languages
French (fr)
Chinese (zh)
Inventor
储成
谭耀峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017000781A1 publication Critical patent/WO2017000781A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a video communication method and apparatus.
  • the embodiment of the invention provides a video communication method and device, which are used to add video capability to an audio device without replacing hardware.
  • a first aspect of the present invention provides a video communication method, including:
  • the audio device Receiving, by the audio device, a response message sent by the second electronic device;
  • the response message includes a second audio parameter and a second video parameter of the second electronic device;
  • the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
  • the first electronic device sends video data to an IP address and a port of the second electronic device, and starts monitoring video data sent by the second electronic device to an IP address and a port of the first electronic device.
  • the method further includes:
  • the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop sending video data to the IP address and port of the second electronic device and to listen to the first Video data transmitted by the second electronic device to the IP address and port of the first electronic device.
  • the video call request is a request for conforming to a Session Initiation Protocol (SIP), in the video call
  • SIP Session Initiation Protocol
  • the IP address of the first electronic device is defined by the c line
  • the port of the first electronic device is defined by m lines
  • the video media format supported by the first electronic device is defined by a line;
  • the response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
  • a second aspect of the present invention provides a video communication method, including:
  • the audio device Transmitting, by the audio device, a video call request to a second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device port;
  • the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
  • the audio device monitors video data sent by the second electronic device to an IP address and a port of the audio device
  • the audio device forwards video data sent by the second electronic device to the first electronic device.
  • the method further includes:
  • the audio device transmits a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the audio device.
  • the video call request is a request for conforming to a Session Initiation Protocol (SIP), in the video call
  • SIP Session Initiation Protocol
  • the IP address of the audio device is defined by the c line
  • the port of the audio device is defined by m lines
  • the video media format supported by the first electronic device is defined by a line.
  • a third aspect of the present invention provides a video communication method, including:
  • the audio device Transmitting, by the audio device, a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and a port of the audio device;
  • the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
  • the audio device listens to video data sent by the second electronic device to an IP address and port of the audio device.
  • the method further includes:
  • the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the second electronic device.
  • the video call request is a request for conforming to a Session Initiation Protocol SIP, in the video call
  • the IP address and port of the audio device are defined by one row
  • the IP address and port of the first electronic device are defined by another row of a;
  • the response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
  • a fourth aspect of the present invention provides a video communication apparatus, including:
  • An acquiring unit configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device;
  • the first electronic device and the audio device are paired and connected;
  • a sending unit configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
  • a receiving unit configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device;
  • the sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device And initiating monitoring of video data sent by the second electronic device to an IP address and a port of the first electronic device.
  • the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the IP address and port of the second electronic device and listens to the second electronic device to the first electronic device The IP address and port sent by the video data.
  • the video call request is a request for conforming to a Session Initiation Protocol SIP, in the video call
  • the IP address of the first electronic device is defined by the c line
  • the port of the first electronic device is defined by m lines
  • the video media format supported by the first electronic device is defined by a line
  • the response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
  • a fifth aspect of the present invention provides a video communication apparatus, including:
  • An acquiring unit configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device and the audio device are paired with each other;
  • a sending unit configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device And port;
  • a receiving unit configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
  • the sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic The device transmits video data received from the first electronic device;
  • the receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device;
  • the sending unit is further configured to: forward the video data sent by the second electronic device to the first electronic device.
  • the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the audio device.
  • the video call request is a request that meets a session initiation protocol SIP, in the video call
  • the IP address of the audio device is defined by the c line
  • the port of the audio device is defined by m lines
  • the video media format supported by the first electronic device is defined by a line.
  • a sixth aspect of the present invention provides a video communication apparatus, including:
  • An acquiring unit configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device;
  • the first electronic device and the audio device are paired and connected;
  • a sending unit configured to send a video call request to the second electronic device, where the video call request includes Determining a first audio parameter of the audio device, the first video parameter, and an IP address and port of the audio device;
  • a receiving unit configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
  • the sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device ;
  • the receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
  • the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the second electronic device.
  • the video call request is a request that meets a session initiation protocol SIP, in the video call
  • the IP address and port of the audio device are defined by one row
  • the IP address and port of the first electronic device are defined by another row of a
  • the response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
  • a seventh aspect of the present invention provides an audio device, including:
  • a receiver configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device;
  • the first electronic device and the audio device are paired and connected;
  • a transmitter configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
  • the receiver is further configured to: receive a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device; and the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
  • the transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device And initiating monitoring of video data sent by the second electronic device to an IP address and a port of the first electronic device.
  • the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the IP address and port of the second electronic device and listens to video data sent by the second electronic device to the IP address and port of the first electronic device.
  • the video call request is a request conforming to a Session Initiation Protocol (SIP), in which the IP address of the first electronic device is defined by c lines, and the first electronic device is defined by m lines. a port, the video media format supported by the first electronic device is defined by a line;
  • SIP Session Initiation Protocol
  • the response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
  • An eighth aspect of the present invention provides an audio device, including:
  • a receiver configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device and the audio device are paired with each other;
  • a transmitter configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device And port;
  • the receiver is further configured to: receive a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
  • the transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic The device transmits video data received from the first electronic device;
  • the receiver is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device;
  • the transmitter is further configured to: forward the video data sent by the second electronic device to the first electronic device.
  • the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the audio device.
  • the video call request is a request that meets a session initiation protocol SIP, in the video call
  • the IP address of the audio device is defined by the c line
  • the port of the audio device is defined by m lines
  • the video media format supported by the first electronic device is defined by a line.
  • a ninth aspect of the present invention provides an audio device, including:
  • a receiver configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device;
  • the first electronic device and the audio device are paired and connected;
  • a transmitter configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and port of the audio device ;
  • the receiver is further configured to: receive a response message sent by the second electronic device; the response message includes the a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
  • the transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device ;
  • the receiver is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
  • the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the second electronic device.
  • the video call request is a request for conforming to a session initiation protocol SIP, in the video call
  • the IP address and port of the audio device are defined by one row
  • the IP address and port of the first electronic device are defined by another row of a;
  • the response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
  • the audio device is paired with the first electronic device, and the first electronic device has the capability of acquiring a video image.
  • the audio device uses the video parameters of the first electronic device to communicate with the call peer (ie, the second electronic device) to establish a video call.
  • the audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device.
  • the device increases video capabilities.
  • FIG. 1 is a schematic diagram of a network connection between an audio device and a first electronic device according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a pairing connection between an audio device and a first electronic device according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a video communication method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a specific example of the video communication method shown in FIG. 3;
  • FIG. 5 is a flowchart of another video communication method according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a specific example of the video communication method shown in FIG. 5;
  • FIG. 7 is a flowchart of still another video communication method according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a specific example of the video communication method shown in FIG. 7;
  • FIG. 9 is a functional block diagram of a video communication apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of an audio device according to an embodiment of the present invention.
  • the embodiment of the invention provides a video communication method and device, which are used to add video capability to an audio device without replacing hardware.
  • the audio device is paired with the first electronic device, the first electronic device having the ability to capture video images.
  • the audio device uses the video parameters of the first electronic device to communicate with the call peer, that is, the second electronic device, to establish a video call.
  • the audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device.
  • the device increases video capabilities.
  • the audio device is, for example, a desktop audio telephone.
  • the first electronic device is, for example, a mobile phone, a tablet computer, or a wearable device.
  • the first electronic device can be any manufacturer's device.
  • the audio device and the first electronic device can be connected through a network (wired or wireless), or through a Bluetooth connection, a USB interface, or a cellular connection. As long as the connection between the audio device and the first electronic device is reachable.
  • FIG. 1 is a schematic diagram of a network connection between an audio device and a first electronic device.
  • the network shown in Figure 1 uses Ethernet + Wireless Fidelity (English: Wireless Fidelity, referred to as: WiFi) deployment, which is also the most common way of corporate network planning.
  • the switch, the user-level switch (Private Branch Exchange, PBX for short), and the access point (English: Access Point, AP for short) are connected to the Ethernet.
  • the audio device and the first electronic device access the AP. Therefore, the audio protocol and the network protocol (English: Internet Protocol, IP address) of the first electronic device are interoperable. Control signaling or video data transmission can be performed between the two.
  • a possible schematic diagram of a paired connection between the audio device and the first electronic device Specifically, the user fills in the information of the paired audio device on the first electronic device.
  • This information is for example the telephone number and IP address of the audio device. Further, the information may also include a mask and a gateway address.
  • the information of the filled audio device may be different.
  • the first electronic device sends a connection request to the audio device, such as a Discover() message, which contains the phone number and IP address of the audio device.
  • the paired connection can be automatically confirmed or confirmed by the user.
  • the first electronic device and the audio device are successfully connected.
  • the audio device receives the connection request, the paired connection can be automatically confirmed or the paired connection is determined by the user, and then the audio device is successfully paired with the first electronic device.
  • the audio device may send a request for acquiring the first video parameter of the first electronic device to the first electronic device.
  • the request is for example a GetParam() message.
  • the first electronic device acquires and records the first video parameter of the first electronic device.
  • the first video parameter includes, for example, a video media format supported by the first electronic device, a codec capability of the first electronic device, an IP address and port of the first electronic device, and camera information of the first electronic device.
  • Codec capabilities include, for example, maximum decoding capability, maximum encoding capability, maximum frame rate, minimum encoding capability, and maximum bandwidth.
  • the camera information includes information such as the front camera, rear camera, and flash.
  • the audio device may save the first video parameter in a configuration file of the audio device.
  • the audio device can perform video communication with the second electronic device by using the video capability of the first electronic device.
  • the first electronic device directly sends video data to the second electronic device, and directly from the second electronic device Receive video data.
  • the first electronic device first transmits the video data to the audio device, and then the audio device forwards the video data to the second electronic device, and the audio device directly receives the video data sent by the second electronic device.
  • the first electronic device directly transmits the video data to the second electronic device, but the audio data directly received by the second electronic device is received by the audio device. The specific implementation process of the first case will be described below.
  • FIG. 3 is a flowchart of a video communication method in the first case. As shown in Figure 3, the method includes the following:
  • Step 101 The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, an IP address and a port of the first electronic device,
  • Step 102 The audio device sends a video call request to the second electronic device, where the video call request includes a first audio parameter and a first video parameter of the audio device, and the IP address and port of the first electronic device are used to notify the first The IP address and port of the electronic device audio device for transmitting and receiving video data;
  • Step 103 The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device.
  • the IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data; and the video media format supported by the second electronic device included in the response message
  • the second electronic device may be determined according to the video media format supported by the first electronic device and the video media format supported by the first electronic device, so the video media format in the response message is a video media format supported by the first electronic device and the second electronic device.
  • Step 104 The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message.
  • This step is an optional step, that is, the method in step 101-step 103 and step 105 may also be performed.
  • Step 105 The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the IP address and port of the second electronic device, and initiate monitoring the second electronic device to the first Electronics The device's IP address and video data sent by the port.
  • the first electronic device monitors the IP address of the second electronic device and the video data sent by the port to the IP address and port of the first electronic device.
  • the audio device acquires a first video parameter of the first electronic device.
  • the first video parameter may be obtained according to the process described above, and the obtained first video parameter may be saved.
  • the saved first video parameter can be obtained.
  • the first video parameter of the first electronic device may be obtained by other means.
  • the audio device and the first electronic device are both connected to one server, and the first video parameter may be sent by the server. Audio device, then the audio device receives the first video parameter.
  • the user When the user wants to make a video call to other users through the audio device, the user can dial the other party's phone number, and then the audio device sends a video call request to the second electronic device.
  • the first audio parameter and the first video parameter of the audio device are included in the video call request.
  • the first audio parameter includes, for example, an encoding scheme supported by the audio device, an encoding method, and the like.
  • the IP address and port for transmitting and receiving audio data are the IP address and port of the audio device.
  • the first video parameter may include a video media format supported by the first electronic device, an IP address and a port of the first electronic device.
  • the first video parameter may further include other content, which is not specifically limited by the present invention.
  • the video call request can be sent through multiple protocols, such as the Session Initiation Protocol (SIP).
  • SIP Session Initiation Protocol
  • the negotiation process of the audio device and the second electronic device and the transmission process of the video data will be described below by taking SIP as an example.
  • the video call request is, for example, an INVITE message
  • the body type of the message is, for example, a Session Description Protocol (SDP) message, as follows.
  • SDP Session Description Protocol
  • INVITE sip:*125@192.169.1.136 SIP/2.0//Message type is INVITE
  • Call-ID 577212191@192.166.1.252//Global unique flag used to uniquely mark this call
  • Content-Type application/sdp// indicates that the message body type carried by the SIP message is SDP packet.
  • Allow-Events talk, hold, conference, refer, check-sync//allowed events
  • the first parameter indicates the name of the session initiator
  • the second parameter indicates the caller's session identifier
  • the third parameter is the primary parameter.
  • the version of the called session when the session data changes, the version number is incremented
  • the fourth parameter defines the network type
  • IN represents the Internet network type
  • the fifth parameter is the address type
  • the sixth parameter is the address: indicates the session initiator IP address, in this embodiment, the IP address of the audio device
  • the first parameter is the media type, which is audio in this embodiment
  • the second parameter is port, which indicates the port for transmitting and receiving audio data
  • the third parameter is the transmission protocol.
  • the RTP/AVP protocol, the fourth to seventh parameters indicate the five payload type numbers supported by the audio device.
  • c IN IP4 10.38.111.220//The first parameter is the network type, IN is the Internet network type, and the second parameter is the address type. In this embodiment, it is an IP4 type, and the third parameter is an address. Medium is the IP address of the audio device, indicating the IP address of the audio data.
  • a rtpmap:8 PCMA/8000//payload type 8
  • the corresponding audio code name is PCMA, which is dynamically allocated.
  • a rtpmap:18 G729/8000//payload type 18, the corresponding audio code name is G729, the sampling rate is 8000Hz
  • a rtpmap:9 G722/8000//payload type 9
  • the corresponding audio code name is G722
  • the sampling rate is 8000Hz
  • m video 10002 RTP/AVP 106//
  • the first parameter indicates that the media type is video
  • the second parameter indicates the port for transmitting and receiving video data, in this embodiment is the port of the first electronic device
  • the third parameter indicates the transmission.
  • the protocol is RTP or AVP protocol
  • the fourth parameter indicates the payload type number.
  • b AS: 512 / / bandwidth that the audio device can support
  • a rtpmap:106 H264/90000//payload type 106, the corresponding video encoding type is H.264
  • the first C line indicates the IP address of the audio device for transmitting and receiving audio data, which is the IP address of the audio device in this embodiment.
  • 11792 in the first m row represents a port for transmitting and receiving audio data, which is a port of the audio device in this embodiment.
  • the second C line indicates the IP address of the audio device that transmits and receives video data, which is the IP address of the first electronic device in this embodiment.
  • 10002 in the second m row represents a port on which the audio device transmits and receives video data, and in this embodiment, is a port of the first electronic device.
  • 106 indicates that the payload type is 106, and the value can be set and negotiated according to actual capabilities.
  • the profile-level-id indicates the detailed codec capability of the audio device, and the capability parameter may be the maximum decoding capability, maximum coding capability, and the like described above.
  • the response message may be replied according to its own video capability. Accordingly, the response message can be sent using the same protocol as the video call request.
  • the SIP message is used as an example.
  • the response message may be a 200 OK message, and the body content of the message is an SDP message, as follows.
  • a sendrecv//the communication address of the video data and the audio data, that is, the IP address of the second electronic device is two-way communication
  • a response message such as a correct answer response (ACK)
  • ACK correct answer response
  • the audio device sends a call indication including the second video parameter to the first electronic device, for example, an OpenVideo message that opens the video stream, and the parameter of the message is the second video parameter.
  • the second electronic device opens the camera to collect video data, and sends the collected video data to the IP address and port of the second electronic device, and starts to monitor the IP of the second electronic device to the first electronic device.
  • the data sent by the address and port can perform video communication by means of the video capability of the first electronic device without requiring hardware improvement.
  • the program can Applicable to scenes where the audio device does not have video playback function. Of course, it is not excluded to be applied to other scenes.
  • the first electronic device may also perform processing, such as data compression, before the video data is sent out.
  • the compressed format is a video media format supported by both parties in the foregoing steps 102 and 103.
  • the video data is compressed by the H.264 video codec standard, and then the compressed H264 video data is transmitted.
  • the second electronic device can also compress the video data and then send it to the first electronic device.
  • the receiver of the video data may perform decoding and playing according to the video media format supported by both parties.
  • the audio device transmits to the IP address and audio port of the second electronic device, and the second electronic device transmits to the IP address and port of the audio device.
  • the audio processing can be performed according to the audio formats supported by both parties.
  • the audio data receiver can decode and play according to the audio format.
  • the audio device further sends a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the IP address and port of the second electronic device, and to monitor the second electronic device.
  • the method includes:
  • Step 201 The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device.
  • Step 202 The audio device sends a video call request to the second electronic device.
  • the video call request includes a first audio parameter of the audio device, a first video parameter, and an IP address and port of the audio device, and a network protocol IP address of the audio device. And an IP address and a port used by the port to notify the second electronic device audio device to send and receive video data;
  • Step 203 The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device,
  • the IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data;
  • Step 204 The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message; the step is an optional step;
  • Step 205 The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send the video data to the audio device.
  • Step 206 The audio device sends the video data received from the first electronic device to the second electronic device.
  • Step 207 The audio device monitors video data sent by the second electronic device to the IP address and port of the audio device.
  • Step 208 The audio device forwards the video data sent by the second electronic device to the first electronic device.
  • the first video parameter may include only the video media format supported by the first electronic device.
  • the first video parameter may further include other parameters, such as a codec capability of the first electronic device.
  • the IP address and port used by the audio device to send and receive video data are the IP address and port of the audio device itself, so the audio device needs to send itself in step 202.
  • the IP address and port are given to the second electronic device to inform the second electronic device that the audio device transmits and receives the IP address and port of the video data.
  • the IP address and port of the second electronic device in the response message sent by the second electronic device, can be used to notify the audio device of the IP address and port of the second electronic device to send and receive video data.
  • the audio device may send a call indication to the first electronic device to instruct the first electronic device to transmit audio data to the audio device, and then the audio device forwards the received video data to the second electronic device. Further, the audio device monitors the IP address of the second electronic device and the video data sent by the port to the IP address and port of the audio device, and forwards the video data sent by the second electronic device to the first electronic device. In this way, the second electronic device can perform video communication with the audio device without any change, and the audio device can realize and utilize the video capability of the first electronic device without performing hardware improvement. Two electronic devices for video communication.
  • the scheme in this embodiment is applicable to an audio device that does not have video capability but has video playback capability.
  • the case where the solution in this embodiment is applied to other scenarios is not excluded.
  • video call request and response messages can also be sent over the SIP protocol.
  • the negotiation process and the transmission process of the video data between the audio device and the second electronic device in the present embodiment will be exemplified below with reference to FIG.
  • the audio device sends an INVITE message to the second electronic device, where the INVITE message includes the following content:
  • m audio 11792 RTP/AVP 0 8 18 9 101///The port that sends and receives audio data is 11792, which is the port of the audio device.
  • m video 10002
  • RTP/AVP 106// indicates that the port for sending and receiving video data is 10002, which is the port of the audio device.
  • the audio device notifies the second electronic device audio device of the IP address of the audio data and the video data through the c line, and the IP address is the IP address of the audio device.
  • the second electronic device sends a 200 OK message to the audio device according to its own video capability, and the content of the message is as follows:
  • m audio 10000
  • RTP/SAVP 112 9 8 0 18 97 101//10000 indicates the port for sending and receiving audio data.
  • RTP/SAVP 106//10002 indicates the port for sending and receiving video data.
  • the audio device sends an ACK message to the second electronic device to notify the second electronic device that the audio device has received the 200 OK message.
  • the audio device and the second electronic device establish a video call.
  • the audio device instructs the first electronic device to transmit the video data to itself, and then forwards to the second electronic device, and forwards the video data received from the second electronic device to the first electronic device.
  • the video data may be compressed by a video media format supported by both parties, for example, by the compression processing of the H.264 codec standard, so the video transmitted between the devices is The data is compressed H264 video data.
  • the audio device may further display the video data on the display screen for image preview.
  • the audio device can also display the video data on the display screen. In this way, the video data can be viewed through both the audio device and the first electronic device, and can be applied to a scene in which multiple people are together with the video.
  • the audio device further sends a call end indication to the first electronic device to instruct the first electronic device to stop sending video data to the audio device. Then, after receiving the indication, the first electronic device turns off the camera and stops transmitting video data to the audio device.
  • FIG. 7 it is a flowchart of the video communication method in this embodiment. As shown in FIG. 7, the method includes:
  • Step 301 The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes the first The video media format supported by the child device, the IP address and port of the first electronic device;
  • Step 302 The audio device sends a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, a first video parameter, and an IP address and port of the audio device, and an IP address of the audio device.
  • the port is configured to notify the second electronic device audio device of the IP address and port of the video data; the IP address and port of the first electronic device are used to notify the second electronic device audio device to send the IP address and port of the video data;
  • Step 303 The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device,
  • the IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data;
  • Step 304 The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message; the step is an optional step;
  • Step 305 The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the IP address and port of the second electronic device.
  • Step 306 The audio device monitors video data sent by the second electronic device to the IP address and port of the audio device.
  • the video data is directly transmitted by the first electronic device to the second electronic device, but the video data sent by the second electronic device is directly received by the audio device. Therefore, in step 302, the video call request needs to include the IP address and port of the audio device, and the IP address and port of the first electronic device.
  • the IP address and port of the audio device are used to notify the second electronic device that the audio device receives the IP address and port of the audio data.
  • the IP address and port of the first electronic device are used to notify the second electronic device that the audio device transmits the IP address and port of the audio data. Therefore, in step 306, the audio device itself listens for video data transmitted by the second electronic device to the IP address and port of the audio device.
  • the implementation of the other parts is the same as the first case, and details are not described herein again.
  • the audio device can implement video communication by means of the video capability of the first electronic device. Further, since the first electronic device directly transmits the video data to the second electronic device, the first electronic device generally has a higher codec capability than the audio device, so the quality of the video data received by the second electronic device is higher. .
  • the audio device further forwards the received video data to the first electronic device, so that the video data sent by the second electronic device can also be displayed on the first electronic device.
  • the video picture can be viewed through the audio device and the first electronic device at the same time.
  • the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop sending the video data to the second electronic device.
  • the audio device sends an INVITE message to the second electronic device, the content of the message is as follows:
  • a sendaddr: 10.174.5.56:10002//The IP address and port of the first electronic device, indicating the IP address and port of the audio device to send video data, and the video data is sent in one direction.
  • a recvaddr: 10.38.111.220:10002//The IP address and port of the audio device, indicating the IP address and port of the audio device receiving video data, and one-way receiving of video data.
  • the IP address and port of the audio device receiving the video data are defined by a line a, which is the IP address and port of the audio device.
  • the other line a defines the IP address and port of the audio device that sends the video data, which is the IP address and port of the first electronic device.
  • the audio device notifies the second electronic device audio device of the IP address and port for transmitting and receiving video data by the two a lines.
  • the second electronic device After receiving the INVITE message, the second electronic device replies with a 200 OK message according to its own capabilities, and the content of the message is as follows:
  • the IP address of the second electronic device is a two-way communication address, including communication of audio data and communication of video data
  • the IP address of the second electronic device is defined by the c line, and the port of the second electronic device is defined by the m line.
  • the second electronic device may reply the response message in the foregoing second case to the audio device.
  • the ACK message may be sent to the second electronic device. So far, video communication has been established between the audio device and the second electronic device.
  • the audio device sends an OpenVideo message to the first electronic device according to the negotiated rule, to instruct the first electronic device to open the camera and collect the video data, and directly send the collected video data to the second electronic device.
  • the audio device then listens to the video data sent by the second electronic device to the IP address and port of the audio device. Specifically, the audio device listens to the IP address of the second electronic device and the video data sent by the port to the IP address and port of the audio device.
  • the audio device further forwards the received video data to the first electronic device.
  • the video data may be H264 video data compressed by the H.264 standard supported by both parties.
  • the video communication device includes an acquisition unit 401, a transmission unit 402, and a reception unit 403.
  • the video communication device can be used to implement at least one of the video communication methods shown in FIG. 3, FIG. 5, and FIG.
  • the specific configuration can be determined according to actual needs.
  • the video communication device when implemented by using software, it may be a stand-alone application or a module of other applications.
  • the acquiring unit may be used to implement step 101 of the method shown in FIG.
  • the transmitting unit 402 can be used to implement step 102, step 104, and step 105 of the method shown in FIG.
  • the receiving unit 403 can be used to implement step 103 of the method shown in FIG.
  • the sending unit 402 is further configured to send a call end indication to the first electronic device after the end of the call, to instruct the first electronic device to stop sending video to the IP address and port of the second electronic device. And monitoring video data sent by the second electronic device to an IP address and port of the first electronic device.
  • the acquiring unit may be used to implement step 201 of the method shown in FIG. 5.
  • the sending unit 402 can be used to implement step 202, step 204 to step 206, and step 208 of the method shown in FIG.
  • the receiving unit 403 can be used to implement steps 203 and 207 of the method shown in FIG.
  • the sending unit 402 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the audio device.
  • the acquiring unit may be used to implement step 301 of the method shown in FIG. 7.
  • the sending unit 402 can be used to implement step 302, step 304 and step 305 of the method shown in FIG.
  • the receiving unit 403 can be used to implement steps 303 and 306 of the method shown in FIG.
  • the sending unit 402 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the second electronic device.
  • the audio device includes a processor 501, a transmitter 502, a receiver 503, a memory 504, and an audio component 505.
  • the processor 501 may be a general-purpose central processing unit (CPU), may be an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution.
  • the number of memories 504 can be one or more.
  • the memory 504 may include a read only memory (English: Read Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM for short), and a disk storage.
  • the memory 504, the receiver 503, and the transmitter 502 are connected to the processor 501 via a bus.
  • the receiver 503 and the transmitter 502 are configured to perform network communication with an external device, and specifically communicate with an external device through a network such as an Ethernet, a wireless access network, or a wireless local area network.
  • Receiver 503 and transmitter 502 may be physically separate components or may be physically identical components.
  • the audio component 505 can include an earpiece, a speaker, a microphone, and the like.
  • the processor 501 is configured to process daily transactions of the audio device
  • the memory 504 is configured to store data required by the processor 501. Further, the memory 504 is also used to store the address book.
  • the processor 501 is further configured to perform video data encoding and decoding and audio data encoding and decoding.
  • the audio device may be used to implement at least one of the video communication methods shown in FIG. 3, FIG. 5, and FIG.
  • the specific configuration can be determined according to actual needs.
  • the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first electronic component. a video media format supported by the device, a network protocol IP address and a port of the first electronic device; the first electronic device and the audio device are paired.
  • the transmitter 502 is configured to send a video call request to the second electronic device, where the video call request includes the first audio parameter of the audio device and the first video parameter.
  • the receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
  • the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
  • the transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device, And starting to monitor video data sent by the second electronic device to the IP address and port of the first electronic device.
  • the transmitter 502 is further configured to send a call end indication to the first electronic device after the end of the call, to instruct the first electronic device to stop sending video to the IP address and port of the second electronic device. And monitoring video data sent by the second electronic device to an IP address and port of the first electronic device.
  • the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first a video media format supported by the electronic device; the first electronic device and the audio device are paired.
  • a transmitter 502 configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP of the audio device Address and port.
  • the receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
  • the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
  • the transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic device Transmitting video data received from the first electronic device.
  • the receiver 503 is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
  • the transmitter 502 is further configured to: forward the video data sent by the second electronic device to the first electronic device.
  • the transmitter 502 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the audio device.
  • the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first a video media format supported by the electronic device, a network protocol IP address and a port of the first electronic device; the first electronic device and the audio device are paired.
  • a transmitter 502 configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address of the audio device port.
  • the receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
  • the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
  • the transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device.
  • the receiver 503 is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
  • the transmitter 502 is further configured to: after the end of the call, send a call end indication to the first electronic device, Instructing the first electronic device to stop transmitting video data to the second electronic device.
  • FIG. 3 The various changes and specific examples in the video communication method in the foregoing embodiments shown in FIG. 3, FIG. 5 and FIG. 7 are also applicable to the audio device of the embodiment, and the foregoing detailed description of the video communication method is in the field.
  • the implementation method of the audio device in this embodiment can be clearly understood by the skilled person, so that the details of the specification will not be described in detail herein.
  • the audio device is paired with the first electronic device, and the first electronic device has the capability of acquiring a video image.
  • the audio device uses the video parameters of the first electronic device to communicate with the call peer (ie, the second electronic device) to establish a video call.
  • the audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device.
  • the device increases video capabilities.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

A video communication method and apparatus are provided in the present invention. The method comprises that: an audio device obtains a first video parameter of a first electronic device connected with the audio device, the first video parameter comprises the video media format supported by the first electronic device, the IP address and port of the first electronic device; the audio device sends a video call request to a second electronic device; the video call request comprises a first audio parameter of the audio device and the first video parameter; the audio device receives a response message sent by the second electronic device; the response message comprises a second audio parameter and a second video parameter of the second electronic device, and the second video parameter comprises the video media format supported by the second electronic device, the IP address and port of the second electronic device; the audio device sends a reply message to the second electronic device; and the audio device sends a call indication to the first electronic device to instruct the first electronic device to send video data to the second electronic device and initiate monitoring the video data sent by the second electronic device.

Description

一种视频通信方法及装置Video communication method and device
本申请要求于2015年6月30日提交中国专利局、申请号为201510374698.8、发明名称为“一种视频通信方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510374698.8, entitled "A Video Communication Method and Apparatus", filed on June 30, 2015, the entire contents of .
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种视频通信方法及装置。The present invention relates to the field of communications technologies, and in particular, to a video communication method and apparatus.
背景技术Background technique
桌面音频设备在企业内已经应用的相当普及,一般企业内部署的都是较为经济的低端设备,能够满足办公的日常语音交互需求。现如今,视频愈加普及,人们已经不再与满足普通的音频通话,而是有了面对面视频交流的需求。Desktop audio devices have been widely used in enterprises. Generally, low-end devices are deployed in enterprises, which can meet the daily voice interaction needs of the office. Nowadays, video is becoming more and more popular, and people no longer have to meet ordinary audio calls, but have the need for face-to-face video communication.
现有技术中有多种方式来满足视频通信的需求。一种是利用视频设备代替现有的音频设备。该种方法彻底摒弃了现有的音频设备,需要更换硬件设备,成本较高。另一种是在音频设备上安装视频摄像头,例如外接的通用串行总线(英文:Universal Serial Bus,简称:USB)摄像头。然而该种方法需要在音频设备上集成特定厂家的摄像头驱动,因为外接的USB摄像头厂家众多,所以每种摄像头只能使用特定的摄像头驱动才能使用。因此,该种方法的技术限制也较多。There are various ways to meet the needs of video communication in the prior art. One is to replace the existing audio device with a video device. This method completely eliminates the existing audio equipment and requires replacement of hardware equipment, which is costly. The other is to install a video camera on the audio device, such as an external Universal Serial Bus (USB) camera. However, this method requires the integration of a specific manufacturer's camera driver on the audio device. Because there are many external USB camera manufacturers, each camera can only be used with a specific camera driver. Therefore, there are many technical limitations of this method.
发明内容Summary of the invention
本发明实施例提供一种视频通信方法及装置,用以实现在不更换硬件的前提下为音频设备增加视频能力。The embodiment of the invention provides a video communication method and device, which are used to add video capability to an audio device without replacing hardware.
本发明第一方面提供了一种视频通信方法,包括:A first aspect of the present invention provides a video communication method, including:
音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device, and the first The electronic device is paired with the audio device;
所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数和所述第一视频参数;Transmitting, by the audio device, a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数;所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device; and the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述 第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device to indicate the The first electronic device sends video data to an IP address and a port of the second electronic device, and starts monitoring video data sent by the second electronic device to an IP address and a port of the first electronic device.
结合第一方面,在第一方面的第一种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a first possible implementation of the first aspect, the method further includes:
在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。After the call ends, the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop sending video data to the IP address and port of the second electronic device and to listen to the first Video data transmitted by the second electronic device to the IP address and port of the first electronic device.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述第一电子设备的IP地址,通过m行定义所述第一电子设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式;With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the video call request is a request for conforming to a Session Initiation Protocol (SIP), in the video call In the request, the IP address of the first electronic device is defined by the c line, the port of the first electronic device is defined by m lines, and the video media format supported by the first electronic device is defined by a line;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口,通过a行定义所述第二电子设备支持的视频媒体格式。The response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
本发明第二方面提供一种视频通信方法,包括:A second aspect of the present invention provides a video communication method, including:
音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device is paired with the audio device;
所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口;Transmitting, by the audio device, a video call request to a second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device port;
所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据;Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device;
所述音频设备向所述第二电子设备发送从所述第一电子设备接收的视频数据;Transmitting, by the audio device, video data received from the first electronic device to the second electronic device;
所述音频设备监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据;The audio device monitors video data sent by the second electronic device to an IP address and a port of the audio device;
所述音频设备将所述第二电子设备发送的视频数据转发给所述第一电子设备。The audio device forwards video data sent by the second electronic device to the first electronic device.
结合第二方面,在第二方面的第一种可能的实现方式中,所述方法还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes:
在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。After the call ends, the audio device transmits a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the audio device.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述音频设备的IP地址,通过m行定义所述音频设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式。With reference to the second aspect, or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the video call request is a request for conforming to a Session Initiation Protocol (SIP), in the video call In the request, the IP address of the audio device is defined by the c line, the port of the audio device is defined by m lines, and the video media format supported by the first electronic device is defined by a line.
本发明第三方面提供一种视频通信方法,包括: A third aspect of the present invention provides a video communication method, including:
音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device, and the first The electronic device is paired with the audio device;
所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口;Transmitting, by the audio device, a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and a port of the audio device;
所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据;Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device;
所述音频设备监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The audio device listens to video data sent by the second electronic device to an IP address and port of the audio device.
结合第三方面,在第三方面的第一种可能的实现方式中,所述方法还包括:In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the method further includes:
在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。After the call ends, the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the second electronic device.
结合第三方面或第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过一个a行定义所述音频设备的IP地址和端口,通过另一个a行定义所述第一电子设备的IP地址和端口;With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the video call request is a request for conforming to a Session Initiation Protocol SIP, in the video call In the request, the IP address and port of the audio device are defined by one row, and the IP address and port of the first electronic device are defined by another row of a;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口。The response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
本发明第四方面提供一种视频通信装置,包括:A fourth aspect of the present invention provides a video communication apparatus, including:
获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数和所述第一视频参数;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device;
所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device And initiating monitoring of video data sent by the second electronic device to an IP address and a port of the first electronic device.
结合第四方面,在第四方面的第一种可能的实现方式中,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向所述第一电子设备 的IP地址和端口发送的视频数据。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the IP address and port of the second electronic device and listens to the second electronic device to the first electronic device The IP address and port sent by the video data.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述第一电子设备的IP地址,通过m行定义所述第一电子设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式;With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the video call request is a request for conforming to a Session Initiation Protocol SIP, in the video call In the request, the IP address of the first electronic device is defined by the c line, the port of the first electronic device is defined by m lines, and the video media format supported by the first electronic device is defined by a line;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口,通过a行定义所述第二电子设备支持的视频媒体格式。The response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
本发明第五方面提供一种视频通信装置,包括:A fifth aspect of the present invention provides a video communication apparatus, including:
获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device and the audio device are paired with each other;
发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device And port;
接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据;向所述第二电子设备发送从所述第一电子设备接收的视频数据;The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic The device transmits video data received from the first electronic device;
所述接收单元还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据;The receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device;
所述发送单元还用于:将所述第二电子设备发送的视频数据转发给所述第一电子设备。The sending unit is further configured to: forward the video data sent by the second electronic device to the first electronic device.
结合第五方面,在第五方面的第一种可能的实现方式中,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the audio device.
结合第五方面或第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述音频设备的IP地址,通过m行定义所述音频设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the video call request is a request that meets a session initiation protocol SIP, in the video call In the request, the IP address of the audio device is defined by the c line, the port of the audio device is defined by m lines, and the video media format supported by the first electronic device is defined by a line.
本发明第六方面提供一种视频通信装置,包括:A sixth aspect of the present invention provides a video communication apparatus, including:
获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所 述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes Determining a first audio parameter of the audio device, the first video parameter, and an IP address and port of the audio device;
接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据;The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device ;
所述接收单元还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
结合第六方面,在第六方面的第一种可能的实现方式中,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the second electronic device.
结合第六方面或第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过一个a行定义所述音频设备的IP地址和端口,通过另一个a行定义所述第一电子设备的IP地址和端口;With reference to the sixth aspect, or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the video call request is a request that meets a session initiation protocol SIP, in the video call In the request, the IP address and port of the audio device are defined by one row, and the IP address and port of the first electronic device are defined by another row of a;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口。The response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
本发明第七方面提供一种音频设备,包括:A seventh aspect of the present invention provides an audio device, including:
接收器,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;a receiver, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
发送器,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数和所述第一视频参数;a transmitter, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
所述接收器还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数;所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;The receiver is further configured to: receive a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device; and the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
所述发送器还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。The transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device And initiating monitoring of video data sent by the second electronic device to an IP address and a port of the first electronic device.
结合第七方面,在第七方面的第一种可能的实现方式中,所述发送器还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。With reference to the seventh aspect, in a first possible implementation manner of the seventh aspect, the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the IP address and port of the second electronic device and listens to video data sent by the second electronic device to the IP address and port of the first electronic device.
结合第七方面或第七方面的第一种可能的实现方式,在第七方面的第二种可能的实现方 式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述第一电子设备的IP地址,通过m行定义所述第一电子设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式;In conjunction with the seventh aspect or the first possible implementation of the seventh aspect, the second possible implementation of the seventh aspect Wherein the video call request is a request conforming to a Session Initiation Protocol (SIP), in which the IP address of the first electronic device is defined by c lines, and the first electronic device is defined by m lines. a port, the video media format supported by the first electronic device is defined by a line;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口,通过a行定义所述第二电子设备支持的视频媒体格式。The response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
本发明第八方面提供一种音频设备,包括:An eighth aspect of the present invention provides an audio device, including:
接收器,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与音频设备已配对连接;a receiver, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device and the audio device are paired with each other;
发送器,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口;a transmitter, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device And port;
所述接收器还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;The receiver is further configured to: receive a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
所述发送器还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据;向所述第二电子设备发送从所述第一电子设备接收的视频数据;The transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic The device transmits video data received from the first electronic device;
所述接收器还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据;The receiver is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device;
所述发送器还用于:将所述第二电子设备发送的视频数据转发给所述第一电子设备。The transmitter is further configured to: forward the video data sent by the second electronic device to the first electronic device.
结合第八方面,在第八方面的第一种可能的实现方式中,所述发送器还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。In conjunction with the eighth aspect, in a first possible implementation manner of the eighth aspect, the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the audio device.
结合第八方面或第八方面的第一种可能的实现方式,在第八方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述音频设备的IP地址,通过m行定义所述音频设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式。With reference to the eighth aspect, or the first possible implementation manner of the eighth aspect, in a second possible implementation manner of the eighth aspect, the video call request is a request that meets a session initiation protocol SIP, in the video call In the request, the IP address of the audio device is defined by the c line, the port of the audio device is defined by m lines, and the video media format supported by the first electronic device is defined by a line.
本发明第九方面提供一种音频设备,包括:A ninth aspect of the present invention provides an audio device, including:
接收器,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;a receiver, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
发送器,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口;a transmitter, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and port of the audio device ;
所述接收器还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述 第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;The receiver is further configured to: receive a response message sent by the second electronic device; the response message includes the a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
所述发送器还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据;The transmitter is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device ;
所述接收器还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The receiver is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
结合第九方面,在第九方面的第一种可能的实现方式中,所述发送器还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。With reference to the ninth aspect, in a first possible implementation manner of the ninth aspect, the transmitter is further configured to: after the end of the call, send a call end indication to the first electronic device, to indicate the first The electronic device stops transmitting video data to the second electronic device.
结合第九方面或第九方面的第一种可能的实现方式,在第九方面的第二种可能的实现方式中,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过一个a行定义所述音频设备的IP地址和端口,通过另一个a行定义所述第一电子设备的IP地址和端口;With reference to the ninth aspect, or the first possible implementation manner of the ninth aspect, in a second possible implementation manner of the ninth aspect, the video call request is a request for conforming to a session initiation protocol SIP, in the video call In the request, the IP address and port of the audio device are defined by one row, and the IP address and port of the first electronic device are defined by another row of a;
所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口。The response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
本发明实施例中,音频设备与第一电子设备配对连接,第一电子设备具有采集视频图像的能力。音频设备利用第一电子设备的视频参数与通话对端(即第二电子设备)进行通信协商,进而建立视频通话。音频设备控制第一电子设备采集视频图像并向第二电子设备发送,以及控制第一电子设备启动监听第二电子设备发送的视频数据,进而实现在不更改音频设备的硬件的前提下,为音频设备增加视频能力。In the embodiment of the present invention, the audio device is paired with the first electronic device, and the first electronic device has the capability of acquiring a video image. The audio device uses the video parameters of the first electronic device to communicate with the call peer (ie, the second electronic device) to establish a video call. The audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device. The device increases video capabilities.
附图说明DRAWINGS
图1为本发明实施例提供的一种音频设备和第一电子设备之间的网络连接的示意图;1 is a schematic diagram of a network connection between an audio device and a first electronic device according to an embodiment of the present invention;
图2为本发明实施例提供的一种音频设备和第一电子设备之间的配对连接的示意图;2 is a schematic diagram of a pairing connection between an audio device and a first electronic device according to an embodiment of the present invention;
图3为本发明实施例提供的一种视频通信方法的流程图;FIG. 3 is a flowchart of a video communication method according to an embodiment of the present invention;
图4为图3所示视频通信方法的具体实例示意图;4 is a schematic diagram of a specific example of the video communication method shown in FIG. 3;
图5为本发明实施例提供的另一种视频通信方法的流程图;FIG. 5 is a flowchart of another video communication method according to an embodiment of the present invention;
图6为图5所示视频通信方法的具体实例示意图;6 is a schematic diagram of a specific example of the video communication method shown in FIG. 5;
图7为本发明实施例提供的再一种视频通信方法的流程图;FIG. 7 is a flowchart of still another video communication method according to an embodiment of the present invention;
图8为图7所示视频通信方法的具体实例示意图;8 is a schematic diagram of a specific example of the video communication method shown in FIG. 7;
图9为本发明实施例提供的一种视频通信装置的功能框图;FIG. 9 is a functional block diagram of a video communication apparatus according to an embodiment of the present invention;
图10为本发明实施例提供的一种音频设备的结构框图。 FIG. 10 is a structural block diagram of an audio device according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种视频通信方法及装置,用以实现在不更换硬件的前提下为音频设备增加视频能力。The embodiment of the invention provides a video communication method and device, which are used to add video capability to an audio device without replacing hardware.
为实现上述发明目的,本发明实施例中的技术方案的总体思路如下:To achieve the above object, the general idea of the technical solution in the embodiment of the present invention is as follows:
音频设备与第一电子设备配对连接,第一电子设备具有采集视频图像的能力。音频设备利用第一电子设备的视频参数与通话对端、即第二电子设备进行通信协商,进而建立视频通话。音频设备控制第一电子设备采集视频图像并向第二电子设备发送,以及控制第一电子设备启动监听第二电子设备发送的视频数据,进而实现在不更改音频设备的硬件的前提下,为音频设备增加视频能力。The audio device is paired with the first electronic device, the first electronic device having the ability to capture video images. The audio device uses the video parameters of the first electronic device to communicate with the call peer, that is, the second electronic device, to establish a video call. The audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device. The device increases video capabilities.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
便于理解,以下将先介绍音频设备和第一电子设备之间的连接过程。具体的,音频设备例如为桌面音频电话机。第一电子设备例如为手机、平板电脑、穿戴式设备。第一电子设备可以是任何一个厂家的设备。For ease of understanding, the connection process between the audio device and the first electronic device will be described below. Specifically, the audio device is, for example, a desktop audio telephone. The first electronic device is, for example, a mobile phone, a tablet computer, or a wearable device. The first electronic device can be any manufacturer's device.
音频设备和第一电子设备之间可以通过网络连接(有线或无线),也可以通过蓝牙连接、USB接口连接、蜂窝网连接。只要音频设备和第一电子设备的连接可达即可。The audio device and the first electronic device can be connected through a network (wired or wireless), or through a Bluetooth connection, a USB interface, or a cellular connection. As long as the connection between the audio device and the first electronic device is reachable.
请参考图1所示,为音频设备和第一电子设备之间通过网络连接的一种示意图。Please refer to FIG. 1 , which is a schematic diagram of a network connection between an audio device and a first electronic device.
图1所示网络采用的是以太网+无线保真(英文:Wireless Fidelity,简称:WiFi)的部署方式,这也是最常用的公司网络规划方式。交换机、用户级交换机(英文:Private Branch Exchange,简称:PBX)和接入点(英文:Access Point,简称:AP)与以太网相连。音频设备和第一电子设备接入AP。因此,音频设备和第一电子设备的网络协议(英文:Internet Protocol,简称:IP)地址互通。二者之间可以进行控制信令或者视频数据的传输。The network shown in Figure 1 uses Ethernet + Wireless Fidelity (English: Wireless Fidelity, referred to as: WiFi) deployment, which is also the most common way of corporate network planning. The switch, the user-level switch (Private Branch Exchange, PBX for short), and the access point (English: Access Point, AP for short) are connected to the Ethernet. The audio device and the first electronic device access the AP. Therefore, the audio protocol and the network protocol (English: Internet Protocol, IP address) of the first electronic device are interoperable. Control signaling or video data transmission can be performed between the two.
请再参考图2所示,为音频设备和第一电子设备之间的配对连接的一种可能的示意图。具体的,用户在第一电子设备上填写配对的音频设备的信息。该信息例如是音频设备的电话号码和IP地址。进一步,该信息还可以包括掩码和网关地址。当然,在实际运用中,根据第一电子设备和音频设备的连接方式不同,填写的音频设备的信息可能会不相同。Referring again to FIG. 2, a possible schematic diagram of a paired connection between the audio device and the first electronic device. Specifically, the user fills in the information of the paired audio device on the first electronic device. This information is for example the telephone number and IP address of the audio device. Further, the information may also include a mask and a gateway address. Of course, in actual use, according to the connection manner of the first electronic device and the audio device, the information of the filled audio device may be different.
接下来,当用户触发或者自动触发配对连接时,第一电子设备向音频设备发送连接请求,该请求例如是Discover()消息,该消息包含音频设备的电话号码和IP地址。当第一电子设备发送连接请求之后,搜索发现音频设备,那么可以自动确认配对连接或者由用户确认配 对连接,此时第一电子设备和音频设备配对连接成功。当音频设备接收到连接请求时,可以自动确认配对连接或者由用户确定配对连接,那么此时,音频设备即和第一电子设备配对成功。Next, when the user triggers or automatically triggers the pairing connection, the first electronic device sends a connection request to the audio device, such as a Discover() message, which contains the phone number and IP address of the audio device. After the first electronic device sends a connection request and searches for the audio device, the paired connection can be automatically confirmed or confirmed by the user. For the connection, the first electronic device and the audio device are successfully connected. When the audio device receives the connection request, the paired connection can be automatically confirmed or the paired connection is determined by the user, and then the audio device is successfully paired with the first electronic device.
在音频设备和第一电子设备配对连接成功之后,音频设备可以向第一电子设备发送获取第一电子设备的第一视频参数的请求。该请求例如是GetParam()消息。然后第一电子设备获取并记录第一电子设备的第一视频参数。第一视频参数例如包括第一电子设备支持的视频媒体格式、第一电子设备的编解码能力、第一电子设备的IP地址和端口、第一电子设备的摄像头信息。编解码能力例如包括最大解码能力、最大编码能力、最大帧率、最小编码能力、最大带宽。摄像头信息包括前置摄像头、后置摄像头、闪光灯等信息。After the audio device and the first electronic device are successfully paired, the audio device may send a request for acquiring the first video parameter of the first electronic device to the first electronic device. The request is for example a GetParam() message. The first electronic device then acquires and records the first video parameter of the first electronic device. The first video parameter includes, for example, a video media format supported by the first electronic device, a codec capability of the first electronic device, an IP address and port of the first electronic device, and camera information of the first electronic device. Codec capabilities include, for example, maximum decoding capability, maximum encoding capability, maximum frame rate, minimum encoding capability, and maximum bandwidth. The camera information includes information such as the front camera, rear camera, and flash.
可选的,音频设备可以将第一视频参数保存在音频设备的配置文件中。Optionally, the audio device may save the first video parameter in a configuration file of the audio device.
可选的,在音频设备和第一电子设备配对连接成功之后,音频设备可以利用第一电子设备的视频能力与第二电子设备进行视频通信。根据音频设备侧是否转发和/或接收视频数据,在实际运用中有多种实施方式,例如:第一种,第一电子设备直接发送视频数据给第二电子设备,并且从第二电子设备直接接收视频数据。第二种,第一电子设备先将视频数据发送给音频设备,然后由音频设备转发给第二电子设备,并且音频设备直接接收第二电子设备发送的视频数据。第三种,第一电子设备直接发送视频数据给第二电子设备,但是由音频设备直接接收第二电子设备发送的视频数据。以下将先介绍第一种情况的具体实施过程。Optionally, after the audio device and the first electronic device are successfully paired, the audio device can perform video communication with the second electronic device by using the video capability of the first electronic device. According to whether the audio device side forwards and/or receives video data, there are various implementation manners in practical applications, for example, the first type, the first electronic device directly sends video data to the second electronic device, and directly from the second electronic device Receive video data. Second, the first electronic device first transmits the video data to the audio device, and then the audio device forwards the video data to the second electronic device, and the audio device directly receives the video data sent by the second electronic device. Third, the first electronic device directly transmits the video data to the second electronic device, but the audio data directly received by the second electronic device is received by the audio device. The specific implementation process of the first case will be described below.
具体请参考图3,为第一种情况下的视频通信方法的流程图。如图3所示,该方法包括以下内容:For details, please refer to FIG. 3, which is a flowchart of a video communication method in the first case. As shown in Figure 3, the method includes the following:
步骤101:音频设备获取第一电子设备的第一视频参数;第一视频参数包括所述第一电子设备支持的视频媒体格式、第一电子设备的IP地址和端口;Step 101: The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, an IP address and a port of the first electronic device,
步骤102:音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括音频设备的第一音频参数和第一视频参数,第一电子设备的IP地址和端口用以通知第二电子设备音频设备收发视频数据的IP地址和端口;Step 102: The audio device sends a video call request to the second electronic device, where the video call request includes a first audio parameter and a first video parameter of the audio device, and the IP address and port of the first electronic device are used to notify the first The IP address and port of the electronic device audio device for transmitting and receiving video data;
步骤103:音频设备接收第二电子设备发送的响应消息;所述响应消息中包括第二电子设备的第二音频参数和第二视频参数,第二视频参数包括第二电子设备支持的视频媒体格式、第二电子设备的IP地址和端口;第二电子设备的IP地址和端口用以指示第二电子设备收发视频数据的IP地址和端口;响应消息中包含的第二电子设备支持的视频媒体格式可以是第二电子设备根据第一电子设备支持的视频媒体格式和自身支持的视频媒体格式确定的,所以响应消息中的视频媒体格式为第一电子设备和第二电子设备均支持的视频媒体格式;Step 103: The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device. The IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data; and the video media format supported by the second electronic device included in the response message The second electronic device may be determined according to the video media format supported by the first electronic device and the video media format supported by the first electronic device, so the video media format in the response message is a video media format supported by the first electronic device and the second electronic device. ;
步骤104:音频设备向第二电子设备发送应答消息,以通知第二电子设备音频设备已接收到所述响应消息;该步骤为可选步骤,即步骤101-步骤103、步骤105的方法也可以实施;Step 104: The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message. This step is an optional step, that is, the method in step 101-step 103 and step 105 may also be performed. Implementation
步骤105:音频设备向第一电子设备发送包括第二视频参数的通话指示,以指示第一电子设备向第二电子设备的IP地址和端口发送视频数据,并启动监听第二电子设备向第一电子 设备的IP地址和端口发送的视频数据。Step 105: The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the IP address and port of the second electronic device, and initiate monitoring the second electronic device to the first Electronics The device's IP address and video data sent by the port.
具体的,第一电子设备监听第二电子设备的IP地址和端口向第一电子设备的IP地址和端口发送的视频数据。Specifically, the first electronic device monitors the IP address of the second electronic device and the video data sent by the port to the IP address and port of the first electronic device.
便于说明本发明实施例中视频通信方法的实施过程,以下将详细描述每个步骤的具体实施方式。It is convenient to explain the implementation process of the video communication method in the embodiment of the present invention, and the specific implementation manner of each step will be described in detail below.
在步骤101中,音频设备获取第一电子设备的第一视频参数。具体来说,可以是按照前述所描述的过程获得第一视频参数,并且将获得的第一视频参数保存起来。当音频设备需要进行视频通信时,即可获取保存的第一视频参数。当然,在实际应用中,也可以是通过其它方式获取第一电子设备的第一视频参数,例如音频设备和第一电子设备同时都接入一个服务器上,可以由服务器将第一视频参数发送给音频设备,那么音频设备就接收到了第一视频参数。In step 101, the audio device acquires a first video parameter of the first electronic device. Specifically, the first video parameter may be obtained according to the process described above, and the obtained first video parameter may be saved. When the audio device needs to perform video communication, the saved first video parameter can be obtained. Of course, in a practical application, the first video parameter of the first electronic device may be obtained by other means. For example, the audio device and the first electronic device are both connected to one server, and the first video parameter may be sent by the server. Audio device, then the audio device receives the first video parameter.
当用户想通过音频设备给其他用户拨打视频电话,就可以拨打对方的电话号码,那么此时音频设备就向第二电子设备发送视频呼叫请求。视频呼叫请求中包括音频设备的第一音频参数和第一视频参数。第一音频参数例如包括:音频设备支持的编码方案、编码方式等。在本实施例中,收发音频数据的IP地址和端口为音频设备的IP地址和端口。When the user wants to make a video call to other users through the audio device, the user can dial the other party's phone number, and then the audio device sends a video call request to the second electronic device. The first audio parameter and the first video parameter of the audio device are included in the video call request. The first audio parameter includes, for example, an encoding scheme supported by the audio device, an encoding method, and the like. In this embodiment, the IP address and port for transmitting and receiving audio data are the IP address and port of the audio device.
在本实施例中,第一视频参数可以包括第一电子设备支持的视频媒体格式、第一电子设备的IP地址和端口。当然,进一步的,第一视频参数还可以包括其它内容,本发明不作具体限定。In this embodiment, the first video parameter may include a video media format supported by the first electronic device, an IP address and a port of the first electronic device. Certainly, the first video parameter may further include other content, which is not specifically limited by the present invention.
在实际运用中,视频呼叫请求可以通过多种协议发送,例如会话初始协议(英文:Session Initiation Protocol,简称:SIP)。以下将以SIP为例说明音频设备和第二电子设备的协商过程以及视频数据的传输过程。请参考图4所示,在SIP中,视频呼叫请求例如为INVITE消息,该消息的正文类型例如是会话描述协议(英文:Session Description Protocol,简称:SDP)报文,具体如下。In actual use, the video call request can be sent through multiple protocols, such as the Session Initiation Protocol (SIP). The negotiation process of the audio device and the second electronic device and the transmission process of the video data will be described below by taking SIP as an example. As shown in FIG. 4, in the SIP, the video call request is, for example, an INVITE message, and the body type of the message is, for example, a Session Description Protocol (SDP) message, as follows.
INVITE sip:*125@192.169.1.136 SIP/2.0//消息的类型为INVITEINVITE sip:*125@192.169.1.136 SIP/2.0//Message type is INVITE
Via:SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094//指定SIP版本2.0,传输协议为UDP,以及接收发送请求的服务器地址Via: SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094//Specify SIP version 2.0, the transport protocol is UDP, and the server address that receives the send request
From:"556614"<sip:556614@192.169.1.136>;tag=564377066//会话发起者From:"556614"<sip:556614@192.169.1.136>;tag=564377066//Session Initiator
To:sip:*125@192.169.1.136//会话接收者To:sip:*125@192.169.1.136//session recipient
Call-ID:577212191@192.166.1.252//全局的唯一标志,用来唯一标志这个呼叫Call-ID: 577212191@192.166.1.252//Global unique flag used to uniquely mark this call
CSeq:1 INVITE//呼叫序列号CSeq: 1 INVITE//call serial number
Contact:sip:556614@192.166.1.252:5062//服务器的IP地址和端口Contact:sip:556614@192.166.1.252:5062//IP address and port of the server
Content-Type:application/sdp//表示该SIP消息携带的消息正文类型为SDP包Content-Type: application/sdp// indicates that the message body type carried by the SIP message is SDP packet.
Allow:INVITE,INFO,PRACK,ACK,BYE,CANCEL,OPTIONS,NOTIFY,REGISTER,SUBSCRIBE,REFER,PUBLISH,UPDATE,MESSAGE//允许的消息类型 Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE//Allowed message types
Max-Forwards:70//最大转发数量Max-Forwards: 70//Maximum number of forwards
User-Agent:Huawei eSpace 7850 2.60.94.24//音频设备的描述User-Agent: Huawei eSpace 7850 2.60.94.24//Description of audio equipment
Supported:replaces//支持被替换Supported:replaces//support is replaced
Allow-Events:talk,hold,conference,refer,check-sync//允许的事件Allow-Events: talk, hold, conference, refer, check-sync//allowed events
Content-Length:xxx//消息内容长度Content-Length: xxx / / message content length
v=0//协议版本V=0// protocol version
o=huawei 23293 18 IN IP4 10.38.111.220//与会话所有者有关的参数,第一个参数表示会话发起者的名称,第二个参数表示主叫方的会话标示符,第三个参数为主叫方会话的版本,会话数据有改变时,版本号递增,第四个参数定义了网络类型,IN表示Internet网络类型,第五个参数为地址类型,第六个参数为地址:表明会话发起者的IP地址,在本实施例中为音频设备的IP地址o=huawei 23293 18 IN IP4 10.38.111.220// Parameters related to the session owner, the first parameter indicates the name of the session initiator, the second parameter indicates the caller's session identifier, and the third parameter is the primary parameter. The version of the called session, when the session data changes, the version number is incremented, the fourth parameter defines the network type, IN represents the Internet network type, the fifth parameter is the address type, and the sixth parameter is the address: indicates the session initiator IP address, in this embodiment, the IP address of the audio device
s=-//本次会话的主题s=-//The topic of this session
t=0 0//会话的开始时间和结束时间t=0 0//the start time and end time of the session
m=audio 11792 RTP/AVP 0 8 18 9 101//第一个参数为媒体类型,本实施例中为音频,第二个参数为端口,表示收发音频数据的端口,第三个参数为传输协议,本实施中为RTP/AVP协议,第四至第七参数表示音频设备支持的五种净荷类型编号m=audio 11792 RTP/AVP 0 8 18 9 101//The first parameter is the media type, which is audio in this embodiment, the second parameter is port, which indicates the port for transmitting and receiving audio data, and the third parameter is the transmission protocol. In this implementation, the RTP/AVP protocol, the fourth to seventh parameters indicate the five payload type numbers supported by the audio device.
c=IN IP4 10.38.111.220//第一个参数为网络类型,IN表示Internet网络类型,第二个参数为地址类型,在本实施例中为IP4类型,第三个参数为地址,本实施例中为音频设备的IP地址,表示音频数据的收发IP地址c=IN IP4 10.38.111.220//The first parameter is the network type, IN is the Internet network type, and the second parameter is the address type. In this embodiment, it is an IP4 type, and the third parameter is an address. Medium is the IP address of the audio device, indicating the IP address of the audio data.
a=rtpmap:0 PCMU/8000//净荷类型0,对应的音频编码名称为PCMU,采样率为8000Hza=rtpmap:0 PCMU/8000//payload type 0, the corresponding audio code name is PCMU, the sampling rate is 8000Hz
a=rtpmap:8 PCMA/8000//净荷类型8,对应的音频编码名称为PCMA,为动态分配的a=rtpmap:8 PCMA/8000//payload type 8, the corresponding audio code name is PCMA, which is dynamically allocated.
a=rtpmap:18 G729/8000//净荷类型18,对应的音频编码名称为G729,采样率为8000Hza=rtpmap:18 G729/8000//payload type 18, the corresponding audio code name is G729, the sampling rate is 8000Hz
a=rtpmap:9 G722/8000//净荷类型9,对应的音频编码名称为G722,采样率为8000Hza=rtpmap:9 G722/8000//payload type 9, the corresponding audio code name is G722, the sampling rate is 8000Hz
a=fmtp:101 0-15//a=fmtp:101 0-15//
a=rtpmap:101 telephone-event/8000//支持2833收号方式a=rtpmap:101 telephone-event/8000//Support 2833 receiving method
a=ptime:20//20ms的打包长度a=ptime: packing length of 20//20ms
m=video 10002 RTP/AVP 106//第一个参数表示媒体类型为视频,第二个参数表示收发视频数据的端口,在本实施例中为第一电子设备的端口,第三个参数表示传输协议为RTP或AVP协议,第四个参数表示净荷类型编号m=video 10002 RTP/AVP 106//The first parameter indicates that the media type is video, the second parameter indicates the port for transmitting and receiving video data, in this embodiment is the port of the first electronic device, and the third parameter indicates the transmission. The protocol is RTP or AVP protocol, and the fourth parameter indicates the payload type number.
c=IN IP4 10.174.5.56//第一个参数和第二个参数与第一个C行的含义相同,第三个参数表示视频数据的收发地址,在本实施例中为第一电子设备的IP地址c=IN IP4 10.174.5.56//The first parameter and the second parameter have the same meaning as the first C line, and the third parameter represents the transceiving address of the video data, which in this embodiment is the first electronic device. IP address
b=AS:512//音频设备能够支持的带宽b=AS: 512 / / bandwidth that the audio device can support
a=rtpmap:106 H264/90000//净荷类型106,对应的视频编码类型为H.264 a=rtpmap:106 H264/90000//payload type 106, the corresponding video encoding type is H.264
a=fmtp:106 profile-level-id=428028//净荷类型106a=fmtp:106 profile-level-id=428028//payload type 106
a=sendrecv//表示第一电子设备的IP地址双向传输视频数据以及音频电子设备的IP地址双向传输音频数据a=sendrecv// indicates that the IP address of the first electronic device transmits video data bidirectionally and the IP address of the audio electronic device transmits audio data bidirectionally
a=label:11a=label:11
其中,第一个C行表示音频设备收发音频数据的IP地址,在本实施例中为音频设备的IP地址。m=video参数表明音频设备具有视频能力。第一m行中的11792表示收发音频数据的端口,在本实施例中为音频设备的端口。第二个C行表示音频设备收发视频数据的IP地址,在本实施例中为第一电子设备的IP地址。第二个m行中的10002表示音频设备发送和接收视频数据的端口,在本实施例中,为第一电子设备的端口。106表示净荷类型为106,该值可以根据实际能力进行设置并协商。profile-level-id表示音频设备的详细编解码能力,该能力参数可以是前述所描述的最大解码能力、最大编码能力等。The first C line indicates the IP address of the audio device for transmitting and receiving audio data, which is the IP address of the audio device in this embodiment. The m=video parameter indicates that the audio device has video capabilities. 11792 in the first m row represents a port for transmitting and receiving audio data, which is a port of the audio device in this embodiment. The second C line indicates the IP address of the audio device that transmits and receives video data, which is the IP address of the first electronic device in this embodiment. 10002 in the second m row represents a port on which the audio device transmits and receives video data, and in this embodiment, is a port of the first electronic device. 106 indicates that the payload type is 106, and the value can be set and negotiated according to actual capabilities. The profile-level-id indicates the detailed codec capability of the audio device, and the capability parameter may be the maximum decoding capability, maximum coding capability, and the like described above.
当第二电子设备接收到音频设备发送的视频呼叫请求时,可以根据自己的视频能力回复响应消息。相应的,响应消息可以采用与视频呼叫请求相同的协议发送。继续以SIP协议为例,所述响应消息可以是200OK消息,该消息的正文内容为SDP报文,举例如下。When the second electronic device receives the video call request sent by the audio device, the response message may be replied according to its own video capability. Accordingly, the response message can be sent using the same protocol as the video call request. For example, the SIP message is used as an example. The response message may be a 200 OK message, and the body content of the message is an SDP message, as follows.
SIP/2.0/UDP 10.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT01351SIP/2.0/UDP 10.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT01351
Record-Route:sip:10.174.4.63:5060;transport=udp;lr//用来使SIP服务器保留在每次请求中,不被绕过Record-Route:sip:10.174.4.63:5060;transport=udp;lr// is used to keep the SIP server in every request, not bypassed
Call-ID:asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5Call-ID: asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5
From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5
To:<sip:+96628950005@home1.com>;tag=45vp5pvpTo:<sip:+96628950005@home1.com>;tag=45vp5pvp
CSeq:1 INVITECSeq: 1 INVITE
Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>
Supported:replacesSupported:replaces
Allow:Allow:
MESSAGE,REFER,INFO,NOTIFY,SUBSCRIBE,UPDATE,PRACK,PUBLISH,CANCEL,BYE,OPTIONS,ACK,INVITEMESSAGE, REFER, INFO, NOTIFY, SUBSCRIBE, UPDATE, PRACK, PUBLISH, CANCEL, BYE, OPTIONS, ACK, INVITE
User-Agent:Huawei eSpace 8950 V200R003C00User-Agent: Huawei eSpace 8950 V200R003C00
Content-Length:700Content-Length:700
Content-Type:application/sdpContent-Type: application/sdp
v=0V=0
o=huawei 23293 35 IN IP4 10.174.198.171o=huawei 23293 35 IN IP4 10.174.198.171
s=SBC call//会话主题s=SBC call//session topic
t=0 0 t=0 0
c=IN IP4 10.174.198.171//第二电子设备的IP地址,用于收发音频数据及视频数据c=IN IP4 10.174.198.171//The IP address of the second electronic device, used to send and receive audio data and video data
m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101//收发音频数据的端口为10000m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101//The port for sending and receiving audio data is 10000
a=rtpmap:112 opus/48000a=rtpmap:112 opus/48000
a=fmtp:112 maxcodedaudiobandwidth=48000a=fmtp:112 maxcodedaudiobandwidth=48000
a=rtpmap:9 G722/16000a=rtpmap:9 G722/16000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:97 iLBC/8000a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15a=fmtp:101 0-15
a=ptime:20a=ptime:20
a=sendrecv//视频数据和音频数据的通信地址,即第二电子设备的IP地址是双向通信的a=sendrecv//the communication address of the video data and the audio data, that is, the IP address of the second electronic device is two-way communication
a=crypto:1             AES_CM_128_HMAC_SHA1_80inline:WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0a=crypto:1 AES_CM_128_HMAC_SHA1_80inline: WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0
m=video 10002 RTP/SAVP 106m=video 10002 RTP/SAVP 106
b=AS:2048b=AS: 2048
a=rtpmap:106 H264/90000a=rtpmap:106 H264/90000
a=fmtp:106 profile-level-id=428028a=fmtp:106 profile-level-id=428028
a=sendrecv//表示第二电子设备的IP地址双向传输视频数据a=sendrecv// indicates that the IP address of the second electronic device transmits video data bidirectionally
a=label:11a=label:11
a=crypto:1             AES_CM_128_HMAC_SHA1_80inline:UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRHa=crypto:1 AES_CM_128_HMAC_SHA1_80inline: UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRH
该代码中与前述代码段中相同的字段内容将不再赘述。The contents of the same code in the code as in the preceding code segment will not be described again.
在音频设备接收到200OK消息之后,向第二电子设备发送应答消息,例如是正确应答响应(ACK),以通知第二电子设备音频设备已接收到200OK消息。此时,音频设备和第二电子设备就建立了视频通信。After the audio device receives the 200 OK message, a response message, such as a correct answer response (ACK), is sent to the second electronic device to inform the second electronic device that the audio device has received the 200 OK message. At this point, the audio device and the second electronic device establish a video communication.
接下来音频设备向第一电子设备发送包括第二视频参数的通话指示,例如打开视频流的OpenVideo消息,该消息的参数为第二视频参数。第二电子设备在接收到该通话指示之后,打开摄像头采集视频数据,并将采集的视频数据发送给第二电子设备的IP地址和端口,同时启动监听第二电子设备向第一电子设备的IP地址和端口发送的数据。如此,音频设备在不需要进行硬件改进的情况下,就可以借助第一电子设备的视频能力进行视频通信。该方案可以 适用于音频设备不具有视频播放功能的场景,当然,也不排除应用于其它场景的情况。Next, the audio device sends a call indication including the second video parameter to the first electronic device, for example, an OpenVideo message that opens the video stream, and the parameter of the message is the second video parameter. After receiving the call indication, the second electronic device opens the camera to collect video data, and sends the collected video data to the IP address and port of the second electronic device, and starts to monitor the IP of the second electronic device to the first electronic device. The data sent by the address and port. In this way, the audio device can perform video communication by means of the video capability of the first electronic device without requiring hardware improvement. The program can Applicable to scenes where the audio device does not have video playback function. Of course, it is not excluded to be applied to other scenes.
可选的,第一电子设备在将视频数据在发出去之前,还可以经过处理,例如数据压缩,压缩的格式为前述步骤102和步骤103中协商好的双方均支持的视频媒体格式。例如通过H.264视频编解码器标准压缩视频数据,然后将压缩后的H264视频数据发送出去。第二电子设备同样也可以将视频数据压缩之后再发送给第一电子设备。Optionally, the first electronic device may also perform processing, such as data compression, before the video data is sent out. The compressed format is a video media format supported by both parties in the foregoing steps 102 and 103. For example, the video data is compressed by the H.264 video codec standard, and then the compressed H264 video data is transmitted. The second electronic device can also compress the video data and then send it to the first electronic device.
对应的,视频数据的接收者在接到压缩后的视频数据之后,可以按照前述双方协商好的双方均支持的视频媒体格式进行解码播放。Correspondingly, after receiving the compressed video data, the receiver of the video data may perform decoding and playing according to the video media format supported by both parties.
对于音频数据的传输的情况,由音频设备向第二电子设备的IP地址和音频端口发送,以及第二电子设备向音频设备的IP地址和端口发送。For the case of transmission of audio data, the audio device transmits to the IP address and audio port of the second electronic device, and the second electronic device transmits to the IP address and port of the audio device.
类似的,在音频数据发送之前,也可以按照双方协商好的双方均支持的音频格式进行压缩处理。音频数据接收者在接收到压缩后的音频数据之后,可以按照该音频格式进行解码并播放。Similarly, before the audio data is sent, the audio processing can be performed according to the audio formats supported by both parties. After receiving the compressed audio data, the audio data receiver can decode and play according to the audio format.
可选的,在通话结束后,音频设备还向第一电子设备发送通话结束指示,以指示第一电子设备停止向第二电子设备的IP地址和端口发送视频数据以及监听第二电子设备向第一电子设备的IP地址和端口发送的视频数据。Optionally, after the call ends, the audio device further sends a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the IP address and port of the second electronic device, and to monitor the second electronic device. The video data sent by the IP address and port of an electronic device.
以下将详细介绍前述第二种情况下的视频通信方法的实施过程,请参考图5所示,该方法包括:The implementation process of the video communication method in the foregoing second case will be described in detail below. Referring to FIG. 5, the method includes:
步骤201:音频设备获取第一电子设备的第一视频参数,第一视频参数包括第一电子设备支持的视频媒体格式;Step 201: The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device.
步骤202:音频设备向第二电子设备发送视频呼叫请求;其中,视频呼叫请求中包括音频设备的第一音频参数、第一视频参数以及音频设备的IP地址和端口,音频设备的网络协议IP地址和端口用以通知第二电子设备音频设备收发视频数据的IP地址和端口;Step 202: The audio device sends a video call request to the second electronic device. The video call request includes a first audio parameter of the audio device, a first video parameter, and an IP address and port of the audio device, and a network protocol IP address of the audio device. And an IP address and a port used by the port to notify the second electronic device audio device to send and receive video data;
步骤203:音频设备接收第二电子设备发送的响应消息;响应消息中包括第二电子设备的第二音频参数和第二视频参数,第二视频参数包括第二电子设备支持的视频媒体格式、第二电子设备的IP地址和端口;第二电子设备的IP地址和端口用以指示第二电子设备收发视频数据的IP地址和端口;Step 203: The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, The IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data;
步骤204:音频设备向第二电子设备发送应答消息,以通知第二电子设备音频设备已接收到响应消息;该步骤为可选步骤;Step 204: The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message; the step is an optional step;
步骤205:音频设备向第一电子设备发送包括第二视频参数的通话指示,以指示第一电子设备向音频设备发送视频数据;Step 205: The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send the video data to the audio device.
步骤206:音频设备向第二电子设备发送从第一电子设备接收的视频数据;Step 206: The audio device sends the video data received from the first electronic device to the second electronic device.
步骤207:音频设备监听第二电子设备向音频设备的IP地址和端口发送的视频数据;Step 207: The audio device monitors video data sent by the second electronic device to the IP address and port of the audio device.
步骤208:音频设备将所述第二电子设备发送的视频数据转发给所述第一电子设备。Step 208: The audio device forwards the video data sent by the second electronic device to the first electronic device.
在本实施例中,第一视频参数可以只包括第一电子设备支持的视频媒体格式。当然, 可选的,第一视频参数还可以包括其它参数,例如第一电子设备的编解码能力。In this embodiment, the first video parameter may include only the video media format supported by the first electronic device. of course, Optionally, the first video parameter may further include other parameters, such as a codec capability of the first electronic device.
与第一种情况不同的是,在本实施例中,音频设备用于收发视频数据的IP地址和端口为音频设备本身的IP地址和端口,所以音频设备在步骤202中,音频设备需要发送自身的IP地址和端口给第二电子设备以通知第二电子设备音频设备收发视频数据的IP地址和端口。相应的,在步骤203中,第二电子设备发送的响应消息中,即可使用第二电子设备的IP地址和端口通知音频设备第二电子设备收发视频数据的IP地址和端口。接下来,音频设备可以向第一电子设备发送通话指示,以指示第一电子设备向音频设备发送音频数据,然后音频设备将该接收到的视频数据转发给第二电子设备。进一步,音频设备监听第二电子设备的IP地址和端口向音频设备的IP地址和端口发送的视频数据,并将第二电子设备发送的视频数据转发给第一电子设备。如此,第二电子设备在不需要做任何改变的情况下,即可和音频设备进行视频通信,而音频设备也在不需要进行硬件改进的情况下,借助第一电子设备的视频能力实现和第二电子设备的视频通信。Different from the first case, in this embodiment, the IP address and port used by the audio device to send and receive video data are the IP address and port of the audio device itself, so the audio device needs to send itself in step 202. The IP address and port are given to the second electronic device to inform the second electronic device that the audio device transmits and receives the IP address and port of the video data. Correspondingly, in step 203, in the response message sent by the second electronic device, the IP address and port of the second electronic device can be used to notify the audio device of the IP address and port of the second electronic device to send and receive video data. Next, the audio device may send a call indication to the first electronic device to instruct the first electronic device to transmit audio data to the audio device, and then the audio device forwards the received video data to the second electronic device. Further, the audio device monitors the IP address of the second electronic device and the video data sent by the port to the IP address and port of the audio device, and forwards the video data sent by the second electronic device to the first electronic device. In this way, the second electronic device can perform video communication with the audio device without any change, and the audio device can realize and utilize the video capability of the first electronic device without performing hardware improvement. Two electronic devices for video communication.
本实施例中的方案适用于不具有视频能力但是具有视频播放能力的音频设备。当然,并不排除本实施例中的方案应用于其他场景的情况。The scheme in this embodiment is applicable to an audio device that does not have video capability but has video playback capability. Of course, the case where the solution in this embodiment is applied to other scenarios is not excluded.
需要说明的是,本实施例中与第一种情况相同的内容将不再赘述。It should be noted that the same content as the first case in this embodiment will not be described again.
类似的,视频呼叫请求和响应消息也可以通过SIP协议发送。以下将结合图6举例说明在本实施例中,音频设备和第二电子设备之间的协商过程和视频数据的传输过程。Similarly, video call request and response messages can also be sent over the SIP protocol. The negotiation process and the transmission process of the video data between the audio device and the second electronic device in the present embodiment will be exemplified below with reference to FIG.
如图6所示,音频设备向第二电子设备发送INVITE消息,该INVITE消息包括如下内容:As shown in FIG. 6, the audio device sends an INVITE message to the second electronic device, where the INVITE message includes the following content:
INVITE sip:*125@192.169.1.136 SIP/2.0INVITE sip:*125@192.169.1.136 SIP/2.0
Via:SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094Via: SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094
From:"556614"<sip:556614@192.169.1.136>;tag=564377066From:"556614"<sip:556614@192.169.1.136>;tag=564377066
To:<sip:*125@192.169.1.136>To:<sip:*125@192.169.1.136>
Call-ID:577212191@192.166.1.252Call-ID: 577212191@192.166.1.252
CSeq:1 INVITECSeq: 1 INVITE
Contact:<sip:556614@192.166.1.252:5062>Contact:<sip:556614@192.166.1.252:5062>
Content-Type:application/sdpContent-Type: application/sdp
Allow:INVITE,INFO,PRACK,ACK,BYE,CANCEL,OPTIONS,NOTIFY,REGISTER,SUBSCRIBE,REFER,PUBLISH,UPDATE,MESSAGEAllow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards:70Max-Forwards: 70
User-Agent:Huawei eSpace 7850 2.60.94.24User-Agent: Huawei eSpace 7850 2.60.94.24
Supported:replacesSupported:replaces
Allow-Events:talk,hold,conference,refer,check-sync Allow-Events: talk, hold, conference, refer, check-sync
Content-Length:xxxContent-Length: xxx
v=0V=0
o=huawei 23293 18 IN IP4 10.38.111.220o=huawei 23293 18 IN IP4 10.38.111.220
s=-s=-
c=IN IP4 10.38.111.220//音频设备的IP地址,表示收发音频数据和视频数据的IP地址c=IN IP4 10.38.111.220//IP address of the audio device, indicating the IP address of the audio and video data
t=0 0t=0 0
m=audio 11792 RTP/AVP 0 8 18 9 101//表示收发音频数据的端口为11792,为音频设备的端口m=audio 11792 RTP/AVP 0 8 18 9 101//The port that sends and receives audio data is 11792, which is the port of the audio device.
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=fmtp:18 annexb=noa=fmtp:18 annexb=no
a=rtpmap:9 G722/8000a=rtpmap:9 G722/8000
a=fmtp:101 0-15a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000
a=ptime:20a=ptime:20
m=video 10002 RTP/AVP 106//表示收发视频数据的端口为10002,为音频设备的端口m=video 10002 RTP/AVP 106// indicates that the port for sending and receiving video data is 10002, which is the port of the audio device.
b=AS:512b=AS: 512
a=rtpmap:106 H264/90000a=rtpmap:106 H264/90000
a=fmtp:106 profile-level-id=428028a=fmtp:106 profile-level-id=428028
a=sendrecv//表示音频和视频均为双向通信a=sendrecv// indicates that both audio and video are two-way communication
a=label:11a=label:11
由以上代码段可知,音频设备通过c行通知第二电子设备音频设备收发音频数据和视频数据的IP地址,该IP地址为音频设备的IP地址。通过第一个m行通知第二电子设备自身收发音频数据的端口,通过第二个m行通知第二电子设备音频设备收发视频数据的端口,该端口为音频设备的端口。As can be seen from the above code segment, the audio device notifies the second electronic device audio device of the IP address of the audio data and the video data through the c line, and the IP address is the IP address of the audio device. The port for notifying the second electronic device itself to send and receive audio data through the first m line, and notifying the port of the second electronic device audio device for transmitting and receiving video data through the second m line, the port being the port of the audio device.
其它代码段的含义请参考前述描述的代码段,在此不再赘述。For the meaning of other code segments, please refer to the code segment described above, and details are not described herein.
接下来,第二电子设备根据自己的视频能力向音频设备发送200OK消息,该消息的内容如下: Next, the second electronic device sends a 200 OK message to the audio device according to its own video capability, and the content of the message is as follows:
SIP/2.0/UDPSIP/2.0/UDP
10.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT0135110.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT01351
Record-Route:<sip:10.174.4.63:5060;transport=udp;lr>Record-Route:<sip:10.174.4.63:5060;transport=udp;lr>
Call-ID:asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5Call-ID: asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5
From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5
To:<sip:+96628950005@home1.com>;tag=45vp5pvpTo:<sip:+96628950005@home1.com>;tag=45vp5pvp
CSeq:1 INVITECSeq: 1 INVITE
Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>
Supported:replacesSupported:replaces
Allow:Allow:
MESSAGE,REFER,INFO,NOTIFY,SUBSCRIBE,UPDATE,PRACK,PUBLISH,CANCEL,BYE,OPTIONS,ACK,INVITEMESSAGE, REFER, INFO, NOTIFY, SUBSCRIBE, UPDATE, PRACK, PUBLISH, CANCEL, BYE, OPTIONS, ACK, INVITE
User-Agent:Huawei eSpace 8950 V200R003C00User-Agent: Huawei eSpace 8950 V200R003C00
Content-Length:700Content-Length:700
Content-Type:application/sdpContent-Type: application/sdp
v=0V=0
o=huawei 23293 35 IN IP4 10.174.198.171o=huawei 23293 35 IN IP4 10.174.198.171
s=SBC calls=SBC call
c=IN IP4 10.174.198.171//第二电子设备的IP地址,表示收发音频数据和视频数据的IP地址c=IN IP4 10.174.198.171//IP address of the second electronic device, indicating the IP address of the audio and video data
t=0 0t=0 0
m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101//10000表示收发音频数据的端口m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101//10000 indicates the port for sending and receiving audio data.
a=rtpmap:112 opus/48000a=rtpmap:112 opus/48000
a=fmtp:112 maxcodedaudiobandwidth=48000a=fmtp:112 maxcodedaudiobandwidth=48000
a=rtpmap:9 G722/16000a=rtpmap:9 G722/16000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:97 iLBC/8000a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30 a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15a=fmtp:101 0-15
a=ptime:20a=ptime:20
a=sendrecva=sendrecv
a=crypto:1                    AES_CM_128_HMAC_SHA1_80inline:WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0a=crypto:1 AES_CM_128_HMAC_SHA1_80inline: WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0
m=video 10002 RTP/SAVP 106//10002表示收发视频数据的端口m=video 10002 RTP/SAVP 106//10002 indicates the port for sending and receiving video data.
b=AS:2048b=AS: 2048
a=rtpmap:106 H264/90000a=rtpmap:106 H264/90000
a=fmtp:106 profile-level-id=428028a=fmtp:106 profile-level-id=428028
a=sendrecva=sendrecv
a=label:11a=label:11
a=crypto:1             AES_CM_128_HMAC_SHA1_80inline:UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRH。a=crypto:1 AES_CM_128_HMAC_SHA1_80inline: UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRH.
其它代码段的含义请参考前述描述的代码段,在此不再赘述。For the meaning of other code segments, please refer to the code segment described above, and details are not described herein.
接下来,音频设备向第二电子设备发送ACK消息,以通知第二电子设备音频设备已接收到200OK消息。至此,音频设备和第二电子设备建立了视频通话。Next, the audio device sends an ACK message to the second electronic device to notify the second electronic device that the audio device has received the 200 OK message. At this point, the audio device and the second electronic device establish a video call.
接下来,音频设备指示第一电子设备将视频数据发送给自身,然后再转发给第二电子设备,并且将从第二电子设备接收到的视频数据转发给第一电子设备。Next, the audio device instructs the first electronic device to transmit the video data to itself, and then forwards to the second electronic device, and forwards the video data received from the second electronic device to the first electronic device.
可选的,与第一种情况类似,视频数据在发送之前,可以通过双方均支持的视频媒体格式进行压缩处理,例如通过H.264编解码器标准的压缩处理,所以设备之间传输的视频数据是压缩后的H264视频数据。Optionally, similar to the first case, before the video data is sent, the video data may be compressed by a video media format supported by both parties, for example, by the compression processing of the H.264 codec standard, so the video transmitted between the devices is The data is compressed H264 video data.
可选的,音频设备在接收到第一电子设备发送的视频数据之后,还可以将该视频数据显示在显示屏上进行图像预览。类似的,在接收到第二电子设备发送的视频数据之后,音频设备也可以将该视频数据显示在显示屏上。如此一来,通过音频设备和第一电子设备均可观看到视频数据,可以适用于多人一起视频的场景。Optionally, after receiving the video data sent by the first electronic device, the audio device may further display the video data on the display screen for image preview. Similarly, after receiving the video data sent by the second electronic device, the audio device can also display the video data on the display screen. In this way, the video data can be viewed through both the audio device and the first electronic device, and can be applied to a scene in which multiple people are together with the video.
可选的,在通话结束之后,音频设备还向第一电子设备发送通话结束指示,以指示第一电子设备停止向音频设备发送视频数据。那么第一电子设备在接收到该指示后,关闭摄像头,并停止向音频设备发送视频数据。Optionally, after the call ends, the audio device further sends a call end indication to the first electronic device to instruct the first electronic device to stop sending video data to the audio device. Then, after receiving the indication, the first electronic device turns off the camera and stops transmitting video data to the audio device.
接下来再介绍前述第三种情况下的视频通信方法的执行过程,如图7所示,为本实施例中视频通信方法的流程图。如图7所示,该方法包括:Next, the execution process of the video communication method in the foregoing third case will be described. As shown in FIG. 7, it is a flowchart of the video communication method in this embodiment. As shown in FIG. 7, the method includes:
步骤301:音频设备获取第一电子设备的第一视频参数,第一视频参数包括所述第一电 子设备支持的视频媒体格式、第一电子设备的IP地址和端口;Step 301: The audio device acquires a first video parameter of the first electronic device, where the first video parameter includes the first The video media format supported by the child device, the IP address and port of the first electronic device;
步骤302:音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括音频设备的第一音频参数、第一视频参数以及音频设备的IP地址和端口,音频设备的IP地址和端口用以通知第二电子设备音频设备接收视频数据的IP地址和端口;第一电子设备的IP地址和端口用以通知第二电子设备音频设备发送视频数据的IP地址和端口;Step 302: The audio device sends a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, a first video parameter, and an IP address and port of the audio device, and an IP address of the audio device. And the port is configured to notify the second electronic device audio device of the IP address and port of the video data; the IP address and port of the first electronic device are used to notify the second electronic device audio device to send the IP address and port of the video data;
步骤303:音频设备接收第二电子设备发送的响应消息;响应消息中包括第二电子设备的第二音频参数和第二视频参数,第二视频参数包括第二电子设备支持的视频媒体格式、第二电子设备的IP地址和端口;第二电子设备的IP地址和端口用以指示第二电子设备收发视频数据的IP地址和端口;Step 303: The audio device receives a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes a video media format supported by the second electronic device, The IP address and port of the second electronic device; the IP address and port of the second electronic device are used to indicate the IP address and port of the second electronic device to send and receive video data;
步骤304:音频设备向第二电子设备发送应答消息,以通知第二电子设备音频设备已接收到所述响应消息;该步骤为可选步骤;Step 304: The audio device sends a response message to the second electronic device to notify the second electronic device that the audio device has received the response message; the step is an optional step;
步骤305:音频设备向第一电子设备发送包括第二视频参数的通话指示,以指示第一电子设备向第二电子设备的IP地址和端口发送视频数据;Step 305: The audio device sends a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the IP address and port of the second electronic device.
步骤306:音频设备监听第二电子设备向音频设备的IP地址和端口发送的视频数据。Step 306: The audio device monitors video data sent by the second electronic device to the IP address and port of the audio device.
与前述第一种情况不同的是,在本实施例中,由第一电子设备直接发送视频数据给第二电子设备,但是由音频设备直接接收第二电子设备发送的视频数据。因此,在步骤302中,视频呼叫请求中需要包括音频设备的IP地址和端口、以及第一电子设备的IP地址和端口。音频设备的IP地址和端口用于通知第二电子设备音频设备接收音频数据的IP地址和端口。第一电子设备的IP地址和端口用于通知第二电子设备音频设备发送音频数据的IP地址和端口。因此,在步骤306中,由音频设备自身监听第二电子设备向音频设备的IP地址和端口发送的视频数据。其它部分的实施方式与第一种情况相同,在此不再赘述。Different from the foregoing first case, in the embodiment, the video data is directly transmitted by the first electronic device to the second electronic device, but the video data sent by the second electronic device is directly received by the audio device. Therefore, in step 302, the video call request needs to include the IP address and port of the audio device, and the IP address and port of the first electronic device. The IP address and port of the audio device are used to notify the second electronic device that the audio device receives the IP address and port of the audio data. The IP address and port of the first electronic device are used to notify the second electronic device that the audio device transmits the IP address and port of the audio data. Therefore, in step 306, the audio device itself listens for video data transmitted by the second electronic device to the IP address and port of the audio device. The implementation of the other parts is the same as the first case, and details are not described herein again.
由以上描述可以看出,在本实施例中,音频设备可以借助第一电子设备的视频能力实现视频通信。进一步,因为是由第一电子设备直接将视频数据发送给第二电子设备,通常第一电子设备比音频设备具有更高的编解码能力,所以第二电子设备接收到的视频数据的质量较高。As can be seen from the above description, in the present embodiment, the audio device can implement video communication by means of the video capability of the first electronic device. Further, since the first electronic device directly transmits the video data to the second electronic device, the first electronic device generally has a higher codec capability than the audio device, so the quality of the video data received by the second electronic device is higher. .
可选的,在步骤306之后,音频设备还将接收的视频数据转发给第一电子设备,使得第一电子设备上也能够显示第二电子设备发送的视频数据。如此一来,可以同时通过音频设备和第一电子设备观看到视频画面。Optionally, after step 306, the audio device further forwards the received video data to the first electronic device, so that the video data sent by the second electronic device can also be displayed on the first electronic device. In this way, the video picture can be viewed through the audio device and the first electronic device at the same time.
可选的,在通话结束之后,音频设备向第一电子设备发送通话结束指示,以指示第一电子设备停止向第二电子设备发送视频数据。Optionally, after the call ends, the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop sending the video data to the second electronic device.
以下将继续以SIP为例,结合图8说明本实施例中音频设备和第二电子设备进行通信协商和视频数据传输的过程。The process of performing communication negotiation and video data transmission between the audio device and the second electronic device in this embodiment will be described below with reference to FIG.
首先,音频设备向第二电子设备发送INVITE消息,该消息内容如下:First, the audio device sends an INVITE message to the second electronic device, the content of the message is as follows:
INVITE sip:*125@192.169.1.136 SIP/2.0 INVITE sip:*125@192.169.1.136 SIP/2.0
Via:SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094Via: SIP/2.0/UDP 192.166.1.252:5062;branch=z9hG4bK88078094
From:"556614"<sip:556614@192.169.1.136>;tag=564377066From:"556614"<sip:556614@192.169.1.136>;tag=564377066
To:<sip:*125@192.169.1.136>To:<sip:*125@192.169.1.136>
Call-ID:577212191@192.166.1.252Call-ID: 577212191@192.166.1.252
CSeq:1 INVITECSeq: 1 INVITE
Contact:<sip:556614@192.166.1.252:5062>Contact:<sip:556614@192.166.1.252:5062>
Content-Type:application/sdpContent-Type: application/sdp
Allow:INVITE,INFO,PRACK,ACK,BYE,CANCEL,OPTIONS,NOTIFY,REGISTER,SUBSCRIBE,REFER,PUBLISH,UPDATE,MESSAGEAllow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards:70Max-Forwards: 70
User-Agent:Huawei eSpace 7850 2.60.94.24User-Agent: Huawei eSpace 7850 2.60.94.24
Supported:replacesSupported:replaces
Allow-Events:talk,hold,conference,refer,check-syncAllow-Events: talk, hold, conference, refer, check-sync
Content-Length:xxxContent-Length: xxx
v=0V=0
o=huawei 23293 18 IN IP4 10.38.111.220o=huawei 23293 18 IN IP4 10.38.111.220
s=-s=-
c=IN IP4 10.38.111.220c=IN IP4 10.38.111.220
t=0 0t=0 0
m=audio 11792 RTP/AVP 0 8 18 9 101m=audio 11792 RTP/AVP 0 8 18 9 101
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=fmtp:18 annexb=noa=fmtp:18 annexb=no
a=rtpmap:9 G722/8000a=rtpmap:9 G722/8000
a=fmtp:101 0-15a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000
a=ptime:20a=ptime:20
m=video 10002 RTP/AVP 106m=video 10002 RTP/AVP 106
a=sendaddr:10.174.5.56:10002//第一电子设备的IP地址和端口,表示音频设备发送视频数据的IP地址和端口,以及视频数据是单向发送 a=sendaddr: 10.174.5.56:10002//The IP address and port of the first electronic device, indicating the IP address and port of the audio device to send video data, and the video data is sent in one direction.
a=recvaddr:10.38.111.220:10002//音频设备的IP地址和端口,表示音频设备接收视频数据的IP地址和端口,以及视频数据时单向接收a=recvaddr: 10.38.111.220:10002//The IP address and port of the audio device, indicating the IP address and port of the audio device receiving video data, and one-way receiving of video data.
b=AS:512b=AS: 512
a=rtpmap:106 H264/90000a=rtpmap:106 H264/90000
a=fmtp:106 profile-level-id=428028a=fmtp:106 profile-level-id=428028
a=label:11a=label:11
由该代码段可以看出,通过一个a行定义音频设备接收视频数据的IP地址和端口,该IP地址和端口为音频设备的IP地址和端口。另一个a行定义音频设备发送视频数据的IP地址和端口,该IP地址和端口为第一电子设备的IP地址和端口。音频设备以这两个a行来通知第二电子设备音频设备收发视频数据的IP地址和端口。As can be seen from the code segment, the IP address and port of the audio device receiving the video data are defined by a line a, which is the IP address and port of the audio device. The other line a defines the IP address and port of the audio device that sends the video data, which is the IP address and port of the first electronic device. The audio device notifies the second electronic device audio device of the IP address and port for transmitting and receiving video data by the two a lines.
其它代码段的含义请参考前述描述的代码段,在此不再赘述。For the meaning of other code segments, please refer to the code segment described above, and details are not described herein.
在第二电子设备接收到INVITE消息之后,根据自身的能力回复200OK消息,该消息的内容如下:After receiving the INVITE message, the second electronic device replies with a 200 OK message according to its own capabilities, and the content of the message is as follows:
SIP/2.0/UDPSIP/2.0/UDP
10.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT0135110.174.4.63:5060;branch=z9hG4bK7x71w7bbx090rr9oiw37aw22yT01351
Record-Route:<sip:10.174.4.63:5060;transport=udp;lr>Record-Route:<sip:10.174.4.63:5060;transport=udp;lr>
Call-ID:asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5Call-ID: asbchr1axxvxva1j2hjgja8aj3zz10jvvj2l@ATS.ats-2.home1.com.5
From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5From:"02"<sip:+96628950006@home1.com>;tag=sbc0403ixg3hg0x-CC-5
To:<sip:+96628950005@home1.com>;tag=45vp5pvpTo:<sip:+96628950005@home1.com>;tag=45vp5pvp
CSeq:1 INVITECSeq: 1 INVITE
Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>Contact:<sip:+96628950005@10.174.198.171:5060;transport=udp>
Supported:replacesSupported:replaces
Allow:Allow:
MESSAGE,REFER,INFO,NOTIFY,SUBSCRIBE,UPDATE,PRACK,PUBLISH,CANCEL,BYE,OPTIONS,ACK,INVITEMESSAGE, REFER, INFO, NOTIFY, SUBSCRIBE, UPDATE, PRACK, PUBLISH, CANCEL, BYE, OPTIONS, ACK, INVITE
User-Agent:Huawei eSpace 8950 V200R003C00User-Agent: Huawei eSpace 8950 V200R003C00
Content-Length:700Content-Length:700
Content-Type:application/sdpContent-Type: application/sdp
v=0V=0
o=huawei 23293 35 IN IP4 10.174.198.171o=huawei 23293 35 IN IP4 10.174.198.171
s=SBC call s=SBC call
c=IN IP4 10.174.198.171c=IN IP4 10.174.198.171
t=0 0t=0 0
m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101m=audio 10000 RTP/SAVP 112 9 8 0 18 97 101
a=rtpmap:112 opus/48000a=rtpmap:112 opus/48000
a=fmtp:112 maxcodedaudiobandwidth=48000a=fmtp:112 maxcodedaudiobandwidth=48000
a=rtpmap:9 G722/16000a=rtpmap:9 G722/16000
a=rtpmap:8 PCMA/8000a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000a=rtpmap:18 G729/8000
a=rtpmap:97 iLBC/8000a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15a=fmtp:101 0-15
a=ptime:20a=ptime:20
a=sendrecva=sendrecv
a=crypto:1             AES_CM_128_HMAC_SHA1_80inline:WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0a=crypto:1 AES_CM_128_HMAC_SHA1_80inline: WFhzKzVTeUNsWURVZ0xOSU1yVHhDdDBsUkNwUTd0
m=video 10002 RTP/SAVP 106m=video 10002 RTP/SAVP 106
b=AS:2048b=AS: 2048
a=rtpmap:106 H264/90000a=rtpmap:106 H264/90000
a=fmtp:106 profile-level-id=428028a=fmtp:106 profile-level-id=428028
a=sendrecv//第二电子设备的IP地址为双向通信地址,包括音频数据的通信和视频数据的通信a=sendrecv//The IP address of the second electronic device is a two-way communication address, including communication of audio data and communication of video data
a=label:11a=label:11
a=crypto:1                 AES_CM_128_HMAC_SHA1_80inline:UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRHa=crypto:1 AES_CM_128_HMAC_SHA1_80inline: UDU4cW1pWmUzWENjTHVsbmUyNyt3RFF1WlYrOHRH
由该代码段可以看出,在200OK消息中,通过c行定义第二电子设备的IP地址,通过m行定义第二电子设备的端口。As can be seen from the code segment, in the 200 OK message, the IP address of the second electronic device is defined by the c line, and the port of the second electronic device is defined by the m line.
其它代码段的含义请参考前述描述的代码段,在此不再赘述。For the meaning of other code segments, please refer to the code segment described above, and details are not described herein.
可选的,当第二电子设备不支持从第一电子设备处直接接收视频数据的话,那么第二电子设备就可以回复前述第二种情况中的响应消息给音频设备。 Optionally, when the second electronic device does not support directly receiving video data from the first electronic device, the second electronic device may reply the response message in the foregoing second case to the audio device.
当音频设备接收到本实施例中的200OK消息之后,可以向第二电子设备发送ACK消息。至此,音频设备和第二电子设备之间建立了视频通信。接下来,音频设备按照协商好的规则,发送OpenVideo消息给第一电子设备,以指示第一电子设备打开摄像头并采集视频数据,并将采集的视频数据直接发送给第二电子设备。然后音频设备监听第二电子设备向音频设备的IP地址和端口发送的视频数据。具体的,音频设备监听第二电子设备的IP地址和端口向音频设备的IP地址和端口发送的视频数据。After the audio device receives the 200 OK message in this embodiment, the ACK message may be sent to the second electronic device. So far, video communication has been established between the audio device and the second electronic device. Next, the audio device sends an OpenVideo message to the first electronic device according to the negotiated rule, to instruct the first electronic device to open the camera and collect the video data, and directly send the collected video data to the second electronic device. The audio device then listens to the video data sent by the second electronic device to the IP address and port of the audio device. Specifically, the audio device listens to the IP address of the second electronic device and the video data sent by the port to the IP address and port of the audio device.
可选的,音频设备还将接收的视频数据转发给第一电子设备。Optionally, the audio device further forwards the received video data to the first electronic device.
可选的,视频数据可以是经过双方协商好的双方均支持的H.264标准压缩的H264视频数据。Optionally, the video data may be H264 video data compressed by the H.264 standard supported by both parties.
基于同一发明构思,参考图9所示,为本申请实施例提供的一种视频通信装置的功能框图。该视频通信装置包括:获取单元401、发送单元402以及接收单元403。Based on the same inventive concept, with reference to FIG. 9, a functional block diagram of a video communication apparatus according to an embodiment of the present application is provided. The video communication device includes an acquisition unit 401, a transmission unit 402, and a reception unit 403.
可选的,该视频通信装置可以用于实现本发明图3、图5、图7所示的视频通信方法中的至少一种。具体的配置可以根据实际需要确定。Optionally, the video communication device can be used to implement at least one of the video communication methods shown in FIG. 3, FIG. 5, and FIG. The specific configuration can be determined according to actual needs.
可选的,当该视频通信装置利用软件实现时,可以是一个独立的应用,也可以是其它应用中的一个模块。Optionally, when the video communication device is implemented by using software, it may be a stand-alone application or a module of other applications.
具体的,该视频通信装置用于实现本发明图3所述的视频通信方法时,获取单元可以用于实施图3所示方法的步骤101。发送单元402可以用于实施图3所示方法的步骤102、步骤104和步骤105。接收单元403可以用于实施图3所示方法的步骤103。Specifically, when the video communication device is used to implement the video communication method of FIG. 3, the acquiring unit may be used to implement step 101 of the method shown in FIG. The transmitting unit 402 can be used to implement step 102, step 104, and step 105 of the method shown in FIG. The receiving unit 403 can be used to implement step 103 of the method shown in FIG.
可选的,发送单元402还用于在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向第一电子设备的IP地址和端口发送的视频数据。Optionally, the sending unit 402 is further configured to send a call end indication to the first electronic device after the end of the call, to instruct the first electronic device to stop sending video to the IP address and port of the second electronic device. And monitoring video data sent by the second electronic device to an IP address and port of the first electronic device.
具体的,该该视频通信装置用于实现本发明图5所述的视频通信方法时,获取单元可以用于实施图5所示方法的步骤201。发送单元402可以用于实施图5所示方法的步骤202、步骤204至步骤206及步骤208。接收单元403可以用于实施图5所示方法的步骤203和步骤207。Specifically, when the video communication device is used to implement the video communication method of FIG. 5, the acquiring unit may be used to implement step 201 of the method shown in FIG. 5. The sending unit 402 can be used to implement step 202, step 204 to step 206, and step 208 of the method shown in FIG. The receiving unit 403 can be used to implement steps 203 and 207 of the method shown in FIG.
可选的,发送单元402还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。Optionally, the sending unit 402 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the audio device.
具体的,该该视频通信装置用于实现本发明图7所述的视频通信方法时,获取单元可以用于实施图7所示方法的步骤301。发送单元402可以用于实施图7所示方法的步骤302、步骤304及步骤305。接收单元403可以用于实施图7所示方法的步骤303和步骤306。Specifically, when the video communication device is used to implement the video communication method of the present invention, the acquiring unit may be used to implement step 301 of the method shown in FIG. 7. The sending unit 402 can be used to implement step 302, step 304 and step 305 of the method shown in FIG. The receiving unit 403 can be used to implement steps 303 and 306 of the method shown in FIG.
可选的,发送单元402还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。Optionally, the sending unit 402 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the second electronic device.
前述图3、图5和图7所示的实施例中的视频通信方法中的各种变化方式和具体实例同样适用于本实施例的视频通信装置,通过前述对视频通信方法的详细描述,本领域技术人员 可以清楚的知道本实施例中视频通信装置的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples in the video communication method in the foregoing embodiments shown in FIG. 3, FIG. 5 and FIG. 7 are also applicable to the video communication device of the present embodiment. Through the foregoing detailed description of the video communication method, Field technician The implementation method of the video communication apparatus in this embodiment can be clearly understood, so that the details of the description will not be described in detail herein.
基于同一发明构思,参考图10所示,为本申请实施例提供的一种音频设备的结构框图。该音频设备包括:处理器501、发送器502、接收器503、存储器504和音频组件505。处理器501具体可以是通用的中央处理器(CPU),可以是特定应用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC),可以是一个或多个用于控制程序执行的集成电路。存储器504的数量可以是一个或多个。存储器504可以包括只读存储器(英文:Read Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)和磁盘存储器。存储器504、接收器503和发送器502通过总线与处理器501相连接。接收器503和发送器502用于与外部设备进行网络通信,具体可以通过以太网、无线接入网、无线局域网等网络与外部设备进行通信。接收器503和发送器502可以是物理上相互独立的两个元件,也可以是物理上的同一个元件。音频组件505可以包括听筒、扬声器、麦克风等。Based on the same inventive concept, with reference to FIG. 10, it is a structural block diagram of an audio device according to an embodiment of the present application. The audio device includes a processor 501, a transmitter 502, a receiver 503, a memory 504, and an audio component 505. The processor 501 may be a general-purpose central processing unit (CPU), may be an application specific integrated circuit (ASIC), and may be one or more integrated circuits for controlling program execution. The number of memories 504 can be one or more. The memory 504 may include a read only memory (English: Read Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM for short), and a disk storage. The memory 504, the receiver 503, and the transmitter 502 are connected to the processor 501 via a bus. The receiver 503 and the transmitter 502 are configured to perform network communication with an external device, and specifically communicate with an external device through a network such as an Ethernet, a wireless access network, or a wireless local area network. Receiver 503 and transmitter 502 may be physically separate components or may be physically identical components. The audio component 505 can include an earpiece, a speaker, a microphone, and the like.
可选的,处理器501用于处理音频设备的日常事务,存储器504用于存储处理器501所需要的数据。进一步,存储器504还用于存储通信录。Optionally, the processor 501 is configured to process daily transactions of the audio device, and the memory 504 is configured to store data required by the processor 501. Further, the memory 504 is also used to store the address book.
可选的,处理器501还用于进行视频数据编解码以及音频数据编解码。Optionally, the processor 501 is further configured to perform video data encoding and decoding and audio data encoding and decoding.
可选的,该音频设备可以用于实现本发明图3、图5、图7所示的视频通信方法中的至少一种。具体的配置可以根据实际需要确定。Optionally, the audio device may be used to implement at least one of the video communication methods shown in FIG. 3, FIG. 5, and FIG. The specific configuration can be determined according to actual needs.
具体的,该音频设备用于实现本发明图3所述的视频通信方法时,接收器503,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接。Specifically, when the audio device is used to implement the video communication method of FIG. 3, the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first electronic component. a video media format supported by the device, a network protocol IP address and a port of the first electronic device; the first electronic device and the audio device are paired.
发送器502,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数和所述第一视频参数。The transmitter 502 is configured to send a video call request to the second electronic device, where the video call request includes the first audio parameter of the audio device and the first video parameter.
接收器503还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口。The receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
可选的,发送器502还用于:向所述第二电子设备发送应答消息,以通知所述第二电子设备所述音频设备已接收到所述响应消息;Optionally, the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
发送器502还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向第一电子设备的IP地址和端口发送的视频数据。The transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device, And starting to monitor video data sent by the second electronic device to the IP address and port of the first electronic device.
可选的,发送器502还用于在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向第一电子设备的IP地址和端口发送的视频数据。 Optionally, the transmitter 502 is further configured to send a call end indication to the first electronic device after the end of the call, to instruct the first electronic device to stop sending video to the IP address and port of the second electronic device. And monitoring video data sent by the second electronic device to an IP address and port of the first electronic device.
具体的,该该音频设备用于实现本发明图5所述的视频通信方法时,接收器503,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与音频设备已配对连接。Specifically, when the audio device is used to implement the video communication method of the present invention, the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first a video media format supported by the electronic device; the first electronic device and the audio device are paired.
发送器502,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口。a transmitter 502, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP of the audio device Address and port.
接收器503还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口。The receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
可选的,发送器502还用于:向所述第二电子设备发送应答消息,以通知所述第二电子设备所述音频设备已接收到所述响应消息;Optionally, the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
发送器502还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据;向所述第二电子设备发送从所述第一电子设备接收的视频数据。The transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic device Transmitting video data received from the first electronic device.
接收器503还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The receiver 503 is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
发送器502还用于:将所述第二电子设备发送的视频数据转发给所述第一电子设备。The transmitter 502 is further configured to: forward the video data sent by the second electronic device to the first electronic device.
可选的,发送器502还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。Optionally, the transmitter 502 is further configured to: after the end of the call, send a call end indication to the first electronic device, to instruct the first electronic device to stop sending video data to the audio device.
具体的,该该音频设备用于实现本发明图7所述的视频通信方法时,接收器503,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接。Specifically, when the audio device is used to implement the video communication method of the present invention, the receiver 503 is configured to acquire a first video parameter of the first electronic device, where the first video parameter includes the first a video media format supported by the electronic device, a network protocol IP address and a port of the first electronic device; the first electronic device and the audio device are paired.
发送器502,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口。a transmitter 502, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address of the audio device port.
接收器503还用于:接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口。The receiver 503 is further configured to: receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes The video media format supported by the second electronic device, the IP address and port of the second electronic device.
可选的,发送器502还用于:向所述第二电子设备发送应答消息,以通知所述第二电子设备所述音频设备已接收到所述响应消息;Optionally, the sender 502 is further configured to: send a response message to the second electronic device, to notify the second electronic device that the audio device has received the response message;
发送器502还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据。The transmitter 502 is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device.
接收器503还用于:监听所述第二电子设备向音频设备的IP地址和端口发送的视频数据。The receiver 503 is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
可选的,发送器502还用于:在通话结束之后,向所述第一电子设备发送通话结束指示, 以指示所述第一电子设备停止向所述第二电子设备发送视频数据。Optionally, the transmitter 502 is further configured to: after the end of the call, send a call end indication to the first electronic device, Instructing the first electronic device to stop transmitting video data to the second electronic device.
前述图3、图5及图7所示的实施例中的视频通信方法中的各种变化方式和具体实例同样适用于本实施例的音频设备,通过前述对视频通信方法的详细描述,本领域技术人员可以清楚的知道本实施例中音频设备的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples in the video communication method in the foregoing embodiments shown in FIG. 3, FIG. 5 and FIG. 7 are also applicable to the audio device of the embodiment, and the foregoing detailed description of the video communication method is in the field. The implementation method of the audio device in this embodiment can be clearly understood by the skilled person, so that the details of the specification will not be described in detail herein.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
本发明实施例中,音频设备与第一电子设备配对连接,第一电子设备具有采集视频图像的能力。音频设备利用第一电子设备的视频参数与通话对端(即第二电子设备)进行通信协商,进而建立视频通话。音频设备控制第一电子设备采集视频图像并向第二电子设备发送,以及控制第一电子设备启动监听第二电子设备发送的视频数据,进而实现在不更改音频设备的硬件的前提下,为音频设备增加视频能力。In the embodiment of the present invention, the audio device is paired with the first electronic device, and the first electronic device has the capability of acquiring a video image. The audio device uses the video parameters of the first electronic device to communicate with the call peer (ie, the second electronic device) to establish a video call. The audio device controls the first electronic device to collect the video image and send the video image to the second electronic device, and control the first electronic device to start monitoring the video data sent by the second electronic device, thereby implementing the audio without changing the hardware of the audio device. The device increases video capabilities.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims (18)

  1. 一种视频通信方法,其特征在于,包括:A video communication method, comprising:
    音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device, and the first The electronic device is paired with the audio device;
    所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数和所述第一视频参数;Transmitting, by the audio device, a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device and the first video parameter;
    所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数;所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device; and the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
    所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device, and start monitoring Video data sent by the second electronic device to an IP address and a port of the first electronic device.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。After the call ends, the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop sending video data to the IP address and port of the second electronic device and to listen to the first Video data transmitted by the second electronic device to the IP address and port of the first electronic device.
  3. 如权利要求1或2所述的方法,其特征在于,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述第一电子设备的IP地址,通过m行定义所述第一电子设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式;The method according to claim 1 or 2, wherein the video call request is a request conforming to a Session Initiation Protocol SIP, and in the video call request, the IP address of the first electronic device is defined by c lines. Defining a port of the first electronic device by m rows, and defining a video media format supported by the first electronic device by a row;
    所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口,通过a行定义所述第二电子设备支持的视频媒体格式。The response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
  4. 一种视频通信方法,其特征在于,包括:A video communication method, comprising:
    音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device is paired with the audio device;
    所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口;Transmitting, by the audio device, a video call request to a second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device port;
    所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
    所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据; Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device;
    所述音频设备向所述第二电子设备发送从所述第一电子设备接收的视频数据;Transmitting, by the audio device, video data received from the first electronic device to the second electronic device;
    所述音频设备监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据;The audio device monitors video data sent by the second electronic device to an IP address and a port of the audio device;
    所述音频设备将所述第二电子设备发送的视频数据转发给所述第一电子设备。The audio device forwards video data sent by the second electronic device to the first electronic device.
  5. 如权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。After the call ends, the audio device transmits a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the audio device.
  6. 如权利要求4或5所述的方法,其特征在于,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述音频设备的IP地址,通过m行定义所述音频设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式。The method according to claim 4 or 5, wherein the video call request is a request conforming to a Session Initiation Protocol (SIP), in which the IP address of the audio device is defined by c lines, The m line defines the port of the audio device, and the video media format supported by the first electronic device is defined by a line.
  7. 一种视频通信方法,其特征在于,包括:A video communication method, comprising:
    音频设备获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与所述音频设备已配对连接;Obtaining, by the audio device, a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device, and the first The electronic device is paired with the audio device;
    所述音频设备向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口;Transmitting, by the audio device, a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and a port of the audio device;
    所述音频设备接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;Receiving, by the audio device, a response message sent by the second electronic device; the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the second a video media format supported by the electronic device, an IP address and a port of the second electronic device;
    所述音频设备向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据;Transmitting, by the audio device, a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device;
    所述音频设备监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The audio device listens to video data sent by the second electronic device to an IP address and port of the audio device.
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7 wherein the method further comprises:
    在通话结束之后,所述音频设备向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。After the call ends, the audio device sends a call end indication to the first electronic device to instruct the first electronic device to stop transmitting video data to the second electronic device.
  9. 如权利要求7或8所述的方法,其特征在于,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过一个a行定义所述音频设备的IP地址和端口,通过另一个a行定义所述第一电子设备的IP地址和端口;The method according to claim 7 or 8, wherein the video call request is a request conforming to a Session Initiation Protocol SIP, and in the video call request, an IP address of the audio device is defined by a line a and a port, defining an IP address and a port of the first electronic device by another a line;
    所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口。The response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
  10. 一种视频通信装置,其特征在于,包括:A video communication device, comprising:
    获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
    发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所 述音频设备的第一音频参数和所述第一视频参数;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes Determining a first audio parameter of the audio device and the first video parameter;
    接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device;
    所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据,并启动监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device And initiating monitoring of video data sent by the second electronic device to an IP address and a port of the first electronic device.
  11. 如权利要求10所述的装置,其特征在于,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备的IP地址和端口发送视频数据以及监听所述第二电子设备向所述第一电子设备的IP地址和端口发送的视频数据。The device according to claim 10, wherein the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device to instruct the first electronic device to stop The IP address and port of the second electronic device transmit video data and listen to video data sent by the second electronic device to an IP address and port of the first electronic device.
  12. 如权利要求10或11所述的装置,其特征在于,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述第一电子设备的IP地址,通过m行定义所述第一电子设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式;The apparatus according to claim 10 or 11, wherein the video call request is a request conforming to a Session Initiation Protocol SIP, and in the video call request, the IP address of the first electronic device is defined by c lines. Defining a port of the first electronic device by m rows, and defining a video media format supported by the first electronic device by a row;
    所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口,通过a行定义所述第二电子设备支持的视频媒体格式。The response message is a message conforming to the SIP, in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines, defined by a line a video media format supported by the second electronic device.
  13. 一种视频通信装置,其特征在于,包括:A video communication device, comprising:
    获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device; the first electronic device and the audio device are paired with each other;
    发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的网络协议IP地址和端口;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and a network protocol IP address of the audio device And port;
    接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
    所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述音频设备发送视频数据;向所述第二电子设备发送从所述第一电子设备接收的视频数据;The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to the audio device; to the second electronic The device transmits video data received from the first electronic device;
    所述接收单元还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据;The receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device;
    所述发送单元还用于:将所述第二电子设备发送的视频数据转发给所述第一电子设备。The sending unit is further configured to: forward the video data sent by the second electronic device to the first electronic device.
  14. 如权利要求13所述的装置,其特征在于,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述音频设备发送视频数据。The device according to claim 13, wherein the sending unit is further configured to: after the call ends, send a call end indication to the first electronic device to instruct the first electronic device to stop The audio device sends video data.
  15. 如权利要求13或14所述的装置,其特征在于,所述视频呼叫请求为符合会话初始 协议SIP的请求,在所述视频呼叫请求中,通过c行定义所述音频设备的IP地址,通过m行定义所述音频设备的端口,通过a行定义所述第一电子设备支持的视频媒体格式。The apparatus according to claim 13 or 14, wherein said video call request is in accordance with a session initial a request of the protocol SIP, in the video call request, the IP address of the audio device is defined by c lines, the port of the audio device is defined by m lines, and the video media supported by the first electronic device is defined by a line format.
  16. 一种视频通信装置,其特征在于,包括:A video communication device, comprising:
    获取单元,用于获取第一电子设备的第一视频参数,所述第一视频参数包括所述第一电子设备支持的视频媒体格式、所述第一电子设备的网络协议IP地址和端口;所述第一电子设备与音频设备已配对连接;An acquiring unit, configured to acquire a first video parameter of the first electronic device, where the first video parameter includes a video media format supported by the first electronic device, a network protocol IP address and a port of the first electronic device; The first electronic device and the audio device are paired and connected;
    发送单元,用于向第二电子设备发送视频呼叫请求;其中,所述视频呼叫请求中包括所述音频设备的第一音频参数、所述第一视频参数以及所述音频设备的IP地址和端口;a sending unit, configured to send a video call request to the second electronic device, where the video call request includes a first audio parameter of the audio device, the first video parameter, and an IP address and port of the audio device ;
    接收单元,用于接收所述第二电子设备发送的响应消息;所述响应消息中包括所述第二电子设备的第二音频参数和第二视频参数,所述第二视频参数包括所述第二电子设备支持的视频媒体格式、所述第二电子设备的IP地址和端口;a receiving unit, configured to receive a response message sent by the second electronic device, where the response message includes a second audio parameter and a second video parameter of the second electronic device, where the second video parameter includes the a video media format supported by the second electronic device, an IP address and a port of the second electronic device;
    所述发送单元还用于:向所述第一电子设备发送包括所述第二视频参数的通话指示,以指示所述第一电子设备向所述第二电子设备的IP地址和端口发送视频数据;The sending unit is further configured to: send a call indication including the second video parameter to the first electronic device, to instruct the first electronic device to send video data to an IP address and a port of the second electronic device ;
    所述接收单元还用于:监听所述第二电子设备向所述音频设备的IP地址和端口发送的视频数据。The receiving unit is further configured to: monitor video data sent by the second electronic device to an IP address and a port of the audio device.
  17. 如权利要求16所述的装置,其特征在于,所述发送单元还用于:在通话结束之后,向所述第一电子设备发送通话结束指示,以指示所述第一电子设备停止向所述第二电子设备发送视频数据。The device according to claim 16, wherein the sending unit is further configured to: after the end of the call, send a call end indication to the first electronic device to instruct the first electronic device to stop The second electronic device transmits the video data.
  18. 如权利要求16或17所述的装置,其特征在于,所述视频呼叫请求为符合会话初始协议SIP的请求,在所述视频呼叫请求中,通过一个a行定义所述音频设备的IP地址和端口,通过另一个a行定义所述第一电子设备的IP地址和端口;The apparatus according to claim 16 or 17, wherein said video call request is a request conforming to a Session Initiation Protocol SIP, and in said video call request, an IP address of said audio device is defined by a line a and a port, defining an IP address and a port of the first electronic device by another a line;
    所述响应消息为符合所述SIP的消息,在所述响应消息中,通过c行定义所述第二电子设备的IP地址,通过m行定义所述第二电子设备的端口。 The response message is a message conforming to the SIP, and in the response message, the IP address of the second electronic device is defined by c lines, and the port of the second electronic device is defined by m lines.
PCT/CN2016/085854 2015-06-30 2016-06-15 Video communication method and apparatus WO2017000781A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510374698.8 2015-06-30
CN201510374698.8A CN106331567A (en) 2015-06-30 2015-06-30 Video communication method and device

Publications (1)

Publication Number Publication Date
WO2017000781A1 true WO2017000781A1 (en) 2017-01-05

Family

ID=57607846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085854 WO2017000781A1 (en) 2015-06-30 2016-06-15 Video communication method and apparatus

Country Status (2)

Country Link
CN (1) CN106331567A (en)
WO (1) WO2017000781A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109561049B (en) * 2017-09-26 2021-07-20 浙江宇视科技有限公司 Dynamic access method and device based on monitoring service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966165A (en) * 1997-09-19 1999-10-12 8×8, Inc. Videophone interface arrangement and method therefor
CN1630324A (en) * 2003-12-15 2005-06-22 广州金鹏集团有限公司 Video telephone supporting PSTN service based on IP
JP2008113183A (en) * 2006-10-30 2008-05-15 Kyocera Corp Radio communication system and radio communication method
CN101444077A (en) * 2006-03-09 2009-05-27 思科技术公司 System and method for configuring devices to facilitate video telephony

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592342A (en) * 2003-08-28 2005-03-09 朱德全 Method and apparatus for realizing quasi-visual telephone
JP4172458B2 (en) * 2005-02-28 2008-10-29 ソニー株式会社 Connection control apparatus, communication system, and connection control method
CN101282464B (en) * 2007-04-03 2012-12-19 联想(北京)有限公司 Terminal and method for transferring video
TWI477108B (en) * 2013-02-22 2015-03-11 Quanta Comp Inc Method for building video conference

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966165A (en) * 1997-09-19 1999-10-12 8×8, Inc. Videophone interface arrangement and method therefor
CN1630324A (en) * 2003-12-15 2005-06-22 广州金鹏集团有限公司 Video telephone supporting PSTN service based on IP
CN101444077A (en) * 2006-03-09 2009-05-27 思科技术公司 System and method for configuring devices to facilitate video telephony
JP2008113183A (en) * 2006-10-30 2008-05-15 Kyocera Corp Radio communication system and radio communication method

Also Published As

Publication number Publication date
CN106331567A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
KR100713359B1 (en) Visual TelePhony Method of Capable to Providing Video in Another Display
EP3092793B1 (en) Interactive video conferencing
US10771611B2 (en) System and method for providing personalized audio-video invitations
KR20060090267A (en) System, apparatus, and method for establishing circuit-switched communications via packet-switched network signaling
CN108924872B (en) Data transmission method, terminal and core network equipment
US20100118111A1 (en) Method and apparatus for remote camera control indications in video conferencing
US10602092B2 (en) Personalized audio-video invitations via peer-to-peer connection
WO2015127793A1 (en) Recording method, voice exchanging device, recording server, and recording system
JP2009194674A (en) Communication terminal device and control method of communication terminal device
WO2008052458A1 (en) A method, system and terminal device for acquiring media character information
JP2008167351A (en) Terminal device
US20100083333A1 (en) Receiver Apparatus and Method
WO2017000781A1 (en) Video communication method and apparatus
JP5243336B2 (en) Communication system, communication terminal, communication method, and communication program
US20200329128A1 (en) Dynamic detectability of rtcp-feedback support
JP2006319851A (en) Portable terminal, streaming communication system, streaming communication method, and streaming communication program
WO2017000481A1 (en) Dialing method and apparatus for voice call
JP5163750B2 (en) Multimedia service
US10122896B2 (en) System and method of managing transmission of data between two devices
WO2020192435A1 (en) Multimedia customized ringing signal and color ring back tone playback method, and application server
FR2907621A1 (en) ENRICHMENT OF THE SIGNALING IN A &#34;PUSH TO TALK&#34; COMMUNICATION SESSION BY INSERTING A BUSINESS CARD
JP2006217167A (en) Ip telephone device and ip adapter device
JP7340835B2 (en) Program, information processing method, and information processing device
JP2008085808A (en) Method for calling call setting server
KR100854883B1 (en) Communication Terminal and Method for Caller Identification Display in Communication Terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16817145

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16817145

Country of ref document: EP

Kind code of ref document: A1