Video device redirection method, client, virtual machine desktop and storage medium
By redirecting the video device to the virtual machine desktop, the problem of low compatibility of video devices and the need to comply with software specifications is solved, and users can achieve a more convenient and reliable video device experience.
Patent Information
- Application Number
- CN202010980939.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2040-09-17
AI Technical Summary
In the prior art, the compatibility of video devices is not high, making it difficult for their data to be loaded stably on the operating system of the local client, and the user experience is poor. The video devices need to comply with relevant software specifications before data transmission is carried out, which limits the use of the device.
By redirecting the video device to the virtual machine desktop for use, the client obtains the configuration information of the video device and sends it to the virtual machine desktop. The virtual machine desktop creates corresponding device applications based on the configuration information. The user opens the device application on the virtual machine desktop to remotely trigger the video device, realizing the transmission and display of image information.
There is no need to introduce peripheral software for adaptation, and video equipment does not need to comply with relevant software specifications. Users can use video equipment more conveniently and reliably, improving user experience.
Smart Images

Figure CN114201249B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to, but are not limited to, the field of communication technology, and in particular to a video device redirection method, a client, a virtual machine desktop, and a computer-readable storage medium. Background Art
[0002] In user groups such as operators and education systems, video devices such as cameras and high-definition cameras are needed. Some video devices themselves are not highly compatible. Therefore, the data of the video devices is difficult to be stably loaded and read on the local client's operating system, which is a poor experience for users. Based on this, the relevant technology uses software applied on the operating system to load data from the video device. However, this method requires the relevant software to be compatible with the video device, that is, the video device must comply with the relevant specifications of the software before data transmission can be performed. This has a large limitation on the use of the video device and cannot meet the user's usage needs. Summary of the invention
[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0004] The embodiment of the present invention provides a video device redirection method, a client, a virtual machine desktop and a computer-readable storage medium, which can redirect a video device to a virtual machine desktop for use, thereby improving the user experience.
[0005] In a first aspect, an embodiment of the present invention provides a video device redirection method, which is applied to a client and includes:
[0006] In case of connecting to a virtual machine desktop, obtaining configuration information of a first device application corresponding to the video device, wherein the virtual machine desktop is constructed on a server;
[0007] Sending the configuration information to the virtual machine desktop so that the virtual machine desktop creates a second device application corresponding to the video device according to the configuration information;
[0008] Acquire trigger information from the virtual machine desktop, where the trigger information indicates that the second device application is opened;
[0009] Turning on the video device according to the trigger information and acquiring image information from the video device;
[0010] The image information is sent to the virtual machine desktop, so that the virtual machine desktop displays the image information through the second device application.
[0011] In a second aspect, an embodiment of the present invention further provides a video device redirection method, which is applied to a virtual machine desktop, where the virtual machine desktop is built on a server, and includes:
[0012] When connecting with a client, obtaining configuration information sent by the client, wherein the configuration information is obtained by the client from a first device application corresponding to the video device;
[0013] Creating a second device application corresponding to the video device according to the configuration information;
[0014] Sending trigger information to the client, so that the client opens the video device according to the trigger information and obtains image information from the video device, wherein the trigger information indicates that the second device application is opened;
[0015] The image information sent by the client is acquired, and the image information is displayed by the second device application.
[0016] In a third aspect, an embodiment of the present invention further provides a client, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the image processing method as described in the first aspect above is implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a virtual machine desktop, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the image processing method as described in the second aspect above is implemented.
[0018] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the image processing method as described above.
[0019] An embodiment of the present invention includes: obtaining configuration information of a first device application corresponding to a video device when connecting to a virtual machine desktop, wherein the virtual machine desktop is constructed on a server; sending the configuration information to the virtual machine desktop so that the virtual machine desktop creates a second device application corresponding to the video device according to the configuration information; obtaining trigger information from the virtual machine desktop, wherein the trigger information indicates that the second device application is opened; opening the video device according to the trigger information, and obtaining image information from the video device; and sending the image information to the virtual machine desktop so that the virtual machine desktop displays the image information through the second device application. According to the solution provided by the embodiment of the present invention, the client can send the configuration information of the first device application to the virtual machine desktop, so that the virtual machine desktop can create a second device application according to the configuration information. It can be seen that the client's video device can be redirected to the virtual machine desktop only through the interaction of configuration information. At the same time, the user only needs to open the second device application on the virtual machine desktop to send trigger information to the client, thereby remotely triggering the video device and redirecting the video device to the second device application on the virtual machine desktop for display. In this process, there is no need to introduce peripheral software for adaptation operations, nor is there any need to require the video device to comply with the relevant specifications of the relevant software. Therefore, for users, redirecting the video device to the virtual machine desktop for use can enable users to use the video device more conveniently and reliably, which can further improve the user experience.
[0020] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0022] Figure 1 is a schematic diagram of a network architecture for executing a video device redirection method provided by an embodiment of the present invention;
[0023] Figure 2 is a flow chart of a video device redirection method provided by an embodiment of the present invention;
[0024] Figure 3 is a flow chart of a video device redirection method provided by another embodiment of the present invention;
[0025] Figure 4is a flow chart of a video device redirection method provided by another embodiment of the present invention;
[0026] Figure 5 is a flow chart of a video device redirection method provided by another embodiment of the present invention;
[0027] Figure 6 is a flow chart of a video device redirection method provided by another embodiment of the present invention;
[0028] Figure 7 It is a flowchart of a video device redirection method provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0030] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0031] The present invention provides a video device redirection method, a client, a virtual machine desktop and a computer-readable storage medium, wherein the client can send configuration information of a first device application to the virtual machine desktop, so that the virtual machine desktop can create a second device application corresponding to the configuration information. It can be seen that the video device of the client can be redirected to the virtual machine desktop only through the interaction of configuration information. At the same time, the user only needs to start the second device application on the virtual machine desktop to send trigger information to the client, thereby remotely triggering the video device and redirecting the video device to the second device application on the virtual machine desktop for display. In this process, there is no need to introduce peripheral software for adaptation operations, nor is there any need to require the video device to comply with relevant specifications of relevant software. Therefore, for users, redirecting the video device to the virtual machine desktop for use can enable users to use the video device more conveniently and reliably, which can further improve the user's usage experience.
[0032] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0033] like Figure 1 As shown, Figure 11 is a schematic diagram of a network architecture 100 for executing a video device redirection method provided by an embodiment of the present invention.
[0034] exist Figure 1 In the example, the network architecture 100 includes a client 101 and a virtual machine desktop 102, wherein the client 101 and the virtual machine desktop 102 can be connected, and when the two are connected, the network architecture 100 can execute the video device redirection method.
[0035] In one embodiment, the client 101 is connected to a local video device so that the client 101 can obtain configuration information of the video device, wherein the client 101 can be a device terminal, such as a PC, or an operating system on the device terminal, such as any Windows operating system on a PC.
[0036] In one embodiment, the configuration information may include hardware information of the video device, such as storage capacity, drive type, etc., and may also include application information of the video device, such as upload rate and compatibility when the video device is connected to a computer. Those skilled in the art can easily imagine that the configuration information may also be other information similar to the above examples, which is not limited in this embodiment.
[0037] In one embodiment, the video device may be, but is not limited to, a USB device, a disk device, or other types of flash disk devices.
[0038] In one embodiment, the virtual machine desktop 102 can support remote dynamic access to the desktop system and unified hosting of the data center. For users, the virtual machine desktop 102 can be accessed at any place and at any time through any device, and a large amount of data can be stored through the virtual machine desktop 102. The virtual machine desktop 102 can be built in a server, wherein the server can be a cloud or any type of computer. The server can be connected to the network, and it has the ability to respond to service requests from the virtual machine desktop 102, and can also undertake the services required by the virtual machine desktop 102, and can also provide computing, driving or other application services for the virtual machine desktop 102. For example, when a user needs to log in to the virtual machine desktop 102, the virtual machine desktop 102 can send a request message to the server, so that the server creates a response service corresponding to the login virtual machine desktop 102 according to the request information, and provides the response service to the virtual machine desktop 102, so that the user can log in to the virtual machine desktop 102.
[0039] The client 101 and the virtual machine desktop 102 may include a memory and a processor respectively, wherein the memory and the processor may be connected via a bus or other means.
[0040] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0041] The network architecture 100 and application scenarios described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. Those skilled in the art can appreciate that with the evolution of the network architecture 100 and the emergence of new application scenarios, the technical solution provided by the embodiment of the present invention is equally applicable to similar technical problems.
[0042] exist Figure 1 In the network architecture 100 shown, the client 101 and the virtual machine desktop 102 can respectively call the video device redirection program stored therein to execute the video device redirection method.
[0043] Based on the structure of the above network architecture 100, various embodiments of the video device redirection method of the present invention are proposed.
[0044] like Figure 2 As shown, Figure 2 is a flowchart of a video device redirection method provided by an embodiment of the present invention. The video device redirection method can be applied to Figure 1 For the client in the network architecture of the illustrated embodiment, the method includes but is not limited to steps S100 to S500.
[0045] Step S100, obtaining configuration information of a first device application corresponding to a video device when connected to a virtual machine desktop;
[0046] Step S200, sending configuration information to the virtual machine desktop, so that the virtual machine desktop creates a second device application corresponding to the video device according to the configuration information;
[0047] Step S300, obtaining trigger information from the virtual machine desktop, where the trigger information indicates that the second device application is opened;
[0048] Step S400, turning on the video device according to the trigger information, and acquiring image information from the video device;
[0049] Step S500: sending the image information to the virtual machine desktop, so that the virtual machine desktop displays the image information through the second device application.
[0050] In one embodiment, the client can send the configuration information of the first device application to the virtual machine desktop, so that the virtual machine desktop can create a second device application according to the configuration information. It can be seen that the client's video device can be redirected to the virtual machine desktop only through the interaction of configuration information. At the same time, the user only needs to open the second device application on the virtual machine desktop to send trigger information to the client, thereby remotely triggering the video device and redirecting the video device to the second device application on the virtual machine desktop for display. In this process, there is no need to introduce peripheral software for adaptation operations, nor is there a need to require the video device to comply with relevant specifications of the relevant software. Therefore, for users, redirecting the video device to the virtual machine desktop for use can enable users to use the video device more conveniently and reliably, which can further improve the user experience.
[0051] In one embodiment, the video device is a physical device, and the corresponding first device application can be regarded as a specific application of the video device on the client, that is, the video device can be controlled through the first device application. Similarly, the second device application can be regarded as a specific application of the video device on the virtual machine desktop, that is, the video device can also be controlled through the second device application. The advantage of using this method is that it is convenient to control the actual video device through the virtual device application, so as to obtain a more convenient and reliable control effect.
[0052] In one embodiment, the trigger information indicates that the second device application is opened, wherein the conditions under which the second device application is opened are not strictly limited in this embodiment. For example, when the client is connected to the virtual machine desktop, the user can control the opening of the second device application through the application on the virtual machine desktop, or control the opening of the second device application based on a driver program that has been set on the virtual machine desktop. One example is to set the driver program according to the time node so that it can choose to control the opening of the second device application at a specific moment.
[0053] In one embodiment, the image information may be obtained by a video device through lossy compression after acquiring the image, or may be obtained by a client through lossy compression after acquiring the image of the video device, wherein lossy compression is defined relative to lossless compression, and lossy compression is a compression method that utilizes the characteristic that humans are insensitive to certain frequency components in an image, and allows certain information to be lost during the compression process. Although the original data cannot be completely restored after compression, the lost part has little impact on the understanding of the original image, and an image with a greater compression ratio can be obtained. The image information obtained after lossy compression is more conducive to network transmission, and can support the transmission of a larger amount of data at the same time, and its network transmission speed and efficiency will be significantly improved.
[0054] In one embodiment, the embodiment of the present invention is implemented based on the configuration driver development of the video device, and does not require the application to cooperate in making specific modifications. Therefore, there is no need to embed specific video device applications in the client and the virtual machine desktop. In addition, what is transmitted in the embodiment of the present invention is image playback control commands (corresponding to configuration information and trigger information) and real image data (corresponding to image information), rather than video device command data. That is, there is no need to directly transmit commands to the video device (for example, the direct transparent transmission of USB commands in the related art). Therefore, compared with the related art, the present application does not require a large amount of command interaction with the video device, and can achieve the purpose of reducing bandwidth.
[0055] like Figure 3 As shown, Figure 3 It is a flowchart of a video device redirection method provided by another embodiment of the present invention, wherein the trigger information includes first image parameter information, and before step S400, it also includes but is not limited to steps S600 to S700.
[0056] Step S600, sending second image parameter information supported by the video device to the virtual machine desktop according to the first image parameter information;
[0057] Step S700: obtaining third image parameter information sent by the virtual machine desktop according to the second image parameter information, where the third image parameter information is selected and determined by the virtual machine desktop in the second image parameter information.
[0058] In one embodiment, the first image parameter information represents image parameters that can be adapted to the second device application, that is, parameters that can be supported by the second device application. According to the aforementioned embodiment, the purpose of the interaction between the client and the virtual machine desktop is ultimately to obtain image information of the video device. Therefore, the video device needs to support the first image parameter information, so that the video device can obtain the corresponding image information based on the first image parameter information. Therefore, by sending the first image parameter information to the client, the client can send the second image parameter information supported by the video device to the virtual machine desktop, that is, the client can indicate that it has learned that the video device can support the second image parameter information by sending the second image parameter information, and the second parameter information is obtained based on the first image parameter information. Therefore, in this case, the virtual machine desktop can select the corresponding third image parameter information from the second image parameter information. It is worth noting that in this embodiment, the first image parameter information and the second image parameter information can represent several types of image parameter information that can be supported by the video device, and the third image parameter information can represent a specific one or several types of image parameter information that can be supported by the video device. The specific one or several types of image parameter information can be selected and determined from the above-mentioned several types of image parameter information.
[0059] In one embodiment, the first image parameter information, the second image parameter information and the third image parameter information may be but are not limited to parameters such as resolution and image format. Those skilled in the art should understand that the relevant parameters set by the video device and its application based on obtaining image information can be regarded as the image parameter information of the video device, which is not limited in the present embodiment.
[0060] In one embodiment, the virtual machine desktop can select the second image parameter information through the image preview of the second device application, that is, the second image parameter information is obtained through an intuitive image preview so that it can be determined in the third image parameter information. Other methods can also be used to select the second image parameter information, which is not limited in this embodiment.
[0061] In one embodiment, after the client obtains the third image parameter information, “obtaining image information from the video device” in step S400 may include but is not limited to step S410.
[0062] Step S410: acquiring, from a video device, image information determined by the video device according to third image parameter information.
[0063] In one embodiment, the third image parameter information is supportable by the video device, so the video device can determine the image information based on the third image parameter information. Therefore, for the client, it can obtain image information that meets the requirements supportable by the video device, thereby ensuring that the image information redirected to the virtual machine desktop can meet user requirements.
[0064] like Figure 4 As shown, Figure 4 It is a flowchart of a video device redirection method provided by another embodiment of the present invention, wherein the trigger information includes first image parameter information, and before step S400, it also includes but is not limited to steps S800 to S900.
[0065] Step S800, sending feedback information to the virtual machine desktop according to the first image parameter information, the feedback information indicating that the video device is compatible with the first image parameter information;
[0066] Step S900: Acquire fourth image parameter information sent by the virtual machine desktop according to feedback information, where the fourth image parameter information is selected and determined by the virtual machine desktop in the first image parameter information.
[0067] In one embodiment, the first image parameter information represents image parameters that can be adapted to the second device application, that is, parameters that the second device application can support. According to the aforementioned embodiment, the purpose of the interaction between the client and the virtual machine desktop is ultimately to obtain image information of the video device. Therefore, the video device needs to support the first image parameter information so that the video device can obtain the corresponding image information based on the first image parameter information. Therefore, after receiving the first image parameter information, if the video device is compatible with the first image parameter information, the client sends a feedback message to the virtual machine desktop. The feedback message is used to inform the virtual machine desktop of the adaptation of the video device to the first image parameter information, so that the virtual machine desktop can select the corresponding fourth image parameter information from the first image parameter information and send it to the client. It is worth noting that under the condition that the video device is not compatible with the first image parameter information, the client can also send another feedback message to the virtual machine desktop, which can also inform the virtual machine desktop of the situation that the video device is not compatible with the first image parameter information.
[0068] In one embodiment, the first image information and the fourth image parameter information may be but are not limited to parameters such as resolution and image format. Those skilled in the art should understand that relevant parameters set by video devices and their applications based on obtaining image information can be regarded as image parameter information of the video device, which is not limited in this embodiment.
[0069] In one embodiment, the virtual machine desktop can select the fourth image parameter information through the image preview of the second device application, that is, the fourth image parameter information is obtained through an intuitive image preview so that it can be determined in the first image parameter information. Other methods can also be used to select the fourth image parameter information, which is not limited in this embodiment.
[0070] In one embodiment, after the client obtains the fourth image parameter information, “obtaining image information from the video device” in step S400 may include but is not limited to step S420.
[0071] Step S420: Acquire, from the video device, image information determined by the video device according to the fourth image parameter information.
[0072] In one embodiment, the fourth image parameter information is determined from the first image parameter information, and the first image parameter information is supported by the video device. Therefore, the fourth image parameter information is also supported by the video device. Therefore, the video device can determine the image information based on the fourth image parameter information. For the client, it can obtain image information that meets the requirements supported by the video device, thereby ensuring that the image information redirected to the virtual machine desktop can meet user requirements.
[0073] like Figure 5 As shown, Figure 5 is a flowchart of a video device redirection method provided by another embodiment of the present invention. The video device redirection method can be applied to Figure 1 The method for the virtual machine desktop in the network architecture of the illustrated embodiment includes but is not limited to steps S1000 to S1300.
[0074] Step S1000, when connecting with a client, obtaining configuration information sent by the client, where the configuration information is obtained by the client from a first device application corresponding to the video device;
[0075] Step S1100, creating a second device application corresponding to the video device according to the configuration information;
[0076] Step S1200, sending trigger information to the client, so that the client opens the video device according to the trigger information and obtains image information from the video device, wherein the trigger information indicates that the second device application is opened;
[0077] Step S1300: acquiring image information sent by the client, and displaying the image information through a second device application.
[0078] In one embodiment, the virtual machine desktop can obtain the configuration information sent by the client, and then can create a corresponding second device application according to the configuration information. It can be seen that the client's video device can be redirected to the virtual machine desktop only through the interaction of configuration information. At the same time, the user only needs to open the second device application on the virtual machine desktop to send trigger information to the client, thereby remotely triggering the video device and redirecting the video device to the second device application on the virtual machine desktop for display. In this process, there is no need to introduce peripheral software for adaptation operations, nor is there a need to require the video device to comply with relevant specifications of the relevant software. Therefore, for users, redirecting the video device to the virtual machine desktop for use can enable users to use the video device more conveniently and reliably, which can further improve the user experience.
[0079] It should be noted that since the video device redirection method in this embodiment is different from the above Figure 2 The video device redirection method in the illustrated embodiment differs only in the execution subject, and is essentially the same inventive concept. Therefore, the specific implementation of the video device redirection method in this embodiment can refer to the above-mentioned Figure 2 The relevant specific embodiments of the video device redirection method in the illustrated embodiment, in order to avoid redundancy, other specific implementation methods of the video device redirection method in this embodiment are not described here in detail.
[0080] like Figure 6 As shown, Figure 6 It is a flowchart of a video device redirection method provided by another embodiment of the present invention, wherein the trigger information includes first image parameter information, and before "enabling the client to open the video device according to the trigger information" in step S1200, it also includes but is not limited to steps S1400 to S1500.
[0081] Step S1400, obtaining second image parameter information supported by the video device sent by the client according to the first image parameter information;
[0082] Step S1500: Send third image parameter information to the client according to the second image parameter information, where the third image parameter information is the virtual machine desktop selected and determined in the second image parameter information.
[0083] In one embodiment, the first image parameter information represents image parameters that can be adapted to the second device application, that is, parameters that the second device application can support. According to the aforementioned embodiment, the purpose of the interaction between the client and the virtual machine desktop is ultimately to obtain image information of the video device. Therefore, the video device needs to support the first image parameter information, so that the video device can obtain the corresponding image information based on the first image parameter information. Therefore, when the second image parameter information sent by the client is received, it indicates that the video device can support the second image parameter information, and the second parameter information is obtained based on the first image parameter information. Therefore, in this case, the virtual machine desktop can select the corresponding third image parameter information from the second image parameter information. It is worth noting that in this embodiment, the first image parameter information and the second image parameter information can represent several types of image parameter information that the video device can support, and the third image parameter information can represent a specific one or several image parameter information that the video device can support. The specific one or several image parameter information can be selected and determined from the above-mentioned several types of image parameter information.
[0084] In one embodiment, the image information can be determined by the video device based on the third image parameter information, that is, the third image parameter information is supported by the video device. Therefore, the video device can determine the image information based on the third image parameter information. Therefore, for the virtual machine desktop, redirected image information that can meet user requirements can be obtained.
[0085] It should be noted that since the video device redirection method in this embodiment is different from the above Figure 3 The video device redirection method in the illustrated embodiment differs only in the execution subject, and is essentially the same inventive concept. Therefore, the specific implementation of the video device redirection method in this embodiment can refer to the above-mentioned Figure 3 The relevant specific embodiments of the video device redirection method in the illustrated embodiment, in order to avoid redundancy, other specific implementation methods of the video device redirection method in this embodiment are not described here in detail.
[0086] like Figure 7 As shown, Figure 7 It is a flowchart of a video device redirection method provided by another embodiment of the present invention, wherein the trigger information includes first image parameter information, and before "enabling the client to open the video device according to the trigger information" in step S1200, it also includes but is not limited to steps S1600 to S1700.
[0087] Step S1600, obtaining feedback information sent by the client according to the first image parameter information, where the feedback information indicates that the video device is compatible with the first image parameter information;
[0088] Step S1700: Send fourth image parameter information to the client according to the feedback information, where the fourth image parameter information is the virtual machine desktop selected and determined in the first image parameter information.
[0089] In one embodiment, when feedback information sent by the client is received, it indicates that the video device can support the first image parameter information. Therefore, in this case, the virtual machine desktop can select the corresponding fourth image parameter information from the first image parameter information so that the video device can obtain the corresponding image information according to this parameter information. That is, since the fourth image parameter information is supported by the video device, the image information can be determined by the video device according to the fourth image parameter information. For the virtual machine desktop, the redirected image information that can meet the user's requirements can also be obtained accordingly.
[0090] It should be noted that since the video device redirection method in this embodiment is different from the above Figure 4 The video device redirection method in the illustrated embodiment differs only in the execution subject, and is essentially the same inventive concept. Therefore, the specific implementation of the video device redirection method in this embodiment can refer to the above-mentioned Figure 4 The relevant specific embodiments of the video device redirection method in the illustrated embodiment, in order to avoid redundancy, other specific implementation methods of the video device redirection method in this embodiment are not described here in detail.
[0091] In addition, an embodiment of the present invention provides a client, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0092] The processor and the memory may be connected via a bus or other means.
[0093] It should be noted that the client in this embodiment can be applied to Figure 1 The network architecture in the embodiment shown can constitute Figure 1 Part of the network architecture in the illustrated embodiments, these embodiments all belong to the same inventive concept, so these embodiments have the same implementation principles and technical effects, and will not be described in detail here.
[0094] The non-transient software program and instructions required to implement the video device redirection method of the above embodiment are stored in the memory. When executed by the processor, the video device redirection method of the above embodiment is executed, for example, the above described Figure 2 Steps S100 to S500 of the method, Figure 3 Method steps S600 to S700 or Figure 4 Alternatively, perform method steps S800 to S900 in the method or perform method steps S410 or S420 described above.
[0095] In addition, an embodiment of the present invention provides a virtual machine desktop, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0096] The processor and the memory may be connected via a bus or other means.
[0097] It should be noted that the virtual machine desktop in this embodiment can be applied to Figure 1 The network architecture in the embodiment shown can constitute Figure 1 Part of the network architecture in the illustrated embodiments, these embodiments all belong to the same inventive concept, so these embodiments have the same implementation principles and technical effects, and will not be described in detail here.
[0098] The non-transient software program and instructions required to implement the video device redirection method of the above embodiment are stored in the memory. When executed by the processor, the video device redirection method of the above embodiment is executed, for example, the above described Figure 5 Method steps S1000 to S1300, Figure 6 Method steps S1400 to S1500 or Figure 7 Method steps S1600 to S1700 in.
[0099] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by a processor or a controller, for example, by a processor in the above embodiment, so that the processor can execute the video device redirection method in the above embodiment, for example, execute the above described Figure 2 Steps S100 to S500 of the method, Figure 3 Steps S600 to S700, Figure 4 Steps S800 to S900 of the method, Figure 5 Method steps S1000 to S1300, Figure 6 Method steps S1400 to S1500 or Figure 7 Alternatively, perform method steps S1600 to S1700 described above, or perform method steps S410 or S420 described above.
[0101] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0102] The above is a specific description of the preferred embodiments of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A video device redirection method, applied to a client, comprising: In the case of connecting to the virtual machine desktop, obtaining configuration information of a first device application corresponding to the video device, wherein: The virtual machine desktop is constructed on a server, the configuration information includes hardware information and application information of the video device, the first device application is a specific application of the video device on the client, and the first device application is used to control the video device; Sending the configuration information to the virtual machine desktop, so that the virtual machine desktop creates a second device application corresponding to the video device according to the configuration information, wherein the second device application is a specific application of the video device on the virtual machine desktop, and the second device application is used to control the video device; Acquire trigger information from the virtual machine desktop, where the trigger information indicates that the second device application is opened; Turning on the video device according to the trigger information and acquiring image information from the video device; The image information is sent to the virtual machine desktop, so that the virtual machine desktop displays the image information through the second device application.
2. The video device redirection method according to claim 1, characterized in that: The trigger information includes first image parameter information, and before the video device is turned on according to the trigger information, the method further includes: Sending second image parameter information supported by the video device to the virtual machine desktop according to the first image parameter information; The third image parameter information sent by the virtual machine desktop according to the second image parameter information is obtained, where the third image parameter information is selected and determined by the virtual machine desktop in the second image parameter information.
3. The video device redirection method according to claim 2, characterized in that: The acquiring the image information from the video device comprises: Image information determined by the video device according to the third image parameter information is acquired from the video device.
4. The video device redirection method according to claim 1, characterized in that: The trigger information includes first image parameter information, and before the video device is turned on according to the trigger information, the method further includes: Sending feedback information to the virtual machine desktop according to the first image parameter information, wherein the feedback information indicates that the video device is compatible with the first image parameter information; Acquire fourth image parameter information sent by the virtual machine desktop according to the feedback information, where the fourth image parameter information is selected and determined by the virtual machine desktop in the first image parameter information.
5. The video device redirection method according to claim 4, characterized in that: The acquiring the image information from the video device comprises: Image information determined by the video device according to the fourth image parameter information is acquired from the video device.
6. The video device redirection method according to any one of claims 1 to 5, characterized in that: The image information is lossy compressed image information.
7. A video device redirection method, applied to a virtual machine desktop, the virtual machine desktop is built on a server, comprising: When connecting with a client, obtaining configuration information sent by the client, the configuration information being obtained by the client from a first device application corresponding to the video device, the configuration information including hardware information and application information of the video device, the first device application being a specific application of the video device on the client, and the first device application being used to control the video device; Creating a second device application corresponding to the video device according to the configuration information, wherein: The second device application is a specific application of the video device on the virtual machine desktop, and the second device application is used to control the video device; Sending trigger information to the client, so that the client opens the video device according to the trigger information and obtains image information from the video device, wherein the trigger information indicates that the second device application is opened; The image information sent by the client is acquired, and the image information is displayed by the second device application.
8. The video device redirection method according to claim 7, characterized in that: The trigger information includes first image parameter information, and before the client opens the video device according to the trigger information, the method further includes: Acquire second image parameter information supported by the video device and sent by the client according to the first image parameter information; The third image parameter information is sent to the client according to the second image parameter information, where the third image parameter information is selected and determined by the virtual machine desktop in the second image parameter information.
9. The video device redirection method according to claim 8, characterized in that: The image information is determined by the video device according to the third image parameter information.
10. The video device redirection method according to claim 7, characterized in that: The trigger information includes first image parameter information, and before the client opens the video device according to the trigger information, the method further includes: Acquire feedback information sent by the client according to the first image parameter information, wherein the feedback information indicates that the video device is compatible with the first image parameter information; The fourth image parameter information is sent to the client according to the feedback information, where the fourth image parameter information is selected and determined by the virtual machine desktop in the first image parameter information.
11. The video device redirection method according to claim 10, characterized in that: The image information is determined by the video device according to the fourth image parameter information.
12. The video device redirection method according to any one of claims 7 to 11, characterized in that: The image information is lossy compressed image information.
13. A client, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the video device redirection method as described in any one of claims 1 to 6 when executing the computer program.
14. A virtual machine desktop, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the video device redirection method as described in any one of claims 7 to 12 when executing the computer program.
15. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the video device redirection method described in any one of claims 1 to 6 or the video device redirection method described in any one of claims 7 to 12.
Citation Information
Patent Citations
Camera access method and apparatus, server and readable storage medium
CN108304247A