CN112245902A - Switching method and device of terminal equipment - Google Patents
Switching method and device of terminal equipment Download PDFInfo
- Publication number
- CN112245902A CN112245902A CN202011046451.0A CN202011046451A CN112245902A CN 112245902 A CN112245902 A CN 112245902A CN 202011046451 A CN202011046451 A CN 202011046451A CN 112245902 A CN112245902 A CN 112245902A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- connection
- connection request
- terminal
- terminal equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000012545 processing Methods 0.000 claims description 17
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/31—Communication aspects specific to video games, e.g. between several handheld game devices at close range
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/71—Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
-
- 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/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Business, Economics & Management (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a switching method and device of terminal equipment, relates to the technical field of computers, and can solve the problem that in the prior art, in the cloud game process, the terminal equipment is not easy to switch. The specific technical scheme is as follows: firstly, acquiring connection information of first terminal equipment connected with a virtual machine; generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information; then, a game picture corresponding to the target game is obtained, a combined image is generated by the graphic identifier and the game picture, and the combined image is sent to the first terminal device for display; receiving a connection request sent by second terminal equipment, wherein the connection request is generated after the second terminal equipment identifies a graphic identifier; and finally, establishing connection with the second terminal equipment according to the connection request. The switching terminal device is used for switching the terminal device in the cloud game process.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for switching a terminal device.
Background
The cloud game is a game mode based on cloud computing, all games run at a server side in a running mode of the cloud game, and a rendered game picture is compressed and then transmitted to a user through a network. At the client, the user's gaming device does not require any high-end processor and graphics card, but only basic video decompression capability.
In the prior art, a basic implementation framework diagram of a cloud game platform can refer to fig. 1, and a virtual desktop can call a display card resource in a bottom layer display card resource pool according to the needs of an application layer. The bottom layer of the video card resource is composed of a plurality of independent video cards with different sizes and performances, and the video cards are organized together in a GPU PT (through connection) cluster or blade cluster mode.
The cloud game implementation architecture and the schematic diagram can refer to fig. 2, the zero terminal and the cloud server are in mutual communication to implement various application processing, and specifically, the cloud server allocates a virtual machine to each zero terminal connected with the cloud server for processing the service of the zero terminal. The zero terminal generates an application request by controlling the virtual machine, the operation processing in the application request is processed by the CPU, and the image rendering related processing in the application request is processed by calling the display card resource in the display card resource pool by the virtual machine.
When a terminal user performs a cloud game through the system, the user logs in a virtual machine allocated to the terminal user through a cloud server in an account password mode based on a terminal device (generally a zero terminal), and then obtains a game picture from the virtual machine so as to play the game. In such a game scenario, if a user wishes to switch a terminal device for playing a game while logging in a virtual machine to play the game using one terminal device, the following steps are only required: the user logs out from the current equipment, then logs in to the virtual machine through the account number and the password after inputting the server address from the new equipment, so that the user enters the previous desktop and continues the game in progress. However, this approach is cumbersome and may result in a poor user experience due to game interruptions.
Disclosure of Invention
The embodiment of the disclosure provides a switching method and device for terminal equipment, which can solve the problem that the terminal equipment is not easy to switch in the cloud game process in the prior art. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for switching a terminal device is provided, where the method includes:
acquiring connection information of first terminal equipment connected with a virtual machine;
generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information;
acquiring a game picture corresponding to the target game, generating a combined image by the graphic identifier and the game picture, and sending the combined image to the first terminal device for displaying;
receiving a connection request sent by a second terminal device, wherein the connection request is generated after the second terminal device identifies the graphic identifier;
and establishing connection with the second terminal equipment according to the connection request.
The switching method of the terminal device provided by the embodiment of the disclosure includes the steps of firstly, acquiring connection information of a first terminal device connected with a virtual machine; generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information; then, a game picture corresponding to the target game is obtained, a combined image is generated by the graphic identifier and the game picture, and the combined image is sent to the first terminal device for display; receiving a connection request sent by second terminal equipment, wherein the connection request is generated after the second terminal equipment identifies a graphic identifier; and finally, establishing connection with the second terminal equipment according to the connection request. According to the method, when a user logs in a virtual machine distributed by a cloud server through a first terminal device, a graphic identifier is automatically generated and displayed on a desktop image of the first terminal device, when a second terminal device needs to be switched, the second terminal device to be switched is used for scanning the graphic identifier, information contained in the graphic identifier is recognized, connection with the virtual machine is automatically established, and switching is completed.
In one embodiment, the sending the merged image to the first terminal device for display includes:
coding the merged image to obtain a coded image;
and sending the coded image to the first terminal equipment so that the first terminal equipment decodes and displays the coded image.
According to the method, the virtual machine encodes the combined image and then sends the encoded combined image to the first terminal device for decoding and displaying.
In one embodiment, the establishing a connection with the second terminal device according to the connection request includes:
authenticating the connection request;
and when the connection request is successfully authenticated, establishing connection with the second terminal equipment.
Through the method, the virtual machine can authenticate the connection request sent by the second terminal device, and after the authentication is successful, the virtual machine can be connected with the second terminal device.
In one embodiment, the receiving the connection request sent by the second terminal device includes:
and receiving a connection request sent by a cloud server, wherein the connection request is sent to the cloud server by the second terminal device.
According to the method, the second terminal device can send the connection request to the cloud server, and the cloud server sends the connection request to the virtual machine, so that the second terminal device is connected with the virtual machine.
In one embodiment, the method further comprises:
and disconnecting the connection with the first terminal equipment.
By the method, the virtual machine can be automatically disconnected from the first terminal equipment after being connected with the second terminal equipment, and the quitting operation of a user in the first terminal equipment is avoided.
According to a second aspect of the embodiments of the present disclosure, there is provided a switching apparatus of a terminal device, including: the device comprises an acquisition module, a generation module, a processing module, a receiving module and a connection module;
the acquisition module is used for acquiring the connection information of the first terminal equipment connected with the virtual machine;
the generating module is used for generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information;
the acquisition module is further used for acquiring a game picture corresponding to the target game;
the processing module is used for generating a combined image from the graphic identifier and the game picture and sending the combined image to the first terminal device for displaying;
the receiving module is configured to receive a connection request sent by a second terminal device, where the connection request is generated after the second terminal device identifies the graph identifier;
and the connection module is used for establishing connection with the second terminal equipment according to the connection request.
The switching device of the terminal device provided by the embodiment of the present disclosure includes: the device comprises an acquisition module, a generation module, a processing module, a receiving module and a connection module; the acquisition module acquires connection information of first terminal equipment connected with the virtual machine; the generating module generates a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information; the acquisition module is also used for acquiring a game picture corresponding to the target game; the processing module generates a combined image from the graphic identifier and the game picture and sends the combined image to the first terminal device for display; the receiving module receives a connection request sent by the second terminal equipment, wherein the connection request is generated after the second terminal equipment identifies the graphic identifier; and the connection module establishes connection with the second terminal equipment according to the connection request. According to the method, when a user logs in a virtual machine distributed by a cloud server through a first terminal device, a graphic identifier is automatically generated and displayed on a desktop image of the first terminal device, when a second terminal device needs to be switched, the second terminal device to be switched is used for scanning the graphic identifier, information contained in the graphic identifier is recognized, connection with the virtual machine is automatically established, and switching is completed.
In one embodiment, the processing module comprises a generating unit, an encoding unit and a transmitting unit;
the generating unit is used for generating a combined image by the graphic identifier and the game picture;
the encoding unit is used for encoding the merged image to obtain an encoded image;
and the sending unit is used for sending the coded image to the first terminal device so that the first terminal device decodes and displays the coded image.
According to the embodiment of the disclosure, through the above arrangement, the encoding unit encodes the merged image and then sends the encoded merged image to the first terminal device through the sending unit for decoding and displaying.
In one embodiment, the connection module comprises an authentication unit and a connection unit;
the authentication unit is used for authenticating the connection request;
and the connection unit is used for establishing connection with the second terminal after the connection request is successfully authenticated.
Through the arrangement, the authentication unit can authenticate the connection request sent by the second terminal device, and after the authentication is successful, the authentication unit can be connected with the second terminal device.
In an embodiment, the receiving module is further configured to receive a connection request sent by a cloud server, where the connection request is sent to the cloud server by the second terminal device.
Through the above arrangement, the second terminal device can send the connection request to the cloud server, and the cloud server sends the connection request to the receiving module, so that the second terminal device is connected with the virtual machine.
In one embodiment, the apparatus further comprises a disconnection module for disconnecting the connection with the first terminal device.
Through the arrangement, after the virtual machine is connected with the second terminal device, the connection with the first terminal device can be disconnected through the disconnection module, and the quitting operation of a user in the first terminal device is avoided.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for switching a terminal device in a cloud game process, where the apparatus for switching a terminal device in a cloud game process includes a processor and a memory, and the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps performed in any one of the above methods for switching a terminal device.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, in which at least one computer instruction is stored, where the instruction is loaded and executed by a processor to implement the steps performed in the handover method of a terminal device according to any one of the foregoing descriptions.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a framework diagram of a basic implementation of a cloud gaming platform in the prior art;
FIG. 2 is a prior art cloud gaming implementation architecture and schematic;
fig. 3 is a flowchart of a handover method of a terminal device according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a handover method of a terminal device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a switching device of a terminal device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a switching device of a terminal device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a switching apparatus of a terminal device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of systems and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure provides a switching method of terminal equipment, which is applied to a virtual machine. As shown in fig. 3, the handover method of the terminal device includes the following steps:
specifically, when the first terminal device and the cloud server establish connection for the virtual machines allocated to the first terminal device and the cloud server, the virtual machines acquire current connection information.
102, generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of a target game and user account information;
in the embodiment of the present disclosure, the address information of the target game may be an address of a cloud server in a wide area network, or an address of a virtual machine in a local area network, and the user account information is account information of a user logging in the target game.
And 103, acquiring a game picture corresponding to the target game, generating a combined image by the graphic identifier and the game picture, and sending the combined image to the first terminal device for displaying.
Specifically, the graphic identifier may be an icon that can be recognized by a two-dimensional code, a barcode, or the like, and in addition, the game screen is displayed as a desktop image by the first terminal device.
In one embodiment, sending the merged image to the first terminal device for display includes:
coding the merged image to obtain a coded image;
and sending the coded image to the first terminal equipment so that the first terminal equipment decodes the coded image and then displays the decoded image.
According to the method, the virtual machine encodes the combined image and then sends the encoded combined image to the first terminal device for decoding and displaying.
In the embodiment of the disclosure, the virtual machine encodes the generated graphic identifier and the current game picture and then sends the encoded graphic identifier and the current game picture to the first terminal device; and after receiving the coded image, the first terminal equipment decodes the coded image, and displays the game picture including the graphic identifier obtained by decoding through a display of the first terminal equipment.
And the virtual machine generates a combined image of the graphic identifier and each subsequent frame of game picture, encodes the combined image and sends the encoded combined image to the first terminal device, so that the first terminal device is ensured to always display the graphic identifier.
Wherein the graphical identifier may be displayed at a suitable location on the desktop image, such as the center or edge of the desktop. Of course, the graphical identifier may be fixedly displayed at a certain position of the desktop image, or the graphical identifier may be dynamically switched between a plurality of different positions of the desktop image, for example, the graphical identifier is switched between a lower left corner position and a lower right corner position of the desktop image. Alternatively, the graphical representation may be displayed by the user dragging to any position on the screen, for example, the user drags the graphical representation from the top left corner of the screen to the top right corner.
in one embodiment, receiving the connection request sent by the second terminal device includes:
and receiving a connection request sent by the cloud server, wherein the connection request is sent to the cloud server by the second terminal equipment.
According to the method, the second terminal device can send the connection request to the cloud server, and the cloud server sends the connection request to the virtual machine, so that the second terminal device is connected with the virtual machine.
Specifically, the second terminal device has at least a function of scanning the graphic identifier, and can establish a connection with the cloud server to perform communication.
In practical application, the second terminal device scans the graphical identifier through a specific program therein, and analyzes the graphical identifier obtained by scanning to obtain the address information and the user account information of the target game.
The specific program may be a soft R program, and the soft R program is a terminal identification module implemented by software and installed on the second terminal device in the form of APP. The soft R program scans the graphic identification, address information and user account information of the target game can be obtained through analysis, and a connection request is sent to the cloud server according to the information.
In addition, the specific program can also be third-party application such as WeChat and nailing, and if the graphical identifier is scanned through the third-party application such as WeChat and nailing, the soft R program is called to initiate a connection request to the cloud server according to the information obtained through analysis after the graphical identifier is successfully decoded and the address information and the user account information of the target game are obtained.
And 105, establishing connection with the second terminal equipment according to the connection request.
In one embodiment, establishing the connection with the second terminal device according to the connection request includes:
authenticating the connection request;
and when the connection request authentication is successful, establishing connection with the second terminal equipment.
In actual implementation, when the virtual machine receives a connection request sent by the second terminal device, the virtual machine authenticates the connection request, and if the authentication is successful, the virtual machine establishes connection with the second terminal.
Through the method, the virtual machine can authenticate the connection request sent by the second terminal device, and after the authentication is successful, the virtual machine can be connected with the second terminal device.
In one embodiment, the method further comprises:
the connection with the first terminal device is disconnected.
By the method, the virtual machine can be automatically disconnected from the first terminal equipment after being connected with the second terminal equipment, and the quitting operation of a user in the first terminal equipment is avoided.
In the embodiment of the disclosure, when the second terminal device is successfully connected with the virtual machine, the virtual machine generates a new graphic identifier according to the address information and the user account information of the target game according to the current connection information, and adds the new graphic identifier to each frame of game picture, the second terminal device receives and displays the game picture sent by the corresponding virtual machine in the cloud server, and the user of the second terminal device can locally operate the game picture seen by the user, so that other terminal devices can switch according to the graphic identifier displayed by the second terminal device.
And displaying the graphical identifier on the second terminal device in a manner similar to that of displaying the graphical identifier on the first terminal device.
The switching method of the terminal device provided by the embodiment of the disclosure includes the steps of firstly, acquiring connection information of a first terminal device connected with a virtual machine; generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information; then, a game picture corresponding to the target game is obtained, a combined image is generated by the graphic identifier and the game picture, and the combined image is sent to the first terminal device for display; receiving a connection request sent by second terminal equipment, wherein the connection request is generated after the second terminal equipment identifies a graphic identifier; and finally, establishing connection with the second terminal equipment according to the connection request. According to the method, when a user logs in a virtual machine distributed by a cloud server through a first terminal device, a graphic identifier is automatically generated and displayed on a desktop image of the first terminal device, when a second terminal device needs to be switched, the second terminal device to be switched is used for scanning the graphic identifier, information contained in the graphic identifier is recognized, connection with the virtual machine is automatically established, and switching is completed.
Another embodiment of the present disclosure provides a method for switching a terminal device, as shown in fig. 4, including the following steps:
Specifically, when a first terminal device and a cloud server establish connection for a virtual machine allocated by the first terminal device and the cloud server, the virtual machine generates a two-dimensional code, encodes the two-dimensional code and a current desktop image, and sends the encoded two-dimensional code and the current desktop image to the first terminal device; and after receiving the coded image, the first terminal equipment decodes the coded image, and displays the current desktop image including the two-dimensional code information through a display of the first terminal equipment.
And the virtual machine adds the two-dimensional code into each subsequent frame of desktop image, encodes the two-dimensional code and sends the encoded two-dimensional code to the first terminal device, so that the first terminal device is ensured to always display the two-dimensional code.
Wherein, the two-dimensional code information can be displayed on a proper position of the desktop image, such as the center or edge position of the desktop. Of course, the two-dimensional code may be fixedly displayed at a certain position of the desktop image, or the two-dimensional code may also be dynamically switched between a plurality of different positions of the desktop image, for example, the two-dimensional code is switched between a lower left corner position and a lower right corner position of the desktop image. Or the two-dimensional code can be dragged to any position of the screen by the user for display, for example, the user drags the two-dimensional code from the upper left corner to the upper right corner of the screen.
And step 203, the second terminal device scans the two-dimensional code through a program in the second terminal.
And step 204, the second terminal device analyzes the scanned two-dimensional code information to obtain a server address, authentication information and the like.
Specifically, the second terminal device has at least a two-dimensional code scanning function and can be connected with the cloud server to communicate.
The scanned program can be third-party application such as WeChat and nail, and can also be a soft R program, and the soft R program is an R end module realized through software, can identify terminal information, and is installed on the second terminal in the form of APP.
If the two-dimensional code is scanned through third-party applications such as WeChat and nailing, after the two-dimensional code information needs to be decoded successfully, the server calls a soft R program, and the soft R program sends a connection request to the cloud server; if the two-dimensional code is directly scanned through the soft R program, a connection request can be directly sent to the cloud server according to the connection information obtained through analysis.
When the two-dimensional code is scanned through third-party applications such as WeChat and nailing, the server address and the authentication information are directly obtained through analysis from the two-dimensional code, then the background server calls a corresponding soft R program, and a terminal device switching connection request is initiated to the cloud server according to the server address and the authentication information soft R program obtained through analysis, so that connection is established with a corresponding virtual machine;
when the two-dimensional code is scanned through the soft R program, a terminal device switching connection request is directly initiated to the cloud server according to the connection information obtained through analysis, and when the connection is successful, communication is established with the corresponding virtual machine.
The second terminal user can locally manipulate the viewed desktop image, thereby implementing the game manipulation.
During actual implementation, when the virtual machine receives a terminal device switching connection request sent by a second terminal device, the virtual machine authenticates the connection request, if the authentication is successful, the virtual machine establishes connection with the second terminal, and when the connection is established, the virtual machine can generate a new two-dimensional code according to the authentication information such as the server address and the account number according to the current connection information, add the new two-dimensional code to the current desktop image, send the encoded new two-dimensional code to the second terminal, and simultaneously disconnect the connection with the first terminal.
And the new two-dimensional code generated by the virtual machine can be added to each frame of subsequent desktop image and displayed on the second terminal, so that other terminal equipment can be switched according to the two-dimensional code displayed by the second terminal.
Wherein, the two-dimensional code is displayed on the second terminal in a manner similar to the two-dimensional code is displayed on the first terminal, and reference may be made to the foregoing description.
According to the method, when a user establishes connection with the virtual machine of the cloud server through the zero terminal, the virtual machine automatically generates the two-dimensional code and continuously displays the two-dimensional code on each frame of desktop image, when the user wants to switch the receiving end equipment, the user does not need to execute any operation to trigger the virtual machine to generate the two-dimensional code, and the receiving end equipment is used for directly scanning the two-dimensional code to realize switching.
Based on the handover methods of the terminal devices described in the embodiments corresponding to fig. 3 and fig. 4, the following is an embodiment of the apparatus of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.
The embodiment of the present disclosure provides a switching apparatus of a terminal device, as shown in fig. 5, the switching apparatus 30 of the terminal device includes: an acquisition module 301, a generation module 302, a processing module 303, a receiving module 304 and a connection module 305;
an obtaining module 301, configured to obtain connection information of a first terminal device connected to a virtual machine;
a generating module 302, configured to generate a graphical identifier according to the connection information, where the graphical identifier includes address information of the target game and user account information;
the obtaining module 301 is further configured to obtain a game picture corresponding to the target game;
the processing module 303 is configured to generate a combined image from the graphical identifier and the game screen, and send the combined image to the first terminal device for display;
a receiving module 304, configured to receive a connection request sent by a second terminal device, where the connection request is generated after the second terminal device identifies a graph identifier;
a connection module 305, configured to establish a connection with the second terminal device according to the connection request.
The switching device of the terminal device provided by the embodiment of the present disclosure includes: an acquisition module 301, a generation module 302, a processing module 303, a receiving module 304 and a connection module 305; the obtaining module 301 obtains connection information of a first terminal device connected to the virtual machine; the generating module 302 generates a graphic identifier according to the connection information, wherein the graphic identifier includes address information of the target game and user account information; the obtaining module 301 further obtains a game picture corresponding to the target game; the processing module 303 generates a combined image from the graphical identifier and the game picture, and sends the combined image to the first terminal device for display; the receiving module 304 receives a connection request sent by the second terminal device, where the connection request is generated after the second terminal device identifies the graphic identifier; the connection module 305 establishes a connection with the second terminal device according to the connection request. According to the method, when a user logs in a virtual machine distributed by a cloud server through a first terminal device, a graphic identifier is automatically generated and displayed on a desktop image of the first terminal device, when a second terminal device needs to be switched, the second terminal device to be switched is used for scanning the graphic identifier, information contained in the graphic identifier is recognized, connection with the virtual machine is automatically established, and switching is completed.
In one embodiment, as shown in fig. 6, the processing module 303 includes a generating unit 3031, an encoding unit 3032, and a transmitting unit 3033;
a generating unit 3031 for generating a combined image from the graphic identifier and the game screen;
an encoding unit 3032, configured to encode the merged image to obtain an encoded image;
a transmitting unit 3033, configured to transmit the encoded image to the first terminal device, so that the first terminal device decodes the encoded image and displays the decoded image.
Through the above arrangement, the encoding unit 3032 encodes the merged image and then sends the encoded merged image to the first terminal device through the sending unit 3033 for decoding and displaying.
In one embodiment, as shown in fig. 7, the connection module 305 includes an authentication unit 3051 and a connection unit 3052;
an authentication unit 3051, configured to authenticate the connection request;
the connection unit 3052 is configured to, after the connection request is successfully authenticated, establish a connection with the second terminal device.
Through the above arrangement, the authentication unit 3051 can authenticate the connection request sent by the second terminal device, and after the authentication is successful, the second terminal device can be connected to the authentication unit.
In an embodiment, the receiving module 304 is further configured to receive a connection request sent by the cloud server, where the connection request is sent to the cloud server by the second terminal device.
Through the above arrangement, the second terminal device can send the connection request to the cloud server, and the cloud server sends the connection request to the receiving module 304, so that the second terminal device is connected with the virtual machine.
In one embodiment, the apparatus further comprises a disconnection module 306 configured to disconnect the first terminal device.
Through the above setting, the virtual machine can disconnect 306 the connection with the first terminal device through the disconnection module after connecting the second terminal device, thereby avoiding the exit operation of the user in the first terminal device.
Based on the switching method of the terminal device described in the embodiments corresponding to fig. 2 and fig. 4, another embodiment of the present disclosure further provides a device for switching a terminal device in a cloud game process, where the device for switching a terminal device in a cloud game process includes a processor and a memory, and the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the switching method of the terminal device described in the embodiments corresponding to fig. 2 and fig. 4.
Based on the handover method of the terminal device described in the embodiments corresponding to fig. 2 and fig. 4, the embodiments of the present disclosure further provide a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores at least one computer instruction, and the computer instruction is loaded by the processor and is used for executing the switching method of the terminal device described in the embodiment corresponding to fig. 2 and fig. 4, which is not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. A method for switching a terminal device, the method comprising:
acquiring connection information of first terminal equipment connected with a virtual machine;
generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information;
acquiring a game picture corresponding to the target game, generating a combined image by the graphic identifier and the game picture, and sending the combined image to the first terminal device for displaying;
receiving a connection request sent by a second terminal device, wherein the connection request is generated after the second terminal device identifies the graphic identifier;
and establishing connection with the second terminal equipment according to the connection request.
2. The switching method of the terminal device according to claim 1, wherein the sending the merged image to the first terminal device for display comprises:
coding the merged image to obtain a coded image;
and sending the coded image to the first terminal equipment so that the first terminal equipment decodes and displays the coded image.
3. The handover method of a terminal device according to claim 1, wherein the establishing a connection with the second terminal device according to the connection request comprises:
authenticating the connection request;
and when the connection request is successfully authenticated, establishing connection with the second terminal equipment.
4. The method for switching the terminal device according to claim 1, wherein the receiving the connection request sent by the second terminal device comprises:
and receiving a connection request sent by a cloud server, wherein the connection request is sent to the cloud server by the second terminal device.
5. The method for switching the terminal device according to claim 1, wherein the method further comprises:
and disconnecting the connection with the first terminal equipment.
6. A switching apparatus of a terminal device, comprising: the device comprises an acquisition module, a generation module, a processing module, a receiving module and a connection module;
the acquisition module is used for acquiring the connection information of the first terminal equipment connected with the virtual machine;
the generating module is used for generating a graphic identifier according to the connection information, wherein the graphic identifier comprises address information of the target game and user account information;
the acquisition module is further used for acquiring a game picture corresponding to the target game;
the processing module is used for generating a combined image from the graphic identifier and the game picture and sending the combined image to the first terminal device for displaying;
the receiving module is configured to receive a connection request sent by a second terminal device, where the connection request is generated after the second terminal device identifies the graph identifier;
and the connection module is used for establishing connection with the second terminal equipment according to the connection request.
7. The switching device of the terminal equipment according to claim 6, wherein the processing module comprises a generating unit, a coding unit and a transmitting unit;
the generating unit is used for generating a combined image by the graphic identifier and the game picture;
the encoding unit is used for encoding the merged image to obtain an encoded image;
and the sending unit is used for sending the coded image to the first terminal device so that the first terminal device decodes and displays the coded image.
8. The switching apparatus of a terminal device according to claim 6, wherein the connection module includes an authentication unit and a connection unit;
the authentication unit is used for authenticating the connection request;
and the connection unit is used for establishing connection with the second terminal equipment after the connection request is successfully authenticated.
9. The apparatus for switching between terminal devices according to claim 6, wherein the receiving module is further configured to receive a connection request sent by a cloud server, where the connection request is sent to the cloud server by the second terminal device.
10. The apparatus of claim 6, further comprising a disconnection module configured to disconnect the first terminal device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011046451.0A CN112245902A (en) | 2020-09-29 | 2020-09-29 | Switching method and device of terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011046451.0A CN112245902A (en) | 2020-09-29 | 2020-09-29 | Switching method and device of terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112245902A true CN112245902A (en) | 2021-01-22 |
Family
ID=74233799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011046451.0A Pending CN112245902A (en) | 2020-09-29 | 2020-09-29 | Switching method and device of terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112245902A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887337A (en) * | 2021-03-16 | 2021-06-01 | 西安万像电子科技有限公司 | Control method of device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04200583A (en) * | 1990-11-30 | 1992-07-21 | Ogawa Kankyo Kenkyusho:Kk | Pitting game device for playing 'go' or the like |
US20120302341A1 (en) * | 2011-05-23 | 2012-11-29 | Nintendo Co., Ltd. | Game system, game process method, game device, and storage medium storing game program |
CN103327109A (en) * | 2013-06-27 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Method, terminals and system for accessing game and method and servers for processing game |
CN104147780A (en) * | 2014-09-05 | 2014-11-19 | 深圳七彩畅想网络技术有限公司 | Method for switching game terminals and user terminals |
WO2017071371A1 (en) * | 2015-10-28 | 2017-05-04 | 华为技术有限公司 | Method, device, and server for implementing gaming assistance |
CN106792436A (en) * | 2016-11-21 | 2017-05-31 | 深圳市金立通信设备有限公司 | A kind of method of switch mode, first terminal and second terminal |
JP2018056718A (en) * | 2016-09-27 | 2018-04-05 | Kddi株式会社 | Edge server, session sharing system, method and program |
CN108200572A (en) * | 2018-01-09 | 2018-06-22 | 西安万像电子科技有限公司 | Switching method, the apparatus and system of terminal |
JP2018201668A (en) * | 2017-05-31 | 2018-12-27 | グリー株式会社 | Program, information processing device, and control method |
CN110955370A (en) * | 2019-12-02 | 2020-04-03 | 网易(杭州)网络有限公司 | Switching method and device of skill control in game and touch terminal |
CN111611573A (en) * | 2020-05-20 | 2020-09-01 | 深圳市镜玩科技有限公司 | Data processing method for realizing terminal equipment switching, related equipment and medium |
-
2020
- 2020-09-29 CN CN202011046451.0A patent/CN112245902A/en active Pending
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04200583A (en) * | 1990-11-30 | 1992-07-21 | Ogawa Kankyo Kenkyusho:Kk | Pitting game device for playing 'go' or the like |
US20120302341A1 (en) * | 2011-05-23 | 2012-11-29 | Nintendo Co., Ltd. | Game system, game process method, game device, and storage medium storing game program |
CN103327109A (en) * | 2013-06-27 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Method, terminals and system for accessing game and method and servers for processing game |
WO2014206267A1 (en) * | 2013-06-27 | 2014-12-31 | Tencent Technology (Shenzhen) Company Limited | Game accessing method and processing method, server, terminal, and system |
CN104147780A (en) * | 2014-09-05 | 2014-11-19 | 深圳七彩畅想网络技术有限公司 | Method for switching game terminals and user terminals |
WO2017071371A1 (en) * | 2015-10-28 | 2017-05-04 | 华为技术有限公司 | Method, device, and server for implementing gaming assistance |
JP2018056718A (en) * | 2016-09-27 | 2018-04-05 | Kddi株式会社 | Edge server, session sharing system, method and program |
CN106792436A (en) * | 2016-11-21 | 2017-05-31 | 深圳市金立通信设备有限公司 | A kind of method of switch mode, first terminal and second terminal |
JP2018201668A (en) * | 2017-05-31 | 2018-12-27 | グリー株式会社 | Program, information processing device, and control method |
CN108200572A (en) * | 2018-01-09 | 2018-06-22 | 西安万像电子科技有限公司 | Switching method, the apparatus and system of terminal |
CN110955370A (en) * | 2019-12-02 | 2020-04-03 | 网易(杭州)网络有限公司 | Switching method and device of skill control in game and touch terminal |
CN111611573A (en) * | 2020-05-20 | 2020-09-01 | 深圳市镜玩科技有限公司 | Data processing method for realizing terminal equipment switching, related equipment and medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112887337A (en) * | 2021-03-16 | 2021-06-01 | 西安万像电子科技有限公司 | Control method of device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10065119B2 (en) | Game accessing method and processing method, server, terminal, and system | |
US10623500B2 (en) | Remote desktop sharing and collaboration via image scanning | |
KR101916980B1 (en) | Web-browser based desktop and application remoting solution | |
CN111951366B (en) | Cloud native 3D scene game method and system | |
US11372658B2 (en) | Cross-device mulit-monitor setup for remote desktops via image scanning | |
CN112905289A (en) | Application picture display method, device, terminal, screen projection system and medium | |
CN110798477B (en) | Data transmission method, equipment, management platform and cloud game system architecture | |
CN109561059B (en) | Account login method and system, terminal and storage medium thereof | |
US11017121B2 (en) | Information authentication method, apparatus, storage medium and virtual reality device based on virtual reality scenario | |
CN111870962A (en) | Cloud game data processing method and system | |
CN107911700B (en) | Virtualization-based hardware decoding method, decoding equipment and storage medium | |
KR101595103B1 (en) | Server and method for providing a game | |
CN111880845A (en) | Method, system and device for controlling target application | |
CN111437610B (en) | Cloud game system processing method and device and cloud server | |
CN113489805A (en) | Docking method, device, equipment and storage medium of cloud desktop system | |
CN112245902A (en) | Switching method and device of terminal equipment | |
CN114189542A (en) | Interaction control method and device | |
CN111752655B (en) | Data processing system and method | |
CN113535298A (en) | Display switching method and device for cloud game desktop | |
CN111930328A (en) | Application data display method, device and system | |
CN112887337A (en) | Control method of device | |
CN111654702A (en) | Data transmission method and system | |
CN111491210A (en) | Data processing method, device and system | |
CN112291198B (en) | Communication method, terminal equipment and server | |
EP3495949A1 (en) | Virtual reality-based information verification method, device, data storage medium, and virtual reality apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |