WO2021120511A1 - Network session switching method and apparatus, and computer device and storage medium - Google Patents
Network session switching method and apparatus, and computer device and storage medium Download PDFInfo
- Publication number
- WO2021120511A1 WO2021120511A1 PCT/CN2020/091181 CN2020091181W WO2021120511A1 WO 2021120511 A1 WO2021120511 A1 WO 2021120511A1 CN 2020091181 W CN2020091181 W CN 2020091181W WO 2021120511 A1 WO2021120511 A1 WO 2021120511A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network
- video
- client
- mode
- network session
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1083—In-session procedures
Definitions
- the embodiments of the present application relate to the field of cloud technology, and in particular to a method, device, computer equipment, and storage medium for switching network sessions.
- Video conference is a multi-person network conference system implemented by cloud video conference system.
- the cloud video conferencing system uses virtual machines to replace traditional expensive hardware resources, effectively solving the differences in video conferencing systems composed of different terminals (computers, mobile phones, conference terminals) and different networks (private networks, local area networks, Internet, mobile networks). Constitutional issues.
- multiple clients establish network connections through a cloud video conference system and enter the same conference room.
- Each client uploads its own video stream and audio stream, and downloads the video stream and audio stream of other clients in the same conference room, thereby realizing a video conference.
- a method, device, computer equipment, and storage medium for switching a network session are provided.
- a method for switching a network session is executed by a computer device, and the method includes:
- a second user interface is displayed, and the second user interface is an interface when the local client and the other client use the voice mode to conduct the network conversation.
- a network conversation device includes:
- the display module is configured to display a first user interface, where the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation;
- a switching module for switching the network session from the video mode to the voice mode in response to the network environment being worse than the first condition
- the display module is configured to display a second user interface, and the second user interface is an interface when the local client and the other clients use the voice mode to conduct the network conversation.
- a non-volatile storage medium storing computer-readable instructions.
- the computer-readable instructions When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for switching a network session.
- a computer device includes a memory and a processor, and computer-readable instructions are stored in the memory.
- the processor executes the steps of a method for switching a network session.
- Fig. 1 is a block diagram of a computer system provided by an exemplary embodiment of the present application
- Fig. 2 is a flowchart of a method for switching a network session provided by an exemplary embodiment of the present application
- Fig. 3 is a flowchart of a method for switching a network session provided by another exemplary embodiment of the present application.
- FIGS. 4 and 5 are schematic diagrams of user interfaces when a method for switching a network session provided by another exemplary embodiment of the present application is implemented on a mobile terminal;
- FIGS. 6 to 9 are schematic diagrams of user interfaces when a method for switching a network session provided by another exemplary embodiment of the present application is implemented on a computer;
- Fig. 10 is a structural block diagram of a device for switching a network session provided by an exemplary embodiment of the present application.
- Fig. 11 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application.
- Fig. 12 is a structural block diagram of a server provided by an exemplary embodiment of the present application.
- Cloud technology refers to a kind of hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data.
- the general term for network technology, information technology, integration technology, management platform technology, and application technology based on cloud computing business model applications can form a resource pool, which can be used on demand, flexible and convenient.
- Cloud computing technology will become an important support.
- the back-end service of the technical network system requires a large amount of computing and storage resources, such as video websites, image websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the back-end system for logical processing. Data of different levels will be processed separately, and all types of industry data need to be powerful The backing of the system can only be achieved through cloud computing.
- Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed.
- the network that provides resources is called the “cloud.”
- the resources in the “cloud” can be infinitely expanded, and can be obtained at any time, used on demand, expanded at any time, and paid for use.
- the cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
- the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer.
- Service Software as a Service
- SaaS can also be deployed directly on IaaS.
- PaaS is a platform on which software runs, such as a database or web container. SaaS is a variety of business software, such as web portals or SMS group senders. Generally speaking, SaaS and PaaS are the upper layer relative to IaaS.
- Cloud Call Center It is a call center system built based on cloud computing technology. Enterprises do not need to purchase any software or hardware systems. They only need to have basic conditions such as personnel and venues to quickly own their own call center. The software and hardware platform, communication resources, daily maintenance and services are provided by the server vendor. It has many characteristics such as short construction period, low investment, low risk, flexible deployment, strong system capacity scalability, and low operation and maintenance costs; whether it is a telemarketing center or a customer service center, enterprises can set up a service simply by renting services on demand. A full-featured, stable, and reliable call center system with seats that can be distributed across the country and call access throughout the country.
- Cloud meeting It is an efficient, convenient and low-cost meeting form based on cloud computing technology. Users only need to perform simple and easy-to-use operations through the Internet interface to quickly and efficiently share voice, data files and videos with teams and customers around the world, and complex technologies such as data transmission and processing in the meeting are served by the cloud meeting The quotient helps users to operate.
- the cloud conference system supports multi-server dynamic cluster deployment and provides multiple high-performance servers, which greatly improves conference stability, security and availability.
- video conferencing has been welcomed by many users because it can greatly improve communication efficiency, continue to reduce communication costs, and bring about internal management upgrades. It has been widely used in government, military, transportation, transportation, finance, operators, education, and enterprises. And other fields. There is no doubt that after the use of cloud computing in video conferencing, it will be more attractive in terms of convenience, speed and ease of use, which will surely stimulate the arrival of a new wave of video conferencing applications.
- Cloud Social is a virtual social application mode for interactive applications of the Internet of Things, cloud computing, and mobile Internet. It aims to establish a well-known "resource sharing relationship graph" to develop online social networking.
- the main feature of cloud social networking is A large number of social resources are unified and evaluated to form an effective pool of resources to provide users with services on demand. The more users who participate in sharing, the greater the value that can be created.
- Network session A communication session (session) constructed between at least two clients (or user accounts) through Internet technology.
- Network sessions include but are not limited to: video mode and voice mode.
- the video mode is a mode for conducting audio and video conversations based on video streams and audio streams
- the voice mode is a mode for conducting audio conversations based on audio streams.
- This application provides a solution for automatic switching of network sessions.
- the client When the client is in a weak network environment, it can automatically switch the network session from the video mode to the voice mode, so as to maximize the guarantee that the network session can proceed smoothly in the harsh network session environment.
- Fig. 1 is a block diagram of a computer system 100 provided by an exemplary embodiment of the present application.
- the computer system 100 includes: a first terminal 120, a server 140, and a second terminal 160.
- the first terminal 120 installs and runs an application program supporting network sessions.
- the application can be a conference client that supports web sessions, a social client that integrates web session functions, an e-commerce client that integrates web session functions, a game client that integrates web session functions, and those that integrate web session functions. Any of other clients.
- the first terminal 120 is a terminal used by the first user.
- the client in this document includes any one of an APP (Application, application) client, a webpage client, an applet client, and a quick application client.
- the first terminal 120 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, or a smart watch, etc., but is not limited thereto.
- the terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
- the first terminal 120 is connected to the server 140 through a wireless network or a wired network.
- the server 140 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center.
- the server 140 includes a processor 144 and a storage 142, and the storage 142 further includes a network session module 1421 and a storage module 1422.
- the network session module 1421 is used to construct a network session between at least two clients.
- the storage module 1422 is used to store the account and password of each client and the context information of each network session.
- the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers.
- the server 140 can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, and intermediate Cloud servers for basic cloud computing services such as software services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
- the server 140 is responsible for the main calculation work, and the first terminal 120 and the second terminal 160 are responsible for the secondary calculation work; or the server 140 is responsible for the secondary calculation work, and the first terminal 120 and the second terminal 160 are responsible for the main calculation work; Or, the server 140, the first terminal 120, and the second terminal 160 adopt a distributed computing architecture to perform collaborative computing.
- the second terminal 160 installs and runs an application program supporting network sessions.
- the application can be a web session client, a social client integrated with a web session function, an e-commerce client with a web session function, a game client with a web session function, and other clients with a web session function. Any of them.
- the second terminal 160 is a terminal used by a second user, and the client in this document includes any one of an APP client, a web client, an applet client, and a quick app client.
- the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application on different control system platforms.
- the first terminal 120 may generally refer to one of multiple terminals
- the second terminal 160 may generally refer to one of multiple terminals. This embodiment only uses the first terminal 120 and the second terminal 160 as examples.
- the device types of the first terminal 120 and the second terminal 160 are the same or different.
- the device types include smart phones, tablet computers, e-book readers, MP3 players, MP4 players, laptop computers and desktop computers. At least one.
- the terminal includes a smart phone as an example.
- the number of the aforementioned terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or more.
- the embodiments of the present application do not limit the number of terminals and device types.
- Fig. 2 shows a flowchart of a method for switching a network session shown in an exemplary embodiment of the present application.
- the method is applied to the client (terminal) shown in FIG. 1 as an example for illustration.
- the method includes:
- a first user interface is displayed.
- the first user interface is an interface when the local client and other clients use a video mode to conduct a network session.
- the web session provides video mode and voice mode.
- the video mode is a mode for conducting network conversations based on video streams and audio streams
- the voice mode is a mode for conducting network conversations based on audio streams.
- the local client is the client in the local terminal, and the other clients are the clients in other terminals.
- the local client logs in with the user account of the current user, and other clients log in with the user accounts of other users.
- this application does not exclude the scenario of anonymous chat without logging in to the user account.
- the user starts the local client in the terminal, and uses the local client to establish a network session with other clients.
- the network session has a network session number or a network session room, and the local client and other clients communicate in the same network session. Among them, there is one or more than one other clients.
- the first user interface is displayed in the local client.
- the first user interface includes a first video window corresponding to the local client and a second video window corresponding to other clients.
- the first video window is used to display camera images or shared images captured by the first camera corresponding to the local client;
- the second video window is used to display camera images or shared images captured by the second camera corresponding to other clients.
- Step 204 In response to the network environment being worse than the first condition, switch the network session from the video mode to the voice mode.
- the condition that the network environment is worse than the first condition includes but is not limited to: the network speed is lower than the first threshold and is not 0, or the packet loss rate is higher than the second threshold. For example, if the first threshold is 50 kb, intermittent freezes will appear in the video screen at this time.
- the local client periodically measures the network speed or packet loss rate during the duration of the network session.
- the network session is automatically switched from the video mode to the voice mode.
- the video mode there are video streams and audio streams in the network session.
- the local client terminal stops uploading and downloading the video stream in the network session (the embodiment that only stops uploading or only stops downloading is not excluded), and keeps uploading and downloading the audio stream in the network session.
- uploading refers to uploading a video stream and/or audio stream generated by the local client
- downloading refers to downloading a video stream and/or audio stream generated by other clients.
- Step 206 Display a second user interface.
- the second user interface is an interface when the local client and other clients use the voice mode to conduct a network conversation.
- the second user interface is displayed in the local client.
- there is no second video window (or an empty second video window) on the second user interface that is, the camera images collected by the second cameras corresponding to other clients cannot be seen.
- the first video window does not exist on the second user interface (or an empty first video window is displayed), that is, the camera images collected by the first camera corresponding to the other client cannot be seen.
- an avatar corresponding to another client is used to replace the second video window or the displayed content in the second video window.
- the avatar corresponding to the local client is used to replace the first video window or the displayed content in the first video window.
- the method provided in this embodiment switches the network session from the video mode to the voice mode in response to the network environment being worse than the first condition.
- the client When the client is in a weak network environment, it reduces the occupation of network bandwidth by the video part of the video mode, so that the voice mode can be performed smoothly, ensuring that the network session can still be used normally in the weak network environment, and reducing the network session Failure rate in a poor network environment.
- Fig. 3 shows a flowchart of a method for switching a network session shown in another exemplary embodiment of the present application.
- the method is applied to the client (terminal) shown in FIG. 1 as an example for illustration.
- the method includes:
- Step 202 Display a first user interface.
- the first user interface is an interface when the local client and other clients use a video mode to conduct a network session.
- the user starts the local client in the terminal, and uses the local client to establish a network session with other clients.
- the network session has a network session number or a network session room, and the local client and other clients communicate in the same network session. Among them, there is one or more than one other clients.
- the first user interface is displayed in the local client.
- the first user interface includes a first video window corresponding to the local client and a second video window corresponding to other clients.
- the first video window is used to display camera images or shared images captured by the first camera corresponding to the local client;
- the second video window is used to display camera images or shared images captured by the second camera corresponding to other clients.
- the shared image includes at least one of a screen image, a video image, a text (Word) file image, a presentation (PPT) file image, and an electronic spreadsheet (Excel) file image.
- At least two other clients are used as an example for illustration.
- Step 204a in response to the network environment being worse than the first condition, switch the network session between the local client and other clients from the video mode to the voice mode.
- the condition that the network environment is worse than the first condition includes but is not limited to: the network speed is lower than the first threshold and is not 0, or the packet loss rate is higher than the second threshold. For example, if the first threshold is 50kb, then the video will have intermittent freezes.
- the local client periodically measures the network speed or packet loss rate during the duration of the network session.
- the network session between the local client and other clients is automatically switched from the video mode to the voice mode. That is, the local client only switches the network session on its own side from the video mode to the voice mode, while other clients belonging to the same network session still maintain the video mode.
- the local client terminal stops uploading and downloading the video stream in the network session (the embodiment that only stops uploading or only stops downloading is not excluded), and keeps uploading and downloading the audio stream in the network session.
- the process does not require server and other client changes.
- uploading refers to uploading a video stream and/or audio stream generated by the local client
- downloading refers to downloading a video stream and/or audio stream generated by other clients.
- the local client closes the video stream in the network session between the local client and other clients, and the network session between the local client and other clients The audio stream keeps continuing to transmit.
- the local client before switching the network session from the video mode to the voice mode, the local client first superimposes and displays a query window on the first user interface, and the query window is used to ask the user whether to switch from the video mode to the voice mode; response After confirming the switching instruction, the local client then switches the network session from video mode to voice mode.
- Step 206 Display a second user interface.
- the second user interface is an interface when the local client and other clients use the voice mode to conduct a network conversation.
- the second user interface is displayed in the local client.
- there is no second video window (or an empty second video window) on the second user interface that is, the camera images collected by the second cameras corresponding to other clients cannot be seen.
- the first video window does not exist on the second user interface (or an empty first video window is displayed), that is, the camera images collected by the first camera corresponding to the other client cannot be seen.
- an avatar corresponding to another client is used to replace the second video window or the displayed content in the second video window.
- the avatar corresponding to the local client is used to replace the first video window or the displayed content in the first video window.
- Step 208 In response to an externally inputted human-computer interaction instruction, switch the network conversation from the voice mode to the video mode.
- the network environment where the client is located may change. For example, when a user holds a laptop or desktop computer while moving between outdoors and indoors, the network environment will get better or worse. Or, the user needs to use the video mode to watch the shared screen.
- the user can input a human-computer interaction instruction to the client, and the human-computer interaction instruction is used to instruct the network session to switch from the voice mode to the video mode.
- the human-computer interaction instruction includes at least one of: a first instruction to turn off the voice mode, a second instruction to turn on a camera, and a third instruction to share a picture.
- the voice mode on/off button is displayed on the second user interface (including the secondary menu).
- the client switches the network session from the voice mode to the video mode.
- a camera start button is displayed on the second user interface (including the secondary menu).
- the client terminal switches the network session from the voice mode to the video mode.
- a sharing button for sharing files is displayed on the second user interface (including the secondary menu).
- the client switches the network session from voice mode to video mode.
- Step 210 In response to the network environment being better than the second condition, switch the network session from the voice mode to the video mode.
- the network environment is better than the second condition including but not limited to: the network speed is higher than the third threshold, or the packet loss rate is lower than the fourth threshold.
- the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold.
- the third threshold is 100kb, which can ensure the smooth display of lower resolution video images.
- the local client periodically measures the network speed or the packet loss rate during the duration of the network session.
- the network conversation between the local client and other clients is automatically switched from the voice mode to the video mode.
- the local client resumes uploading and downloading the video stream between the local client list and other clients, thereby realizing the redisplay of the video screen.
- uploading includes sending the screen data collected from the local client to other clients in the same network room, and downloading includes receiving the screen data collected from other clients in the same network room to the local client.
- Step 212 Display a first user interface.
- the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation.
- the first user interface is displayed again in the local client.
- the display screen in the first user interface in this step may be different from the display screen in the first user interface in step 202.
- the above-mentioned switching between the video mode and the voice mode may also be manually triggered by an externally inputted human-computer interaction instruction. For example, swiping to the left on the mobile client triggers the switch from video mode to voice mode; for another example, swiping to the right on the mobile client triggers the switch from voice mode to video mode.
- the method provided in this embodiment switches the network session from the video mode to the voice mode in response to the network environment being worse than the first condition.
- the client When the client is in a weak network environment, it reduces the occupation of network bandwidth by the video part of the video mode, so that the voice mode can be performed smoothly, ensuring that the network session can still be used normally in the weak network environment, and reducing the network session Failure rate in a poor network environment.
- the method provided in this embodiment also switches the network conversation from the voice mode to the video mode by responding to an externally inputted human-computer interaction instruction.
- the client switches from a weak network environment to a strong network environment, it ensures that the network session is restored to the video mode in the strong network environment, thereby providing a "video + audio" multimedia session mode in the strong network environment, improving user experience.
- the method provided in this embodiment also automatically switches the network session from the voice mode to the video mode by responding to the fact that the network environment is better than the second condition.
- the client switches from a weak network environment to a strong network environment, it ensures that the network session is restored to the video mode in the strong network environment, thereby providing a "video + audio" multimedia session mode in the strong network environment, improving user experience.
- the following uses the client to be a mobile client and the mobile client to be a cloud meeting client for example.
- the user uses the cloud meeting client to conduct a multi-person video conference.
- the multi-person video conference is a 4-person video conference.
- a first user interface 40 is displayed on the mobile client, and a first video window 41 corresponding to the local client and second video windows corresponding to three other clients are displayed on the first user interface 40.
- the camera picture of the current user is displayed in the first video window 41, and the camera picture of other users is displayed in the second video window.
- a microphone button, a camera button, a screen sharing button, a member management button, and more setting buttons are also displayed.
- the microphone button is a functional control used to turn on or off the microphone
- the camera button is a functional control used to turn on or off the local camera
- the screen sharing button is a functional control used to share screens or files
- the manage member button is used to manage the current network
- the first user interface 40 When the network environment is worse than the first condition, the first user interface 40 will display the prompt message 42 of "the network signal is poor, automatically switch to the voice mode". Then, the mobile client switches the current network session from the video mode to the voice mode, and displays the second user interface 50. In the second user interface 50, the first video window and the second video window are no longer displayed, and the current user's avatar and other users' avatars are used instead. At the same time, the second user interface 50 will display a prompt message "in the setting, the voice mode can be turned off" on the side of the more setting buttons.
- the secondary interface includes, but is not limited to: a camera button for joining a meeting, a microphone on button for joining a meeting, a screen sharing plus viewer watermark button, a screen sharing watermark on button, and a voice mode on button 44.
- a camera button for joining a meeting a microphone on button for joining a meeting
- a screen sharing plus viewer watermark button a screen sharing watermark on button
- a voice mode on button 44 a voice mode on button 44.
- the conference client is switched from the voice mode to the video mode again.
- the user directly clicks the camera button or the screen sharing button in the second user interface 50 to trigger the re-switching from the voice mode to the video mode.
- the client is a computer client for example, and the computer client is a cloud meeting client for example.
- the user uses the cloud meeting client to conduct a multi-person video conference.
- the multi-person video conference is used. Take a 5-person video conference as an example.
- a first user interface 40 is displayed on the mobile client, and a first video window corresponding to the local client and a second video window (all or part) corresponding to other clients are displayed on the first user interface 40.
- the camera picture of the current user is displayed in the first video window, and the camera picture of other users is displayed in the second video window.
- part of the camera screens of other clients can be hidden.
- a microphone button On the first user interface 40, a microphone button, a camera button, a screen sharing button, a member invite button, a member management button, a chat button, a document sending button, and a setting button are also displayed.
- the microphone button is a functional control used to turn the microphone on or off
- the camera button is a functional control used to turn on or off the local camera
- the screen sharing button is a functional control used to share screens or files
- the invite member button is used to invite someone
- the management member is the function control for managing the participants in the current web conference
- the chat button is the button for text chat
- the setting button is used to provide other secondary menus.
- the first user interface 40 When the network environment is worse than the first condition, the first user interface 40 will display an inquiry window 45 of "The current network is poor. In order to ensure the quality of the conference, whether to enable the voice mode" query window 45. If the user clicks the OK button on the inquiry window 45, the computer client switches the current network session from the video mode to the voice mode, and displays the second user interface 50, as shown in FIG. 7. In the second user interface 50, the first video window and the second video window are no longer displayed, and the current user's avatar and other users' avatars are used instead. At the same time, the second user interface 50 will display a prompt message 46 of "If you continue to receive other members' videos, please turn off the voice mode in the "Settings"" on the side of the More Settings button.
- the secondary interface includes, but is not limited to: a camera button for joining a meeting, a computer audio button for joining a meeting, a computer audio button for automatically selecting a meeting, and a voice mode button 44.
- a camera button for joining a meeting a computer audio button for joining a meeting
- a computer audio button for automatically selecting a meeting a computer audio button for automatically selecting a meeting
- a voice mode button 44 a voice mode button 44.
- the prompt message 47 of "If the network does not return to normal, you can turn on the voice mode in "Settings"" can also be displayed on the first user interface, as shown in Figure 9 .
- Fig. 10 shows a block diagram of a device for switching a network session provided by an exemplary embodiment of the present application.
- the device includes: a display module 1020 and a switching module 1040.
- Each module included in the device for switching a network session may be implemented in whole or in part by software, hardware, or a combination thereof.
- the display module 1020 is configured to display a first user interface.
- the first user interface is an interface when the local client and other clients use the video mode to conduct a network conversation.
- the switching module 1040 is configured to switch the network session from the video mode to the voice mode in response to the network environment being worse than the first condition.
- the display module 1020 is also used to display a second user interface, which is an interface when the local client and other clients conduct a network conversation in a voice mode.
- the switching module 1040 is further configured to switch the network session between the local client and other clients from the video mode to the voice mode in response to the network environment being worse than the first condition; wherein, the network session between at least two other clients The session remains in video mode.
- the switching module 1040 is further configured to, in response to the network environment being worse than the first condition, close the video stream in the network session between the local client and other clients, and switch the local client The audio stream in the network session between the client and other clients keeps transmitting.
- the switching module 1040 is further configured to switch the network session from the voice mode to the video mode in response to an externally inputted human-computer interaction instruction; wherein, the human-computer interaction instruction includes: the first voice mode is turned off. At least one of the instruction, the second instruction to turn on the camera, and the third instruction to share the screen.
- the switching module 1040 is further configured to switch the network session from the voice mode to the video mode in response to the network environment being better than the second condition.
- FIG. 11 shows a structural block diagram of a computer device 1100 provided by an exemplary embodiment of the present application.
- the computer device 1100 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, The motion picture expert compresses the standard audio frequency level 4) the player.
- the computer device 1100 may also be called user equipment, portable terminal, and other names.
- the computer device 1100 includes a processor 1101 and a memory 1102.
- the processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on.
- the processor 1101 can adopt at least one hardware form among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array, Programmable Logic Array). achieve.
- the processor 1101 may also include a main processor and a coprocessor.
- the main processor is a processor used to process data in the wake state, also called a CPU (Central Processing Unit, central processing unit); the coprocessor is A low-power processor used to process data in the standby state.
- the processor 1101 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen.
- the processor 1101 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computing operations related to machine learning.
- AI Artificial Intelligence
- the memory 1102 may include one or more computer-readable storage media, which may be tangible and non-transitory.
- the memory 1102 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
- the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1101 to implement the mail sending method provided in this application.
- the computer device 1100 may optionally further include: a peripheral device interface 1103 and at least one peripheral device.
- the peripheral device includes: at least one of a radio frequency circuit 1104, a touch display screen 1105, a camera 1106, an audio circuit 1107, a positioning component 1108, and a power supply 1109.
- the peripheral device interface 1103 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1101 and the memory 1102.
- the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1101, the memory 1102, and the peripheral device interface 1103 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
- the radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
- the radio frequency circuit 1104 communicates with a communication network and other communication devices through electromagnetic signals.
- the radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
- the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on.
- the radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol.
- the wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area network and/or WiFi (Wireless Fidelity, wireless fidelity) network.
- the radio frequency circuit 1104 may also include a circuit related to NFC (Near Field Communication), which is not limited in this application.
- the touch screen 1105 is used to display UI (User Interface).
- the UI can include graphics, text, icons, videos, and any combination thereof.
- the touch display screen 1105 also has the ability to collect touch signals on or above the surface of the touch display screen 1105.
- the touch signal may be input to the processor 1101 as a control signal for processing.
- the touch screen 1105 is used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
- the touch screen 1105 may be a flexible display screen, which is arranged on the curved surface or the folding surface of the computer device 1100. Even the touch screen 1105 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
- the touch screen 1105 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode).
- the camera assembly 1106 is used to capture images or videos.
- the camera assembly 1106 includes a front camera and a rear camera.
- the front camera is used to implement video calls or selfies
- the rear camera is used to implement photos or videos.
- the camera assembly 1106 may also include a flash.
- the flash can be a single-color flash or a dual-color flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
- the audio circuit 1107 is used to provide an audio interface between the user and the computer device 1100.
- the audio circuit 1107 may include a microphone and a speaker.
- the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1101 for processing, or input to the radio frequency circuit 1104 to implement voice communication.
- the microphone can also be an array microphone or an omnidirectional collection microphone.
- the speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves.
- the speaker can be a traditional thin-film speaker or a piezoelectric ceramic speaker.
- the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into human audible sound waves, but also convert the electrical signal into human inaudible sound waves for distance measurement and other purposes.
- the audio circuit 1107 may also include a headphone jack.
- the positioning component 1108 is used to locate the current geographic location of the computer device 1100 to implement navigation or LBS (Location Based Service, location-based service).
- the positioning component 1108 may be a positioning component based on the GPS (Global Positioning System, Global Positioning System) of the United States, the Beidou system of China, or the Galileo system of Russia.
- the power supply 1109 is used to supply power to various components in the computer device 1100.
- the power source 1109 may be alternating current, direct current, disposable batteries, or rechargeable batteries.
- the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery.
- a wired rechargeable battery is a battery charged through a wired line
- a wireless rechargeable battery is a battery charged through a wireless coil.
- the rechargeable battery can also be used to support fast charging technology.
- the computer device 1100 further includes one or more sensors 1110.
- the one or more sensors 1110 include, but are not limited to: an acceleration sensor 1111, a gyroscope sensor 1112, a pressure sensor 1113, a fingerprint sensor 1114, an optical sensor 1111, and a proximity sensor 1116.
- the acceleration sensor 1111 detects the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1100. For example, the acceleration sensor 1111 is used to detect the components of gravitational acceleration on three coordinate axes.
- the processor 1101 may control the touch screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1111.
- the acceleration sensor 1111 may be used for the collection of game or user motion data.
- the gyroscope sensor 1112 can detect the body direction and rotation angle of the computer device 1100, and the gyroscope sensor 1112 can collect the 3D actions of the user on the computer device 1100 together with the acceleration sensor 1111. Based on the data collected by the gyroscope sensor 1112, the processor 1101 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
- the pressure sensor 1113 may be arranged on the side frame of the computer device 1100 and/or the lower layer of the touch screen 1105.
- the pressure sensor 1113 When the pressure sensor 1113 is disposed on the side frame of the computer device 1100, it can detect the user's holding signal of the computer device 1100, and perform left and right hand recognition or quick operation according to the holding signal.
- the control of the operability controls on the UI interface can be realized according to the user's pressure operation on the touch display screen 1105.
- the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
- the fingerprint sensor 1114 is used to collect the user's fingerprint to identify the user's identity according to the collected fingerprint. When it is recognized that the user's identity is a trusted identity, the processor 1101 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings.
- the fingerprint sensor 1114 may be provided on the front, back or side of the computer device 1100. When the computer device 1100 is provided with a physical button or a manufacturer logo, the fingerprint sensor 1114 can be integrated with the physical button or the manufacturer logo.
- the optical sensor 1111 is used to collect the ambient light intensity.
- the processor 1101 may control the display brightness of the touch screen 1105 according to the intensity of the ambient light collected by the optical sensor 1111. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1105 is decreased.
- the processor 1101 may also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1111.
- the proximity sensor 1116 also called a distance sensor, is usually arranged on the front of the computer device 1100.
- the proximity sensor 1116 is used to collect the distance between the user and the front of the computer device 1100.
- the processor 1101 controls the touch screen 1105 to switch from the on-screen state to the off-screen state; when the proximity sensor 1116 When it is detected that the distance between the user and the front of the computer device 1100 is gradually increasing, the processor 1101 controls the touch screen 1105 to switch from the rest screen state to the bright screen state.
- FIG. 11 does not constitute a limitation on the computer device 1100, and may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.
- FIG. 12 shows that the present application also provides a computer device, including a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of switching the above-mentioned network session.
- the steps of the image processing method may be the steps in the network session switching method of each of the foregoing embodiments.
- the computer device may be the computer device provided in Figure 12 below.
- the computer device 1200 includes a central processing unit (CPU) 1201, a system memory 1204 including a random access memory (RAM) 1202 and a read-only memory (ROM) 1203, and a system connecting the system memory 1204 and the central processing unit 1201 Bus 1205.
- the computer device 1200 also includes a basic input/output system (I/O system) 1206 that helps to transfer information between various devices in the computer, and a mass storage device for storing the operating system 1213, application programs 1214, and other program modules 1210 1207.
- I/O system basic input/output system
- the basic input/output system 1206 includes a display 1208 for displaying information and an input device 1209 such as a mouse and a keyboard for the user to input information.
- the display 1208 and the input device 1209 are both connected to the central processing unit 1201 through the input and output controller 1210 connected to the system bus 1205.
- the basic input/output system 1206 may also include an input and output controller 1210 for receiving and processing input from multiple other devices such as a keyboard, a mouse, or an electronic stylus.
- the input and output controller 1210 also provides output to a display screen, a printer, or other types of output devices.
- the mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205.
- the mass storage device 1207 and its associated computer-readable medium provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
- Computer-readable media may include computer storage media and communication media.
- Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data.
- Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices.
- RAM random access memory
- ROM read-only memory
- EPROM Erasable programmable read-only memory
- EEPROM electrically erasable programmable read-only memory
- the computer device 1200 may also be connected to a remote computer on the network through a network such as the Internet to operate. That is, the computer device 1200 can be connected to the network 1212 through the network interface unit 1211 connected to the system bus 1205, or in other words, the network interface unit 1211 can also be used to connect to other types of networks or remote computer systems (not shown).
- a computer device including a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of switching the above-mentioned network session.
- the steps of the image processing method may be the steps in the network session switching method of each of the foregoing embodiments.
- a computer-readable storage medium which stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the processor executes the steps of switching the above-mentioned network session.
- the steps of the image processing method may be the steps in the switching of the network session in each of the foregoing embodiments.
- Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephonic Communication Services (AREA)
Abstract
A network session switching method. The method comprises: displaying a first user interface, wherein the first user interface is an interface when a present client and another client conduct a network session in a video mode; in response to a network environment being worse than a first condition, switching the network session from the video mode to a speech mode; and displaying a second user interface, wherein the second user interface is an interface when the present client and the other client conduct the network session in the speech mode.
Description
本申请要求于2019年12月17日提交中国专利局,申请号为201911304054.6,申请名称为“网络会话的切换方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on December 17, 2019. The application number is 201911304054.6, and the application name is "Network session switching methods, devices, computer equipment, and storage media". The entire content of the Chinese patent application is approved. The reference is incorporated in this application.
本申请实施例涉及云技术领域,特别涉及一种网络会话的切换方法、装置、计算机设备及存储介质。The embodiments of the present application relate to the field of cloud technology, and in particular to a method, device, computer equipment, and storage medium for switching network sessions.
视频会议是采用云视频会议系统实现的多人网络会议系统。云视频会议系统采用虚拟机的方式来代替传统的昂贵硬件资源,有效解决不同终端(电脑、手机、会议终端)、不同网络(专网、局域网、因特网、移动网络)组成的视频会议系统的异构问题。Video conference is a multi-person network conference system implemented by cloud video conference system. The cloud video conferencing system uses virtual machines to replace traditional expensive hardware resources, effectively solving the differences in video conferencing systems composed of different terminals (computers, mobile phones, conference terminals) and different networks (private networks, local area networks, Internet, mobile networks). Constitutional issues.
相关技术中,多个客户端之间通过云视频会议系统建立网络连接,进入同一个会议房间。每个客户端上传自身的视频流和音频流,并下载同一个会议房间中的其它客户端的视频流和音频流,从而实现视频会议。In related technologies, multiple clients establish network connections through a cloud video conference system and enter the same conference room. Each client uploads its own video stream and audio stream, and downloads the video stream and audio stream of other clients in the same conference room, thereby realizing a video conference.
由于一些客户端使用的是无线网络或移动网络,因此会出现网络信号较差的情况(也称弱网环境)。此时,视频会议的视频信号和语音信号会出现断续现象,会议质量较差。Since some clients use wireless networks or mobile networks, there will be a situation where the network signal is poor (also called a weak network environment). At this time, the video signal and voice signal of the video conference will appear intermittent, and the conference quality is poor.
发明内容Summary of the invention
根据本申请提供的各种实施例,提供了一种网络会话的切换方法、装置、计算机设备及存储介质。According to various embodiments provided in this application, a method, device, computer equipment, and storage medium for switching a network session are provided.
一种网络会话的切换方法,由计算机设备执行,所述方法包括:A method for switching a network session is executed by a computer device, and the method includes:
显示第一用户界面,所述第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面;Displaying a first user interface, where the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation;
响应于网络环境差于第一条件,将所述网络会话从所述视频模式切换为语音模式;及In response to the network environment being worse than the first condition, switching the network session from the video mode to the voice mode; and
显示第二用户界面,所述第二用户界面是所述本端客户端与所述其它客户端采用所述语音模式进行所述网络会话时的界面。A second user interface is displayed, and the second user interface is an interface when the local client and the other client use the voice mode to conduct the network conversation.
一种网络会话装置,所述装置包括:A network conversation device, the device includes:
显示模块,用于显示第一用户界面,所述第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面;The display module is configured to display a first user interface, where the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation;
切换模块,用于响应于网络环境差于第一条件,将所述网络会话从所述视频模式切换为语音模式;及A switching module for switching the network session from the video mode to the voice mode in response to the network environment being worse than the first condition; and
所述显示模块,用于显示第二用户界面,所述第二用户界面是所述本端客户端与所述其它客户端采用所述语音模式进行所述网络会话时的界面。The display module is configured to display a second user interface, and the second user interface is an interface when the local client and the other clients use the voice mode to conduct the network conversation.
一种存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行网络会话的切换方法的步骤。A non-volatile storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for switching a network session.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行网络会话的切换方法的步骤。A computer device includes a memory and a processor, and computer-readable instructions are stored in the memory. When the computer-readable instructions are executed by the processor, the processor executes the steps of a method for switching a network session.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features, purposes and advantages of this application will become apparent from the description, drawings and claims.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是本申请一个示例性实施例提供的计算机系统的框图;Fig. 1 is a block diagram of a computer system provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的网络会话的切换方法的流程图;Fig. 2 is a flowchart of a method for switching a network session provided by an exemplary embodiment of the present application;
图3是本申请另一个示例性实施例提供的网络会话的切换方法的流程图;Fig. 3 is a flowchart of a method for switching a network session provided by another exemplary embodiment of the present application;
图4和图5是本申请另一个示例性实施例提供的网络会话的切换方法在移动端实现时的用户界面示意图;4 and 5 are schematic diagrams of user interfaces when a method for switching a network session provided by another exemplary embodiment of the present application is implemented on a mobile terminal;
图6至图9是本申请另一个示例性实施例提供的网络会话的切换方法在电脑端实现时的用户界面示意图;6 to 9 are schematic diagrams of user interfaces when a method for switching a network session provided by another exemplary embodiment of the present application is implemented on a computer;
图10是本申请一个示例性实施例提供的网络会话的切换装置的结构框图;Fig. 10 is a structural block diagram of a device for switching a network session provided by an exemplary embodiment of the present application;
图11是本申请一个示例性的实施例提供的计算机设备的结构框图;及Fig. 11 is a structural block diagram of a computer device provided by an exemplary embodiment of the present application; and
图12是本申请一个示例性的实施例提供的服务器的结构框图。Fig. 12 is a structural block diagram of a server provided by an exemplary embodiment of the present application.
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer and clearer, the following further describes the application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
首先对本申请涉及的若干个名词进行简介:First, we will briefly introduce several terms involved in this application:
云技术(Cloud technology):是指在广域网或局域网内将硬件、软件和网络等系列资源统一起来,实现数据的计算、储存、处理和共享的一种托管技术。基于云计算商业模式应用的网络技术、信息技术、整合技术、管理平台技术和应用技术等的总称,可以组成资源池,按需所用,灵活便利。云计算技术将变成重要支撑。技术网络系统的后台服务需要大量的计算和存储资源,如视频网站、图片类网站和更多的门户网站。伴随着互联网行业的高度发展和应用,将来每个物品都有可能存在自己的识别标志,都需要传输到后台系统进行逻辑处理,不同程度级别的数据将会分开处理,各类行业数据皆需要强大的系统后盾支撑,只能通过云计算来实现。Cloud technology: refers to a kind of hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. The general term for network technology, information technology, integration technology, management platform technology, and application technology based on cloud computing business model applications can form a resource pool, which can be used on demand, flexible and convenient. Cloud computing technology will become an important support. The back-end service of the technical network system requires a large amount of computing and storage resources, such as video websites, image websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the back-end system for logical processing. Data of different levels will be processed separately, and all types of industry data need to be powerful The backing of the system can only be achieved through cloud computing.
云计算(cloud computing):是一种计算模式,它将计算任务分布在大量计算机构成的资源池上,使各种应用系统能够根据需要获取计算力、存储空间和信息服务。提供资源的网络被称为“云”。“云”中的资源在使用者看来是可以无限扩展的,并且可以随时获取,按需使用,随时扩展,按使用付费。Cloud computing (cloud computing): is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed. The network that provides resources is called the "cloud." In the eyes of users, the resources in the "cloud" can be infinitely expanded, and can be obtained at any time, used on demand, expanded at any time, and paid for use.
作为云计算的基础能力提供商,会建立云计算资源池(简称云平台,一般称为IaaS(Infrastructure as a Service,基础设施即服务)平台),在资源池中部署多种类型的虚拟资源,供外部客户选择使用。云计算资源池中主要包括:计算设备(为虚拟化机器,包含操作系统)、存储设备和网络设备。As a basic capability provider of cloud computing, it will establish a cloud computing resource pool (cloud platform for short, generally referred to as IaaS (Infrastructure as a Service, infrastructure as a service) platform), and deploy multiple types of virtual resources in the resource pool. For external customers to choose and use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
按照逻辑功能划分,在IaaS(Infrastructure as a Service,基础设施即服务)层上可以部署PaaS(Platform as a Service,平台即服务)层,PaaS层之上再部署SaaS(Software as a Service,软件即服务)层,也可以直接将SaaS部署在IaaS上。PaaS为软件运行的平台,如数据库或web容器等。SaaS为各式各样的业务软件,如web门户网站或短信群发器等。一般来说,SaaS和PaaS相对于IaaS是上层。According to the logic function, the PaaS (Platform as a Service) layer can be deployed on the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on the PaaS layer. Service) layer, SaaS can also be deployed directly on IaaS. PaaS is a platform on which software runs, such as a database or web container. SaaS is a variety of business software, such as web portals or SMS group senders. Generally speaking, SaaS and PaaS are the upper layer relative to IaaS.
云呼叫中心(Cloud Call Center):是基于云计算技术而搭建的呼叫中心系统,企业无需购买任何软、硬件系统,只需具备人员、场地等基本条件,就可以快速拥有属于自己的呼叫中心,软硬件平台、通信资源、日常维护与服务由服务器商提供。具有建设周期短、投入少、风险低、部署灵活、系统容量伸缩性强以及运营维护成本低等众多特点;无论是电话营销中心还是客户服务中心,企业只需按需租用服务,便可建立一套功能全面、稳定、可靠、座席可分布全国各地以及全国呼叫接入的呼叫中心系统。Cloud Call Center: It is a call center system built based on cloud computing technology. Enterprises do not need to purchase any software or hardware systems. They only need to have basic conditions such as personnel and venues to quickly own their own call center. The software and hardware platform, communication resources, daily maintenance and services are provided by the server vendor. It has many characteristics such as short construction period, low investment, low risk, flexible deployment, strong system capacity scalability, and low operation and maintenance costs; whether it is a telemarketing center or a customer service center, enterprises can set up a service simply by renting services on demand. A full-featured, stable, and reliable call center system with seats that can be distributed across the country and call access throughout the country.
云会议:是基于云计算技术的一种高效、便捷和低成本的会议形式。使用者只需要通过互联网界面,进行简单易用的操作,便可快速高效地与全球各地团队及客户同步分享语音、数据文件及视频,而会议中数据的传输和处理等复杂技术由云会议服务商帮助使用者进行操作。Cloud meeting: It is an efficient, convenient and low-cost meeting form based on cloud computing technology. Users only need to perform simple and easy-to-use operations through the Internet interface to quickly and efficiently share voice, data files and videos with teams and customers around the world, and complex technologies such as data transmission and processing in the meeting are served by the cloud meeting The quotient helps users to operate.
目前国内云会议主要集中在以SaaS(Software as a Service,软件即服务)模式为主体的服务内容,包括电话、网络和视频等服务形式,基于云计算的视频会议就叫云会议。At present, domestic cloud conferences mainly focus on the service content with the SaaS (Software as Service) model as the main body, including service forms such as telephone, network, and video. Cloud computing-based video conferences are called cloud conferences.
在云会议时代,数据的传输、处理以及存储全部由视频会议厂家的计算机资源处理,用户完全无需再购置昂贵的硬件和安装繁琐的软件,只需打开浏览器,登录相应界面,就能进行高效的远程会议。In the era of cloud conferencing, data transmission, processing and storage are all handled by the computer resources of video conferencing manufacturers. Users no longer need to purchase expensive hardware and install cumbersome software. They only need to open a browser and log in to the corresponding interface to be efficient. Remote meeting.
云会议系统支持多服务器动态集群部署,并提供多台高性能服务器,大大提升了会议稳定性、安全性和可用性。近年来,视频会议因能大幅提高沟通效率,持续降低沟通成本,带来内部管理水平升级,而获得众多用户欢迎,已广泛应用在政府、军队、交通、运输、金融、运营商、教育以及企业等各个领域。毫无疑问,视频会议运用云计算以后,在方便性、快捷性和易用性上具有更强的吸引力,必将激发视频会议应用新高潮的到来。The cloud conference system supports multi-server dynamic cluster deployment and provides multiple high-performance servers, which greatly improves conference stability, security and availability. In recent years, video conferencing has been welcomed by many users because it can greatly improve communication efficiency, continue to reduce communication costs, and bring about internal management upgrades. It has been widely used in government, military, transportation, transportation, finance, operators, education, and enterprises. And other fields. There is no doubt that after the use of cloud computing in video conferencing, it will be more attractive in terms of convenience, speed and ease of use, which will surely stimulate the arrival of a new wave of video conferencing applications.
云社交(Cloud Social)是一种物联网、云计算和移动互联网交互应用的虚拟社交应用模式,以建立著名的“资源分享关系图谱”为目的,进而开展网络社交,云社交的主要特征,就是把大量的社会资源统一整合和评测,构成一个资源有效池向用户按需提供服务。参与分享的用户越多,能够创造的利用价值就越大。Cloud Social (Cloud Social) is a virtual social application mode for interactive applications of the Internet of Things, cloud computing, and mobile Internet. It aims to establish a well-known "resource sharing relationship graph" to develop online social networking. The main feature of cloud social networking is A large number of social resources are unified and evaluated to form an effective pool of resources to provide users with services on demand. The more users who participate in sharing, the greater the value that can be created.
网络会话:通过互联网技术为至少两个客户端(或用户帐号)之间构建的通信会话(session)。网络会话包括但不限于:视频模式和语音模式。视频模式是基于视频流和音频流来进行音视频会话的模式,语音模式是基于音频流来进行音频会话的模式。Network session: A communication session (session) constructed between at least two clients (or user accounts) through Internet technology. Network sessions include but are not limited to: video mode and voice mode. The video mode is a mode for conducting audio and video conversations based on video streams and audio streams, and the voice mode is a mode for conducting audio conversations based on audio streams.
本申请提供了一种网络会话的自动切换方案。当客户端处于弱网环境时,能够自动将网络会话从视频模式切换为语音模式,从而最大限度保证网络会话在恶劣网络会话环境下,能够流畅地进行。This application provides a solution for automatic switching of network sessions. When the client is in a weak network environment, it can automatically switch the network session from the video mode to the voice mode, so as to maximize the guarantee that the network session can proceed smoothly in the harsh network session environment.
图1是本申请一个示例性实施例提供的计算机系统100的框图。该计算机系统100包括:第一终端120、服务器140和第二终端160。Fig. 1 is a block diagram of a computer system 100 provided by an exemplary embodiment of the present application. The computer system 100 includes: a first terminal 120, a server 140, and a second terminal 160.
第一终端120安装和运行有支持网络会话的应用程序。该应用程序可以是支持网络会话的会议客户端,集成有网络会话功能的社交客户端、集成有网络会话功能的电子商务客户端、集成有网络会话功能的游戏客户端和集成有网络会话功能的其它客户端中的任意一种。第一终端120是第一用户使用的终 端,本文中的客户端包括APP(Application,应用程序)客户端、网页客户端、小程序客户端和快应用客户端中的任意一种。第一终端120可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱或者智能手表等,但并不局限于此。终端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。The first terminal 120 installs and runs an application program supporting network sessions. The application can be a conference client that supports web sessions, a social client that integrates web session functions, an e-commerce client that integrates web session functions, a game client that integrates web session functions, and those that integrate web session functions. Any of other clients. The first terminal 120 is a terminal used by the first user. The client in this document includes any one of an APP (Application, application) client, a webpage client, an applet client, and a quick application client. The first terminal 120 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, or a smart watch, etc., but is not limited thereto. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited in this application.
第一终端120通过无线网络或有线网络与服务器140相连。The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
服务器140包括一台服务器、多台服务器、云计算平台和虚拟化中心中的至少一种。示意性的,服务器140包括处理器144和存储器142,存储器142又包括网络会话模块1421和存储模块1422。网络会话模块1421用于为至少两个客户端之间构建网络会话。存储模块1422用于存储每个客户端的帐号和密码,以及每个网络会话的上下文信息。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。可选地,服务器140承担主要计算工作,第一终端120和第二终端160承担次要计算工作;或者,服务器140承担次要计算工作,第一终端120和第二终端160承担主要计算工作;或者,服务器140、第一终端120和第二终端160三者之间采用分布式计算架构进行协同计算。The server 140 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. Illustratively, the server 140 includes a processor 144 and a storage 142, and the storage 142 further includes a network session module 1421 and a storage module 1422. The network session module 1421 is used to construct a network session between at least two clients. The storage module 1422 is used to store the account and password of each client and the context information of each network session. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, and intermediate Cloud servers for basic cloud computing services such as software services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Optionally, the server 140 is responsible for the main calculation work, and the first terminal 120 and the second terminal 160 are responsible for the secondary calculation work; or the server 140 is responsible for the secondary calculation work, and the first terminal 120 and the second terminal 160 are responsible for the main calculation work; Or, the server 140, the first terminal 120, and the second terminal 160 adopt a distributed computing architecture to perform collaborative computing.
第二终端160安装和运行有支持网络会话的应用程序。该应用程序可以是网络会话客户端,集成有网络会话功能的社交客户端、集成有网络会话功能的电子商务客户端、集成有网络会话功能的游戏客户端和集成有网络会话功能的其它客户端中的任意一种。第二终端160是第二用户使用的终端,本文中的客户端包括APP客户端、网页客户端、小程序客户端和快应用客户端中的任意一种。The second terminal 160 installs and runs an application program supporting network sessions. The application can be a web session client, a social client integrated with a web session function, an e-commerce client with a web session function, a game client with a web session function, and other clients with a web session function. Any of them. The second terminal 160 is a terminal used by a second user, and the client in this document includes any one of an APP client, a web client, an applet client, and a quick app client.
可选地,第一终端120和第二终端160上安装的应用程序是相同的,或两个终端上安装的应用程序是不同控制系统平台的同一类型应用程序。第一终端120可以泛指多个终端中的一个,第二终端160可以泛指多个终端中的一个, 本实施例仅以第一终端120和第二终端160来举例说明。第一终端120和第二终端160的设备类型相同或不同,该设备类型包括:智能手机、平板电脑、电子书阅读器、MP3播放器、MP4播放器、膝上型便携计算机和台式计算机中的至少一种。以下实施例以终端包括智能手机来举例说明。Optionally, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application on different control system platforms. The first terminal 120 may generally refer to one of multiple terminals, and the second terminal 160 may generally refer to one of multiple terminals. This embodiment only uses the first terminal 120 and the second terminal 160 as examples. The device types of the first terminal 120 and the second terminal 160 are the same or different. The device types include smart phones, tablet computers, e-book readers, MP3 players, MP4 players, laptop computers and desktop computers. At least one. In the following embodiment, the terminal includes a smart phone as an example.
本领域技术人员可以知晓,上述终端的数量可以更多或更少。比如上述终端可以仅为一个,或者上述终端为几十个或几百个,或者更多数量。本申请实施例对终端的数量和设备类型不加以限定。Those skilled in the art may know that the number of the aforementioned terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or more. The embodiments of the present application do not limit the number of terminals and device types.
图2示出了本申请一个示例性实施例示出的网络会话的切换方法的流程图。本实施例以该方法应用于图1所示的客户端(终端)中执行来举例说明。该方法包括:Fig. 2 shows a flowchart of a method for switching a network session shown in an exemplary embodiment of the present application. In this embodiment, the method is applied to the client (terminal) shown in FIG. 1 as an example for illustration. The method includes:
步骤202,显示第一用户界面,第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面。In step 202, a first user interface is displayed. The first user interface is an interface when the local client and other clients use a video mode to conduct a network session.
终端中存在有支持网络会话的客户端(或称应用程序)。网络会话提供了视频模式和语音模式。视频模式是基于视频流和音频流进行网络会话的模式,语音模式是基于音频流进行网络会话的模式。There are clients (or application programs) that support network sessions in the terminal. The web session provides video mode and voice mode. The video mode is a mode for conducting network conversations based on video streams and audio streams, and the voice mode is a mode for conducting network conversations based on audio streams.
本端客户端是本地终端中具有的客户端,其它客户端是其它终端中具有的客户端。通常情况下,本端客户端登录有当前用户的用户帐号,其它客户端登录有其它用户的用户帐号。但本申请不排除匿名聊天,无需登录用户帐号的场景。The local client is the client in the local terminal, and the other clients are the clients in other terminals. Normally, the local client logs in with the user account of the current user, and other clients log in with the user accounts of other users. However, this application does not exclude the scenario of anonymous chat without logging in to the user account.
用户启动终端中的本端客户端,使用该本端客户端与其它客户端建立网络会话。示例性的,该网络会话具有网络会话号或者网络会话房间,本端客户端和其它客户端在同一个网络会话中进行通讯。其中,其它客户端为一个,或者多于一个。The user starts the local client in the terminal, and uses the local client to establish a network session with other clients. Exemplarily, the network session has a network session number or a network session room, and the local client and other clients communicate in the same network session. Among them, there is one or more than one other clients.
在本端客户端和其它客户端建立网络会话后,本端客户端中显示第一用户界面。示例性的,该第一用户界面上包括本端客户端对应的第一视频窗口,以及其它客户端对应的第二视频窗口。第一视频窗口用于显示本端客户端对应的第一摄像头所采集的摄像头画面或共享画面;第二视频窗口用于显示其 它客户端对应的第二摄像头所采集的摄像头画面或共享画面。After the local client and other clients establish a network session, the first user interface is displayed in the local client. Exemplarily, the first user interface includes a first video window corresponding to the local client and a second video window corresponding to other clients. The first video window is used to display camera images or shared images captured by the first camera corresponding to the local client; the second video window is used to display camera images or shared images captured by the second camera corresponding to other clients.
步骤204,响应于网络环境差于第一条件,将网络会话从视频模式切换为语音模式。Step 204: In response to the network environment being worse than the first condition, switch the network session from the video mode to the voice mode.
网络环境差于第一条件包括但不限于:网络速度低于第一阈值且不为0,或者,丢包率高于第二阈值。比如,第一阈值为50kb,此时视频画面会出现断断续续的卡顿。The condition that the network environment is worse than the first condition includes but is not limited to: the network speed is lower than the first threshold and is not 0, or the packet loss rate is higher than the second threshold. For example, if the first threshold is 50 kb, intermittent freezes will appear in the video screen at this time.
示例性的,本端客户端在网络会话的持续期间,周期性地测量网络速度或丢包率。当网络环境差于第一条件时,自动将网络会话从视频模式切换为语音模式。在视频模式下,网络会话中存在有视频流和音频流。本端客户端停止对网络会话中的视频流的上传和下载(不排除只停止上传或只停止下载的实施例),保持对网络会话中的音频流的上传和下载。Exemplarily, the local client periodically measures the network speed or packet loss rate during the duration of the network session. When the network environment is worse than the first condition, the network session is automatically switched from the video mode to the voice mode. In the video mode, there are video streams and audio streams in the network session. The local client terminal stops uploading and downloading the video stream in the network session (the embodiment that only stops uploading or only stops downloading is not excluded), and keeps uploading and downloading the audio stream in the network session.
其中,上传是指对本端客户端生成的视频流和/或音频流进行上传;下载是指对其它客户端生成的视频流和/或音频流进行下载。Wherein, uploading refers to uploading a video stream and/or audio stream generated by the local client; and downloading refers to downloading a video stream and/or audio stream generated by other clients.
在视频模式切换为语音模式的过程中,由于网络会话的音频流不存在中断,因此能够保证用户的语音信号得到不间断的优先传输。In the process of switching from the video mode to the voice mode, since there is no interruption in the audio stream of the network session, it can ensure that the user's voice signal is continuously and preferentially transmitted.
步骤206,显示第二用户界面,第二用户界面是本端客户端与其它客户端采用语音模式进行网络会话时的界面。Step 206: Display a second user interface. The second user interface is an interface when the local client and other clients use the voice mode to conduct a network conversation.
在网络会话从视频模式切换为语音模式后,本端客户端中显示第二用户界面。示例性的,该第二用户界面上不存在第二视频窗口(或显示空的第二视频窗口),也即无法在看到其它客户端对应的第二摄像头所采集的摄像头画面。可选地,该第二用户界面上也不存在第一视频窗口,(或显示空的第一视频窗口),也即无法在看到其它客户端对应的第一摄像头所采集的摄像头画面。After the network session is switched from the video mode to the voice mode, the second user interface is displayed in the local client. Exemplarily, there is no second video window (or an empty second video window) on the second user interface, that is, the camera images collected by the second cameras corresponding to other clients cannot be seen. Optionally, the first video window does not exist on the second user interface (or an empty first video window is displayed), that is, the camera images collected by the first camera corresponding to the other client cannot be seen.
在一个示例中,采用其它客户端对应的头像来替换第二视频窗口或第二视频窗口中的显示内容。以及,采用本端客户端对应的头像来替换第一视频窗口或第一视频窗口中的显示内容。In an example, an avatar corresponding to another client is used to replace the second video window or the displayed content in the second video window. And, the avatar corresponding to the local client is used to replace the first video window or the displayed content in the first video window.
综上所述,本实施例提供的方法,通过响应于网络环境差于第一条件, 将网络会话从视频模式切换为语音模式。在客户端处于弱网环境下,减少了视频模式中视频部分对网络带宽的占用,从而使得语音模式能够流畅地进行,保证了网络会话在弱网环境下仍然能够正常使用,降低了网络会话在网络较差环境下的失败率。In summary, the method provided in this embodiment switches the network session from the video mode to the voice mode in response to the network environment being worse than the first condition. When the client is in a weak network environment, it reduces the occupation of network bandwidth by the video part of the video mode, so that the voice mode can be performed smoothly, ensuring that the network session can still be used normally in the weak network environment, and reducing the network session Failure rate in a poor network environment.
图3示出了本申请另一个示例性实施例示出的网络会话的切换方法的流程图。本实施例以该方法应用于图1所示的客户端(终端)中执行来举例说明。该方法包括:Fig. 3 shows a flowchart of a method for switching a network session shown in another exemplary embodiment of the present application. In this embodiment, the method is applied to the client (terminal) shown in FIG. 1 as an example for illustration. The method includes:
步骤202,显示第一用户界面,第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面。Step 202: Display a first user interface. The first user interface is an interface when the local client and other clients use a video mode to conduct a network session.
用户启动终端中的本端客户端,使用该本端客户端与其它客户端建立网络会话。示例性的,该网络会话具有网络会话号或者网络会话房间,本端客户端和其它客户端在同一个网络会话中进行通讯。其中,其它客户端为一个,或者多于一个。The user starts the local client in the terminal, and uses the local client to establish a network session with other clients. Exemplarily, the network session has a network session number or a network session room, and the local client and other clients communicate in the same network session. Among them, there is one or more than one other clients.
在本端客户端和其它客户端建立网络会话后,本端客户端中显示第一用户界面。示例性的,该第一用户界面上包括本端客户端对应的第一视频窗口,以及其它客户端对应的第二视频窗口。第一视频窗口用于显示本端客户端对应的第一摄像头所采集的摄像头画面或共享画面;第二视频窗口用于显示其它客户端对应的第二摄像头所采集的摄像头画面或共享画面。共享画面包括:屏幕画面、视频画面、文本(Word)文件画面、演示(PPT)文件画面和电子表格(Excel)文件画面中的至少一种。After the local client and other clients establish a network session, the first user interface is displayed in the local client. Exemplarily, the first user interface includes a first video window corresponding to the local client and a second video window corresponding to other clients. The first video window is used to display camera images or shared images captured by the first camera corresponding to the local client; the second video window is used to display camera images or shared images captured by the second camera corresponding to other clients. The shared image includes at least one of a screen image, a video image, a text (Word) file image, a presentation (PPT) file image, and an electronic spreadsheet (Excel) file image.
本实施例中,以其它客户端为至少两个来举例说明。此时,第一用户界面上的第二视频窗口也可以为至少两个,第二视频窗口的数量和其它客户端的数量是相同的。In this embodiment, at least two other clients are used as an example for illustration. At this time, there may also be at least two second video windows on the first user interface, and the number of second video windows is the same as the number of other clients.
步骤204a,响应于网络环境差于第一条件,将本端客户端与其它客户端之间的网络会话从视频模式切换为语音模式。 Step 204a, in response to the network environment being worse than the first condition, switch the network session between the local client and other clients from the video mode to the voice mode.
网络环境差于第一条件包括但不限于:网络速度低于第一阈值且不为0,或者,丢包率高于第二阈值。比如,第一阈值为50kb,此时视频画面会出现 断断续续的卡顿。The condition that the network environment is worse than the first condition includes but is not limited to: the network speed is lower than the first threshold and is not 0, or the packet loss rate is higher than the second threshold. For example, if the first threshold is 50kb, then the video will have intermittent freezes.
示例性的,本端客户端在网络会话的持续期间,周期性地测量网络速度或丢包率。当网络环境差于第一条件时,自动将本端客户端与其它客户端之间的网络会话从视频模式切换为语音模式。也即,本端客户端只将自身侧的网络会话从视频模式切换为语音模式,而属于同一个网络会话的其它客户端之间仍然保持采用视频模式。Exemplarily, the local client periodically measures the network speed or packet loss rate during the duration of the network session. When the network environment is worse than the first condition, the network session between the local client and other clients is automatically switched from the video mode to the voice mode. That is, the local client only switches the network session on its own side from the video mode to the voice mode, while other clients belonging to the same network session still maintain the video mode.
在视频模式下,网络会话中存在有视频流和音频流。本端客户端停止对网络会话中的视频流的上传和下载(不排除只停止上传或只停止下载的实施例),保持对网络会话中的音频流的上传和下载。在一个示例性的例子中,该过程不需要服务器以及其它客户端的改变。In the video mode, there are video streams and audio streams in the network session. The local client terminal stops uploading and downloading the video stream in the network session (the embodiment that only stops uploading or only stops downloading is not excluded), and keeps uploading and downloading the audio stream in the network session. In an illustrative example, the process does not require server and other client changes.
其中,上传是指对本端客户端生成的视频流和/或音频流进行上传;下载是指对其它客户端生成的视频流和/或音频流进行下载。Wherein, uploading refers to uploading a video stream and/or audio stream generated by the local client; and downloading refers to downloading a video stream and/or audio stream generated by other clients.
响应于网络环境差于第一条件,本端客户端将本端客户端与其它客户端之间的网络会话中的视频流进行关闭,将本端客户端与其它客户端之间的网络会话中的音频流保持继续传输。In response to the network environment being worse than the first condition, the local client closes the video stream in the network session between the local client and other clients, and the network session between the local client and other clients The audio stream keeps continuing to transmit.
在一个示例中,本端客户端将网络会话从视频模式切换为语音模式之前,先在第一用户界面上叠加显示询问窗口,该询问窗口用于询问用户是否从视频模式切换为语音模式;响应于确认切换指令,本端客户端再将网络会话从视频模式切换为语音模式。In an example, before switching the network session from the video mode to the voice mode, the local client first superimposes and displays a query window on the first user interface, and the query window is used to ask the user whether to switch from the video mode to the voice mode; response After confirming the switching instruction, the local client then switches the network session from video mode to voice mode.
步骤206,显示第二用户界面,第二用户界面是本端客户端与其它客户端采用语音模式进行网络会话时的界面。Step 206: Display a second user interface. The second user interface is an interface when the local client and other clients use the voice mode to conduct a network conversation.
在网络会话从视频模式切换为语音模式后,本端客户端中显示第二用户界面。示例性的,该第二用户界面上不存在第二视频窗口(或显示空的第二视频窗口),也即无法在看到其它客户端对应的第二摄像头所采集的摄像头画面。可选地,该第二用户界面上也不存在第一视频窗口,(或显示空的第一视频窗口),也即无法在看到其它客户端对应的第一摄像头所采集的摄像头画面。After the network session is switched from the video mode to the voice mode, the second user interface is displayed in the local client. Exemplarily, there is no second video window (or an empty second video window) on the second user interface, that is, the camera images collected by the second cameras corresponding to other clients cannot be seen. Optionally, the first video window does not exist on the second user interface (or an empty first video window is displayed), that is, the camera images collected by the first camera corresponding to the other client cannot be seen.
在一个示例中,采用其它客户端对应的头像来替换第二视频窗口或第二视频窗口中的显示内容。以及,采用本端客户端对应的头像来替换第一视频窗口或第一视频窗口中的显示内容。In an example, an avatar corresponding to another client is used to replace the second video window or the displayed content in the second video window. And, the avatar corresponding to the local client is used to replace the first video window or the displayed content in the first video window.
步骤208,响应于外部输入的人机交互指令,将网络会话从语音模式切换为视频模式。Step 208: In response to an externally inputted human-computer interaction instruction, switch the network conversation from the voice mode to the video mode.
客户端所处的网络环境可能会发生改变的,比如用户手持笔记本电脑或台式电脑在户外和室内之间移动,此时网络环境会变好会变坏。又或者,用户需要采用视频模式来观看共享画面。The network environment where the client is located may change. For example, when a user holds a laptop or desktop computer while moving between outdoors and indoors, the network environment will get better or worse. Or, the user needs to use the video mode to watch the shared screen.
在这些情况下,用户能够向客户端输入人机交互指令,该人机交互指令用于指示将网络会话从语音模式切换为视频模式。其中,人机交互指令包括:关闭语音模式的第一指令、打开摄像头的第二指令、共享画面的第三指令中的至少一个。In these cases, the user can input a human-computer interaction instruction to the client, and the human-computer interaction instruction is used to instruct the network session to switch from the voice mode to the video mode. The human-computer interaction instruction includes at least one of: a first instruction to turn off the voice mode, a second instruction to turn on a camera, and a third instruction to share a picture.
在一个示例中,第二用户界面上(含次级菜单)显示有语音模式的开启/关闭按钮,当用户点击该开启/关闭按钮时,客户端将网络会话从语音模式切换为视频模式。In an example, the voice mode on/off button is displayed on the second user interface (including the secondary menu). When the user clicks the on/off button, the client switches the network session from the voice mode to the video mode.
在一个示例中,第二用户界面上(含次级菜单)显示有摄像头的开启按钮,当用户点击该开启按钮时,客户端将网络会话从语音模式切换为视频模式。In an example, a camera start button is displayed on the second user interface (including the secondary menu). When the user clicks the start button, the client terminal switches the network session from the voice mode to the video mode.
在一个示例中,第二用户界面上(含次级菜单)显示有共享文件的共享按钮,当用户点击该共享按钮对某个共享文件进行共享时,客户端将网络会话从语音模式切换为视频模式。In an example, a sharing button for sharing files is displayed on the second user interface (including the secondary menu). When the user clicks the sharing button to share a shared file, the client switches the network session from voice mode to video mode.
步骤210,响应于网络环境优于第二条件,将网络会话从语音模式切换为视频模式。Step 210: In response to the network environment being better than the second condition, switch the network session from the voice mode to the video mode.
网络环境优于第二条件包括但不限于:网络速度高于第三阈值,或者,丢包率低于第四阈值。第三阈值大于或等于第一阈值,第四阈值小于或等于第二阈值。比如,第三阈值为100kb,此时能保证较低分辨率的视频画面的流畅显示。The network environment is better than the second condition including but not limited to: the network speed is higher than the third threshold, or the packet loss rate is lower than the fourth threshold. The third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the second threshold. For example, the third threshold is 100kb, which can ensure the smooth display of lower resolution video images.
作为与步骤208并列的另外一种形式,本端客户端在网络会话的持续期间,周期性地测量网络速度或丢包率。当网络环境优于第二条件时,自动将本端客户端与其它客户端之间的网络会话从语音模式切换为视频模式。As another form parallel to step 208, the local client periodically measures the network speed or the packet loss rate during the duration of the network session. When the network environment is better than the second condition, the network conversation between the local client and other clients is automatically switched from the voice mode to the video mode.
在一个示例中,在语音模式切换为视频模式时,本端客户端恢复对本端客户单和其它客户端之间的视频流的上传和下载,从而实现对视频画面的重新显示。In an example, when the voice mode is switched to the video mode, the local client resumes uploading and downloading the video stream between the local client list and other clients, thereby realizing the redisplay of the video screen.
其中,上传包括对本端客户端采集的画面数据发送至同一网络房间中的其它客户端,下载包括对同一网络房间中的其它客户端采集的画面数据接收至本端客户端。Wherein, uploading includes sending the screen data collected from the local client to other clients in the same network room, and downloading includes receiving the screen data collected from other clients in the same network room to the local client.
步骤212,显示第一用户界面,第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面。Step 212: Display a first user interface. The first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation.
在网络会话从语音模式切换为视频模式后,本端客户端中再次显示第一用户界面。但需要说明的是,本步骤的第一用户界面中的显示画面,可以与步骤202的第一用户界面中的显示画面不同。After the network session is switched from the voice mode to the video mode, the first user interface is displayed again in the local client. However, it should be noted that the display screen in the first user interface in this step may be different from the display screen in the first user interface in step 202.
在一个可能的实施例中,上述视频模式和语音模式的切换也可以由外部输入的人机交互指令来手动触发。比如,在移动客户端上进行左滑,触发从视频模式切换至语音模式;又比如,在移动客户端上进行右滑,触发从语音模式切换至视频模式。In a possible embodiment, the above-mentioned switching between the video mode and the voice mode may also be manually triggered by an externally inputted human-computer interaction instruction. For example, swiping to the left on the mobile client triggers the switch from video mode to voice mode; for another example, swiping to the right on the mobile client triggers the switch from voice mode to video mode.
综上所述,本实施例提供的方法,通过响应于网络环境差于第一条件,将网络会话从视频模式切换为语音模式。在客户端处于弱网环境下,减少了视频模式中视频部分对网络带宽的占用,从而使得语音模式能够流畅地进行,保证了网络会话在弱网环境下仍然能够正常使用,降低了网络会话在网络较差环境下的失败率。In summary, the method provided in this embodiment switches the network session from the video mode to the voice mode in response to the network environment being worse than the first condition. When the client is in a weak network environment, it reduces the occupation of network bandwidth by the video part of the video mode, so that the voice mode can be performed smoothly, ensuring that the network session can still be used normally in the weak network environment, and reducing the network session Failure rate in a poor network environment.
本实施例提供的方法,还通过响应于外部输入的人机交互指令,将网络会话从语音模式切换为视频模式。在客户端从弱网环境切换至强网环境时,保证了网络会话在强网环境下恢复为视频模式,从而在强网环境下提供“视频+音频”的多媒体会话模式,提高了用户体验。The method provided in this embodiment also switches the network conversation from the voice mode to the video mode by responding to an externally inputted human-computer interaction instruction. When the client switches from a weak network environment to a strong network environment, it ensures that the network session is restored to the video mode in the strong network environment, thereby providing a "video + audio" multimedia session mode in the strong network environment, improving user experience.
本实施例提供的方法,还通过响应于网络环境优于第二条件,将网络会话自动从语音模式切换为视频模式。在客户端从弱网环境切换至强网环境时,保证了网络会话在强网环境下恢复为视频模式,从而在强网环境下提供“视频+音频”的多媒体会话模式,提高了用户体验。The method provided in this embodiment also automatically switches the network session from the voice mode to the video mode by responding to the fact that the network environment is better than the second condition. When the client switches from a weak network environment to a strong network environment, it ensures that the network session is restored to the video mode in the strong network environment, thereby providing a "video + audio" multimedia session mode in the strong network environment, improving user experience.
以下采用客户端是移动客户端、且该移动客户端是云会议客户端来进行举例说明,用户使用该云会议客户端进行多人视频会议,图4中以该多人视频会议是4人视频会议为例。移动客户端上显示有第一用户界面40,该第一用户界面40上显示有本端客户端对应的第一视频窗口41,以及三个其它客户端对应的第二视频窗口。第一视频窗口41中显示当前用户的摄像头画面,第二视频窗口显示其它用户的摄像头画面。在第一用户界面40上,还显示有麦克风按钮、摄像头按钮、屏幕共享按钮、管理成员按钮和更多设置按钮。麦克风按钮是用于开启或关闭麦克风的功能控件,摄像头按钮是用于开启或关闭本地摄像头的功能控件,屏幕共享按钮是用于共享屏幕或文件的功能控件,管理成员按钮是用于管理当前网络会议中的参会人员的功能控件,更多设置按钮是用于提供其他位于次级菜单中功能的功能控件。The following uses the client to be a mobile client and the mobile client to be a cloud meeting client for example. The user uses the cloud meeting client to conduct a multi-person video conference. In Figure 4, the multi-person video conference is a 4-person video conference. Take the meeting as an example. A first user interface 40 is displayed on the mobile client, and a first video window 41 corresponding to the local client and second video windows corresponding to three other clients are displayed on the first user interface 40. The camera picture of the current user is displayed in the first video window 41, and the camera picture of other users is displayed in the second video window. On the first user interface 40, a microphone button, a camera button, a screen sharing button, a member management button, and more setting buttons are also displayed. The microphone button is a functional control used to turn on or off the microphone, the camera button is a functional control used to turn on or off the local camera, the screen sharing button is a functional control used to share screens or files, and the manage member button is used to manage the current network The function controls of the participants in the meeting, the more setting button is used to provide other function controls located in the secondary menu.
当网络环境差于第一条件时,第一用户界面40上会显示“网络信号差,自动转为语音模式”的提示信息42。然后,移动客户端将当前的网络会话从视频模式切换为语音模式,显示第二用户界面50。在第二用户界面50中,不再显示第一视频窗口和第二视频窗口,而使用当前用户的头像和其它用户的头像来进行代替。同时,第二用户界面50上会在更多设置按钮的周侧显示“在设置中,可以关闭语音模式”的提示信息。When the network environment is worse than the first condition, the first user interface 40 will display the prompt message 42 of "the network signal is poor, automatically switch to the voice mode". Then, the mobile client switches the current network session from the video mode to the voice mode, and displays the second user interface 50. In the second user interface 50, the first video window and the second video window are no longer displayed, and the current user's avatar and other users' avatars are used instead. At the same time, the second user interface 50 will display a prompt message "in the setting, the voice mode can be turned off" on the side of the more setting buttons.
当用户希望继续使用视频模式进行网络会话时,可以点击第二用户界面50中的更多设置按钮,此时显示第二用户界面50的次级界面60,如图5所示。该次级界面包括但不限于:入会开始摄像头按钮、入会开启麦克风按钮、屏幕共享加观看者水印按钮、开启屏幕共享水印按钮和开启语音模式按钮44。当用户点击语音模式按钮44后,会议客户端从语音模式重新切换为视频模式。或者,用户直接在第二用户界面50中点击摄像头按钮或屏幕共享按钮,也可 以触发从语音模式重新切换为视频模式。When the user wants to continue to use the video mode for the network session, he can click the more settings button in the second user interface 50, and the secondary interface 60 of the second user interface 50 is displayed at this time, as shown in FIG. 5. The secondary interface includes, but is not limited to: a camera button for joining a meeting, a microphone on button for joining a meeting, a screen sharing plus viewer watermark button, a screen sharing watermark on button, and a voice mode on button 44. When the user clicks the voice mode button 44, the conference client is switched from the voice mode to the video mode again. Alternatively, the user directly clicks the camera button or the screen sharing button in the second user interface 50 to trigger the re-switching from the voice mode to the video mode.
以下采用客户端是电脑客户端来进行举例说明,且该电脑客户端是云会议客户端来进行举例说明,用户使用该云会议客户端进行多人视频会议,图6中以该多人视频会议是5人视频会议为例。移动客户端上显示有第一用户界面40,该第一用户界面40上显示有本端客户端对应的第一视频窗口,以及其它客户端对应的第二视频窗口(全部或部分)。第一视频窗口中显示当前用户的摄像头画面,第二视频窗口显示其它用户的摄像头画面。当其它客户端较多时,可以隐藏一部分其它客户端的摄像头画面。In the following, the client is a computer client for example, and the computer client is a cloud meeting client for example. The user uses the cloud meeting client to conduct a multi-person video conference. In Figure 6, the multi-person video conference is used. Take a 5-person video conference as an example. A first user interface 40 is displayed on the mobile client, and a first video window corresponding to the local client and a second video window (all or part) corresponding to other clients are displayed on the first user interface 40. The camera picture of the current user is displayed in the first video window, and the camera picture of other users is displayed in the second video window. When there are many other clients, part of the camera screens of other clients can be hidden.
在第一用户界面40上,还显示有麦克风按钮、摄像头按钮、屏幕共享按钮、邀请成员按钮、管理成员按钮、聊天按钮、文档发送按钮和设置按钮。麦克风按钮是用于开启或关闭麦克风的功能控件,摄像头按钮是用于开启或关闭本地摄像头的功能控件,屏幕共享按钮是用于共享屏幕或文件的功能控件,邀请成员按钮是用于邀请某个联系人参加当前网络会议的功能控件,管理成员是用于管理当前网络会议中的参会人员的功能控件,聊天按钮是用于进行文本聊天的按钮,设置按钮是用于提供其他位于次级菜单中功能的功能控件。On the first user interface 40, a microphone button, a camera button, a screen sharing button, a member invite button, a member management button, a chat button, a document sending button, and a setting button are also displayed. The microphone button is a functional control used to turn the microphone on or off, the camera button is a functional control used to turn on or off the local camera, the screen sharing button is a functional control used to share screens or files, and the invite member button is used to invite someone The function control for the contact to participate in the current web conference, the management member is the function control for managing the participants in the current web conference, the chat button is the button for text chat, and the setting button is used to provide other secondary menus. The function control of the middle function.
当网络环境差于第一条件时,第一用户界面40上会显示“当前网络较差,为能保证会议质量,是否开启语音模式”的询问窗口45。若用户点击询问窗口45上的确定按钮,则电脑客户端将当前的网络会话从视频模式切换为语音模式,显示第二用户界面50,如图7所示。在第二用户界面50中,不再显示第一视频窗口和第二视频窗口,而使用当前用户的头像和其它用户的头像来进行代替。同时,第二用户界面50上会在更多设置按钮的周侧显示“如果继续接收其它成员视频,请在“设置”中关闭语音模式”的提示信息46。When the network environment is worse than the first condition, the first user interface 40 will display an inquiry window 45 of "The current network is poor. In order to ensure the quality of the conference, whether to enable the voice mode" query window 45. If the user clicks the OK button on the inquiry window 45, the computer client switches the current network session from the video mode to the voice mode, and displays the second user interface 50, as shown in FIG. 7. In the second user interface 50, the first video window and the second video window are no longer displayed, and the current user's avatar and other users' avatars are used instead. At the same time, the second user interface 50 will display a prompt message 46 of "If you continue to receive other members' videos, please turn off the voice mode in the "Settings"" on the side of the More Settings button.
当用户希望继续使用视频模式进行网络会话时,可以点击第二用户界面50中的更多设置按钮,此时显示第二用户界面50的次级界面60,如图8所示。该次级界面包括但不限于:入会开始摄像头按钮、入会使用电脑音频按钮、入会自动选择电脑音频按钮和开启语音模式按钮44。当用户点击语音模式按 钮44后,会议客户端从语音模式重新切换为视频模式。或者,用户直接在第二用户界面50中点击摄像头按钮或屏幕共享按钮,也可以触发从语音模式重新切换为视频模式。When the user wants to continue to use the video mode for the network session, he can click the more settings button in the second user interface 50, and the secondary interface 60 of the second user interface 50 is displayed at this time, as shown in FIG. 8. The secondary interface includes, but is not limited to: a camera button for joining a meeting, a computer audio button for joining a meeting, a computer audio button for automatically selecting a meeting, and a voice mode button 44. When the user clicks the voice mode button 44, the conference client is switched from the voice mode to the video mode again. Alternatively, the user directly clicks the camera button or the screen sharing button in the second user interface 50 to trigger the re-switching from the voice mode to the video mode.
当然,若用户点击了询问窗口45上的取消按钮,也可以在第一用户界面上显示“如果网络未恢复正常,您可以在“设置”中开启语音模式”提示信息47,如图9所示。Of course, if the user clicks the cancel button on the inquiry window 45, the prompt message 47 of "If the network does not return to normal, you can turn on the voice mode in "Settings"" can also be displayed on the first user interface, as shown in Figure 9 .
应该理解的是,虽然前述实施例中各流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,各流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts in the foregoing embodiment are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in each flowchart may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The order of execution of these steps or stages It is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
图10示出了本申请一个示例性实施例提供的网络会话的切换装置的框图。该装置包括:显示模块1020和切换模块1040。网络会话的切换装置中包括的各个模块可全部或部分通过软件、硬件或其组合来实现。Fig. 10 shows a block diagram of a device for switching a network session provided by an exemplary embodiment of the present application. The device includes: a display module 1020 and a switching module 1040. Each module included in the device for switching a network session may be implemented in whole or in part by software, hardware, or a combination thereof.
显示模块1020,用于显示第一用户界面,第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面。The display module 1020 is configured to display a first user interface. The first user interface is an interface when the local client and other clients use the video mode to conduct a network conversation.
切换模块1040,用于响应于网络环境差于第一条件,将网络会话从视频模式切换为语音模式。The switching module 1040 is configured to switch the network session from the video mode to the voice mode in response to the network environment being worse than the first condition.
显示模块1020还用于显示第二用户界面,第二用户界面是本端客户端与其它客户端采用语音模式进行网络会话时的界面。The display module 1020 is also used to display a second user interface, which is an interface when the local client and other clients conduct a network conversation in a voice mode.
在一个示例性的实施例中,其它客户端为至少两个。In an exemplary embodiment, there are at least two other clients.
切换模块1040还用于响应于网络环境差于第一条件,将本端客户端与其它客户端之间的网络会话从视频模式切换为语音模式;其中,至少两个其它客户端之间的网络会话保持采用视频模式。The switching module 1040 is further configured to switch the network session between the local client and other clients from the video mode to the voice mode in response to the network environment being worse than the first condition; wherein, the network session between at least two other clients The session remains in video mode.
在一个示例性的实施例中,切换模块1040还用于响应于网络环境差于第一条件,将本端客户端与其它客户端之间的网络会话中的视频流进行关闭,将本端客户端与其它客户端之间的网络会话中的音频流保持传输。In an exemplary embodiment, the switching module 1040 is further configured to, in response to the network environment being worse than the first condition, close the video stream in the network session between the local client and other clients, and switch the local client The audio stream in the network session between the client and other clients keeps transmitting.
在一个示例性的实施例中,切换模块1040还用于响应于外部输入的人机交互指令,将网络会话从语音模式切换为视频模式;其中,人机交互指令包括:关闭语音模式的第一指令、打开摄像头的第二指令、共享画面的第三指令中的至少一个。In an exemplary embodiment, the switching module 1040 is further configured to switch the network session from the voice mode to the video mode in response to an externally inputted human-computer interaction instruction; wherein, the human-computer interaction instruction includes: the first voice mode is turned off. At least one of the instruction, the second instruction to turn on the camera, and the third instruction to share the screen.
在一个示例性的实施例中,切换模块1040还用于响应于网络环境优于第二条件,将网络会话从语音模式切换为视频模式。In an exemplary embodiment, the switching module 1040 is further configured to switch the network session from the voice mode to the video mode in response to the network environment being better than the second condition.
图11示出了本申请一个示例性实施例提供的计算机设备1100的结构框图。该计算机设备1100可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器。计算机设备1100还可能被称为用户设备、便携式终端等其他名称。FIG. 11 shows a structural block diagram of a computer device 1100 provided by an exemplary embodiment of the present application. The computer device 1100 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, The motion picture expert compresses the standard audio frequency level 4) the player. The computer device 1100 may also be called user equipment, portable terminal, and other names.
通常,计算机设备1100包括有:处理器1101和存储器1102。Generally, the computer device 1100 includes a processor 1101 and a memory 1102.
处理器1101可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1101可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1101也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1101可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1101还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1101 can adopt at least one hardware form among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array, Programmable Logic Array). achieve. The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also called a CPU (Central Processing Unit, central processing unit); the coprocessor is A low-power processor used to process data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computing operations related to machine learning.
存储器1102可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是有形的和非暂态的。存储器1102还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1102中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1101所执行以实现本申请中提供的邮件发送方法。The memory 1102 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1102 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1101 to implement the mail sending method provided in this application.
在一些实施例中,计算机设备1100还可选包括有:外围设备接口1103和至少一个外围设备。具体地,外围设备包括:射频电路1104、触摸显示屏1105、摄像头1106、音频电路1107、定位组件1108和电源1109中的至少一种。In some embodiments, the computer device 1100 may optionally further include: a peripheral device interface 1103 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a touch display screen 1105, a camera 1106, an audio circuit 1107, a positioning component 1108, and a power supply 1109.
外围设备接口1103可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1101和存储器1102。在一些实施例中,处理器1101、存储器1102和外围设备接口1103被集成在同一芯片或电路板上;在一些其他实施例中,处理器1101、存储器1102和外围设备接口1103中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 1103 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1101, the memory 1102, and the peripheral device interface 1103 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
射频电路1104用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1104通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1104将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1104包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1104可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1104还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area network and/or WiFi (Wireless Fidelity, wireless fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include a circuit related to NFC (Near Field Communication), which is not limited in this application.
触摸显示屏1105用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。触摸显示屏1105还具有采 集在触摸显示屏1105的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1101进行处理。触摸显示屏1105用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,触摸显示屏1105可以为一个,设置计算机设备1100的前面板;在另一些实施例中,触摸显示屏1105可以为至少两个,分别设置在计算机设备1100的不同表面或呈折叠设计;在再一些实施例中,触摸显示屏1105可以是柔性显示屏,设置在计算机设备1100的弯曲表面上或折叠面上。甚至,触摸显示屏1105还可以设置成非矩形的不规则图形,也即异形屏。触摸显示屏1105可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The touch screen 1105 is used to display UI (User Interface). The UI can include graphics, text, icons, videos, and any combination thereof. The touch display screen 1105 also has the ability to collect touch signals on or above the surface of the touch display screen 1105. The touch signal may be input to the processor 1101 as a control signal for processing. The touch screen 1105 is used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there may be one touch display screen 1105, and the front panel of the computer device 1100 may be provided; in other embodiments, there may be at least two touch display screens 1105, which are respectively arranged on different surfaces or presentations of the computer device 1100. Folding design; in other embodiments, the touch screen 1105 may be a flexible display screen, which is arranged on the curved surface or the folding surface of the computer device 1100. Even the touch screen 1105 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The touch screen 1105 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode).
摄像头组件1106用于采集图像或视频。可选地,摄像头组件1106包括前置摄像头和后置摄像头。通常,前置摄像头用于实现视频通话或自拍,后置摄像头用于实现照片或视频的拍摄。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能,主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能。在一些实施例中,摄像头组件1106还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Generally, the front camera is used to implement video calls or selfies, and the rear camera is used to implement photos or videos. In some embodiments, there are at least two rear cameras, each of which is a main camera, a depth-of-field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, and the main camera and the wide-angle camera are fused Realize panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a single-color flash or a dual-color flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
音频电路1107用于提供用户和计算机设备1100之间的音频接口。音频电路1107可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1101进行处理,或者输入至射频电路1104以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在计算机设备1100的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1101或射频电路1104的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以 将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1107还可以包括耳机插孔。The audio circuit 1107 is used to provide an audio interface between the user and the computer device 1100. The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1101 for processing, or input to the radio frequency circuit 1104 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged in different parts of the computer device 1100. The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker can be a traditional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into human audible sound waves, but also convert the electrical signal into human inaudible sound waves for distance measurement and other purposes. In some embodiments, the audio circuit 1107 may also include a headphone jack.
定位组件1108用于定位计算机设备1100的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1108可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。The positioning component 1108 is used to locate the current geographic location of the computer device 1100 to implement navigation or LBS (Location Based Service, location-based service). The positioning component 1108 may be a positioning component based on the GPS (Global Positioning System, Global Positioning System) of the United States, the Beidou system of China, or the Galileo system of Russia.
电源1109用于为计算机设备1100中的各个组件进行供电。电源1109可以是交流电、直流电、一次性电池或可充电电池。当电源1109包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 1109 is used to supply power to various components in the computer device 1100. The power source 1109 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,计算机设备1100还包括有一个或多个传感器1110。该一个或多个传感器1110包括但不限于:加速度传感器1111陀螺仪传感器1112、压力传感器1113、指纹传感器1114、光学传感器1111以及接近传感器1116。In some embodiments, the computer device 1100 further includes one or more sensors 1110. The one or more sensors 1110 include, but are not limited to: an acceleration sensor 1111, a gyroscope sensor 1112, a pressure sensor 1113, a fingerprint sensor 1114, an optical sensor 1111, and a proximity sensor 1116.
加速度传感器1111以检测以计算机设备1100建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1111以用于检测重力加速度在三个坐标轴上的分量。处理器1101可以根据加速度传感器1111集的重力加速度信号,控制触摸显示屏1105以横向视图或纵向视图进行用户界面的显示。加速度传感器1111可以用于游戏或者用户的运动数据的采集。The acceleration sensor 1111 detects the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1100. For example, the acceleration sensor 1111 is used to detect the components of gravitational acceleration on three coordinate axes. The processor 1101 may control the touch screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 may be used for the collection of game or user motion data.
陀螺仪传感器1112可以检测计算机设备1100的机体方向及转动角度,陀螺仪传感器1112可以与加速度传感器1111同采集用户对计算机设备1100的3D动作。处理器1101根据陀螺仪传感器1112采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 1112 can detect the body direction and rotation angle of the computer device 1100, and the gyroscope sensor 1112 can collect the 3D actions of the user on the computer device 1100 together with the acceleration sensor 1111. Based on the data collected by the gyroscope sensor 1112, the processor 1101 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
压力传感器1113可以设置在计算机设备1100的侧边框和/或触摸显示屏1105的下层。当压力传感器1113设置在计算机设备1100的侧边框时,可以检测用户对计算机设备1100的握持信号,根据该握持信号进行左右手识别或快 捷操作。当压力传感器1113设置在触摸显示屏1105的下层时,可以根据用户对触摸显示屏1105的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 1113 may be arranged on the side frame of the computer device 1100 and/or the lower layer of the touch screen 1105. When the pressure sensor 1113 is disposed on the side frame of the computer device 1100, it can detect the user's holding signal of the computer device 1100, and perform left and right hand recognition or quick operation according to the holding signal. When the pressure sensor 1113 is arranged on the lower layer of the touch display screen 1105, the control of the operability controls on the UI interface can be realized according to the user's pressure operation on the touch display screen 1105. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
指纹传感器1114用于采集用户的指纹,以根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1101授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1114可以被设置计算机设备1100的正面、背面或侧面。当计算机设备1100上设置有物理按键或厂商Logo时,指纹传感器1114可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 1114 is used to collect the user's fingerprint to identify the user's identity according to the collected fingerprint. When it is recognized that the user's identity is a trusted identity, the processor 1101 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1114 may be provided on the front, back or side of the computer device 1100. When the computer device 1100 is provided with a physical button or a manufacturer logo, the fingerprint sensor 1114 can be integrated with the physical button or the manufacturer logo.
光学传感器1111用于采集环境光强度。在一个实施例中,处理器1101可以根据光学传感器1111采集的环境光强度,控制触摸显示屏1105的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1105的显示亮度;当环境光强度较低时,调低触摸显示屏1105的显示亮度。在另一个实施例中,处理器1101还可以根据光学传感器1111采集的环境光强度,动态调整摄像头组件1106的拍摄参数。The optical sensor 1111 is used to collect the ambient light intensity. In an embodiment, the processor 1101 may control the display brightness of the touch screen 1105 according to the intensity of the ambient light collected by the optical sensor 1111. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1105 is decreased. In another embodiment, the processor 1101 may also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1111.
接近传感器1116,也称距离传感器,通常设置在计算机设备1100的正面。接近传感器1116用于采集用户与计算机设备1100的正面之间的距离。在一个实施例中,当接近传感器1116检测到用户与计算机设备1100的正面之间的距离逐渐变小时,由处理器1101控制触摸显示屏1105从亮屏状态切换为息屏状态;当接近传感器1116检测到用户与计算机设备1100的正面之间的距离逐渐变大时,由处理器1101控制触摸显示屏1105从息屏状态切换为亮屏状态。The proximity sensor 1116, also called a distance sensor, is usually arranged on the front of the computer device 1100. The proximity sensor 1116 is used to collect the distance between the user and the front of the computer device 1100. In one embodiment, when the proximity sensor 1116 detects that the distance between the user and the front of the computer device 1100 gradually becomes smaller, the processor 1101 controls the touch screen 1105 to switch from the on-screen state to the off-screen state; when the proximity sensor 1116 When it is detected that the distance between the user and the front of the computer device 1100 is gradually increasing, the processor 1101 controls the touch screen 1105 to switch from the rest screen state to the bright screen state.
本领域技术人员可以理解,图11中示出的结构并不构成对计算机设备1100的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 11 does not constitute a limitation on the computer device 1100, and may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.
图12示出了本申请还提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器 执行上述网络会话的切换的步骤。此处图像处理方法的步骤可以是上述各个实施例的网络会话的切换方法中的步骤。需要说明的是,该计算机设备可以是如下图12所提供的计算机设备。FIG. 12 shows that the present application also provides a computer device, including a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of switching the above-mentioned network session. . Here, the steps of the image processing method may be the steps in the network session switching method of each of the foregoing embodiments. It should be noted that the computer device may be the computer device provided in Figure 12 below.
请参考图12,其示出了本申请一个示例性实施例提供的计算机设备的结构示意图。具体来讲:计算机设备1200包括中央处理单元(CPU)1201、包括随机存取存储器(RAM)1202和只读存储器(ROM)1203的系统存储器1204,以及连接系统存储器1204和中央处理单元1201的系统总线1205。计算机设备1200还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(I/O系统)1206,和用于存储操作系统1213、应用程序1214和其他程序模块1210的大容量存储设备1207。Please refer to FIG. 12, which shows a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application. Specifically: the computer device 1200 includes a central processing unit (CPU) 1201, a system memory 1204 including a random access memory (RAM) 1202 and a read-only memory (ROM) 1203, and a system connecting the system memory 1204 and the central processing unit 1201 Bus 1205. The computer device 1200 also includes a basic input/output system (I/O system) 1206 that helps to transfer information between various devices in the computer, and a mass storage device for storing the operating system 1213, application programs 1214, and other program modules 1210 1207.
基本输入/输出系统1206包括有用于显示信息的显示器1208和用于用户输入信息的诸如鼠标、键盘之类的输入设备1209。其中显示器1208和输入设备1209都通过连接到系统总线1205的输入输出控制器1210连接到中央处理单元1201。基本输入/输出系统1206还可以包括输入输出控制器1210以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器1210还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/output system 1206 includes a display 1208 for displaying information and an input device 1209 such as a mouse and a keyboard for the user to input information. The display 1208 and the input device 1209 are both connected to the central processing unit 1201 through the input and output controller 1210 connected to the system bus 1205. The basic input/output system 1206 may also include an input and output controller 1210 for receiving and processing input from multiple other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input and output controller 1210 also provides output to a display screen, a printer, or other types of output devices.
大容量存储设备1207通过连接到系统总线1205的大容量存储控制器(未示出)连接到中央处理单元1201。大容量存储设备1207及其相关联的计算机可读介质为计算机设备1200提供非易失性存储。也就是说,大容量存储设备1207可以包括诸如硬盘或者CD-ROI驱动器之类的计算机可读介质(未示出)。The mass storage device 1207 is connected to the central processing unit 1201 through a mass storage controller (not shown) connected to the system bus 1205. The mass storage device 1207 and its associated computer-readable medium provide non-volatile storage for the computer device 1200. That is, the mass storage device 1207 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
不失一般性,计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、EPROM、EEPROM、闪存或其他固态存储其技术,CD-ROM、DVD或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知计算机存储介质不局限于上述几种。上述的系统存储器1204和大容量存储设备1207可以统称为 存储器。Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cartridges, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art may know that the computer storage medium is not limited to the above-mentioned types. The aforementioned system memory 1204 and mass storage device 1207 may be collectively referred to as memory.
根据本申请的各种实施例,计算机设备1200还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即计算机设备1200可以通过连接在系统总线1205上的网络接口单元1211连接到网络1212,或者说,也可以使用网络接口单元1211来连接到其他类型的网络或远程计算机系统(未示出)。According to various embodiments of the present application, the computer device 1200 may also be connected to a remote computer on the network through a network such as the Internet to operate. That is, the computer device 1200 can be connected to the network 1212 through the network interface unit 1211 connected to the system bus 1205, or in other words, the network interface unit 1211 can also be used to connect to other types of networks or remote computer systems (not shown).
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行上述网络会话的切换的步骤。此处图像处理方法的步骤可以是上述各个实施例的网络会话的切换方法中的步骤。In one embodiment, a computer device is provided, including a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of switching the above-mentioned network session. Here, the steps of the image processing method may be the steps in the network session switching method of each of the foregoing embodiments.
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行上述网络会话的切换的步骤。此处图像处理方法的步骤可以是上述各个实施例的网络会话的切换中的步骤。In one embodiment, a computer-readable storage medium is provided, which stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the processor executes the steps of switching the above-mentioned network session. Here, the steps of the image processing method may be the steps in the switching of the network session in each of the foregoing embodiments.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by computer-readable instructions to instruct relevant hardware. The programs can be stored in a non-volatile computer and can be read. In the storage medium, when the program is executed, it may include the procedures of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上 述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.
Claims (15)
- 一种网络会话的切换方法,其特征在于,由计算机设备执行,所述方法包括:A method for switching a network session, characterized in that it is executed by a computer device, and the method includes:显示第一用户界面,所述第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面;Displaying a first user interface, where the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation;响应于网络环境差于第一条件,将所述网络会话从所述视频模式切换为语音模式;及In response to the network environment being worse than the first condition, switching the network session from the video mode to the voice mode; and显示第二用户界面,所述第二用户界面是所述本端客户端与所述其它客户端采用所述语音模式进行所述网络会话时的界面。A second user interface is displayed, and the second user interface is an interface when the local client and the other client use the voice mode to conduct the network conversation.
- 根据权利要求1所述的方法,其特征在于,所述其它客户端为至少两个,所述响应于网络环境差于第一条件,将所述网络会话从所述视频模式切换为语音模式,包括:The method according to claim 1, wherein there are at least two other clients, and in response to the network environment being worse than the first condition, switching the network session from the video mode to the voice mode, include:响应于所述网络环境差于所述第一条件,将所述本端客户端与所述其它客户端之间的网络会话从所述视频模式切换为所述语音模式;In response to the network environment being worse than the first condition, switching the network session between the local client and the other client from the video mode to the voice mode;其中,至少两个所述其它客户端之间的网络会话保持采用所述视频模式。Wherein, the network session between at least two of the other clients keeps using the video mode.
- 根据权利要求2所述的方法,其特征在于,所述响应于所述网络环境差于所述第一条件,将所述本端客户端与所述其它客户端之间的网络会话从所述视频模式切换为所述语音模式,包括:The method according to claim 2, wherein in response to the network environment being worse than the first condition, the network session between the local client and the other client is changed from the Switching the video mode to the voice mode includes:响应于所述网络环境差于所述第一条件,将所述本端客户端与所述其它客户端之间的网络会话中的视频流进行关闭,将所述本端客户端与所述其它客户端之间的网络会话中的音频流保持传输。In response to the network environment being worse than the first condition, the video stream in the network session between the local client and the other client is closed, and the local client is connected to the other client. The audio stream in the network session between the clients keeps transmitting.
- 根据权利要求1至3中任一项所述的方法,其特征在于,所述显示第二用户界面之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the displaying the second user interface, the method further comprises:响应于外部输入的人机交互指令,将所述网络会话从所述语音模式切换为所述视频模式;In response to an externally inputted human-computer interaction instruction, switching the network session from the voice mode to the video mode;其中,所述人机交互指令包括:关闭所述语音模式的第一指令、打开摄像头的第二指令和共享画面的第三指令中的至少一个。Wherein, the human-computer interaction instruction includes: at least one of a first instruction to turn off the voice mode, a second instruction to turn on a camera, and a third instruction to share a picture.
- 根据权利要求1至3中任一项所述的方法,其特征在于,所述显示第二用户界面之后,所述方法还包括:The method according to any one of claims 1 to 3, wherein after the displaying the second user interface, the method further comprises:响应于所述网络环境优于第二条件,将所述网络会话从所述语音模式切换为所述视频模式。In response to the network environment being better than the second condition, switching the network session from the voice mode to the video mode.
- 根据权利要求5所述的方法,其特征在于,所述网络环境差于第一条件为网络速度低于第一阈值且不为0,或者,丢包率高于第二阈值;所述网络环境优于第二条件为网络速度高于第三阈值,或者,丢包率低于第四阈值;所述第三阈值大于或等于所述第一阈值,所述第四阈值小于或等于所述第二阈值。The method according to claim 5, wherein the network environment is worse than the first condition is that the network speed is lower than the first threshold and is not 0, or the packet loss rate is higher than the second threshold; the network environment The better condition is that the network speed is higher than the third threshold, or the packet loss rate is lower than the fourth threshold; the third threshold is greater than or equal to the first threshold, and the fourth threshold is less than or equal to the first threshold. Two thresholds.
- 根据权利要求1所述的方法,其特征在于,所述第一用户界面上包括所述本端客户端对应的第一视频窗口,以及所述其它客户端对应的第二视频窗口;所述第一视频窗口用于显示所述本端客户端对应的第一摄像头所采集的摄像头画面或共享画面;所述第二视频窗口用于显示所述其它客户端对应的第二摄像头所采集的摄像头画面或共享画面。The method according to claim 1, wherein the first user interface includes a first video window corresponding to the local client and a second video window corresponding to the other client; A video window is used to display the camera picture or shared picture captured by the first camera corresponding to the local client; the second video window is used to display the camera picture captured by the second camera corresponding to the other client Or share the screen.
- 根据权利要求7所述的方法,其特征在于,所述第二用户界面上通过其它客户端对应的头像替换所述第二视频窗口或所述第二视频窗口中的显示内容,以及通过本端客户端对应的头像替换所述第一视频窗口或所述第一视频窗口中的显示内容。The method according to claim 7, wherein the second user interface replaces the display content in the second video window or the second video window with the avatar corresponding to the other client, and through the local terminal The avatar corresponding to the client replaces the first video window or the displayed content in the first video window.
- 一种网络会话的切换装置,其特征在于,所述装置包括:A device for switching a network session, characterized in that the device comprises:显示模块,用于显示第一用户界面,所述第一用户界面是本端客户端与其它客户端采用视频模式进行网络会话时的界面;The display module is configured to display a first user interface, where the first user interface is an interface when the local client and other clients use a video mode to conduct a network conversation;切换模块,用于响应于网络环境差于第一条件,将所述网络会话从所述视频模式切换为语音模式;及A switching module for switching the network session from the video mode to the voice mode in response to the network environment being worse than the first condition; and所述显示模块还用于显示第二用户界面,所述第二用户界面是所述本端客户端与所述其它客户端采用所述语音模式进行所述网络会话时的界面。The display module is further configured to display a second user interface, and the second user interface is an interface when the local client and the other clients use the voice mode to conduct the network conversation.
- 根据权利要求9所述的装置,其特征在于,所述其它客户端为至少两个;The device according to claim 9, wherein there are at least two other clients;所述切换模块还用于响应于所述网络环境差于所述第一条件,将所述本端客户端与所述其它客户端之间的网络会话从所述视频模式切换为所述语音模式;The switching module is further configured to switch the network session between the local client and the other client from the video mode to the voice mode in response to the network environment being worse than the first condition ;其中,至少两个所述其它客户端之间的网络会话保持采用所述视频模式。Wherein, the network session between at least two of the other clients keeps using the video mode.
- 根据权利要求10所述的装置,其特征在于,所述切换模块还用于响应于所述网络环境差于所述第一条件,将所述本端客户端与所述其它客户端之间的网络会话中的视频流进行关闭,将所述本端客户端与所述其它客户端之间的网络会话中的音频流保持传输。11. The device according to claim 10, wherein the switching module is further configured to respond to the network environment being worse than the first condition, to connect the local client to the other client The video stream in the network session is closed, and the audio stream in the network session between the local client and the other clients is kept for transmission.
- 根据权利要求9至11中任一项所述的装置,其特征在于,所述切换模块还用于响应于外部输入的人机交互指令,将所述网络会话从所述语音模式切换为所述视频模式;其中,所述人机交互指令包括:关闭所述语音模式的第一指令、打开摄像头的第二指令和共享画面的第三指令中的至少一个。The device according to any one of claims 9 to 11, wherein the switching module is further configured to switch the network session from the voice mode to the voice mode in response to an externally inputted human-computer interaction instruction Video mode; wherein the human-computer interaction instruction includes: at least one of a first instruction to turn off the voice mode, a second instruction to turn on a camera, and a third instruction to share a picture.
- 根据权利要求9至11中任一项所述的装置,其特征在于,所述切换模块还用于响应于所述网络环境优于第二条件,将所述网络会话从所述语音模式切换为所述视频模式。The device according to any one of claims 9 to 11, wherein the switching module is further configured to switch the network session from the voice mode to a second condition in response to the network environment being better than a second condition The video mode.
- 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如权利要求1至8中任一项所述的方法的步骤。A computer device comprising a memory and a processor. The memory stores computer readable instructions. When the computer readable instructions are executed by the processor, the processor executes any of claims 1 to 8. One of the steps of the method described.
- 一种存储有计算机可读指令的非易失性存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至8中任一项所述的方法的步骤。A non-volatile storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute any one of claims 1 to 8 The steps of the described method.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911304054.6A CN110944013A (en) | 2019-12-17 | 2019-12-17 | Network session switching method and device, computer equipment and storage medium |
CN201911304054.6 | 2019-12-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021120511A1 true WO2021120511A1 (en) | 2021-06-24 |
Family
ID=69911275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/091181 WO2021120511A1 (en) | 2019-12-17 | 2020-05-20 | Network session switching method and apparatus, and computer device and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110944013A (en) |
WO (1) | WO2021120511A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110944013A (en) * | 2019-12-17 | 2020-03-31 | 腾讯科技(深圳)有限公司 | Network session switching method and device, computer equipment and storage medium |
CN111953923A (en) * | 2020-08-19 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Network conference processing method and device, electronic equipment and storage medium |
CN112256222A (en) * | 2020-10-20 | 2021-01-22 | 北京字跳网络技术有限公司 | Information display method and device and electronic equipment |
CN113923305B (en) * | 2021-12-14 | 2022-06-21 | 荣耀终端有限公司 | Multi-screen cooperative communication method, system, terminal and storage medium |
CN114826803B (en) * | 2022-04-26 | 2023-10-31 | 北京字跳网络技术有限公司 | Conference state processing method and device, electronic equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025963A (en) * | 2009-09-10 | 2011-04-20 | 联芯科技有限公司 | Method and device for controlling call of video telephone |
WO2013172848A1 (en) * | 2012-05-18 | 2013-11-21 | Siemens Enterprise Communications Gmbh & Co. Kg | Method, device, and system for reducing bandwidth usage during a communication session |
CN103974361A (en) * | 2013-01-30 | 2014-08-06 | 中兴通讯股份有限公司 | Talk mode switching control method and device and terminal |
CN104967810A (en) * | 2015-06-30 | 2015-10-07 | 努比亚技术有限公司 | Call mode conversion method and terminal device |
CN105208315A (en) * | 2015-09-23 | 2015-12-30 | 宇龙计算机通信科技(深圳)有限公司 | Application control method and device |
CN105323529A (en) * | 2015-10-19 | 2016-02-10 | 掌赢信息科技(上海)有限公司 | Method for switching between audio call and video call, and electronic equipment |
CN105872437A (en) * | 2015-12-15 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Video call control method, video call control device and terminal |
CN107333091A (en) * | 2016-04-28 | 2017-11-07 | 中兴通讯股份有限公司 | Audio-video conversion method and device |
CN110944013A (en) * | 2019-12-17 | 2020-03-31 | 腾讯科技(深圳)有限公司 | Network session switching method and device, computer equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102176713A (en) * | 2011-03-22 | 2011-09-07 | 宋健 | Method for realizing multiuser network video chat system for intensifying simplex video quality |
CN105407408B (en) * | 2014-09-11 | 2019-08-16 | 腾讯科技(深圳)有限公司 | A kind of method and mobile terminal for realizing more people's audio-videos in mobile terminal |
CN107396198B (en) * | 2017-07-24 | 2019-10-15 | 维沃移动通信有限公司 | A kind of video call method and mobile terminal |
-
2019
- 2019-12-17 CN CN201911304054.6A patent/CN110944013A/en active Pending
-
2020
- 2020-05-20 WO PCT/CN2020/091181 patent/WO2021120511A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102025963A (en) * | 2009-09-10 | 2011-04-20 | 联芯科技有限公司 | Method and device for controlling call of video telephone |
WO2013172848A1 (en) * | 2012-05-18 | 2013-11-21 | Siemens Enterprise Communications Gmbh & Co. Kg | Method, device, and system for reducing bandwidth usage during a communication session |
CN103974361A (en) * | 2013-01-30 | 2014-08-06 | 中兴通讯股份有限公司 | Talk mode switching control method and device and terminal |
CN104967810A (en) * | 2015-06-30 | 2015-10-07 | 努比亚技术有限公司 | Call mode conversion method and terminal device |
CN105208315A (en) * | 2015-09-23 | 2015-12-30 | 宇龙计算机通信科技(深圳)有限公司 | Application control method and device |
CN105323529A (en) * | 2015-10-19 | 2016-02-10 | 掌赢信息科技(上海)有限公司 | Method for switching between audio call and video call, and electronic equipment |
CN105872437A (en) * | 2015-12-15 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Video call control method, video call control device and terminal |
CN107333091A (en) * | 2016-04-28 | 2017-11-07 | 中兴通讯股份有限公司 | Audio-video conversion method and device |
CN110944013A (en) * | 2019-12-17 | 2020-03-31 | 腾讯科技(深圳)有限公司 | Network session switching method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110944013A (en) | 2020-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021120511A1 (en) | Network session switching method and apparatus, and computer device and storage medium | |
US11256392B2 (en) | Unified interfaces for paired user computing devices | |
US20220321832A1 (en) | Providing side conversations within a virtual conferencing system | |
WO2020233511A1 (en) | Application starting method and apparatus, computer device and storage medium | |
US8997007B1 (en) | Indicating availability for participation in communication session | |
CN111835531B (en) | Session processing method, device, computer equipment and storage medium | |
CN111614549B (en) | Interaction processing method and device, computer equipment and storage medium | |
US11546391B2 (en) | Teleconferencing interfaces and controls for paired user computing devices | |
WO2021208599A1 (en) | Information processing method, system and apparatus, and device and storage medium | |
CN110149332B (en) | Live broadcast method, device, equipment and storage medium | |
KR20130053935A (en) | Contents transferring method and device, server using the method | |
CN111131531B (en) | Method and device for generating nickname in chat group and readable storage medium | |
CN113098700A (en) | Group creation method and device, electronic equipment and storage medium | |
CN112163406A (en) | Interactive message display method and device, computer equipment and storage medium | |
CN113518198B (en) | Session interface display method, conference interface display method, device and electronic equipment | |
CN117413503A (en) | Group-based media streaming configurable during online communication sessions | |
CN112423011B (en) | Message reply method, device, equipment and storage medium | |
US12057952B2 (en) | Coordinating side conversations within virtual conferencing system | |
KR20190103590A (en) | Method of making video communication and device of mediating video communication | |
CN112087366B (en) | Account management method and device and instant messaging system | |
KR20150095840A (en) | Group nudge using real-time communication system | |
CN114826800B (en) | Information acquisition method, device, terminal and storage medium | |
CN113873192B (en) | Session display method, device, computer equipment and medium | |
CN111372132B (en) | Method, device and equipment for audio and video transmission and storage medium | |
WO2023219921A1 (en) | External application streaming |
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: 20903106 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: 20903106 Country of ref document: EP Kind code of ref document: A1 |