WO2017173903A1 - 一种视频通话实现方法、终端及计算机存储介质 - Google Patents
一种视频通话实现方法、终端及计算机存储介质 Download PDFInfo
- Publication number
- WO2017173903A1 WO2017173903A1 PCT/CN2017/075503 CN2017075503W WO2017173903A1 WO 2017173903 A1 WO2017173903 A1 WO 2017173903A1 CN 2017075503 W CN2017075503 W CN 2017075503W WO 2017173903 A1 WO2017173903 A1 WO 2017173903A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video call
- service
- way video
- network quality
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
- H04N7/147—Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
Definitions
- the present invention relates to the field of video calls, and in particular, to a video call implementation method, a terminal, and a computer storage medium.
- VoWiFi Voice over WiFi
- IP Internet Protocol
- VoIP Internet Protocol
- VoIP Internet Protocol
- the video over WiFi (ViWiFi) technology is a video media transmission solution developed on the basis of VoWiFi.
- an embodiment of the present invention provides a video call implementation method, a terminal, and a computer storage medium.
- the embodiment of the invention provides a video call implementation method, including:
- a one-way video call service or a two-way video call service is initiated by using the determined video call mode.
- the determining a video call mode according to the determination result includes:
- the initiating a one-way video call service includes:
- the first identifier indicates that the initiated service is a one-way video call service
- the first service request message is issued.
- the initiating the one-way video call service further includes:
- the method further includes:
- the video call mode is a two-way video call when the judgment result indicates that the second network quality does not satisfy the first preset condition
- the initiating two-way video call service includes:
- the second identifier indicates that the initiated service is a two-way video call service
- the second service request message is issued.
- the method further includes:
- the video call flow corresponding to the video call service before the first moment is removed; the first moment is a one-way video call service or two-way video corresponding to the determined video call mode. The beginning of the call business.
- the embodiment of the invention further provides a terminal, including:
- a monitoring unit configured to monitor network quality of a network environment in which the terminal is located
- An acquiring unit configured to obtain a first network quality of a network environment where the terminal is located
- the determining unit is configured to determine whether the first network quality meets the first preset condition, where the first preset condition indicates that the first network quality cannot bear the two-way video call service;
- Determining a unit configured to determine a video call mode according to the judgment result
- the service initiating unit is configured to initiate a one-way video call service or a two-way video call service by using the determined video call mode.
- the determining unit is configured to: when the determining result indicates that the first network quality meets the first preset condition, determine that the video call mode is a one-way video call;
- the service initiating unit initiates a one-way video call service.
- the service initiation unit is configured to:
- the service initiated by the levy is a one-way video call service; and the first service request message is sent.
- the acquiring unit is configured to obtain a second network quality of a network environment where the terminal is located after performing a one-way video call service;
- the determining unit is configured to determine whether the second network quality meets the first preset condition
- the determining unit is configured to: when the determination result indicates that the second network quality does not satisfy the first preset condition, determine that the video call mode is a two-way video call;
- the service initiating unit is configured to initiate a two-way video call service.
- the terminal further includes:
- the embodiment of the present invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when executed, causing at least one processor to execute the video call implementation method described above.
- the video call implementation method, the terminal, and the computer storage medium provided by the embodiment of the present invention monitor the network quality of the network environment where the terminal is located; obtain the first network quality of the network environment where the terminal is located; and determine whether the first network quality is Satisfying the first preset condition; wherein the first preset condition indicates that the first network quality cannot bear the two-way video call service; determining a video call mode according to the determination result; and using the determined video call mode to initiate a one-way video
- the call service or the two-way video call service controls the video call mode as a one-way video call or a two-way video call according to the network quality of the network environment in which the terminal is located, so that the continuity of the video call can be guaranteed.
- FIG. 1 is a schematic flowchart of a method for implementing a video call according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a method for implementing a video call according to Embodiment 2 of the present invention
- FIG. 3 is a schematic structural diagram of a terminal according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic structural diagram of another terminal according to Embodiment 3 of the present invention.
- ViWiFi technology is a video media transmission technology developed on the basis of VoWiFi, so it is a connectionless application, and its data transmission, like VoWiFi, follows a "best effort".
- the principle of best effort (the network does its best to send messages, and does not provide any guarantee for performance such as delay and reliability). Therefore, after the IP video packet is sent from the remote end, the path it passes is not certain, the delay cannot be guaranteed, and the packet loss is unpredictable.
- network delay and jitter are subject to changes in network conditions, so they are unpredictable and uncertain. This problem has long plagued users and developers.
- the access mode of the ViWiFi voice call is Internet access. Due to the openness and uncontrollability of the Internet network, the circuit domain fallback based on the long-term evolution of voice (VoLTE, Voice over LTE) (CSFB, Circuit Switched Fallback) ), Single Radio Voice Call Continuity (SRVCC), Enhanced Single Radio Voice Call Continuity (eSRVCC), Enhanced Single Radio Voice Call Continuity, etc.
- VoIP Voice over LTE
- CSFB Circuit Switched Fallback
- SRVCC Single Radio Voice Call Continuity
- eSRVCC Enhanced Single Radio Voice Call Continuity
- eSRVCC Enhanced Single Radio Voice Call Continuity
- Enhanced Single Radio Voice Call Continuity etc.
- the above-mentioned programs such as codec optimization and protocol optimization (such as Skype, Facetime, QQ, WeChat, etc. with video call) need to set up a gateway when interworking with other products or operators' large network services.
- the network quality of the network environment in which the terminal is located is monitored; the first network quality of the network environment where the terminal is located is obtained; and whether the first network quality meets the first pre-determination is determined.
- the method for implementing the video call in this embodiment is applied to the terminal, and includes the following steps:
- Step 101 Monitor network quality of a network environment where the terminal is located
- Step 102 Acquire a first network quality of a network environment where the terminal is located;
- Step 103 Determine whether the first network quality meets a first preset condition, where the first preset condition indicates that the first network quality cannot bear a two-way video call service;
- the network quality can be reflected by the Mean Opinion Score (MOS, Mean Opinion Score).
- MOS Mean Opinion Score
- the corresponding first threshold is set to reflect whether the acquired network quality can carry the two-way video call service.
- the network quality at this time is poor, and the two-way video call service cannot be carried.
- the acquired MOS is greater than or equal to the first threshold, the description is performed.
- the network quality is good and can carry two-way video call services.
- the network quality can also be reflected by the network signal strength (dB).
- the network signal strength is usually a negative value. The closer to zero, the worse the network quality is. On the contrary, the farther away from zero, the better the network quality. At this time, it is still necessary to set a corresponding second threshold to reflect whether the acquired network quality can carry the two-way video call service.
- the acquired network signal strength is less than or equal to the second threshold, it indicates that the network quality is good at this time, and can carry the two-way video call service; when the acquired network signal strength is greater than the second threshold, the network quality at this time is indicated. Poor, can not carry two-way video call service.
- the network quality can also be reflected by the network delay.
- a third threshold is set to reflect whether the acquired network quality can carry the two-way video call service.
- the network quality at this time is poor, and the two-way video call service cannot be carried.
- the network quality at this time is indicated.
- it can carry two-way video call service.
- the network delay can be determined by obtaining a pin packet.
- Step 104 Determine a video call mode according to the judgment result.
- Step 105 Initiate a one-way video call service or a two-way video call service by using the determined video call mode.
- the one-way video call service is initiated;
- a two-way video call service is initiated.
- the one-way video call means that only one party of the calling party and the called party can see the transmitted video.
- the two-way video call means that both the calling party and the called party can see the video.
- the initiating one-way video call service includes:
- the first identifier indicates that the initiated service is a one-way video call service
- the first service request message is issued.
- the calling number and the called media address are also added to the first service request message, so that the network side knows the calling party and the corresponding called party, thereby performing negotiation of the one-way video calling service media.
- the first service request message may be an INVITE message
- the calling number and the called media address are added in the INVITE message to form a complete INVITE message.
- the sending the first service request message means: the terminal sends the number to the network side (Application Server (AS) of the IP Multimedia Subsystem (IMS) core network) A service request message to negotiate media corresponding to the one-way video call service.
- AS Application Server
- IMS IP Multimedia Subsystem
- the method may further include:
- the video call mode is a two-way video call when the judgment result indicates that the second network quality does not satisfy the first preset condition
- the initiating two-way video call service includes:
- the second identifier indicates that the initiated service is a two-way video call service
- the second service request message is issued.
- the calling number and the called media address need to be added to the second service request message, so that the network side can know the calling party and the corresponding called party, thereby performing negotiation of the two-way video calling service media.
- the calling number and the called media address are added in the re-INVITE message to form a complete re-INVITE message.
- the sending the second service request message means that the terminal sends the second service request message to the network side (the AS of the IMS core network) to negotiate the media corresponding to the two-way video call service.
- the video call flow corresponding to the video call service before the first moment is removed; the first moment is a one-way video corresponding to the determined video call mode.
- the video call flow corresponding to the one-way video call service is removed (ie, deleted).
- Video call flow ie, media that is negotiated by the two-way video call service).
- a video call is made using a WiFi network, that is, a ViWiFi service is performed.
- Urgent needs.
- the method for implementing the video call is to monitor the network quality of the network environment where the terminal is located, obtain the first network quality of the network environment where the terminal is located, and determine whether the first network quality meets the first preset. a condition that the first preset condition indicates that the first network quality cannot carry a two-way video call service; determining a video call mode according to the determination result; and using the determined video call mode to initiate a one-way video call service or a two-way video
- the call service controls the video call mode to be a one-way video call or a two-way video call according to the network quality of the network environment in which the terminal is located, so that the continuity of the video call can be guaranteed.
- the second network quality of the network environment where the terminal is located is obtained; determining whether the second network quality meets the first preset condition; and when the determination result represents the second
- the video call mode is determined to be a two-way video call; the two-way video call service is initiated, and when the network quality satisfies the condition of the two-way video call, the two-way video call is performed, thereby further ensuring the video call.
- Continuity at the same time, also enhances the user experience.
- this embodiment describes in detail how to perform a video call in the application scenario of the ViWiFi service.
- the application scenario of this embodiment is that user A and user B perform ViWiFi service.
- the user A is the calling party and the user B is the called party.
- the solution of the embodiment is implemented by the ViWiFi client.
- FIG. 2 is a schematic flowchart of performing a video call according to an embodiment of the present invention. As shown in Figure 2, the process includes the following steps:
- Step 201 User A's ViWiFi client monitors the quality of the WiFi network where User A is located.
- Step 202 It is found that the WiFi quality of the current user A is poor, and the two-way video call service cannot be performed; at this time, the user A wants to make a video call; the ViWiFi client of the user A is The aDP in the SDP carried by the INVITE is marked as sendonly, and the calling number and the called media address are added to the INVITE message, and a service request message is initiated to the AS of the IMS core network (initiating one-way video call service), that is, the INVITE message is sent. ;
- the quality of the WiFi network can be reflected by MOS.
- MOS the better the quality of the WiFi network.
- MOS the worse the WiFi network.
- a corresponding first threshold is required to reflect whether the acquired WiFi network quality can carry the two-way video call service.
- the quality of the WiFi network at this time is poor, and the two-way video call service cannot be carried.
- the acquired MOS is greater than or equal to the first threshold, the quality of the WiFi network is good. It can carry two-way video call service.
- the quality of the WiFi network can also be reflected by the network signal strength (dB).
- the network signal strength is usually a negative value. The closer to zero, the worse the quality of the WiFi network is. On the contrary, the farther away from zero, the better the quality of the WiFi network. . At this time, it is still necessary to set a corresponding second threshold to reflect whether the acquired WiFi network quality can carry the two-way video call service.
- the acquired network signal strength is less than or equal to the second threshold, it indicates that the WiFi network quality is good at this time, and can carry the two-way video call service; when the acquired network signal strength is greater than the second threshold, the WiFi is indicated at this time.
- the network quality is poor and cannot carry two-way video call services.
- the quality of the WiFi network can also be reflected by the network delay.
- a third threshold is set to reflect whether the acquired WiFi network quality can carry the two-way video call service.
- the obtained network delay is greater than the third threshold, it indicates that the WiFi network quality is poor at this time, and the two-way video call service cannot be carried; when the acquired network delay is less than or equal to the third threshold, the WiFi is indicated at this time.
- the network quality is good and can carry two-way video call services.
- the network delay can be determined by obtaining a pin packet.
- Step 203 The AS receives the service request message, and sends a service request message to the called party (the user B).
- the AS after receiving the service request message (INVITE message), the AS needs to perform transmission related processing on the received service request message, and then send the processed service request message (new INVITE message) to the called party.
- Step 204 After receiving the service request message, the ViWiFi client of user B sends a response message (200 OK message) to the AS;
- Step 205 After receiving the response message, the AS sends a response message (200 OK message) to the calling party (User A).
- steps 202 to 205 the role of steps 202 to 205 is to perform media negotiation (one-way video call).
- Step 206 User A and User B perform a one-way video call.
- Step 207 During the one-way video call, the ViWiFi client of the user A continues to monitor the quality of the WiFi network where the user A is located; the current user A's WiFi quality has the two-way video call bandwidth requirement, and the user A's ViWiFi client automatically Initiating a standard two-way video call request to the AS;
- User A's ViWiFi client sends a re-INVITE message to the AS;
- the ViWiFi client of the user A is marked with a line in the SDP carried by the re-INVITE, and adds the calling number and the called media address in the re-INVITE message to initiate a service request message to the AS, that is, send re -INVITE message.
- Step 208 After receiving the service request message, the AS sends a service request message to the called party (User B).
- the AS after receiving the service request message (re-INVITE message), the AS needs to perform transmission related processing on the received service request message, and then process the processed service request message (new The re-INVITE message is sent to the called party.
- Step 209 After receiving the service request message, the ViWiFi client of the user B sends a response message (200 OK message) to the AS;
- Step 210 After receiving the response message, the AS sends a response message (200 OK message) to the calling party (User A).
- steps 207 to 210 the role of steps 207 to 210 is to perform media negotiation (two-way video call).
- Step 211 User A and User B perform a two-way video call.
- Step 212 The ViWiFi client of the user A sends a BYE message to the AS to automatically remove the original one-way video call stream.
- Step 213 After receiving the BYE message, the AS sends a BYE message to the user AB to automatically remove the original one-way video call stream.
- the solution provided in this embodiment detects the current network state of user A before initiating a video call, and provides a one-way if the current network quality is insufficient to meet the requirements of the two-way video call. video call.
- the one-way video call when the network status of user A changes again and the network quality meets the requirements for two-way video calls, the one-way video call is automatically switched to the two-way video call, thereby solving the problem of ViWiFi call quality control.
- the solution provided by the embodiment of the present invention combines the one-way video call with the ViWiFi service quality (network quality), and determines the current network quality of the user as a trigger mechanism of the service through the client or the terminal, so that the continuity of the call can be effectively ensured. .
- the one-way video call technology is embedded in the ViWiFi product, which improves the service flexibility, ensures the user's urgent video call demand, effectively improves the user experience and improves the user. Satisfaction.
- the video call is based on the two-way video media stream transmission, that is, in addition to transmitting the video stream of the user, the video stream that is transmitted by the peer end is received, and after adopting the solution of the embodiment of the present invention,
- the one-way video call technology is adopted, that is, only the video stream of the peer is sent without receiving the video stream of the opposite end or only the video stream of the opposite end without transmitting its own video stream. In this way, at least half of the bandwidth of the original two-way video call can be saved, and the problem of poor video call quality or even a broken link caused by insufficient network signal can be avoided.
- the embodiment provides a terminal.
- the terminal includes:
- the monitoring unit 31 is configured to monitor network quality of a network environment where the terminal is located;
- the obtaining unit 32 is configured to obtain the first network quality of the network environment where the terminal is located;
- the determining unit 33 is configured to determine whether the first network quality meets the first preset condition, where the first preset condition indicates that the first network quality cannot bear the two-way video call service;
- the determining unit 34 is configured to determine a video call mode according to the determination result
- the service initiating unit 35 is configured to initiate a one-way video call service or a two-way video call service by using the determined video call mode.
- the network quality can be reflected by MOS.
- MOS the higher the MOS, the better the network quality.
- MOS the worse the network.
- the corresponding first threshold is set to reflect whether the acquired network quality can carry the two-way video call service.
- the network quality at this time is poor, and the two-way video call service cannot be carried.
- the acquired MOS is greater than or equal to the first threshold, the network quality is good at this time. Carry two-way video call service.
- the network quality can also be reflected by the network signal strength (dB).
- the network signal strength is usually a negative value. The closer to zero, the worse the network quality is. On the contrary, the farther away from zero, the better the network quality. At this time, it is still necessary to set a corresponding second threshold to reflect whether the acquired network quality can carry the two-way video call service.
- the acquired network signal strength is less than or equal to the second threshold, it indicates that the network quality is good at this time, and can carry the two-way video call service; when the acquired network signal strength is greater than the second threshold, the network quality at this time is indicated. Poor, can not carry two-way video call service.
- the network quality can also be reflected by the network delay.
- a third threshold is set to reflect whether the acquired network quality can carry the two-way video call service.
- the network quality at this time is poor, and the two-way video call service cannot be carried.
- the network quality at this time is indicated.
- it can carry two-way video call service.
- the network delay can be determined by obtaining a pin packet.
- the determining unit 34 determines that the video call mode is a one-way video call; and when the determination result indicates that the first network quality does not satisfy the first When a predetermined condition is met, the determining unit 34 determines that the video call mode is a two-way video call.
- the service initiating unit 35 initiates a one-way video call service
- the service initiating unit 35 When it is determined that the video call mode is a two-way video call, the service initiating unit 35 initiates a two-way video call service.
- the one-way video call means that only one party of the calling party and the called party can see the transmitted video; correspondingly, the two-way video call means that both the calling party and the called party can see the video.
- the service initiating unit 35 is specifically configured as follows:
- the first identifier indicates that the initiated service is a one-way video call service; and the first service request message is sent.
- the service initiating unit 35 further adds a calling number and a called media address in the first service request message, so that the network side knows the calling party and the corresponding called party, thereby performing one-way video calling service media.
- the first service request message may be an INVITE message
- the service initiating unit 35 adds the calling number and the called media address in the INVITE message to form a complete INVITE message.
- the sending the first service request message means: the service initiating unit 35 sends the first service request message to the network side (AS of the IMS core network), so as to negotiate a one-way video call service corresponding to media.
- the acquiring unit 32 is configured to obtain a second network quality of a network environment where the terminal is located after performing a one-way video call service.
- the determining unit 33 is configured to determine whether the second network quality meets the first preset condition
- the determining unit 34 is configured to: when the determination result indicates that the second network quality does not satisfy the first preset condition, determine that the video call mode is a two-way video call;
- the service initiating unit 35 is configured to initiate a two-way video call service.
- the service initiating unit 35 is specifically configured as follows:
- the second service request message is issued.
- the service initiating unit 35 still adds the calling number and the called media address in the second service request message, so that the network side knows the calling party and the corresponding called party. Thereby, the negotiation of the two-way video call service media is performed.
- the second service request message may be a re-INVITE message
- the service initiating unit 35 adds the calling number and the called media address in the re-INVITE message to form a complete re-INVITE message.
- the terminal may further include:
- the dismantling unit 36 is configured to perform a one-way video call service or a two-way video call service, and remove the video call flow corresponding to the video call service before the first moment; the first moment is a one-way corresponding to the determined video call mode. The beginning of the video call service or two-way video call service.
- the teardown unit 36 removes the video corresponding to the one-way video call service.
- a call flow that is, deleting the media negotiated by the one-way video call service
- the dismantling The unit 36 removes the video call flow corresponding to the two-way video call service (ie, deletes the media negotiated by the two-way video call service).
- the monitoring unit 31, the service initiating unit 35, and the dismantling unit 36 may be implemented by a central processing unit (CPU), a microprocessor (MCU, a digital control unit), and a digital signal processor (DSP) in the terminal.
- CPU central processing unit
- MCU microprocessor
- DSP digital signal processor
- a Digital Signal Processor or a Field-Programmable Gate Array (FPGA) is implemented in combination with a communication chip;
- the obtaining unit 32, the determining unit 33, and the determining unit 34 can be implemented by a CPU, an MCU, or DSP or FPGA implementation.
- a video call is made using a WiFi network, that is, a ViWiFi service is performed.
- a WiFi network that is, a ViWiFi service is performed.
- the monitoring unit 31 monitors the network quality of the network environment where the terminal is located; the obtaining unit 32 obtains the first network quality of the network environment where the terminal is located; The unit 33 determines whether the first network quality meets the first preset condition, where the first preset condition indicates that the first network quality cannot bear the two-way video call service; the determining unit 34 determines according to the determination result.
- a video call mode the service initiating unit 35 initiates a one-way video call service or a two-way video call service by using the determined video call mode, and controls the video call mode to be a one-way video call according to the network quality of the network environment in which the terminal is located. Two-way video call, so that the continuity of the video call can be guaranteed.
- the acquiring unit 32 acquires the second network quality of the network environment where the terminal is located; and the determining unit 33 determines whether the second network quality meets the first preset. a condition; when the judgment result indicates that the second network quality does not satisfy the first preset condition, the determining unit 34 determines that the video call mode is a two-way video call; and the service initiating unit 35 initiates a two-way video call service, when When the network quality satisfies the conditions of the two-way video call, the two-way video call is performed, thereby further ensuring the continuity of the video call and improving the user experience.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention may be employed in one or more of its A computer program product embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.
- a computer usable storage medium including but not limited to disk storage and optical storage, etc.
- 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.
- an embodiment of the present invention further provides a computer storage medium, where the computer storage medium includes a set of instructions, when the instruction is executed, causing at least one processor to perform the video call implementation method described in the embodiment of the present invention. .
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明公开了一种视频通话实现方法,包括:监测终端所处网络环境的网络质量;获取到所述终端所处网络环境的第一网络质量;判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;根据判断结果,确定视频通话模式;利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。本发明同时还公开了一种终端及计算机存储介质。
Description
本发明涉及视频通话领域,尤其涉及一种视频通话实现方法、终端及计算机存储介质。
VoWiFi(Voice over WiFi)技术即网络协议(IP,Internet Protocol)电话,其基本思想是将模拟信号数字化,通过语音压缩编码、打包分组、分配路由、存储交换、解包解压等交换处理在IP网络上或者因特网(Internet)上实现实时语音通信。而ViWiFi(Video over WiFi)技术是在VoWiFi基础上发展起来的一种视频媒体传输方案。
众所周知,视频流传递会比语音流传递占用更多的带宽,所以对WiFi的带宽要求更高。而对于应用提供商、甚至运营商来说,现有WiFi的传输通道已经存在很高的不可控因素,所以当用户使用ViWiFi业务时,想要保证较高的通话质量就难上加难了。
基于此,业界有很多采用基于编解码优化或协议优化来提高通话体验的方案,然而这种方案在应用产品区域内通话时是有一定优化效果的,但是如果与其他产品或运营商大网业务互通时仍然需要架设网关进行编解码转换和协议转换,那么在网关进行转换时就必然有会对通话质量产生二次影响,造成通话的不连续性。
综上所述,如何解决ViWiFi业务通话的不连续性依然是目前亟待解决的问题。
发明内容
为解决现有存在的技术问题,本发明实施例提供一种视频通话实现方法、终端及计算机存储介质。
本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种视频通话实现方法,包括:
监测终端所处网络环境的网络质量;
获取到所述终端所处网络环境的第一网络质量;
判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;
根据判断结果,确定视频通话模式;
利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
上述方案中,所述根据判断结果,确定视频通话模式,包括:
判断结果表征所述第一网络质量满足所述第一预设条件时,确定视频通话模式为单向视频通话;
相应地,发起单向视频通话业务。
上述方案中,所述发起单向视频通话业务,包括:
在第一业务请求消息所携带的会话描述协议(SDP,Session Description Protocol)中设置第一标识;所述第一标识表征发起的业务为单向视频通话业务;
发出所述第一业务请求消息。
上述方案中,所述发起单向视频通话业务,还包括:
在所述第一业务请求消息中添加主叫号码及被叫媒体地址。
上述方案中,进行单向视频通话业务后,所述方法还包括:
获取到所述终端所处网络环境的第二网络质量;
判断所述第二网络质量是否满足所述第一预设条件;
当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;
发起双向视频通话业务。
上述方案中,所述发起双向视频通话业务,包括:
在第二业务请求消息所携带的SDP中设置第二标识;所述第二标识表征发起的业务为双向视频通话业务;
发出所述第二业务请求消息。
上述方案中,所述方法还包括:
进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
本发明实施例还提供了一种终端,包括:
监测单元,配置为监测所述终端所处网络环境的网络质量;
获取单元,配置为获取到所述终端所处网络环境的第一网络质量;
判断单元,配置为判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;
确定单元,配置为根据判断结果,确定视频通话模式;
业务发起单元,配置为利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
上述方案中,所述确定单元,配置为:判断结果表征所述第一网络质量满足所述第一预设条件时,确定视频通话模式为单向视频通话;
相应地,业务发起单元发起单向视频通话业务。
上述方案中,所述业务发起单元,配置为:
在第一业务请求消息所携带的SDP中设置第一标识;所述第一标识表
征发起的业务为单向视频通话业务;以及发出所述第一业务请求消息。
上述方案中,所述获取单元,配置为进行单向视频通话业务后,获取到所述终端所处网络环境的第二网络质量;
所述判断单元,配置为判断所述第二网络质量是否满足所述第一预设条件;
所述确定单元,配置为当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;
所述业务发起单元,配置为发起双向视频通话业务。
上述方案中,所述终端还包括:
拆除单元,配置为进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
本发明实施例又提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的视频通话实现方法。
本发明实施例提供的视频通话实现方法、终端及计算机存储介质,监测终端所处网络环境的网络质量;获取到所述终端所处网络环境的第一网络质量;判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;根据判断结果,确定视频通话模式;利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务,根据终端所处的网络环境的网络质量,控制视频通话模式为单向视频通话或双向视频通话,如此,能保证视频通话的连续性。
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本发明实施例一视频通话的实现方法流程示意图;
图2为本发明实施例二视频通话的实现方法流程示意图;
图3为本发明实施例三一种终端结构示意图;
图4为本发明实施例三另一种终端结构示意图。
下面结合附图及实施例对本发明再作进一步详细的描述。
正如背景技术所描述的那样,ViWiFi技术是在VoWiFi基础上发展起来的视频媒体传输技术,因此它是一种面向无连接的应用,其数据传输与VoWiFi一样,都遵循一种“尽力而为”(best effort)的原则(网络尽最大的可能性来发送报文,对时延、可靠性等性能不提供任何保证)。所以IP视频包从远端发出后,其所经过的路径并不确定,时延无法保证,丢包也不可预料。然而网络时延和抖动是随着网络状况的好坏而变化的,所以具有不可测性和不确定性。此问题长期困扰着用户和研发人员。
为了解决该问题,目前很多应用提供商从编解码优化(比如OPUS、H.265、H.264、VP8、VP9等)、协议优化等方面来提高视频通话质量。
目前ViWiFi语音通话的接入方式为Internet接入,由于Internet网络的开放性和不可控性,虽然现阶段基于长期演进上的语音(VoLTE,Voice over LTE)的电路域回落(CSFB,Circuit Switched Fallback)、单一无线语音呼叫连续性(SRVCC,Single Radio Voice Call Continuity)、增强的单一无线语音呼叫连续性(eSRVCC,Enhanced Single Radio Voice Call Continuity)等
技术已经在运营商的核心网设备中得到很好地运用。但是,对于ViWiFi业务来说,上述采用编解码优化、协议优化等方案(比如:Skype、Facetime、QQ、微信等具备视频通话的应用)与其它产品或运营商大网业务互通时,需要架设网关进行编解码转换和协议转换,网关的转换会带来质量问题(丢包和信令传输效率),同时也会带来负载均衡、额外投资等诸问题。
综上所述,业界对ViWiFi的语音回落和业务优化尚未得出很好的技术方案。
基于此,在本发明的各种实施例中:监测终端所处网络环境的网络质量;获取到所述终端所处网络环境的第一网络质量;判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;根据判断结果,确定视频通话模式;利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
实施例一
本实施例视频通话的实现方法,如图1所示,应用于终端,包括以下步骤:
步骤101:监测终端所处网络环境的网络质量;
步骤102:获取到所述终端所处网络环境的第一网络质量;
步骤103:判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;
这里,所述网络质量可以通过平均意见值(MOS,Mean Opinion Score)来反映,MOS越高说明网络质量越好,相反,MOS越低说明网络较差。实际应用时,需要设置对应的第一阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的MOS小于第一阈值时,说明此时的网络质量较差,不能承载双向视频通话业务;当获取的MOS大于等于第一阈值时,说明此
时的网络质量较好,能承载双向视频通话业务。
实际应用时,所述网络质量也可以通过网络信号强度(dB)来反映,网络信号强度通常为负值,越接近零说明网络质量越差,相反,越远离零说明网络质量越好。此时,仍需要设置对应的第二阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的网络信号强度小于等于第二阈值时,说明此时的网络质量较好,能承载双向视频通话业务;当获取的网络信号强度大于第二阈值时,说明此时的网络质量较差,不能承载双向视频通话业务。
所述网络质量还可以通过网络时延反映,网络时延越小说明网络质量越好,相反,网络时延越大说明网络较差。实际应用时,需要设置对应的第三阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的网络时延大于第三阈值时,说明此时的网络质量较差,不能承载双向视频通话业务;当获取的网络时延小于等于第三阈值时,说明此时的网络质量较好,能承载双向视频通话业务。
其中,实际应用时,可以通过获取pin包的方式,确定网络时延。
步骤104:根据判断结果,确定视频通话模式;
当判断结果表征所述第一网络质量满足所述第一预设条件时,确定视频通话模式为单向视频通话;当判断结果表征所述第一网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话。
步骤105:利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
具体地,当确定视频通话模式为单向视频通话时,发起单向视频通话业务;或者,
当确定视频通话模式为双向视频通话时,发起双向视频通话业务。
其中,所述单向视频通话是指:主叫与被叫只有一方能看到传输的视
频;相应地,所述双向视频通话是指:主叫与被叫均能看到视频。
所述发起单向视频通话业务,具体包括:
在第一业务请求消息所携带的SDP中设置第一标识;所述第一标识表征发起的业务为单向视频通话业务;
发出所述第一业务请求消息。
这里,还需要在所述第一业务请求消息中添加主叫号码及被叫媒体地址,以便让网络侧获知主叫及对应的被叫,从而进行单向视频通话业务媒体的协商。
实际应用时,所述第一业务请求消息可以为邀请(INVITE)消息,在INVITE所携带的SDP中a行设置为:=sendonly(第一标识),以发起单向视频通话业务。同时,在INVITE消息中添加主叫号码及被叫媒体地址,以形成完整的INVITE消息。
所述发出所述第一业务请求消息,是指:所述终端向所述网络侧(IP多媒体子系统(IMS,IP Multimedia Subsystem)核心网的应用服务器(AS,Application Server))发送所述第一业务请求消息,以便协商单向视频通话业务对应的媒体。
在一实施例中,进行单向视频通话业务后,该方法还可以包括:
获取到所述终端所处网络环境的第二网络质量;
判断所述第二网络质量是否满足所述第一预设条件;
当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;
发起双向视频通话业务。
其中,所述发起双向视频通话业务,具体包括:
在第二业务请求消息所携带的SDP中设置第二标识;所述第二标识表征发起的业务为双向视频通话业务;
发出所述第二业务请求消息。
这里,实际应用时,仍需要在所述第二业务请求消息中添加主叫号码及被叫媒体地址,以便让网络侧获知主叫及对应的被叫,从而进行双向视频通话业务媒体的协商。
实际应用时,所述第二业务请求消息可以为重邀请(re-INVITE)消息,在re-INVITE所携带的SDP中a行设置为:=send(第二标识),以发起双向视频通话业务。同时,在re-INVITE消息中添加主叫号码及被叫媒体地址,以形成完整的re-INVITE消息。
所述发出所述第二业务请求消息,是指:所述终端向所述网络侧(IMS核心网的AS)发送所述第二业务请求消息,以便协商双向视频通话业务对应的媒体。
实际应用时,当进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
具体来说,当所述第一时刻前的视频通话业务为单向视频通话业务时,即确定的视频通话模式为双向视频通话时,拆除单向视频通话业务所对应的视频通话流(即删除单向视频通话业务所协商的媒体);当所述第一时刻前的视频通话业务为双向视频通话业务时,即确定的视频通话模式为单向视频通话时,拆除双向视频通话业务所对应的视频通话流(即删除双向视频通话业务所协商的媒体)。
本发明实施例提供的视频通话的实现方法,可以应用在以下应用场景:
利用WiFi网络进行视频通话,即进行ViWiFi业务。实时监测终端所处WiFi网络环境的网络质量;根据WiFi网络的网络质量,控制视频通话模式为单向视频通话或双向视频通话,即在单向视频通话于双向视频通话之间进行切换,这样,至少可以在网络质量不佳时满足用户对视频通话的
迫切需求。
本发明实施例提供的视频通话的实现方法,监测终端所处网络环境的网络质量;获取到所述终端所处网络环境的第一网络质量;判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;根据判断结果,确定视频通话模式;利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务,根据终端所处的网络环境的网络质量,控制视频通话模式为单向视频通话或双向视频通话,如此,能保证视频通话的连续性。
另外,进行单向视频通话业务后,获取到所述终端所处网络环境的第二网络质量;判断所述第二网络质量是否满足所述第一预设条件;当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;发起双向视频通话业务,当网络质量满足双向视频通话的条件时,进行双向视频通话,进一步保证了视频通话的连续性,同时,还提升了用户体验。
实施例二
本实施例在实施例一的基础上,来详细描述在ViWiFi业务的应用场景下,如何进行视频通话的过程。
本实施例的应用场景为:用户A与用户B进行ViWiFi业务。其中,用户A为主叫,用户B为被叫;各自通过ViWiFi客户端来实现本实施例的方案。
图2为本实施例进行视频通话的流程示意图。如图2所示,该流程包括以下步骤:
步骤201:用户A的ViWiFi客户端监测用户A所处的WiFi网络质量;
步骤202:发现当前用户A所处的WiFi质量较差,不能进行双向视频通话业务;此时用户A希望进行视频通话;用户A的ViWiFi客户端在
INVITE所携带的SDP中a行标明=sendonly,并在INVITE消息中添加主叫号码和被叫媒体地址,向IMS核心网的AS发起业务请求消息(发起单向视频通话业务),即发送INVITE消息;
这里,WiFi网络质量可以通过MOS来反映,MOS越高说明WiFi网络质量越好,相反,MOS越低说明WiFi网络较差。实际应用时,需要设置对应的第一阈值,以体现获取的WiFi网络质量是否能承载双向视频通话业务。
具体地,当获取的MOS小于第一阈值时,说明此时的WiFi网络质量较差,不能承载双向视频通话业务;当获取的MOS大于等于第一阈值时,说明此时的WiFi网络质量较好,能承载双向视频通话业务。
实际应用时,所述WiFi网络质量也可以通过网络信号强度(dB)来反映,网络信号强度通常为负值,越接近零说明WiFi网络质量越差,相反,越远离零说明WiFi网络质量越好。此时,仍需要设置对应的第二阈值,以体现获取的WiFi网络质量是否能承载双向视频通话业务。
具体地,当获取的网络信号强度小于等于第二阈值时,说明此时的WiFi网络质量较好,能承载双向视频通话业务;当获取的网络信号强度大于第二阈值时,说明此时的WiFi网络质量较差,不能承载双向视频通话业务。
所述WiFi网络质量还可以通过网络时延反映,网络时延越小说明WiFi网络质量越好,相反,网络时延越大说明WiFi网络较差。实际应用时,需要设置对应的第三阈值,以体现获取的WiFi网络质量是否能承载双向视频通话业务。
具体地,当获取的网络时延大于第三阈值时,说明此时的WiFi网络质量较差,不能承载双向视频通话业务;当获取的网络时延小于等于第三阈值时,说明此时的WiFi网络质量较好,能承载双向视频通话业务。
其中,实际应用时,可以通过获取pin包的方式,确定网络时延。
在INVITE所携带的SDP中a行标明=sendonly后,说明就启动了单向视频通话业务。
步骤203:AS收到业务请求消息,向被叫(用户B)发送业务请求消息;
这里,AS收到业务请求消息(INVITE消息)后,需要对收到的业务请求消息进行传输相关处理,然后将处理后的业务请求消息(新的INVITE消息)发送给被叫。
步骤204:用户B的ViWiFi客户端收到业务请求消息后,发送响应消息(200OK消息)至AS;
步骤205:AS收到响应消息后,向主叫(用户A)发送响应消息(200OK消息);
这里,步骤202至205的作用是进行媒体协商(单向视频通话)。
步骤206:用户A与用户B进行单向视频通话;
步骤207:进行单向视频通话的过程中,用户A的ViWiFi客户端继续监测用户A所处的WiFi网络质量;发现当前用户A的WiFi质量具备双向视频通话带宽要求,用户A的ViWiFi客户端自动发起标准双向视频通话请求至AS;
换句话说,用户A的ViWiFi客户端向AS发送re-INVITE消息;
其中,用户A的ViWiFi客户端在re-INVITE所携带的SDP中a行标明=send,并在re-INVITE消息中添加主叫号码和被叫媒体地址,向AS发起业务请求消息,即发送re-INVITE消息。
步骤208:AS收到业务请求消息后,向被叫(用户B)发送业务请求消息;
这里,AS收到业务请求消息(re-INVITE消息)后,需要对收到的业务请求消息进行传输相关处理,然后将处理后的业务请求消息(新的
re-INVITE消息)发送给被叫。
步骤209:用户B的ViWiFi客户端收到业务请求消息后,发送响应消息(200OK消息)至AS;
步骤210:AS收到响应消息后,向主叫(用户A)发送响应消息(200OK消息);
这里,步骤207至210的作用是进行媒体协商(双向视频通话)。
步骤211:用户A与用户B进行双向视频通话;
步骤212:用户A的ViWiFi客户端向AS发送BYE消息,以将原有的单向视频通话流自动拆除;
步骤213:AS收到BYE消息后,向用户AB发送BYE消息,以将原有的单向视频通话流自动拆除。
从上面的描述中可以看出,本实施例提供的方案,在发起视频通话前,先对用户A当前的网络状态进行探测,若当前的网络质量不足以满足双向视频通话要求时,提供单向视频通话。在单向视频通话过程中,当用户A的网络状态又发生变化,网络质量满足双向视频通话要求时,则自动进行单向视频通话向双向视频通话的切换,从而解决ViWiFi通话质量控制的问题。
采用本发明实施例的方案,具有以下有益效果:
首先,在通话连续性方面,WiWiFi业界没有有效的解决方案,仅存在单向视频流传输的方案,且仅应用于监控等相关业务场景。而本发明实施例提供的方案,将单向视频通话与ViWiFi业务质量(网络质量)结合,通过客户端或终端判断用户当前网络质量作为业务的触发机制,如此,能有效地保证通话的连续性。
其次,将单向视频通话技术嵌入到ViWiFi产品中,提高了业务灵活性,保证了用户迫切的视频通话需求,有效的提高了用户的体验,提高了用户
的满意度。
第三,采用现有的方案时,视频通话是基于双向视频媒体流传输数据的,即除了发送自身的视频流外,还要接收对端传送的视频流,采用本发明实施例的方案后,在网络带宽不变的前提下,网络质量差时则采用单向视频通话技术,即只发自身的视频流而不接收对端的视频流或只接收对端的视频流而不发送自身的视频流,这样,就能节约原有双向视频通话至少一半的带宽,避免了网络信号不足导致的视频通话质量差甚至断链问题的发生。
实施例三
为实现本发明实施例的方法,本实施例提供了一种终端,如图3所示,该终端包括:
监测单元31,配置为监测所述终端所处网络环境的网络质量;
获取单元32,配置为获取到所述终端所处网络环境的第一网络质量;
判断单元33,配置为判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;
确定单元34,配置为根据判断结果,确定视频通话模式;
业务发起单元35,配置为利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
其中,所述网络质量可以通过MOS来反映,MOS越高说明网络质量越好,相反,MOS越低说明网络较差。实际应用时,需要设置对应的第一阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的MOS小于第一阈值时,说明此时的网络质量较差,不能承载双向视频通话业务;当获取的MOS大于等于第一阈值时,说明此时的网络质量较好,能承载双向视频通话业务。
实际应用时,所述网络质量也可以通过网络信号强度(dB)来反映,网络信号强度通常为负值,越接近零说明网络质量越差,相反,越远离零说明网络质量越好。此时,仍需要设置对应的第二阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的网络信号强度小于等于第二阈值时,说明此时的网络质量较好,能承载双向视频通话业务;当获取的网络信号强度大于第二阈值时,说明此时的网络质量较差,不能承载双向视频通话业务。
所述网络质量还可以通过网络时延反映,网络时延越小说明网络质量越好,相反,网络时延越大说明网络较差。实际应用时,需要设置对应的第三阈值,以体现获取的网络质量是否能承载双向视频通话业务。
具体地,当获取的网络时延大于第三阈值时,说明此时的网络质量较差,不能承载双向视频通话业务;当获取的网络时延小于等于第三阈值时,说明此时的网络质量较好,能承载双向视频通话业务。
其中,实际应用时,可以通过获取pin包的方式,确定网络时延。
当判断结果表征所述第一网络质量满足所述第一预设条件时,所述确定单元34确定视频通话模式为单向视频通话;当判断结果表征所述第一网络质量不满足所述第一预设条件时,所述确定单元34确定视频通话模式为双向视频通话。
相应地,当确定视频通话模式为单向视频通话时,所述业务发起单元35发起单向视频通话业务;或者,
当确定视频通话模式为双向视频通话时,所述业务发起单元35发起双向视频通话业务。
其中,所述单向视频通话是指:主叫与被叫只有一方能看到传输的视频;相应地,所述双向视频通话是指:主叫与被叫均能看到视频。
所述业务发起单元35,具体配置为:
在第一业务请求消息所携带的SDP中设置第一标识;所述第一标识表征发起的业务为单向视频通话业务;以及发出所述第一业务请求消息。
这里,所述业务发起单元35还会在所述第一业务请求消息中添加主叫号码及被叫媒体地址,以便让网络侧获知主叫及对应的被叫,从而进行单向视频通话业务媒体的协商。
实际应用时,所述第一业务请求消息可以为邀请(INVITE)消息,所述业务发起单元35在INVITE所携带的SDP中a行设置为:=sendonly(第一标识),以发起单向视频通话业务。同时,所述业务发起单元35在INVITE消息中添加主叫号码及被叫媒体地址,以形成完整的INVITE消息。
所述发出所述第一业务请求消息,是指:所述业务发起单元35向所述网络侧(IMS核心网的AS)发送所述第一业务请求消息,以便协商单向视频通话业务对应的媒体。
在一实施例中,所述获取单元32,配置为进行单向视频通话业务后,获取到所述终端所处网络环境的第二网络质量;
所述判断单元33,配置为判断所述第二网络质量是否满足所述第一预设条件;
所述确定单元34,配置为当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;
所述业务发起单元35,配置为发起双向视频通话业务。
其中,所述业务发起单元35,具体配置为:
在第二业务请求消息所携带的SDP中设置第二标识;所述第二标识表征发起的业务为双向视频通话业务;以及
发出所述第二业务请求消息。
这里,实际应用时,所述业务发起单元35仍会在所述第二业务请求消息中添加主叫号码及被叫媒体地址,以便让网络侧获知主叫及对应的被叫,
从而进行双向视频通话业务媒体的协商。
实际应用时,所述第二业务请求消息可以为重邀请(re-INVITE)消息,所述业务发起单元35在re-INVITE所携带的SDP中a行设置为:=send(第二标识),以发起双向视频通话业务。同时,所述业务发起单元35在re-INVITE消息中添加主叫号码及被叫媒体地址,以形成完整的re-INVITE消息。
所述发出所述第二业务请求消息,是指:所述业务发起单元35向所述网络侧(IMS核心网的AS)发送所述第二业务请求消息,以便协商双向视频通话业务对应的媒体。
实际应用时,如图4所示,该终端还可以包括:
拆除单元36,配置为进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
具体来说,当所述第一时刻前的视频通话业务为单向视频通话业务时,即确定的视频通话模式为双向视频通话时,所述拆除单元36拆除单向视频通话业务所对应的视频通话流(即删除单向视频通话业务所协商的媒体);当所述第一时刻前的视频通话业务为双向视频通话业务时,即确定的视频通话模式为单向视频通话时,所述拆除单元36拆除双向视频通话业务所对应的视频通话流(即删除双向视频通话业务所协商的媒体)。
实际应用时,所述监测单元31、业务发起单元35及拆除单元36可由终端中的中央处理器(CPU,Central Processing Unit)、微处理器(MCU,Micro Control Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)结合通信芯片实现;所述获取单元32、判断单元33、确定单元34可由终端中的CPU、MCU、
DSP或FPGA实现。
本发明实施例提供的视频通话的实现方案,可以应用在以下应用场景:
利用WiFi网络进行视频通话,即进行ViWiFi业务。实时监测终端所处WiFi网络环境的网络质量;根据WiFi网络的网络质量,控制视频通话模式为单向视频通话或双向视频通话,即在单向视频通话于双向视频通话之间进行切换,这样,至少可以在网络质量不佳时满足用户对视频通话的迫切需求。
本发明实施例提供的视频通话的实现方案,所述监测单元31监测终端所处网络环境的网络质量;所述获取单元32获取到所述终端所处网络环境的第一网络质量;所述判断单元33判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;所述确定单元34根据判断结果,确定视频通话模式;所述业务发起单元35利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务,根据终端所处的网络环境的网络质量,控制视频通话模式为单向视频通话或双向视频通话,如此,能保证视频通话的连续性。
另外,进行单向视频通话业务后,所述获取单元32获取到所述终端所处网络环境的第二网络质量;所述判断单元33判断所述第二网络质量是否满足所述第一预设条件;当判断结果表征所述第二网络质量不满足所述第一预设条件时,所述确定单元34确定视频通话模式为双向视频通话;所述业务发起单元35发起双向视频通话业务,当网络质量满足双向视频通话的条件时,进行双向视频通话,进一步保证了视频通话的连续性,同时,还提升了用户体验。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其
中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
基于此,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行本发明实施例所描述的视频通话实现方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
Claims (13)
- 一种视频通话实现方法,所述方法包括:监测终端所处网络环境的网络质量;获取到所述终端所处网络环境的第一网络质量;判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;根据判断结果,确定视频通话模式;利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
- 根据权利要求1所述的方法,其中,所述根据判断结果,确定视频通话模式,包括:判断结果表征所述第一网络质量满足所述第一预设条件时,确定视频通话模式为单向视频通话;相应地,发起单向视频通话业务。
- 根据权利要求2所述的方法,其中,所述发起单向视频通话业务,包括:在第一业务请求消息所携带的会话描述协议SDP中设置第一标识;所述第一标识表征发起的业务为单向视频通话业务;发出所述第一业务请求消息。
- 根据权利要求3所述的方法,其中,所述发起单向视频通话业务,还包括:在所述第一业务请求消息中添加主叫号码及被叫媒体地址。
- 根据权利要求2所述的方法,其中,进行单向视频通话业务后,所述方法还包括:获取到所述终端所处网络环境的第二网络质量;判断所述第二网络质量是否满足所述第一预设条件;当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;发起双向视频通话业务。
- 根据权利要求5所述的方法,其中,所述发起双向视频通话业务,包括:在第二业务请求消息所携带的SDP中设置第二标识;所述第二标识表征发起的业务为双向视频通话业务;发出所述第二业务请求消息。
- 根据权利要求1至6任一项所述的方法,其中,所述方法还包括:进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
- 一种终端,所述终端包括:监测单元,配置为监测所述终端所处网络环境的网络质量;获取单元,配置为获取到所述终端所处网络环境的第一网络质量;判断单元,配置为判断所述第一网络质量是否满足第一预设条件;其中,所述第一预设条件表征所述第一网络质量不能承载双向视频通话业务;确定单元,配置为根据判断结果,确定视频通话模式;业务发起单元,配置为利用确定的视频通话模式,发起单向视频通话业务或双向视频通话业务。
- 根据权利要求8所述的终端,其中,所述确定单元,配置为:判断结果表征所述第一网络质量满足所述第一预设条件时,确定视频通话模式为单向视频通话;相应地,业务发起单元发起单向视频通话业务。
- 根据权利要求9所述的终端,其中,所述业务发起单元,配置为:在第一业务请求消息所携带的SDP中设置第一标识;所述第一标识表征发起的业务为单向视频通话业务;以及发出所述第一业务请求消息。
- 根据权利要求9所述的终端,其中,所述获取单元,配置为进行单向视频通话业务后,获取到所述终端所处网络环境的第二网络质量;所述判断单元,配置为判断所述第二网络质量是否满足所述第一预设条件;所述确定单元,配置为当判断结果表征所述第二网络质量不满足所述第一预设条件时,确定视频通话模式为双向视频通话;所述业务发起单元,配置为发起双向视频通话业务。
- 根据权利要求8至11任一项所述的终端,其中,所述终端还包括:拆除单元,配置为进行单向视频通话业务或双向视频通话业务后,拆除第一时刻前视频通话业务所对应的视频通话流;所述第一时刻为与确定的视频通话模式对应的单向视频通话业务或双向视频通话业务的开始时刻。
- 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至7任一项所述的视频通话实现方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610218874.3 | 2016-04-08 | ||
| CN201610218874.3A CN107277420A (zh) | 2016-04-08 | 2016-04-08 | 一种视频通话实现方法及终端 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017173903A1 true WO2017173903A1 (zh) | 2017-10-12 |
Family
ID=60000206
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/075503 Ceased WO2017173903A1 (zh) | 2016-04-08 | 2017-03-02 | 一种视频通话实现方法、终端及计算机存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107277420A (zh) |
| WO (1) | WO2017173903A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110351014A (zh) * | 2019-07-12 | 2019-10-18 | 平安普惠企业管理有限公司 | 数据处理方法、装置、计算机可读存储介质和计算机设备 |
| WO2022116992A1 (zh) * | 2020-12-01 | 2022-06-09 | 华为技术有限公司 | 通话方法及电子设备 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109756797A (zh) * | 2017-11-07 | 2019-05-14 | 阿里巴巴集团控股有限公司 | 双上联方法、光网络管理设备以及光传输系统 |
| CN110650109B (zh) * | 2018-06-26 | 2022-03-01 | 展讯通信(上海)有限公司 | 单向视频场景下回复特定响应消息的方法、装置及终端 |
| CN112054914B (zh) * | 2019-06-06 | 2023-10-27 | 中移互联网有限公司 | 一种宽带质量的评价方法、装置及电子设备 |
| CN113301289B (zh) * | 2020-02-21 | 2023-04-11 | 深圳市万普拉斯科技有限公司 | 通信处理方法、装置、电子设备和存储介质 |
| CN119562300A (zh) * | 2023-09-04 | 2025-03-04 | 北京小米移动软件有限公司 | 终端控制方法及装置、电子设备及存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207783A (zh) * | 2006-12-21 | 2008-06-25 | 乐金电子(中国)研究开发中心有限公司 | 自适应网络状况的可视电话及其网络自适应调整方法 |
| CN103905771A (zh) * | 2012-12-28 | 2014-07-02 | 腾讯科技(深圳)有限公司 | 视频通信方法及用户终端 |
| US9204092B2 (en) * | 2013-12-30 | 2015-12-01 | Telefonaktiebolaget L M Ericsson (Publ) | Internet protocol video telephony with carrier grade voice |
| CN105359515A (zh) * | 2013-07-26 | 2016-02-24 | 高通股份有限公司 | 视频电话中的视频暂停指示 |
| CN105406890A (zh) * | 2015-11-28 | 2016-03-16 | 广东欧珀移动通信有限公司 | 一种通信终端中的数据传输方法、装置及通信终端 |
| US9445051B1 (en) * | 2015-08-14 | 2016-09-13 | Qualcomm Incorporated | Sender side video telephony downgrade |
-
2016
- 2016-04-08 CN CN201610218874.3A patent/CN107277420A/zh active Pending
-
2017
- 2017-03-02 WO PCT/CN2017/075503 patent/WO2017173903A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207783A (zh) * | 2006-12-21 | 2008-06-25 | 乐金电子(中国)研究开发中心有限公司 | 自适应网络状况的可视电话及其网络自适应调整方法 |
| CN103905771A (zh) * | 2012-12-28 | 2014-07-02 | 腾讯科技(深圳)有限公司 | 视频通信方法及用户终端 |
| CN105359515A (zh) * | 2013-07-26 | 2016-02-24 | 高通股份有限公司 | 视频电话中的视频暂停指示 |
| US9204092B2 (en) * | 2013-12-30 | 2015-12-01 | Telefonaktiebolaget L M Ericsson (Publ) | Internet protocol video telephony with carrier grade voice |
| US9445051B1 (en) * | 2015-08-14 | 2016-09-13 | Qualcomm Incorporated | Sender side video telephony downgrade |
| CN105406890A (zh) * | 2015-11-28 | 2016-03-16 | 广东欧珀移动通信有限公司 | 一种通信终端中的数据传输方法、装置及通信终端 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110351014A (zh) * | 2019-07-12 | 2019-10-18 | 平安普惠企业管理有限公司 | 数据处理方法、装置、计算机可读存储介质和计算机设备 |
| CN110351014B (zh) * | 2019-07-12 | 2022-10-21 | 平安普惠企业管理有限公司 | 数据处理方法、装置、计算机可读存储介质和计算机设备 |
| WO2022116992A1 (zh) * | 2020-12-01 | 2022-06-09 | 华为技术有限公司 | 通话方法及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107277420A (zh) | 2017-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017173903A1 (zh) | 一种视频通话实现方法、终端及计算机存储介质 | |
| US8885603B2 (en) | Handover of calls between access networks | |
| US11799922B2 (en) | Network core facilitating terminal interoperation | |
| US9838441B2 (en) | Hybrid communications system using peer-to-peer and centralized architecture | |
| CN102457477B (zh) | Ims多媒体优先级业务会话处理方法和装置 | |
| JP2010521833A (ja) | 呼制御トランザクションのための不活性タイマー閾値の動的調整 | |
| US9826072B1 (en) | Network-terminal interoperation using compatible payloads | |
| CN104486293B (zh) | 无线VoIP环境下基于网络和终端能力的媒体协商方法和系统 | |
| US12028382B2 (en) | Communication method, communication apparatus, and communication system | |
| US11206320B2 (en) | Method and apparatus for implementing congestion control negotiation | |
| WO2018072284A1 (zh) | 一种业务通信方法及设备 | |
| CN102137093A (zh) | 媒体流处理方法及媒体网关 | |
| US10750027B1 (en) | Call control in telephony-capable communications networks | |
| CN112311802A (zh) | 信息传输方法和信息传输装置 | |
| JP5729222B2 (ja) | 電話端末 | |
| JP2011029703A (ja) | Sipサーバ装置及び呼接続システム | |
| CN108540678A (zh) | 会议电话实现方法、装置及多通终端 | |
| JP6348875B2 (ja) | 中継装置、呼制御システム、呼制御方法、および、呼制御プログラム | |
| CN104683610A (zh) | 一种提高VoIP语音质量的方法和设备 | |
| CN105099990B (zh) | 媒体录制方法、装置和系统 | |
| CN116264672A (zh) | 视频通话方法、基站、计算设备及计算机可读存储介质 | |
| CN103166940A (zh) | 服务质量动态协商及优化方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17778567 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.02.2019) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17778567 Country of ref document: EP Kind code of ref document: A1 |