CN113055441A - Image exchange method, device and system - Google Patents

Image exchange method, device and system Download PDF

Info

Publication number
CN113055441A
CN113055441A CN202110192278.3A CN202110192278A CN113055441A CN 113055441 A CN113055441 A CN 113055441A CN 202110192278 A CN202110192278 A CN 202110192278A CN 113055441 A CN113055441 A CN 113055441A
Authority
CN
China
Prior art keywords
zero terminal
terminal device
exchanged
exchange
image
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
Application number
CN202110192278.3A
Other languages
Chinese (zh)
Inventor
蔡显志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202110192278.3A priority Critical patent/CN113055441A/en
Publication of CN113055441A publication Critical patent/CN113055441A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure provides an image exchange method, device and system, relating to the technical field of images, wherein the method comprises receiving first connection information sent by a second zero terminal device; the first connection information is connection information for establishing connection between the second zero terminal equipment and the second virtual equipment; establishing a first connection channel between the first zero terminal equipment and the second virtual equipment according to the first connection information, so that the second virtual equipment sends the current coded data to be exchanged to the first zero terminal equipment through the first connection channel; receiving the current coded data to be exchanged through a first connecting channel; and exchanging the current frame image with the current coded data to be exchanged. Like this, when the user adopts this disclosed more than two zero terminal equipment to carry out the live broadcast, need not to put more than two zero terminal equipment according to the position that the user was located, only need on a zero terminal equipment switch another zero terminal equipment on the image can to bring very big convenience for the user.

Description

