Material preview method, medium and electronic equipment
Through the collaboration between server and terminal devices, using target cloud real machines and application rendering materials, the problem of inefficient page testing in the existing technology is solved, and efficient material preview on different devices and display styles is achieved.
Patent Information
- Application Number
- CN202311402659.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, pages need to be checked or tested before they are launched or published. Testers need to develop page styles for different models and systems. Users need to manually replace materials and preview them, resulting in inefficiency.
Through collaboration between the server and the terminal device, the material to be previewed and the target preview information is obtained, and the material is rendered with the target display style using the target cloud real machine and application, the target preview content is generated, and the target preview is displayed on the terminal device.
It realizes the display effect of the material to be previewed on a real device. By configuring the target preview information, users can preview the material on different devices, applications and display styles without additional operations, greatly improving the efficiency of material preview.
Smart Images

Figure CN119902824A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a material preview method, medium and electronic device. Background Art
[0002] Before a page goes online or is published, it is usually necessary to verify or test the page. In related technologies, testers usually design page styles for different models and systems, and then users fill the page with corresponding materials. However, this method requires testers to develop various page styles in a targeted manner, and users need to replace the materials with the materials to be tested every time they test, which results in users having to manually perform the preview process every time they change the materials, resulting in low work efficiency. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a material preview method, which is executed by a server, and the method includes:
[0005] Acquire the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and an application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0006] According to the target cloud real machine and application program, in combination with the target display style, the to-be-previewed material is rendered to obtain target preview content, wherein the target preview content is used for display on a terminal device.
[0007] In a second aspect, the present disclosure provides a material preview method, which is executed by a terminal device, and the method includes:
[0008] Determine the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0009] Sending the to-be-previewed material and the target preview information to a server, wherein the server is configured to render the to-be-previewed material according to the target cloud real machine and application indicated by the target preview information and in combination with the target display style, obtain target preview content, and send the target preview content to the terminal device;
[0010] The target preview content sent by the server is received, and the target preview content is displayed.
[0011] In a third aspect, the present disclosure provides a material preview method, which is applied to a material preview system, wherein the material preview system includes a terminal device and a server, and the method includes:
[0012] The terminal device determines the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0013] The terminal device sends the to-be-previewed material and the target preview information to the server;
[0014] The server receives the to-be-previewed material and the target preview information sent by the terminal device;
[0015] The server renders the material to be previewed according to the target cloud real machine and application program in combination with the target display style to obtain target preview content;
[0016] The server sends the target preview content to the terminal device;
[0017] The terminal device receives the target preview content sent by the server, and displays the target preview content.
[0018] In a fourth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect.
[0019] In a fifth aspect, the present disclosure provides an electronic device, including:
[0020] a storage device having a computer program stored thereon;
[0021] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0022] Based on the above technical solution, the terminal device determines the material to be previewed and the target preview information, the terminal device sends the material to be previewed and the target preview information to the server, the server receives the material to be previewed and the target preview information sent by the terminal device, and renders the material to be previewed according to the target cloud real machine and application, combined with the target display style, to obtain the target preview content, and then the server sends the target preview content to the terminal device, the terminal device receives the target preview content sent by the server, and displays the target preview content, so that the display effect of the material to be previewed can be simulated on the real device, and by configuring the target preview information, the user can simulate the display effect of the material to be previewed on different devices, different applications, and different display styles without performing unnecessary operations, which greatly improves the efficiency of material preview. In addition, through the material preview method provided by the embodiment of the present disclosure, the developer of the application does not need to develop and design corresponding preview pages for different display styles, and the long-term maintenance cost is extremely low.
[0023] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0025] Figure 1 It is a block diagram of a material preview system according to an exemplary embodiment.
[0026] Figure 2 The present invention is a flowchart of a material preview method according to an exemplary embodiment.
[0027] Figure 3 is a schematic diagram showing target preview content according to an exemplary embodiment.
[0028] Figure 4 The present invention is a flowchart of interaction between a terminal device and a server according to an exemplary embodiment.
[0029] Figure 5 is a schematic diagram of a target interface according to an exemplary embodiment.
[0030] Figure 6 The diagram is a schematic diagram of interaction between a terminal device and a server according to an exemplary embodiment.
[0031] Figure 7 The figure is a flowchart of a material preview method according to another exemplary embodiment.
[0032] Figure 8 The figure is a flowchart of a material preview method according to another exemplary embodiment.
[0033] Fig. 9 The figure is a schematic diagram showing module connections of a material preview device according to an exemplary embodiment.
[0034] Fig.10 The figure is a schematic diagram showing module connections of a material preview device according to an exemplary embodiment.
[0035] Fig.11 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0038] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0039] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0042] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0044] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0046] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0047] Figure 1 FIG. 1 is a block diagram of a material preview system according to an exemplary embodiment. Figure 1 As shown, the material preview method provided by the embodiment of the present disclosure is applicable to Figure 1 The system shown in the figure may include at least a terminal device 101 and a server 102. The terminal device 101 and the server 102 may exchange data via a wired connection or a wireless connection.
[0048] Figure 2 FIG. 1 is a flow chart of a material preview method according to an exemplary embodiment. Figure 2 As shown, the present disclosure provides a material preview method, which can be applied to Figure 1 The material preview system shown in Figure 1 is as follows. Figure 2 As shown, the method may include the following steps.
[0049] In step 210, the terminal device determines the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed.
[0050] Here, the material to be previewed can be the content that the user needs to preview. Among them, the material to be previewed can be pictures, text, videos and other content. The target cloud real machine refers to the target device selected by the user for page simulation. It should be understood that the cloud real machine can be a virtual device constructed by the server using virtual machine technology or a real device connected to the server for communication, such as a mobile terminal, etc. The cloud real machine deployed in the server can simulate the functions of the cloud real machine corresponding to the real device in reality. The application may refer to the application selected by the user to simulate the page display effect. The target display style may refer to the page used by the application to display the material to be previewed. For example, the target display style may refer to the opening page of the application, the content page of the application, and so on.
[0051] It is worth noting that the target preview information is used to instruct the server to simulate the display effect of the preview material in the target display style of the application through the application in the target cloud real machine.
[0052] The user can input the material to be previewed in the terminal device, and select the corresponding target preview information in the terminal device. For example, different types of cloud real machines can be deployed in the server, and the user can select the cloud real machine on which the effect simulation is required as the target cloud real machine. Of course, the cloud real machine can also be deployed separately in the cloud server. After receiving the material to be previewed and the target preview information, the server can send the material to be previewed and the target preview information to the cloud server to call the target cloud real machine in the cloud server to generate the target preview content. In addition, various types of applications can also be deployed in the target cloud real machine, or when the user previews the material, the target cloud real machine is instructed to install the corresponding application.
[0053] In step 220, the terminal device sends the material to be previewed and target preview information to the server.
[0054] Here, the terminal device may send the to-be-previewed material and the target preview information to the server through the communication connection between the terminal device and the server.
[0055] In step 230, the server receives the material to be previewed and the target preview information sent by the terminal device.
[0056] Here, the server may receive the to-be-previewed material and the target preview information sent by the terminal device through the communication connection between the server and the terminal device.
[0057] In step 240, the server renders the preview material according to the target cloud real machine and application program in combination with the target display style to obtain the target preview content.
[0058] Here, after receiving the target preview information, the server calls the target cloud real machine indicated in the target preview information, and simulates the display effect of the preview material in the target display style indicated in the target preview information through the application indicated in the target preview information to obtain the target preview content.
[0059] It should be understood that the target cloud real machine can replace the material in the target display style of the application with the material to be previewed, and control the application to render and output the page corresponding to the target display style after the material is replaced.
[0060] In some embodiments, the server pushes the material to be previewed to the target cloud real machine, controls the application to load the material to be previewed into the page corresponding to the target display style in real time, and controls the application to render the material to be previewed to obtain the target preview content.
[0061] The server pushes the preview material to the target cloud real machine, and the application running in the target cloud real machine loads the preview material into the page corresponding to the target display style in real time, and renders the page to obtain the target preview content.
[0062] It should be understood that the application running in the target cloud real machine directly loads the material to be previewed into the page corresponding to the target display style in real time, instead of using a caching strategy to cache the material to be previewed first, and directly loads the material to be previewed into the page corresponding to the target display style, thereby improving the preview speed.
[0063] Taking the application's opening page as an example, in actual application, the application's opening page usually caches the preview material first, and then renders the preview material in the opening page. However, the application in the target cloud real machine no longer caches the preview material, but directly renders the target preview content.
[0064] In step 250, the server sends the target preview content to the terminal device.
[0065] Here, after obtaining the target preview content, the server can send the target preview content to the terminal device. It should be understood that the target preview content can be understood as the content of the display effect of the user displaying the preview material in the target display style of the application program of the target cloud real machine.
[0066] In step 260, the terminal device receives the target preview content sent by the server and displays the target preview content.
[0067] Here, the terminal device can receive the target preview content sent by the server through the communication connection between the terminal device and the server, and display the target preview content in the terminal device, so as to simulate the display effect of the material to be previewed in the target display style of the application in the target cloud real machine through the target preview content. It should be understood that since the target cloud real machine is equivalent to a real device in the real world, the target preview content obtained by the server through the target cloud real machine can simulate the display effect of the material to be previewed in the real device, thereby realizing a real material preview.
[0068] Figure 3 301 is a schematic diagram of target preview content according to an exemplary embodiment. The target cloud real machine is device A, the application is application A, the target display style is the opening screen page of application A, and the material to be previewed is picture 301. Figure 3 As shown, the target preview content shows the display effect of the picture 301 in the opening page of the application A in the device A.
[0069] Thus, the terminal device determines the material to be previewed and the target preview information, the terminal device sends the material to be previewed and the target preview information to the server, the server receives the material to be previewed and the target preview information sent by the terminal device, and renders the material to be previewed according to the target cloud real machine and application program, combined with the target display style, obtains the target preview content, and then the server sends the target preview content to the terminal device, the terminal device receives the target preview content sent by the server, and displays the target preview content, so that the display effect of the material to be previewed can be simulated on the real device, and by configuring the target preview information, the user can simulate the display effect of the material to be previewed on different devices, different applications, and different display styles, without performing unnecessary operations, which greatly improves the efficiency of material preview. In addition, through the material preview method provided by the disclosed embodiment, the application developer does not need to develop and design corresponding preview pages for different display styles, and the long-term maintenance cost is extremely low.
[0070] In some achievable implementations, the target cloud real machine can be located in the intranet, and the terminal device can be located in the extranet. Accordingly, the terminal device sends the material to be previewed and the target preview information to the external service layer of the server through the front-end interface, and the server receives the material to be previewed and the target preview information through the external service layer. The server pushes the material to be previewed and the target display style to the target cloud real machine through the external service layer, and calls the target cloud real machine to render the material to be previewed through the application and the target display style to obtain the target preview content. The server receives the target preview content sent by the target cloud real machine through the external service layer, and the server sends the target preview content to the front-end interface of the terminal device through the external service layer.
[0071] Here, since the target cloud machine runs in the intranet and the terminal device is located in the extranet, in order to ensure the security of the target cloud machine and realize the interaction between the target cloud machine and the terminal device, an external service layer can be set in the server, which is responsible for receiving the data and instructions sent by the terminal device and sending the data and instructions to the target cloud machine, thereby preventing the terminal device from directly controlling the target cloud machine.
[0072] The external service layer can be understood as a software module set up on the server for interacting with external network devices, that is, the external service layer receives data and instructions sent by the front-end interface, and transmits the data and instructions to the target cloud real machine, and the external service layer receives data sent by the target cloud real machine and sends the data to the front-end interface. The front-end interface can be an SDK (Software Development Kit) interface provided by the server for the terminal device to send data and instructions to the server.
[0073] The external service layer is connected to the front-end interface. For example, the external service layer and the front-end interface can communicate via WebSocket (a protocol for full-duplex communication on a single TCP connection). The external service layer and the target cloud real machine can also be connected to each other. For example, the external service layer and the target cloud real machine can be connected to each other via WebSocket.
[0074] Figure 4 FIG. 1 is a flowchart of interaction between a terminal device and a server according to an exemplary embodiment. Figure 4 As shown, the following steps may be included:
[0075] S401, the preview platform of the terminal device configures the material to be previewed and the target preview information;
[0076] S402, the terminal device sends the material to be previewed and the target preview information to the external service layer of the server through the front-end interface;
[0077] S403, the external service layer of the server receives the material to be previewed and the target preview information;
[0078] S404, the external service layer sends the preview material and target preview information to the target cloud real machine;
[0079] S405, the target cloud real machine receives the material to be previewed and the target preview information;
[0080] S406, the target cloud real machine generates target preview content according to the to-be-previewed material and the target preview information;
[0081] S407, the target cloud real machine sends the target preview content to the external service layer;
[0082] S408, the external service layer receives the target preview content;
[0083] S409, the external service layer sends the target preview content to the front-end interface;
[0084] S410, the front-end interface receives and parses the target preview content;
[0085] S411, the preview platform displays the target preview content.
[0086] It is worth noting that in addition to exchanging data with the front-end interface, the server's external service layer can also authenticate the terminal device and allow the terminal device to access the server after the authentication is passed. Different authentication methods can be used to authenticate the terminal device corresponding to different business lines.
[0087] Of course, the external service layer can also limit the terminal device's control over the target cloud real machine by verifying the front-end interface and configuring a command whitelist, thereby ensuring the security of the material preview system.
[0088] Therefore, through the external service layer deployed on the server, terminal devices located on the external network can access the cloud real machine located on the internal network, and through the external service layer, the control of the terminal device over the cloud real machine can be restricted to ensure the security of the internal network environment.
[0089] In some feasible implementations, the server determines the usage status of the target cloud real machine based on the mapping relationship between the cloud real machine and the terminal device. When the usage status indicates that the target cloud real machine is in an idle state, the server assigns the target cloud real machine to the terminal device and stores the mapping relationship between the target cloud real machine and the terminal device. When the terminal device no longer uses the target cloud real machine, the server cancels the mapping relationship between the target cloud real machine and the terminal device.
[0090] Here, the mapping relationship between the cloud real machine and the terminal device is used to indicate whether the cloud real machine is occupied by the terminal device. When the cloud real machine is applied for and used by the terminal device, the server establishes a mapping relationship between the cloud real machine and the terminal device, indicating that the cloud real machine is occupied by the terminal device.
[0091] The server can store the mapping relationship in a database. For example, the database can be Redis (Remote Dictionary Server). Other servers in the material preview system can query the mapping relationship in the database to determine the usage status of the target cloud real machine applied by the terminal device based on the queried mapping relationship.
[0092] When the database stores a mapping relationship between the target cloud real machine and the terminal device, it indicates that the use state of the target cloud real machine is occupied. When the database does not store a mapping relationship between the target cloud real machine and the terminal device, it indicates that the use state of the target cloud real machine is idle.
[0093] When it is determined that the target cloud real machine is in an idle state, the server allocates the target cloud real machine requested by the terminal device to the terminal device, and stores the mapping relationship between the target cloud real machine and the terminal device to indicate to other servers that the target cloud real machine has been occupied by the terminal device, so that other servers will no longer allocate the target cloud real machine to other terminal devices.
[0094] When the terminal device using the target cloud real machine no longer uses the target cloud real machine, the server cancels the mapping relationship between the target cloud real machine and the terminal device to indicate to other servers that the target cloud real machine has been released and is in an idle state and can be allocated to other terminal devices for use.
[0095] It should be understood that the mapping relationship may be an association relationship between the identity identifier of the terminal device located in the external network and the serial number of the cloud real machine.
[0096] Therefore, through the above mapping relationship, it is possible to avoid the same cloud real machine being allocated to different terminal devices due to the inconsistency of storage in multiple computer rooms, and the accuracy of the cloud real machine preview material can be guaranteed.
[0097] It is worth noting that the terminal device can apply for the target cloud real machine in advance and select the application before sending the material to be previewed. For example, before starting the preview, the user can pre-select the target cloud real machine and the application corresponding to the real device that needs to be simulated, and send an instruction to the server to request the use of the target cloud real machine. In response to the instruction, the server queries the usage status of the target cloud real machine according to the mapping relationship, and when the usage status is idle, the target cloud real machine is allocated to the terminal device, and the application to be simulated is downloaded to the target cloud real machine. In addition, the server updates the mapping relationship between the target cloud real machine and the terminal device to indicate that the target cloud real machine is occupied.
[0098] In some feasible implementations, the server may also update the version of the application installed in the cloud real machine and log in the updated application.
[0099] Here, the server can also regularly update the version of the application installed in the cloud real machine to ensure that the application is at the latest version, so as to ensure that the effect of the material preview is consistent with the actual display effect. Moreover, after updating the version of the application installed in the cloud real machine, the server can also automatically log in to the updated application to ensure that the user no longer needs to log in manually.
[0100] Therefore, by updating the version of the application installed in the cloud real machine and logging in to the updated application, not only can the effect of the material preview be guaranteed to be consistent with the actual display effect, but also the user does not need to log in manually, thus ensuring the efficiency of the material preview.
[0101] In some achievable implementations, the terminal device may display a target interface, which includes at least candidate display styles, a material input control, and a cloud real machine option. The terminal device may determine the target display style according to the selected candidate display style in response to the style configuration instruction; and the terminal device may determine the material to be previewed according to the material uploaded to the material input control in response to the material input instruction; and the terminal device may determine the target cloud real machine in response to the selection instruction for the cloud real machine option.
[0102] Here, the terminal device can display the target interface through the preview platform. The target interface includes at least candidate display styles, material input controls, and cloud real machine options. Users can configure target preview information and input materials to be previewed through the target interface.
[0103] It is worth noting that the user can pre-select the application that needs to be simulated. For example, when the user needs to place an advertisement in application A, the user can pre-select application A on the terminal device. Then all candidate display styles provided by application A can be displayed on the target interface.
[0104] Figure 5 is a schematic diagram of a target interface according to an exemplary embodiment. Figure 5 As shown, the target interface may include candidate display styles 501, material input controls 502, and cloud real machine options 503. The user may select the display style to be simulated from the candidate display styles 501 as the target display style through the style configuration instruction. The user may also determine the material uploaded to the material input control 502 as the material to be previewed through the material input instruction. The user may also select the target cloud real machine from the cloud real machine list of the cloud real machine option 503 through the selection instruction.
[0105] It should be understood that in actual application, after the user selects the target display style, the material input control corresponding to the target display style may be displayed. Different material input controls may correspond to different target display styles. For example, some target display styles may allow the input of videos, some target display styles may allow the input of pictures, some target display styles may allow the input of text, and so on.
[0106] Of course, in other implementations, the target interface may also include an application list, and the terminal device may determine the application in response to a selection instruction in the application list.
[0107] In some embodiments, the material to be previewed may include an image, and accordingly, the material input control includes a sub-control for configuring images of different resolutions supported by the target presentation style.
[0108] like Figure 5 As shown, the screen opening type selected by the user is "screen opening type 1", and the material input control 502 may include a sub-control of 1242*2208 resolution, a sub-control of 750*1624 resolution, a sub-control of 1080*1920 resolution, a sub-control of 720*1280 resolution, and a sub-control of 1080*2340 resolution. Through the sub-controls, the user can input image materials of various resolutions supported by "screen opening type 1", thereby simulating the display effects of image materials of different resolutions in the screen opening page of the application.
[0109] Therefore, through the target interface, users can arbitrarily configure the display style that needs to be simulated and select the corresponding cloud real machine, so that they can simulate the display effect of the material to be previewed on the real device without the need for users to perform unnecessary operations, greatly improving the efficiency of material preview.
[0110] It is worth noting that the target page may also include a preview control in which the target preview content is displayed, so that the user can view the display effect of the material to be previewed in real time.
[0111] Figure 6 FIG. 1 is a schematic diagram of interaction between a terminal device and a server according to an exemplary embodiment. Figure 6 As shown, the terminal device sends a preview command to the external service layer of the server. The external service layer verifies the legitimacy of the terminal device through the authentication module, and if the authentication is passed, the target cloud real machine is allocated to the terminal device through the calling module. The calling module pushes the material to be previewed and the target preview information to the target cloud real machine. The target cloud real machine generates the target preview content based on the material to be previewed and the target preview information, and pushes the target preview content to the streaming module. The streaming module pushes the target preview content to the terminal device, and the terminal device renders and outputs the target preview content. In addition, the calling module also synchronizes the information of the terminal device occupying / releasing the cloud real machine to the device management module. The device management module saves or deletes the mapping relationship between the terminal device and the cloud real machine in the database according to the information of occupying / releasing the cloud real machine. The consistency module queries the mapping relationship in the database to determine the usage status of the cloud real machine, so as to provide the terminal device with a usable cloud real machine.
[0112] Figure 7FIG. 1 is a flow chart of a material preview method according to another exemplary embodiment. Figure 7 As shown, the present disclosure provides a material preview method, which can be Figure 1 The terminal device shown in the figure can be executed by a material preview device, which can be implemented by software and / or hardware and configured in the terminal device. Figure 7 As shown, the method may include the following steps.
[0113] S710, determining the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0114] S720, sending the to-be-previewed material and the target preview information to the server, wherein the server is configured to render the to-be-previewed material according to the target cloud real machine and application indicated by the target preview information and in combination with the target display style, obtain the target preview content, and send the target preview content to the terminal device;
[0115] S730: Receive the target preview content sent by the server, and display the target preview content.
[0116] In some feasible implementations, the target cloud real machine is located in the intranet, and the terminal device is located in the extranet. Accordingly, in S720, the terminal device can send the material to be previewed and the target preview information to the external service layer of the server through the front-end interface, wherein the external service layer is configured to push the material to be previewed and the target display style to the target cloud real machine, and call the target cloud real machine to render the material to be previewed through the application and the target display style to obtain the target preview content; in S730, the terminal device can receive the target preview content sent by the external service layer of the server through the front-end interface.
[0117] In some possible implementations, the terminal device displays a target interface, which includes at least candidate display styles, material input controls, and cloud real machine options; the terminal device responds to a style configuration instruction to determine a target display style based on a selected candidate display style; and the terminal device responds to a material input instruction to determine a material to be previewed based on the material uploaded to the material input control; and the terminal device responds to a selection instruction for a cloud real machine option to determine a target cloud real machine.
[0118] In some practicable implementations, the material to be previewed includes an image, and the material input control includes a sub-control for configuring images of different resolutions supported by a target display style.
[0119] For a detailed description of the above implementation, please refer to the above description of the embodiment of the material preview system, which will not be repeated here.
[0120] Figure 8 FIG. 1 is a flow chart of a material preview method according to another exemplary embodiment. Figure 8 As shown, the present disclosure provides a material preview method, which can be Figure 1 The server execution shown may be specifically executed by a material preview device, which may be implemented by software and / or hardware and configured in the server. Figure 8 As shown, the method may include the following steps.
[0121] S810, obtaining a material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and an application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0122] S820, rendering the material to be previewed according to the target cloud real machine and the application program in combination with the target display style to obtain target preview content, wherein the target preview content is used for display on the terminal device.
[0123] For a detailed description of the above steps S810 to S820, please refer to the relevant description of the above embodiment, which will not be repeated here.
[0124] In some feasible implementations, the material to be previewed and the target preview information are sent by the terminal device to the server, and the target cloud real machine is located in the intranet, and the terminal device is located in the extranet. Accordingly, the server receives the material to be previewed and the target preview information sent by the terminal device through the front-end interface through the external service layer. The server pushes the material to be previewed and the target display style to the target cloud real machine through the external service layer, and calls the target cloud real machine to render the material to be previewed through the application and the target display style to obtain the target preview content; the server receives the target preview content sent by the target cloud real machine through the external service layer; the server sends the target preview content to the front-end interface of the terminal device through the external service layer, so that the terminal device displays the target preview content.
[0125] In some feasible implementations, the to-be-previewed material and the target preview information are sent by the terminal device to the server. Accordingly, the server determines the usage status of the target cloud real machine based on the mapping relationship between the cloud real machine and the terminal device. When the usage status indicates that the target cloud real machine is in an idle state, the server allocates the target cloud real machine to the terminal device and stores the mapping relationship between the target cloud real machine and the terminal device. When the terminal device no longer uses the target cloud real machine, the server cancels the mapping relationship between the target cloud real machine and the terminal device.
[0126] In some feasible implementations, the server updates the version of the application installed in the cloud real machine and logs in the updated application.
[0127] Fig. 9 FIG. 1 is a schematic diagram showing module connections of a material preview device according to an exemplary embodiment. Fig. 9 As shown, the embodiment of the present disclosure provides a material preview device 900, which is arranged in a terminal device, and includes:
[0128] The first determination module 901 is configured to determine the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0129] The first sending module 902 is configured to send the to-be-previewed material and the target preview information to the server, wherein the server is configured to render the to-be-previewed material according to the target cloud real machine and application indicated by the target preview information and in combination with the target display style, obtain the target preview content, and send the target preview content to the terminal device;
[0130] The first receiving module 903 is configured to receive the target preview content sent by the server and display the target preview content.
[0131] Optionally, the target cloud real machine is located in an intranet, the terminal device is located in an extranet, and the first sending module 902 is specifically configured as follows:
[0132] Sending the material to be previewed and the target preview information to the external service layer of the server through the front-end interface, wherein the external service layer is configured to push the material to be previewed and the target display style to the target cloud real machine, and call the target cloud real machine to render the material to be previewed through the application and the target display style to obtain the target preview content;
[0133] The first receiving module 903 is specifically configured as follows:
[0134] The target preview content sent by the external service layer of the server is received through the front-end interface.
[0135] Optionally, the first determining module 901 is specifically configured to:
[0136] Display the target interface, which at least includes candidate display styles, material input controls, and cloud real machine options;
[0137] In response to the style configuration instruction, determine the target display style according to the selected candidate display style; and in response to the material input instruction, determine the material to be previewed according to the material uploaded to the material input control; and
[0138] In response to a selection instruction for a cloud real machine option, a target cloud real machine is determined.
[0139] Optionally, the material to be previewed includes an image, and the material input control includes a sub-control for configuring images of different resolutions supported by the target display style.
[0140] The logic of the method executed by each functional module in the material preview device 900 can refer to the part of the method related to the above embodiment, which will not be repeated here.
[0141] Fig.10 FIG. 1 is a schematic diagram showing module connections of a material preview device according to an exemplary embodiment. Fig.10 As shown, the embodiment of the present disclosure provides a material preview device 1000, which is arranged in a server and includes:
[0142] The second receiving module 1001 is configured to obtain the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed;
[0143] The acquisition module 1002 is configured to render the material to be previewed according to the target cloud real machine and application program in combination with the target display style to obtain target preview content, wherein the target preview content is used for display on the terminal device.
[0144] Optionally, the to-be-previewed material and the target preview information are sent by the terminal device to the server, and the target cloud real machine is located in an intranet, and the terminal device is located in an extranet, and the second receiving module 1001 is specifically configured as follows:
[0145] Receive the preview material and target preview information sent by the terminal device through the front-end interface through the external service layer;
[0146] The acquisition module 1002 is specifically configured as follows:
[0147] Through the external service layer, the preview material and the target display style are pushed to the target cloud real machine, and the target cloud real machine is called to render the preview material through the application and the target display style to obtain the target preview content;
[0148] The obtaining module 1002 is further configured to:
[0149] Receive the target preview content sent by the target cloud real machine through the external service layer;
[0150] The target preview content is sent to the front-end interface of the terminal device through the external service layer.
[0151] Optionally, the to-be-previewed material and the target preview information are sent by the terminal device to the server, and the material preview apparatus 1000 further includes a mapping module configured to:
[0152] Determine the usage status of the target cloud real machine according to the mapping relationship between the cloud real machine and the terminal device;
[0153] When the usage status indicates that the target cloud real machine is in an idle state, allocating the target cloud real machine to the terminal device, and storing a mapping relationship between the target cloud real machine and the terminal device;
[0154] When the terminal device no longer uses the target cloud real machine, the mapping relationship between the target cloud real machine and the terminal device is cancelled.
[0155] Optionally, the material preview device 1000 further includes: an update module configured to update the version of the application installed in the cloud real machine and log in the updated application.
[0156] The logic of the method executed by each functional module in the material preview device 1000 can refer to the part of the method related to the above embodiment, which will not be repeated here.
[0157] Reference below Fig.11 , which shows an electronic device (eg, Figure 1 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0158] like Fig.11 As shown, the electronic device 1100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage device 1108 to a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the electronic device 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0159] Typically, the following devices may be connected to the I / O interface 1105: an input device 1106 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. The communication device 1109 may allow the electronic device 1100 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 1100 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0160] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1109, or installed from a storage device 1108, or installed from a ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0161] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0162] In some embodiments, the terminal devices and servers may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0163] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0164] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the material to be previewed and the target preview information, wherein the target preview information includes the target cloud real machine and application for displaying the material to be previewed, and the target display style of the application for displaying the material to be previewed; sends the material to be previewed and the target preview information to a server, wherein the server is configured to render the material to be previewed according to the target cloud real machine and application indicated by the target preview information and the target display style, obtains the target preview content, and sends the target preview content to the terminal device; receives the target preview content sent by the server, and displays the target preview content.
[0165] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and an application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed; renders the material to be previewed according to the target cloud real machine and the application, in combination with the target display style, to obtain target preview content, wherein the target preview content is used for display on the terminal device.
[0166] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0167] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0168] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0169] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0170] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0171] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
[0172] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0173] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A material preview method, characterized in that: Executed by a server, the method includes: Acquire the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and an application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed; According to the target cloud real machine and application program, in combination with the target display style, the to-be-previewed material is rendered to obtain target preview content, wherein the target preview content is used for display on a terminal device.
2. The method according to claim 1, characterized in that The to-be-previewed material and the target preview information are sent by the terminal device to the server, and the target cloud real machine is located in the intranet, and the terminal device is located in the extranet. The obtaining of the to-be-previewed material and the target preview information includes: Receiving, through the external service layer, the material to be previewed and the target preview information sent by the terminal device through the front-end interface; The step of rendering the to-be-previewed material according to the target cloud real machine and the application program in combination with the target display style to obtain the target preview content includes: The to-be-previewed material and the target display style are pushed to the target cloud real machine through the external service layer, and the target cloud real machine is called to render the to-be-previewed material through the application and the target display style to obtain the target preview content; The method further comprises: Receiving the target preview content sent by the target cloud real machine through the external service layer; The target preview content is sent to the front-end interface of the terminal device through the external service layer, so that the terminal device displays the target preview content.
3. The method according to claim 1, characterized in that The to-be-previewed material and the target preview information are sent by the terminal device to the server, and the method further includes: Determine the usage status of the target cloud real machine according to the mapping relationship between the cloud real machine and the terminal device; When the usage status indicates that the target cloud real machine is in an idle state, allocating the target cloud real machine to the terminal device, and storing a mapping relationship between the target cloud real machine and the terminal device; When the terminal device no longer uses the target cloud real machine, the mapping relationship between the target cloud real machine and the terminal device is cancelled.
4. The method according to claim 1, characterized in that The method further comprises: Update the version of the application installed in the cloud device and log in to the updated application.
5. A material preview method, characterized in that: Executed by a terminal device, the method includes: Determine the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed; Sending the to-be-previewed material and the target preview information to a server, wherein the server is configured to render the to-be-previewed material according to the target cloud real machine and application indicated by the target preview information and in combination with the target display style, obtain target preview content, and send the target preview content to the terminal device; The target preview content sent by the server is received, and the target preview content is displayed.
6. The method according to claim 5, characterized in that The target cloud real machine is located in the intranet, the terminal device is located in the extranet, and the sending of the to-be-previewed material and the target preview information to the server includes: Sending the material to be previewed and the target preview information to the external service layer of the server through the front-end interface, wherein the external service layer is configured to push the material to be previewed and the target display style to the target cloud real machine, and call the target cloud real machine to render the material to be previewed through the application and the target display style to obtain the target preview content; The receiving the target preview content sent by the server includes: The target preview content sent by the external service layer of the server is received through the front-end interface.
7. The method according to claim 5, characterized in that The step of determining the material to be previewed and the target preview information includes: Displaying a target interface, wherein the target interface at least includes candidate display styles, material input controls, and cloud real machine options; In response to the style configuration instruction, determining a target presentation style according to the selected candidate presentation style; and In response to a material input instruction, determining a material to be previewed according to the material uploaded to the material input control; and In response to a selection instruction for the cloud real machine option, a target cloud real machine is determined.
8. The method according to claim 7, characterized in that The material to be previewed includes an image, and the material input control includes a sub-control for configuring images of different resolutions supported by the target display style.
9. A material preview method, characterized in that: Applied to a material preview system, the material preview system includes a terminal device and a server, and the method includes: The terminal device determines the material to be previewed and target preview information, wherein the target preview information includes a target cloud real machine and application for displaying the material to be previewed, and a target display style for the application to display the material to be previewed; The terminal device sends the to-be-previewed material and the target preview information to the server; The server receives the to-be-previewed material and the target preview information sent by the terminal device; The server renders the material to be previewed according to the target cloud real machine and application program in combination with the target display style to obtain target preview content; The server sends the target preview content to the terminal device; The terminal device receives the target preview content sent by the server, and displays the target preview content.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the program implements the steps of the method described in any one of claims 1 to 4, or implements the steps of the method described in any one of claims 5 to 8.
11. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, used to execute the computer program in the storage device to implement the steps of the method described in any one of claims 1 to 4, or to implement the steps of the method described in any one of claims 5 to 8.