Image exchange method, device and system
Technical Field
The present disclosure relates to the field of image technologies, and in particular, to an image exchange method, apparatus, and system.
Background
Desktop virtualization, also commonly referred to as desktop cloud or virtual desktop, has been developed rapidly in recent years and is widely used in many scenarios. The desktop virtualization can provide a flexible and safe desktop environment for a user, and the server is deployed in the desktop system in a virtualization manner, so that resources such as user data, an operating system and application are abstracted and virtualized, a great deal of convenience such as dynamic resource scheduling, user authentication and desktop management is brought to the user, and the user experience is almost consistent with that of the traditional physical desktop. When using a desktop virtualization device (zero terminal device), an existing desktop virtualization user needs to log in a virtual machine allocated to a cloud server through the zero terminal device, operate the cloud server, and continuously acquire a desktop display image from the cloud server; meanwhile, the zero-terminal equipment can control the viewed desktop image through reverse control.
In the related art, when a user directly broadcasts through terminal equipment, each terminal equipment can only start the live broadcast of one platform, and when the user needs to simultaneously broadcast more than two platforms, the user needs to simultaneously place and control more than two terminal equipment, so that great inconvenience is brought to the user.
Disclosure of Invention
The embodiment of the disclosure provides an image exchange method, device and system, which can solve the problem of great inconvenience brought to users in the prior art. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an image exchange method applied to a first zero terminal device, where the first zero terminal device is connected to a first virtual device, the method including:
receiving first connection information sent by second zero terminal equipment; the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device;
establishing a first connection channel between the first zero terminal device and a second virtual device according to the first connection information, so that the second virtual device sends the current coded data to be exchanged to the first zero terminal device through the first connection channel;
receiving the current coded data to be exchanged through the first connecting channel;
and exchanging the current frame image with the current coded data to be exchanged.
The embodiment of the disclosure provides an image exchange method, wherein when first zero terminal equipment receives first connection information sent by second zero terminal equipment, a first communication channel between the first zero terminal equipment and second virtual terminal equipment is established according to the first connection information, so that the second virtual equipment sends current coded data to be exchanged to the first zero terminal equipment through the first connection channel, and when the first zero terminal equipment receives the current coded data to be exchanged, the first zero terminal equipment exchanges a current frame image with the current coded data to be exchanged, thereby realizing image exchange between the first zero terminal equipment and the second zero terminal equipment. Like this, when the user adopts this disclosed more than two zero terminal equipment to carry out the live broadcast, need not to put more than two zero terminal equipment according to the position that the user was located, only need on a zero terminal equipment switch another zero terminal equipment on the image can to bring very big convenience for the user.
In one embodiment, the method further comprises:
receiving target coding data sent by the first virtual equipment through a second connecting channel; the second connection channel is a connection channel established between the first zero terminal device and the first virtual device.
In one embodiment, before the receiving the first connection information sent by the second zero terminal device, the method further includes:
acquiring a target exchange instruction; the target exchange instruction is used for indicating that image exchange is allowed;
and responding to the target exchange instruction, sending an image exchange request to the second zero terminal equipment, so that the second zero terminal equipment sends the first connection information to the first zero terminal equipment when receiving the image exchange request.
In one embodiment, before the obtaining the target swap instruction, the method further includes:
determining whether a second zero terminal device capable of exchanging images exists within a preset distance;
when the second zero terminal equipment capable of exchanging images exists in the preset distance, displaying an exchange reminding message; the exchange reminding message is used for reminding the user whether to exchange images.
In one embodiment, the determining whether there is an exchangeable image within a preset distance of the second zero terminal device includes:
determining whether to turn on an image exchange mode;
and when the image exchange mode is determined to be started, determining whether a second zero terminal device capable of exchanging images exists within a preset distance.
In one embodiment, further comprising:
and when the image exchange mode is determined not to be started, decoding and displaying the target coded data.
In one embodiment, the exchanging the current frame image and the current encoded data to be exchanged includes:
decoding the current coded data to be exchanged to obtain target decoded data;
displaying, at a first location, data of the target decoded data that matches the coordinates at the first location; the area of the first position is the product of the area of the current display area and a preset exchange ratio;
displaying data matched with the coordinates at the second position in the decoding data corresponding to the current frame image at the second position; the area of the second position is the area of the current display area minus the area of the first position.
In one embodiment, after the exchanging the current frame image and the current encoded data to be exchanged, the method further includes:
receiving target to-be-exchanged encoded data sent by the second virtual device through the first connecting channel; the target coded data to be exchanged is all coded data to be exchanged after the current coded data to be exchanged, which is sent to the first zero terminal equipment by the second virtual equipment;
and decoding and displaying the target to-be-exchanged coded data.
According to a second aspect of the embodiments of the present disclosure, there is provided an image exchange apparatus, the apparatus including:
the first receiving module is used for receiving first connection information sent by the second zero terminal equipment; the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device;
the establishing module is used for establishing a first connecting channel between the first zero terminal equipment and second virtual equipment according to the first connecting information, so that the second virtual equipment sends the current coded data to be exchanged to the first zero terminal equipment through the first connecting channel;
a second receiving module, configured to receive the current encoded data to be exchanged through the first connection channel;
and the exchange module is used for exchanging the current frame image with the current coded data to be exchanged.
In one embodiment, the apparatus further comprises a third receiving module;
the third receiving module is configured to receive, through a second connection channel, target encoded data sent by the first virtual device; the second connection channel is a connection channel established between the first zero terminal device and the first virtual device.
In one embodiment, the apparatus further comprises an obtaining module and a sending module;
the acquisition module is used for acquiring a target exchange instruction; the target exchange instruction is used for indicating that image exchange is allowed;
the sending module is configured to send an image exchange request to the second zero terminal device in response to the target exchange instruction, so that the second zero terminal device sends the first connection information to the first zero terminal device when receiving the image exchange request.
In one embodiment, the apparatus further comprises a determining module and a presentation module;
the determining module is used for determining whether second zero terminal equipment capable of exchanging images exists within a preset distance;
the display module is used for displaying the exchange reminding message when the second zero terminal equipment capable of exchanging images is determined to exist in the preset distance; the exchange reminding message is used for reminding the user whether to exchange images.
In one embodiment, the determination module includes a first determination submodule and a second determination submodule;
the first determining submodule is used for determining whether to start an image exchange mode;
the second determining submodule is used for determining whether second zero terminal equipment capable of exchanging images exists within a preset distance when the image exchange mode is determined to be started.
In one embodiment, the apparatus further comprises a first decoding module;
and the first decoding module is used for decoding and displaying the target coded data when the image exchange mode is not started.
In one embodiment, the switching module includes a decoding sub-module, a first display sub-module, and a second display sub-module;
the decoding submodule is used for decoding the current to-be-exchanged coded data to obtain target decoding data;
the first display sub-module is used for displaying data matched with the coordinates at the first position in the target decoding data at the first position; the area of the first position is the product of the area of the current display area and a preset exchange ratio;
the second display sub-module is configured to display, at a second position, data that matches the coordinates at the second position in the decoded data corresponding to the current frame image; the area of the second position is the area of the current display area minus the area of the first position.
In one embodiment, the apparatus further comprises a fourth receiving module and a second decoding module;
the fourth receiving module is configured to receive, through the first connection channel, target to-be-exchanged encoded data sent by the second virtual device; the target coded data to be exchanged is all coded data to be exchanged after the current coded data to be exchanged, which is sent to the first zero terminal equipment by the second virtual equipment;
and the second decoding module is used for decoding and displaying the target to-be-exchanged coded data.
According to a third aspect of the embodiments of the present disclosure, an image exchange system is provided, including a first zero terminal device, a second zero terminal device, a first cloud server, and a second cloud server, where the first cloud server runs a first virtual device, the second cloud server runs a second virtual device, the first zero terminal device is connected to the first virtual device, and the second zero terminal device is connected to the second virtual device; the first zero terminal device is configured to perform the method according to any of the above embodiments.
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 flowchart of an image exchange method provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of an image exchange method provided by an embodiment of the present disclosure;
fig. 3a is a structural diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
FIG. 3b is a block diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
fig. 3c is a structural diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
FIG. 3d is a block diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
fig. 3e is a structural diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
FIG. 3f is a block diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
fig. 3g is a structural diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
fig. 3h is a structural diagram of an image exchange apparatus provided in an embodiment of the present disclosure;
fig. 4 is a framework diagram of an image exchange system provided in 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 apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the present disclosure provides an image exchange method, which is applied to a first zero terminal device, where the first zero terminal device is connected to a first virtual device, as shown in fig. 1, the method includes the following steps:
step 101, receiving first connection information sent by a second zero terminal device.
And the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device.
Step 102, establishing a first connection channel between the first zero terminal device and a second virtual device according to the first connection information, so that the second virtual device sends the current to-be-exchanged encoded data to the first zero terminal device through the first connection channel.
And 103, receiving the current coded data to be exchanged through the first connecting channel.
And 104, exchanging the current frame image with the current coded data to be exchanged.
The embodiment of the disclosure provides an image exchange method, wherein when first zero terminal equipment receives first connection information sent by second zero terminal equipment, a first communication channel between the first zero terminal equipment and second virtual terminal equipment is established according to the first connection information, so that the second virtual equipment sends current coded data to be exchanged to the first zero terminal equipment through the first connection channel, and when the first zero terminal equipment receives the current coded data to be exchanged, the first zero terminal equipment exchanges a current frame image with the current coded data to be exchanged, thereby realizing image exchange between the first zero terminal equipment and the second zero terminal equipment. Like this, when the user adopts this disclosed more than two zero terminal equipment to carry out the live broadcast, need not to put more than two zero terminal equipment according to the position that the user was located, only need on a zero terminal equipment switch another zero terminal equipment on the image can to bring very big convenience for the user.
The embodiment of the present disclosure provides an image exchange method, which is applied to a first zero terminal device, where the first zero terminal device is connected to a first virtual device, as shown in fig. 2, the method includes the following steps:
step 201, determining whether to start an image exchange mode.
For example, an image swapping mode flag bit may be set, and a flag bit of 1 may be determined as image swapping mode on, and a flag bit of 0 may be determined as image swapping mode off. For example, a physical button or a virtual button may be provided, and the user selects to turn off the image exchange mode or to turn on the image exchange mode through the physical button or the virtual button.
Step 202, when the image exchange mode is determined to be started, determining whether a second zero terminal device capable of exchanging images exists within a preset distance.
For example, when the user needs to implement the image exchange function, the user may start the image exchange mode, at this time, the first zero terminal device determines that the user has started the image exchange mode, and at this time, it is found whether there is a second zero terminal device capable of exchanging images within a preset distance. The specific method for searching the second zero terminal device comprises the following steps: and judging whether the physical distance between the first zero terminal equipment and the second zero terminal equipment is smaller than a preset distance. For example, the first zero terminal device obtains first position information of itself and second position information of the second zero terminal device, then calculates a distance between the first zero terminal device and the second zero terminal device according to the first position information and the second position information, compares the distance between the first zero terminal device and the second zero terminal device with a preset distance, and determines the second zero terminal device with exchangeable images when determining that the distance between the first zero terminal device and the second zero terminal device is smaller than the preset distance; when the distance between the first zero terminal device and the second zero terminal device is determined to be larger than or equal to the preset distance, determining that the second zero terminal device without exchangeable images exists; in addition, when both the first zero terminal device and the second zero terminal device support a bluetooth (wireless fidelity) or WIFI (wireless fidelity) function, the distance between the first zero terminal device and the second zero terminal device may also be calculated in a bluetooth ranging or WIFI ranging manner, which is not limited by the disclosure.
It should be noted that the calculation of the distance between the first zero terminal device and the second zero terminal device may be implemented on the first zero terminal device side, or the first zero terminal device may send the obtained first location information and the obtained second location information to a first virtual device connected to the first zero terminal device, and the first virtual device calculates according to the first location information and the second location information, compares the calculated first location information and the obtained second location information with a preset distance, and finally returns the comparison result to the first zero terminal device.
It should be noted that, according to a difference in a result of determining whether there is a second zero terminal device of an exchangeable image within a preset distance, the following steps are performed, and when it is determined that there is the second zero terminal device of the exchangeable image within the preset distance, steps 203 to 212 are performed; when it is determined that there is no second zero terminal device of exchangeable images within the preset distance, step 213 is performed.
And 203, displaying an exchange reminding message when the second zero terminal equipment capable of exchanging images is determined to exist in the preset distance.
And the exchange reminding message is used for reminding the user whether to exchange the images.
It should be noted that, when it is determined that the second zero-terminal device capable of exchanging images exists, an exchange prompting message may be displayed, where the exchange prompting message may be two option controls, one option is an option for agreeing with image exchange, and the other option is an option for prohibiting image exchange, so that a user may select a corresponding option according to a requirement.
It should be noted that the exchange prompting message may further include display information of the second zero terminal device, for example, the display information includes a resolution, a frame rate, and the like of the second zero terminal device, so that the user can select a corresponding option according to the display information of the second zero terminal device.
And step 204, acquiring a target exchange instruction.
Wherein the target swapping instruction is used for indicating that image swapping is allowed.
Illustratively, when the user selects an option of agreeing to image exchange, the first zero terminal device acquires a target exchange instruction indicating permission of image exchange; when the user selects the option of prohibiting the image exchange, the first zero terminal device acquires an exchange prohibition instruction that does not permit the image exchange.
Step 205, in response to the target exchange instruction, sending an image exchange request to the second zero terminal device, so that the second zero terminal device sends the first connection information to the first zero terminal device when receiving the image exchange request.
Illustratively, when the target exchange instruction is obtained, it is determined that the user allows image exchange, at this time, the first zero terminal device sends an image exchange request to the second zero terminal device, and when the second zero terminal device receives the image exchange request, if image exchange with the first zero terminal device is allowed, the first connection information of the second zero terminal device itself is obtained, and the first connection information is sent to the first zero terminal device. The first connection information may include login information of a second virtual device corresponding to login of the second terminal device and IP (Internet Protocol) address information of a cloud server where the second virtual device is located, where the login information may be account password information, fingerprint information, face identification information, and the like.
And step 206, receiving the first connection information sent by the second zero terminal equipment.
And the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device.
Step 207, establishing a first connection channel between the first zero terminal device and the second virtual device according to the first connection information, so that the second virtual device sends the current to-be-exchanged encoded data to the first zero terminal device through the first connection channel.
Illustratively, when receiving first connection information of a second zero terminal device, a first zero terminal device connects a cloud server where the second virtual device is located according to IP address information of the cloud server where the second virtual device is located, and then sends login information of the second virtual device to the cloud server where the second virtual device is located, and when determining that the login information of the second virtual device is legal, the cloud server controls the first zero terminal device to be connected with the second virtual device, so as to form a first connection channel between the first zero terminal device and the second virtual device; in this way, the second virtual device may determine the encoded data that needs to be currently sent to the second zero terminal device as the encoded data to be currently exchanged, and send the encoded data to be currently exchanged to the first zero terminal device and also to the second zero terminal device.
It should be noted that, when the first connection channel is established, the first zero terminal device needs to have the authority to connect to the second virtual device, and only when the first zero terminal device has the authority to connect to the second virtual device, the first connection channel can be successfully established.
It should be noted that, when the first zero terminal device successfully connects to the first connection channel, a second connection channel between the first zero terminal device and the first virtual device is also established before, where the second connection channel receives target encoded data sent by the first virtual device, the first connection channel receives current encoded data to be exchanged and target encoded data to be exchanged, which are sent by the second virtual device, and when the current encoded data to be exchanged and the target encoded data to be exchanged are received, the current encoded data to be exchanged and the target encoded data to be exchanged are stored first, and at this time, the current encoded data to be exchanged and the target encoded data to be exchanged are not decoded and are not displayed.
And 208, receiving the current coded data to be exchanged through the first connecting channel.
For example, the first zero terminal device receives the current to-be-exchanged encoded data sent by the second virtual device through the first connection channel.
And 209, exchanging the current frame image with the current coded data to be exchanged.
Optionally, decoding the current to-be-exchanged encoded data to obtain target decoded data; displaying, at a first location, data of the target decoded data that matches the coordinates at the first location; and displaying data matched with the coordinates at the second position in the decoding data corresponding to the current frame image at the second position.
The area of the first position is the product of the area of the current display area and a preset exchange proportion; and the area of the second position is the area obtained by subtracting the area of the first position from the area of the current display area, the preset exchange ratio is the image display ratio of the first zero terminal equipment and the second zero terminal equipment during image exchange, and the image switching between the first zero terminal equipment and the second zero terminal equipment is realized step by step according to the preset exchange ratio. The preset exchange proportion can be set according to the requirement, and in the switching process, a user can also dynamically update the value of the preset exchange proportion in a scroll bar mode.
Illustratively, when receiving current coded data to be exchanged, a first zero terminal device decodes the current coded data to be exchanged, which is first frame image data of image exchange, to obtain corresponding target decoded data, then obtains a preset exchange ratio, a region of a first position and a region of a second position, and displays data, which is matched with coordinates of the first position, in the target decoded data at the first position according to the coordinates of the target decoded data; and displaying the data matched with the coordinates at the second position in the decoded data corresponding to the current frame image at the second position according to the coordinates of the decoded data corresponding to the current frame image until the image corresponding to the target decoded data is completely switched. For example, if the preset exchange ratio is 10%, the area at the first position is 10% of the area on the left side of the current display area, and the area at the second position is 90% of the area on the left side of the current display area, then the data with the coordinates of the left 10% in the target decoding data is correspondingly displayed in the area on the left 10% of the current display area, and the data with the coordinates of the right 90% in the decoding data corresponding to the current frame image is correspondingly displayed in the area on the right 90% of the current display area, and according to the method, the switching between the current frame image and the image corresponding to the target decoding data is gradually realized until the image corresponding to the target decoding data is completely switched. Therefore, in the switching process of the current frame image and the image corresponding to the target decoding data, the display screen can be prevented from generating a black screen effect or a more abrupt switching effect.
When switching images, the first zero terminal device switches from the current frame image (first picture) to the image (second picture) corresponding to the target decoded data, and the second zero terminal device switches from the image (second picture) corresponding to the target decoded data to the current frame image (first picture) of the first zero terminal device; in the switching process, the switching may be from left to right, from right to left, from top to bottom, from bottom to top, from top left to bottom right, and the like, which is not limited in the present disclosure.
It should be noted that, when switching images, the current frame image may also be displayed in a preset window before image exchange; when image exchange is needed, deleting the current frame image, and displaying the target decoding data in a preset window according to a fixed frame rate, which is not limited by the disclosure.
It should be noted that, when the first zero terminal device executes the image exchange, it is further required to send a preset exchange ratio to the second zero terminal device, so that the second zero terminal device also executes the image exchange according to the preset exchange ratio when receiving the preset exchange ratio, and when the first zero terminal device is completely switched to the target decoding data of the second zero terminal device and the second zero terminal device is completely switched to the current frame image of the first zero terminal device, the picture switching between the two parts is completed.
It should be noted that, in the process of image switching between two parties, if one party initiates a disconnection switching request, the corresponding zero terminal device needs to wait until the current pictures of the two parties are switched and then disconnect the link that establishes the connection.
It should be noted that, a method for switching the second zero terminal device from the image corresponding to the target decoded data to the current frame image of the first zero terminal device is similar to that for switching the first zero terminal device from the current frame image to the image corresponding to the target decoded data, and reference may be specifically made to an implementation manner that the first zero terminal device switches from the current frame image to the image corresponding to the target decoded data, which is not described herein again.
Step 210, receiving the target to-be-exchanged encoded data sent by the second virtual device through the first connection channel.
The target coded data to be exchanged is all coded data to be exchanged after the current coded data to be exchanged, which is sent to the first zero terminal device by the second virtual device.
For example, when the first zero terminal device completely switches to the current encoded data to be exchanged (first frame data), the first zero terminal device may continue to receive the target encoded data to be exchanged, which is sent by the second virtual device, through the first connection channel, so as to implement the exchange of the multiple frames of image data.
And step 211, decoding and displaying the target to-be-exchanged coded data.
For example, when receiving the target to-be-exchanged encoded data each time, the first zero terminal device directly displays the target to-be-exchanged encoded data after decoding the target to-be-exchanged encoded data, and does not display decoded data corresponding to the target encoded data sent by the first virtual device until receiving the disconnection request.
And 212, receiving the target coded data sent by the first virtual device through a second connection channel.
And the second connection channel is a connection channel established between the first zero terminal device and the first virtual device.
For example, when the first zero terminal device receives the target to-be-exchanged encoded data sent by the second virtual device through the first connection channel, the previous second connection channel is not disconnected, the target encoded data sent by the first virtual device may also be received through the second connection channel, the target encoded data is stored in correspondence with the identifier of the second connection channel, and the target to-be-exchanged encoded data is stored in correspondence with the identifier of the first connection channel, so that it is convenient to determine which channel data is specifically displayed according to user requirements.
And step 213, decoding and displaying the target coded data when the image exchange mode is not started.
The embodiment of the disclosure provides an image exchange method, wherein when first zero terminal equipment receives first connection information sent by second zero terminal equipment, a first communication channel between the first zero terminal equipment and second virtual terminal equipment is established according to the first connection information, so that the second virtual equipment sends current coded data to be exchanged to the first zero terminal equipment through the first connection channel, and when the first zero terminal equipment receives the current coded data to be exchanged, the first zero terminal equipment exchanges a current frame image with the current coded data to be exchanged, thereby realizing image exchange between the first zero terminal equipment and the second zero terminal equipment. Like this, when the user adopts this disclosed more than two zero terminal equipment to carry out the live broadcast, need not to put more than two zero terminal equipment according to the position that the user was located, only need on a zero terminal equipment switch another zero terminal equipment on the image can to bring very big convenience for the user.
Based on the image exchange method described in the above embodiments, 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 an image exchange apparatus, as shown in fig. 3a, the image exchange apparatus 30 includes a first receiving module 301, a building module 302, a second receiving module 303, and an exchange module 304.
The first receiving module 301 is configured to receive first connection information sent by a second zero terminal device; the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device.
An establishing module 302, configured to establish a first connection channel between the first zero terminal device and a second virtual device according to the first connection information, so that the second virtual device sends the current to-be-exchanged encoded data to the first zero terminal device through the first connection channel.
A second receiving module 303, configured to receive the encoded data to be currently exchanged through the first connection channel.
And the exchanging module 304 is configured to exchange the current frame image with the current to-be-exchanged encoded data.
In one embodiment, as shown in fig. 3b, the apparatus further comprises a third receiving module 305.
The third receiving module 305 is configured to receive the target encoded data sent by the first virtual device through a second connection channel; the second connection channel is a connection channel established between the first zero terminal device and the first virtual device.
In one embodiment, as shown in fig. 3c, the apparatus further comprises an obtaining module 306 and a sending module 307.
The obtaining module 306 is configured to obtain a target switching instruction; the target exchange instruction is used for indicating that image exchange is allowed.
The sending module 307 is configured to send an image exchange request to the second zero terminal device in response to the target exchange instruction, so that the second zero terminal device sends the first connection information to the first zero terminal device when receiving the image exchange request.
In one embodiment, as shown in fig. 3d, the apparatus further comprises a determining module 308 and a presenting module 309.
Wherein the determining module 308 is configured to determine whether a second zero terminal device of exchangeable images exists within a preset distance.
The display module 309 is configured to display an exchange prompting message when it is determined that the second zero terminal device capable of exchanging images exists within the preset distance; the exchange reminding message is used for reminding the user whether to exchange images.
In one embodiment, as shown in FIG. 3e, the determination module 308 includes a first determination submodule 3081 and a second determination submodule 3082.
Wherein, the first determining submodule 3081 is used for determining whether to start the image exchange mode.
The second determining submodule 3082 is configured to determine whether there is a second zero terminal device that can exchange images within a preset distance when it is determined that the image exchange mode is turned on.
In one embodiment, as shown in fig. 3f, the apparatus further comprises a first decoding module 310.
The first decoding module 310 is configured to decode and display the target encoded data when it is determined that the image exchange mode is not turned on.
In one embodiment, as shown in FIG. 3g, the switch module 304 includes a decoding submodule 3041, a first display submodule 3042 and a second display submodule 3043.
The decoding submodule 3041 is configured to decode the current to-be-exchanged encoded data to obtain target decoded data.
The first display submodule 3042 is configured to display, at a first position, data in the target decoding data, which matches the coordinate at the first position; the area of the first position is the product of the area of the current display area and a preset exchange proportion.
The second display sub-module 3043 is configured to display, at a second position, data that matches the coordinate at the second position in the decoded data corresponding to the current frame image; the area of the second position is the area of the current display area minus the area of the first position.
In one embodiment, as shown in fig. 3h, the apparatus further comprises a fourth receiving module 311 and a second decoding module 312.
The fourth receiving module 311 is configured to receive, through the first connection channel, encoded data to be exchanged, which is sent by the second virtual device; the target to-be-exchanged encoded data is all to-be-exchanged encoded data after the current to-be-exchanged encoded data sent by the second virtual device to the first zero terminal device.
The second decoding module 312 is configured to decode and display the target to-be-exchanged encoded data.
The embodiment of the disclosure provides an image exchange device, wherein when first zero terminal equipment receives first connection information sent by second zero terminal equipment, a first communication channel between the first zero terminal equipment and second virtual terminal equipment is established according to the first connection information, so that the second virtual equipment sends current coded data to be exchanged to the first zero terminal equipment through the first connection channel, and when the first zero terminal equipment receives the current coded data to be exchanged, the first zero terminal equipment exchanges a current frame image with the current coded data to be exchanged, thereby realizing image exchange between the first zero terminal equipment and the second zero terminal equipment. Like this, when the user adopts this disclosed more than two zero terminal equipment to carry out the live broadcast, need not to put more than two zero terminal equipment according to the position that the user was located, only need on a zero terminal equipment switch another zero terminal equipment on the image can to bring very big convenience for the user.
Fig. 4 is a frame diagram of an image exchange system provided in an embodiment of the present disclosure, where the image exchange system shown in fig. 4 includes a first zero terminal device 401, a second zero terminal device 402, a first cloud server 403, and a second cloud server 404, a first virtual device 405 is run on the first cloud server 403, a second virtual device 406 is run on the second cloud server 404, the first zero terminal device 401 is connected to the first virtual device 405, and the second zero terminal device 402 is connected to the second virtual device 406; the first zero terminal device 401 is configured to execute the image exchange method according to any of the above embodiments.
The first virtual device 405 and the second virtual device 406 run a first operating system, and the first zero terminal device 405 and the second zero terminal device 406 run a second operating system, where the first operating system may execute a relatively complex process, and both the application programs run in the first operating system, and the second operating system has a simple function and may run some simple operations.
It should be noted that both the first zero terminal device 401 and the second zero terminal device 402 may be devices such as a cloud mobile phone and a cloud computer; the first cloud server 403 and the second cloud server 404 may be the same server or different cloud servers.
Based on the image exchange method described in the embodiment corresponding to fig. 1, an embodiment of the present disclosure further provides 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 computer instructions for executing the image exchange method described in the embodiment corresponding to fig. 1, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
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.

Claims (10)

1. An image exchange method is applied to a first zero terminal device, wherein the first zero terminal device is connected with a first virtual device, and the method comprises the following steps:
receiving first connection information sent by second zero terminal equipment; the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device;
establishing a first connection channel between the first zero terminal device and a second virtual device according to the first connection information, so that the second virtual device sends the current coded data to be exchanged to the first zero terminal device through the first connection channel;
receiving the current coded data to be exchanged through the first connecting channel;
and exchanging the current frame image with the current coded data to be exchanged.
2. The method of claim 1, further comprising:
receiving target coding data sent by the first virtual equipment through a second connecting channel; the second connection channel is a connection channel established between the first zero terminal device and the first virtual device.
3. The method according to claim 2, wherein before said receiving the first connection information sent by the second zero-terminal device, further comprising:
acquiring a target exchange instruction; the target exchange instruction is used for indicating that image exchange is allowed;
and responding to the target exchange instruction, sending an image exchange request to the second zero terminal equipment, so that the second zero terminal equipment sends the first connection information to the first zero terminal equipment when receiving the image exchange request.
4. The method of claim 3, further comprising, prior to said obtaining a target swap instruction:
determining whether a second zero terminal device capable of exchanging images exists within a preset distance;
when the second zero terminal equipment capable of exchanging images exists in the preset distance, displaying an exchange reminding message; the exchange reminding message is used for reminding the user whether to exchange images.
5. The method according to claim 4, wherein the determining whether there is a second zero terminal device of exchangeable images within a preset distance includes:
determining whether to turn on an image exchange mode;
and when the image exchange mode is determined to be started, determining whether a second zero terminal device capable of exchanging images exists within a preset distance.
6. The method of claim 5, further comprising:
and when the image exchange mode is determined not to be started, decoding and displaying the target coded data.
7. The method of claim 1, wherein exchanging the current frame image with the current encoded data to be exchanged comprises:
decoding the current coded data to be exchanged to obtain target decoded data;
displaying, at a first location, data of the target decoded data that matches the coordinates at the first location; the area of the first position is the product of the area of the current display area and a preset exchange ratio;
displaying data matched with the coordinates at the second position in the decoding data corresponding to the current frame image at the second position; the area of the second position is the area of the current display area minus the area of the first position.
8. The method according to claim 1, wherein after the exchanging the current frame image and the current encoding data to be exchanged, further comprising:
receiving target to-be-exchanged encoded data sent by the second virtual device through the first connecting channel; the target coded data to be exchanged is all coded data to be exchanged after the current coded data to be exchanged, which is sent to the first zero terminal equipment by the second virtual equipment;
and decoding and displaying the target to-be-exchanged coded data.
9. An image exchange apparatus, comprising:
the first receiving module is used for receiving first connection information sent by the second zero terminal equipment; the first connection information is connection information for establishing connection between the second zero terminal device and the second virtual device;
the establishing module is used for establishing a first connecting channel between the first zero terminal equipment and second virtual equipment according to the first connecting information, so that the second virtual equipment sends the current coded data to be exchanged to the first zero terminal equipment through the first connecting channel;
a second receiving module, configured to receive the current encoded data to be exchanged through the first connection channel;
and the exchange module is used for exchanging the current frame image with the current coded data to be exchanged.
10. An image exchange system is characterized by comprising a first zero terminal device, a second zero terminal device, a first cloud server and a second cloud server, wherein the first cloud server runs a first virtual device, the second cloud server runs a second virtual device, the first zero terminal device is connected with the first virtual device, and the second zero terminal device is connected with the second virtual device; the first zero terminal device is configured to perform the method of any of claims 1-8.
CN202110192278.3A 2021-02-19 2021-02-19 Image exchange method, device and system Pending CN113055441A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110192278.3A CN113055441A (en) 2021-02-19 2021-02-19 Image exchange method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110192278.3A CN113055441A (en) 2021-02-19 2021-02-19 Image exchange method, device and system

Publications (1)

Publication Number Publication Date
CN113055441A true CN113055441A (en) 2021-06-29

Family

ID=76509217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110192278.3A Pending CN113055441A (en) 2021-02-19 2021-02-19 Image exchange method, device and system

Country Status (1)

Country Link
CN (1) CN113055441A (en)

Similar Documents

Publication Publication Date Title
CN111803940B (en) Game processing method and device, electronic equipment and computer-readable storage medium
JP2022525365A (en) Data processing methods and devices, electronic devices, terminal devices and computer programs
WO2014101428A1 (en) Image control method and terminal, video conference apparatus
CN113207018A (en) Remote screen projection method, system, equipment and storage medium
CN110099461B (en) Communication method and system between terminals, electronic equipment and storage medium
JP2006277497A (en) Display control method and information processor
CN111565442A (en) Screen projection method, equipment and system
CN111880845A (en) Method, system and device for controlling target application
CN107688480B (en) Information authentication method and device based on virtual reality scene and storage medium
CN114173183B (en) Screen projection method and electronic equipment
CN114143586A (en) Split screen display sharing method, system, storage medium and intelligent screen
US20170351478A1 (en) Interface Sharing Method and Terminal Device
US11388205B2 (en) Systems and methods for establishing a shared augmented reality session
CN113055441A (en) Image exchange method, device and system
CN112269631A (en) Keyboard and mouse sharing system of virtual machine
CN107273125B (en) Method and system for remotely switching screen modes
CN112245902A (en) Switching method and device of terminal equipment
CN113329247A (en) Screen projection method and system
CN113535298A (en) Display switching method and device for cloud game desktop
CN112269550A (en) Data transmission method and device, terminal equipment and storage medium
CN107864188B (en) Service request method and device
CN114095764B (en) Screen projection method and electronic equipment
CN105069095B (en) Picture loading method, device and system
CN113434236A (en) Display switching method and device of cloud desktop
CN116991352A (en) Screen projection display method and device, equipment and storage medium

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