Interface editing method, device, storage medium and electronic device
By synchronizing user interface editing operation instructions between terminals, the problem of being unable to realize cross-terminal synchronous editing in the existing technology is solved, and multi-terminal collaboration and efficiency improvement are achieved.
Patent Information
- Application Number
- CN202111329034.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-10
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-11-10
AI Technical Summary
Existing user interface synchronous editing solutions mainly rely on screen projection technology and cannot achieve synchronous editing across terminals, limiting user interface editing collaboration and efficiency between multiple terminals.
By receiving the interactive operation instructions input by the user, converting them into editing operation instructions for components or containers, and synchronizing them to other terminals, they can edit the user interface according to these instructions, achieving synchronous editing across terminals.
It realizes synchronous editing of user interfaces between multiple terminals, improves editing efficiency and user experience, allows large screens to display editing effects, and further optimizes interface adjustment and collaboration.
Smart Images

Figure CN114035877B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular, to an interface editing method, device, storage medium and electronic device. Background Art
[0002] At present, the synchronous editing schemes of user interface (UI) are basically implemented through the same-screen technology. That is, the screen image of the main editing device (such as a mobile phone) or the screen in a certain application is captured frame by frame at a high frequency, and synchronized to other terminals that need to be displayed in the form of continuous picture frames through communication methods such as Wi-Fi (Wireless Fidelity). It can be seen that it is essentially a screen projection technology, which only realizes the screen display of the main editing device during the editing process on other terminals, and cannot realize cross-terminal synchronous editing of UI. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an interface editing method, device, storage medium and electronic device.
[0004] In order to achieve the above-mentioned objectives, in a first aspect, the present disclosure provides an interface editing method, which is applied to a first terminal, and includes: receiving interactive operation instructions input by a user for a first user interface displayed on the first terminal, and editing the first user interface according to the interactive operation instructions; converting the interactive operation instructions into editing operation instructions for a component or container corresponding to the first user interface; synchronizing the editing operation instructions to a second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instructions.
[0005] Optionally, synchronizing the editing operation instruction to the second terminal includes: sending the editing operation instruction directly to the second terminal; or sending the editing operation instruction to a server communicatively connected to the first terminal, so that the server sends the editing operation instruction to the second terminal.
[0006] Optionally, the operation type of the editing operation instruction is any one of changing the properties of a component, changing the properties of a container, adding a new component, adding a new container, deleting a component, and deleting a container.
[0007] Optionally, the method further includes: receiving an update instruction input by a user, wherein the update instruction is an update instruction for target content stored in a server, wherein the target content is one of a component, a container, and a material; and sending the update instruction to the server so that the server updates the target content.
[0008] Optionally, the method also includes: receiving a synchronization instruction sent by the server, which includes the updated target content; if the first terminal currently displays the first user interface, updating the target content in the currently displayed first user interface to the updated target content; if the first terminal does not currently display the first user interface, updating the target content in the first user interface to the updated target content in the background.
[0009] Optionally, the first user interface includes a display area and an editing area, and the display area of the first user interface displays the same content as that of the second user interface.
[0010] In a second aspect, the present disclosure provides an interface editing method, which is applied to a second terminal, and includes: receiving an editing operation instruction, wherein the editing operation instruction is generated by the first terminal based on an interactive operation instruction input by a user for a first user interface; parsing the editing operation instruction to obtain an operation instruction for a component or container corresponding to the second user interface; and editing the second user interface according to the operation instruction for the component or container corresponding to the second user interface to achieve synchronous editing of the first user interface and the second user interface.
[0011] Optionally, when the operation instruction for the component or container corresponding to the second user interface is to add a new component or a new container, the second user interface is edited according to the operation instruction for the component or container corresponding to the second user interface, including: determining the identifier and target adding position of the target element to be added according to the operation instruction for the component or container corresponding to the second user interface, wherein the target element is a component or a container; obtaining the target element corresponding to the identifier from the server; and adding the target element at the target adding position in the second user interface.
[0012] Optionally, before the step of adding the target element at the target adding position in the second user interface, editing the second user interface according to the operation instructions for the component or container corresponding to the second user interface also includes: obtaining screen parameters of the second terminal; adjusting the appearance of the target element according to the screen parameters; adding the target element at the target adding position in the second user interface includes: adding the adjusted target element to the target adding position in the second user interface.
[0013] Optionally, when the operation instruction for the component or container corresponding to the second user interface is to add a new component, and the component is a special effect component, editing the second user interface according to the operation instruction for the component or container corresponding to the second user interface also includes: obtaining the rendering engine of the second terminal; and using the rendering engine to render the target element added to the second user interface.
[0014] Optionally, the method also includes: receiving a synchronization instruction sent by the server, which includes the updated target content; if the second terminal currently displays the second user interface, updating the target content in the currently displayed second user interface to the updated target content; if the second terminal does not currently display the second user interface, updating the target content in the second user interface to the updated target content in the background.
[0015] In a third aspect, the present disclosure provides an interface editing method, applied to a server, comprising: receiving an update instruction, wherein the update instruction is an update instruction uploaded by a terminal for target content stored in the server, wherein the target content is one of a component, a container, and a material; updating the target content corresponding to the update instruction; and synchronizing the updated target content to other terminals that use the target content.
[0016] In a fourth aspect, the present disclosure provides an interface editing method, applied to a server, comprising: receiving an editing operation instruction uploaded by a first terminal, wherein the editing operation instruction is generated by the first terminal based on an interactive operation instruction input by a user for a first user interface; sending the editing operation instruction to a second terminal, so that the second terminal edits a component or container corresponding to the second user interface according to the editing operation instruction, thereby realizing synchronous editing of the first user interface and the second user interface.
[0017] Optionally, when the operation type of the editing operation instruction is to add a new component or to add a new container, before the step of sending the editing operation instruction to the second terminal, the method also includes: determining an identifier of a target element to be added according to the editing operation instruction, wherein the target element is a component or a container; obtaining the target element corresponding to the identifier; sending the editing operation instruction to the second terminal includes: sending the editing operation instruction and the target element to the second terminal.
[0018] Optionally, before the step of sending the editing operation instruction and the target element to the second terminal, the method also includes: obtaining screen parameters of the second terminal; adjusting the appearance of the target element according to the screen parameters; sending the editing operation instruction and the target element to the second terminal includes: sending the editing operation instruction and the adjusted target element to the second terminal.
[0019] Optionally, the server stores container and component management rules; the method further comprises: synchronizing the management rules to the first terminal and the second terminal, so that the first terminal and the second terminal display a user interface according to the management rules.
[0020] In a fifth aspect, the present disclosure provides an interface editing device, applied to a first terminal, comprising: a first receiving module, used to receive interactive operation instructions input by a user for a first user interface displayed on the first terminal, and edit the first user interface according to the interactive operation instructions; a conversion module, used to convert the interactive operation instructions received by the first receiving module into editing operation instructions for components or containers corresponding to the first user interface; a first synchronization module, used to synchronize the editing operation instructions obtained by the conversion module to a second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instructions.
[0021] In a sixth aspect, the present disclosure provides an interface editing device, applied to a second terminal, comprising: a second receiving module, used to receive editing operation instructions, wherein the editing operation instructions are generated by the first terminal according to interactive operation instructions input by the user for the first user interface; a parsing module, used to parse the editing operation instructions received by the second receiving module to obtain operation instructions for components or containers corresponding to the second user interface; and an editing module, used to edit the second user interface according to the operation instructions for the components or containers corresponding to the second user interface obtained by the parsing module, so as to realize synchronous editing of the first user interface and the second user interface.
[0022] In the seventh aspect, the present disclosure provides an interface editing device, applied to a server, comprising: a third receiving module, used to receive an update instruction, wherein the update instruction is an update instruction uploaded by a terminal for a target content stored in the server, wherein the target content is one of a component, a container, and a material; a first update module, used to update the target content corresponding to the update instruction received by the third receiving module; and a second synchronization module, used to synchronize the target content obtained after the first update module is updated to other terminals that use the target content.
[0023] In an eighth aspect, the present disclosure provides an interface editing device, applied to a server, comprising: a fourth receiving module, used to receive editing operation instructions uploaded by a first terminal, wherein the editing operation instructions are generated by the first terminal based on interactive operation instructions input by a user for a first user interface; a first sending module, used to send the editing operation instructions received by the fourth receiving module to a second terminal, so that the second terminal edits the component or container corresponding to the second user interface according to the editing operation instructions, thereby realizing synchronous editing of the first user interface and the second user interface.
[0024] In a ninth aspect, the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect of the present disclosure, the steps of the method provided in the second aspect of the present disclosure, the steps of the method provided in the third aspect of the present disclosure, or the steps of the method provided in the fourth aspect of the present disclosure.
[0025] In a tenth aspect, the present disclosure provides an electronic device, comprising: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method provided in the first aspect of the present disclosure, the steps of the method provided in the second aspect of the present disclosure, the steps of the method provided in the third aspect of the present disclosure, or the steps of the method provided in the fourth aspect of the present disclosure.
[0026] The present disclosure provides an interface editing method, device, storage medium and electronic device. In the above-mentioned interface editing method, a first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to a second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface may include a large screen, so that the user can directly view the editing effect through the large screen, and then adjust the user interface according to the editing effect, thereby further improving the editing efficiency and user experience of the user interface.
[0027] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0029] Figure 1A The diagram is a schematic diagram of an interface synchronization editing system according to an exemplary embodiment.
[0030] Figure 1B is a schematic diagram of an interface synchronization editing system according to another exemplary embodiment.
[0031] Figure 2 The figure is a flow chart of an interface editing method according to an exemplary embodiment.
[0032] Figure 3 The figure is a flow chart of an interface editing method according to an exemplary embodiment.
[0033] Figure 4 The figure is a flow chart of an interface editing method according to an exemplary embodiment.
[0034] Figure 5 The figure is a flow chart of an interface editing method according to an exemplary embodiment.
[0035] Figure 6 The figure is a block diagram of an interface editing device according to an exemplary embodiment.
[0036] Figure 7 The figure is a block diagram of an interface editing device according to an exemplary embodiment.
[0037] Figure 8 The figure is a block diagram of an interface editing device according to an exemplary embodiment.
[0038] Fig. 9 The figure is a block diagram of an interface editing device according to an exemplary embodiment.
[0039] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment.
[0040] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment.
[0041] Fig.12 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0042] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0043] The present disclosure provides an interface synchronous editing system, wherein the interface synchronous editing system may include a server and multiple terminals for synchronously editing the same user interface.
[0044] like Figure 1A and Figure 1B As shown, the above-mentioned interface synchronous editing system includes a server 20 and terminals 100, 110, ..., 120, and 130 for synchronously editing the same user interface.
[0045] The terminal may be a local terminal or a remote terminal, and may be, for example, a smart phone, a tablet computer, a laptop computer, a desktop computer, a projection device, etc., which are not specifically limited in the present disclosure, and the multiple terminals are all connected to the server for communication, and the multiple terminals can edit the same user interface synchronously. In addition, the system installed on the terminal may be iOS, Android, Windows, etc.
[0046] The above-mentioned user interface may include elements such as components and containers, wherein the components may also reference multimedia data (for example, pictures, videos, etc.), relevant data of Internet services, and other content (for example, the weather component can obtain weather information online (such as sunny days, blizzards, etc.), and convert the weather information into a visual UI representation through a preset instruction set (such as using sun graphic materials to represent sunny days, and using snowflake graphic materials to represent blizzards)). Among them, the container refers to a virtual framework that carries the placement of components, which can be a layer or other carrier framework with overall management rules for certain components. Components are granular component objects that can be added modularly in the container and have relatively independent functions and UI representations. Users can customize the UI by adding different components to the container and adjusting the properties of the container and components.
[0047] In addition, in order to reduce the occupation and consumption of components, containers, multimedia data and other resources on the local storage of each terminal, they can be stored in the server 20 to achieve resource sharing through the server 20. In this way, when each terminal needs to add components, containers, multimedia data and other content to the user interface currently being edited synchronously, it can obtain the corresponding content through the server 20.
[0048] like Figure 1A As shown, each terminal is connected to the server 20. At this time, each terminal uses the server 20 as a medium to achieve synchronous editing of the user interface.
[0049] like Figure 1B As shown, each terminal is connected to the server 20, and each terminal can be connected to each other. At this time, each terminal can realize synchronous editing of the user interface through direct communication. Among them, each terminal can be connected wirelessly through Wi-Fi, Bluetooth, hotspot, wide area network, etc., or can be connected by wire through a router.
[0050] In order to achieve cross-terminal synchronous editing of the user interface, it is first necessary to design a "container-component" UI display framework, and all the above terminals are compatible with the "container-component" UI display framework, so that each terminal can achieve synchronous editing of the user interface based on the "container-component" UI display framework. Specifically, the above "container-component" UI display framework must include:
[0051] (i) The overall control rules of the entire UI framework for containers. For example, the upper limit of the number of containers, the rules for the positions where containers can be placed, the rules for container stacking and mutual exclusion, and the rules for 3D spatial perspective.
[0052] (ii) The ability to describe and edit the overall UI framework, for example, changing the relative position of containers in space, adding or deleting containers, etc.
[0053] (iii) The ability to describe and edit a single container. For example, the container editing area is limited, the types of components that can be added to the container are limited, components can be added or deleted from the container, and the position of components in the container can be changed.
[0054] (iv) The ability to describe and edit a single component. For example, enlarging, reducing, rotating a single component, changing the appearance of a component according to different component types, changing the content of a component, etc.
[0055] (v) The entire UI display framework has an adaptive mechanism for different terminals and software platforms. For example, the layout, aspect ratio, and color reproduction of each container and component can be adaptive on devices with different resolutions and screen sizes.
[0056] (vi) Customized performance and customized functions of certain components for different terminals, different software platforms, and different rendering engines. For example, video components may use different video plug-in processing technologies on different platforms such as iOS, Android, and Windows; special effects components may have different performance effects on different engines such as Unity and OpenGL.
[0057] In addition, in order to realize cross-terminal synchronous editing of the user interface, it is also necessary to pre-construct a set of cross-platform and cross-terminal communication protocols, and the devices participating in the cross-terminal synchronous editing of the UI (i.e. the above-mentioned terminals) must adapt to this protocol. Specifically, the above-mentioned communication protocols include:
[0058] (1) Perform account authentication and communication permission authorization (i.e., synchronous editing permission identification) on the devices participating in cross-terminal synchronous editing, and specify the device terminals that need to be synchronized for each change operation during the synchronous editing process;
[0059] (2) Based on the editable properties of each container and component defined in the "container-component" UI display framework, define the description method of a certain property change of the container / component.
[0060] For example, in the properties of a container, you can define the increase in property fields that will result from adding components; in the properties of a component, you can define how to describe property changes such as coordinate changes, color value field changes, and address changes of referenced content.
[0061] (3) In view of the different interaction modes of users on different platforms and different terminals, new (i.e., added) events or attribute change events in (2) corresponding to different behavior events of users on different platforms and different terminals are defined. That is, corresponding operation instruction sets are pre-established for different platforms and different terminals. The operation instruction sets include editing operation instructions corresponding to different interaction operation instructions (wherein the editing operation instructions include changes to the attributes of containers / components, or the addition of new containers / components).
[0062] For example, the finger dragging and moving + two-finger zooming events on the mobile terminal and the mouse holding and dragging and selecting a single point to stretch events on the PC (Personal Computer) terminal correspond to the changes in component coordinates and aspect ratio in (2).
[0063] Figure 2 is a flowchart of an interface editing method according to an exemplary embodiment, wherein the method is applied to a first terminal. For example, the method can be applied to Figure 1A or Figure 1B Any of the terminals 100, 110, 120, and 130 shown in , and the first terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a projection device, etc. Figure 2 As shown, the method includes the following S201 to S203.
[0064] In S201, an interactive operation instruction input by a user for a first user interface displayed on a first terminal is received, and the first user interface is edited according to the interactive operation instruction.
[0065] In the present disclosure, the user can interact with the first terminal through touch, keyboard input, voice input, etc.
[0066] After the first user interface is edited according to the interactive operation instruction, the first user interface may be re-rendered. Editing the first user interface includes: editing the interface layout and interface content of the first user interface.
[0067] In S202, the interactive operation instruction is converted into an editing operation instruction for the component or container corresponding to the first user interface.
[0068] In the present disclosure, the interactive operation instruction can be converted into an editing operation instruction for the component or container corresponding to the first user interface according to a pre-established operation instruction set, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions.
[0069] For example, the first terminal is a smart phone, the interactive operation instruction input by the user for the first user interface displayed by the first terminal is to drag and move component 1, and the editing operation instruction corresponding to the interactive operation instruction is to change the position of component 1 in the first user interface.
[0070] As another example, the first terminal is a PC, and the interactive operation instruction input by the user for the first user interface displayed on the first terminal is to select a single point on component 2 and stretch it, and the editing operation instruction corresponding to the interactive operation instruction is to change the size (i.e., width and height) of component 2 in the first user interface.
[0071] In addition, the editing operation instruction may include a target operation object (component or container) and a target operation type. The target operation type of the editing operation instruction may be to change the properties of a component (e.g., position, color, size, border style, light effect, referenced content), change the properties of a container (e.g., position, size, etc.), add a new component, add a new container, delete a component, and delete any one of a container. Furthermore, the above-mentioned components may be any one of an image component, a video component, an audio component, a text component, an online component, and a special effect component. Among them, an online component is a component that obtains Internet content through an online data service. For example, an online component is any one of a weather component and a time component. For example, a weather component obtains weather information provided by the Internet through an online data service, and updates and displays it in real time on the user interface.
[0072] In S203, the editing operation instruction is synchronized to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction.
[0073] In one embodiment, the second user interface and the first user interface are interfaces that display the same content, that is, the interface layout and interface content (for example, components, containers) of the second user interface and the first user interface are the same. After the first terminal performs an editing operation on the first user interface, the second terminal also performs the same editing operation on the second user interface to ensure that the content displayed by the second user interface is consistent with that of the first user interface, that is, synchronous editing is achieved.
[0074] In another embodiment, the first user interface includes a display area and an editing area, and the display area of the first user interface is the same as the content displayed by the second user interface, that is, the layout and content (e.g., components, containers) of the display area of the second user interface are the same as those of the first user interface. Among them, the display area is an area composed of containers and components, and the editing area is an area for editing the display area, such as a keyboard area. After the first terminal performs an editing operation on the display area through the editing area, the second terminal also performs the same editing operation on the second user interface to ensure that the content displayed in the display area of the second user interface is consistent with that of the first user interface, that is, synchronous editing is achieved.
[0075] In addition, it should be noted that the number of the second terminals may be one or more, which is not specifically limited in the present disclosure.
[0076] In one embodiment, Figure 1A As shown, there is no communication connection between the first terminal and the second terminal of the synchronous editing user interface. At this time, the first terminal can send the editing operation instruction to the server that is communicatively connected to the first terminal, so that the server sends the editing operation instruction to the second terminal of the synchronous editing user interface.
[0077] In another embodiment, if Figure 1B As shown, the first terminal is directly connected to the second terminal of the synchronous editing user interface through communication. At this time, the first terminal can directly send the editing operation instruction to the second terminal of the synchronous editing user interface.
[0078] After receiving the editing operation instruction sent by the first terminal, the second terminal can synchronously edit the second user interface displayed by the second terminal according to the editing operation instruction, and re-render the synchronously edited second user interface.
[0079] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then can adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0080] In addition, the user can also modify resources such as components, containers, and materials in the server through the first terminal. Specifically, the above method also includes the following steps 1) and 2):
[0081] 1) Receive update instructions input by the user.
[0082] 2) Sending the update instruction to the server so that the server updates the target content.
[0083] In the present disclosure, an update instruction is an update instruction for target content stored in a server, wherein the target content may be any one of a component, a container, and a material (e.g., multimedia content). The above update instruction may include an identifier (e.g., ID) of the target content and an update operation, wherein the update operation may be to change the properties of a component (e.g., position, color, size, border style, light effect, referenced content), to change the properties of a container (e.g., position, size, etc.), and to change the material (e.g., to change the color tone of a picture, to change the duration of music, etc.). In this way, after receiving the update instruction sent by the first terminal, the server may update the target content corresponding to the above identifier according to the update operation in the update instruction.
[0084] In addition, the above method further includes the following steps [1] to [4]:
[0085] [1] Receive a synchronization instruction sent by the server, which contains the updated target content.
[0086] In the present disclosure, after updating the target content, the server synchronizes the updated target content to other terminals (eg, the first terminal) that use the target content. Specifically, an update instruction containing the updated target content may be sent to other terminals.
[0087] [2] Determine whether the first terminal is currently displaying the first user interface.
[0088] In the present disclosure, when the first terminal receives the update instruction sent by the server, the screen currently displayed by the first terminal may be the first user interface or other screens. Therefore, it is necessary to determine whether the first terminal is currently displaying the first user interface. If the first terminal is currently displaying the first user interface, the following steps [3] are executed; if the first terminal is not currently displaying the first user interface, the following steps [4] are executed.
[0089] [3] Updating the target content in the currently displayed first user interface to the updated target content.
[0090] [4] Updating the target content in the first user interface to the updated target content in the background.
[0091] In the present disclosure, the background is a data update background. When the first terminal does not currently display the first user interface, the target content in the first user interface can be updated to the target content obtained after the update in the background. In this way, when the first terminal displays the first user interface again, the displayed first user interface is the latest user interface, ensuring the real-time synchronization of the first user interface.
[0092] In the present disclosure, in order to make the content referenced by the user interface consistent with the content in the server, after updating the target content, the server can determine whether the first user interface of the first terminal contains the above-mentioned target content; if so, a synchronization instruction containing the updated target content is sent to the first terminal and the second terminal for synchronously editing the user interface, so as to synchronously update the updated target content to the first terminal and the second terminal. After receiving the synchronization instruction, the first terminal and the second terminal synchronously update the target content in the corresponding user interface to the updated target content.
[0093] Figure 3 is a flowchart of an interface editing method according to an exemplary embodiment, wherein the method is applied to a second terminal. For example, the method can be applied to Figure 1A or Figure 1B The second terminal may be any one of the terminals 100, 110, 120, and 130 shown in FIG. 1 , and the second terminal may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a projection device, etc. Figure 3 As shown, the method includes the following S301 to S303.
[0094] In S301, an editing operation instruction is received, where the editing operation instruction is generated by the first terminal according to an interactive operation instruction input by a user for a first user interface.
[0095] In S302, the editing operation instruction is parsed to obtain an operation instruction for the component or container corresponding to the second user interface.
[0096] In the present disclosure, the editing operation instruction includes a target operation object (component or container to be edited) and a target operation type. By parsing them, the target operation object and target operation type of the editing operation can be obtained, that is, the operation instruction for the component or container corresponding to the second user interface is obtained, wherein the component or container corresponding to the second user interface is the target operation object of the above-mentioned editing operation, and the operation instruction includes the target operation type of the above-mentioned editing operation.
[0097] In S303, the second user interface is edited according to the operation instruction on the component or container corresponding to the second user interface, so as to achieve synchronous editing of the first user interface and the second user interface.
[0098] In the present disclosure, the container or component corresponding to the second user interface may be edited according to the above-mentioned target operation type based on the operation instruction on the component or container corresponding to the second user interface.
[0099] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then can adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0100] Optionally, the operation type of the editing operation instruction is any one of changing the properties of a component, changing the properties of a container, adding a new component, adding a new container, deleting a component, and deleting a container.
[0101] Optionally, the component is any one of an image component, a video component, an audio component, a text component, an online component and a special effect component, wherein the online component is a component that obtains Internet content through an online data service.
[0102] In addition, when the operation instruction for the component or container corresponding to the second user interface is to add a new component or a new container, the second user interface can be edited through the following steps 1] to 3] according to the operation instruction for the component or container corresponding to the second user interface:
[0103] 1] According to the operation instruction of the component or container corresponding to the second user interface, determine the identifier and target adding position of the target element to be added, wherein the target element is a component or a container.
[0104] In the present disclosure, the target adding position is a position in the second user interface that corresponds to the adding position of the corresponding component or container in the first user interface.
[0105] 2] Get the target element corresponding to the identifier from the server.
[0106] In the present disclosure, the second terminal may send an acquisition request including the above-mentioned identifier to the server; after receiving the acquisition request, the server locally acquires the target element corresponding to the above-mentioned identifier, and then feeds the target element back to the second terminal.
[0107] 3] Add a target element at the target adding position in the second user interface.
[0108] In addition, before the above step 3], the above S303 may also include the following steps 4] and 5].
[0109] 4] Obtain the screen parameters of the second terminal.
[0110] In the present disclosure, screen parameters may include screen resolution and screen size.
[0111] 5] Adjust the appearance of the target element according to the screen parameters.
[0112] Specifically, the layout, size (eg, width, height), color (ie, color restoration) and other appearances of the target element may be adjusted.
[0113] At this time, the above step 3] can add the adjusted target element to the target adding position in the second user interface, thereby ensuring that the target element in the second user interface is self-adaptive to the screen of the second terminal.
[0114] When the operation instruction for the component or container corresponding to the second user interface is to add a new component, and the component is a special effect component, the above method may further include the following steps 6] and 7].
[0115] 6] Get the rendering engine of the second terminal.
[0116] 7] Using a rendering engine to render the target element added to the second user interface.
[0117] In the present disclosure, the rendering engine of the second terminal may be, for example, Unity, OpenGL (Open Graphics Library), etc. Among them, the special effect component may have different effect performances on different engines such as Unity and OpenGL, so that the special effect component can have different customized performances and customized functions on terminals with different rendering engines.
[0118] Optionally, the above method further includes:
[0119] Receiving a synchronization instruction sent by the server, which contains the updated target content;
[0120] If the second terminal currently displays the second user interface, updating the target content in the currently displayed second user interface to the updated target content;
[0121] If the second terminal does not currently display the second user interface, the target content in the second user interface is updated to the updated target content in the background.
[0122] Regarding the method in the above-mentioned embodiment applied to the second terminal side, the specific manner of executing the operation in each step has been described in detail in the embodiment of the interface editing method on the first terminal side, and will not be elaborated here.
[0123] In addition, it should be noted that the number of the first terminal and the second terminal of the synchronous editing user interface can be one or more, and the present disclosure does not impose any specific restrictions on this. In addition, the permissions of the terminals of the synchronous editing user interface can be different.
[0124] Figure 4 is a flowchart of an interface editing method according to an exemplary embodiment, wherein the method is applied to a server. For example, the method can be applied to Figure 1A or Figure 1B The server 20 shown in FIG. Figure 4 As shown, the method includes the following S401 to S403.
[0125] In S401, an update instruction is received, where the update instruction is an update instruction uploaded by a terminal for target content stored in a server.
[0126] The target content is one of a component, a container, and a material.
[0127] In S402, the target content corresponding to the update instruction is updated.
[0128] In S403, the updated target content is synchronized to other terminals that use the target content.
[0129] In this implementation, the user can update the components, containers, materials and other contents in the server at any time through the terminal, and synchronize the modified contents to each terminal, thereby ensuring that the contents referenced by the currently edited user interface are consistent with the server.
[0130] Figure 5 is a flowchart of an interface editing method according to an exemplary embodiment, wherein the method is applied to a server. For example, the method can be applied to Figure 1A or Figure 1B The server 20 shown in FIG. Figure 5 As shown, the method includes the following S501 and S502.
[0131] In S501, an editing operation instruction uploaded by a first terminal is received, where the editing operation instruction is generated by the first terminal according to an interactive operation instruction input by a user for a first user interface.
[0132] In S502, the editing operation instruction is sent to the second terminal, so that the second terminal edits the component or container corresponding to the second user interface according to the editing operation instruction, thereby realizing synchronous editing of the first user interface and the second user interface.
[0133] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal through a server, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0134] In addition, when the operation type of the editing operation instruction is to add a component or to add a container, before the above S502, the above method further includes the following two steps:
[0135] According to the editing operation instruction, determine the identifier of the target element to be added, wherein the target element is a component or a container;
[0136] Get the target element corresponding to the identifier.
[0137] At this time, the above S502 can send the editing operation instruction and the target element to the second terminal. After receiving the editing operation instruction, the second terminal parses the editing operation instruction to obtain the operation instruction for the component or container corresponding to the second user interface; then, according to the operation instruction for the component or container corresponding to the second user interface, the target adding position of the target element to be added is determined; then, the target element sent by the server is added to the target adding position in the second user interface.
[0138] In addition, before the step of sending the editing operation instruction and the target element to the second terminal, the method may further include the following two steps:
[0139] Obtaining screen parameters of the second terminal;
[0140] Adjust the appearance of the target element according to the screen parameters.
[0141] At this time, sending the editing operation instruction and the target element to the second terminal may include: sending the editing operation instruction and the adjusted target element to the second terminal.
[0142] Afterwards, after receiving the editing operation instruction, the second terminal parses the editing operation instruction to obtain the operation instruction for the component or container corresponding to the second user interface; then, according to the operation instruction for the component or container corresponding to the second user interface, the target adding position of the target element to be added is determined; then, the adjusted target element sent by the server is added to the target adding position in the second user interface. In this way, it can be ensured that the target element displayed in the second user interface is self-adaptive to the screen of the second terminal.
[0143] In addition, the server stores container and component management rules, namely, a "container-component" UI display framework; the above method may further include the following steps:
[0144] The management rules are synchronized to the first terminal and the second terminal, so that the first terminal and the second terminal display the user interface according to the management rules.
[0145] Regarding the method in the above-mentioned embodiment applied to the server side, the specific manner of executing the operation in each step has been described in detail in the embodiment of the interface editing method on the first terminal side, and will not be elaborated here.
[0146] Based on the same inventive concept, the present disclosure also provides an interface editing device, which is applied to a first terminal. Figure 6As shown, the device 600 includes: a first receiving module 601, used to receive interactive operation instructions input by a user for a first user interface displayed on the first terminal, and edit the first user interface according to the interactive operation instructions; a conversion module 602, used to convert the interactive operation instructions received by the first receiving module 601 into editing operation instructions for components or containers corresponding to the first user interface; a first synchronization module 603, used to synchronize the editing operation instructions obtained by the conversion module 602 to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instructions.
[0147] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then can adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0148] Optionally, the first synchronization module 603 is used to: send the editing operation instruction directly to the second terminal; or send the editing operation instruction to a server communicatively connected to the first terminal, so that the server sends the editing operation instruction to the second terminal.
[0149] Optionally, the operation type of the editing operation instruction is any one of changing the properties of a component, changing the properties of a container, adding a new component, adding a new container, deleting a component, and deleting a container.
[0150] Optionally, the first receiving module 601 is also used to receive an update instruction input by a user, wherein the update instruction is an update instruction for target content stored in a server, wherein the target content is one of a component, a container, and a material; the device 600 also includes: a second sending module, used to send the update instruction to the server so that the server updates the target content.
[0151] Optionally, the device 600 also includes: a fifth receiving module, used to receive a synchronization instruction sent by the server, which includes the updated target content; a second updating module, used to update the target content in the currently displayed first user interface to the updated target content if the first terminal currently displays the first user interface; and a third updating module, used to update the target content in the first user interface to the updated target content in the background if the first terminal does not currently display the first user interface.
[0152] Optionally, the first user interface includes a display area and an editing area, and the display area of the first user interface displays the same content as that of the second user interface.
[0153] The present disclosure also provides an interface editing device, which is applied to a second terminal. Figure 7 As shown, the device 700 includes: a second receiving module 701, used to receive editing operation instructions, wherein the editing operation instructions are generated by the first terminal according to the interactive operation instructions input by the user for the first user interface; a parsing module 702, used to parse the editing operation instructions received by the second receiving module 701, and obtain operation instructions for components or containers corresponding to the second user interface; an editing module 703, used to edit the second user interface according to the operation instructions for components or containers corresponding to the second user interface obtained by the parsing module 702, so as to realize synchronous editing of the first user interface and the second user interface.
[0154] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then can adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0155] Optionally, when the operation instruction for the component or container corresponding to the second user interface is to add a new component or a new container, the editing module 703 includes: a determination submodule, used to determine the identifier and target adding position of the target element to be added according to the operation instruction for the component or container corresponding to the second user interface, wherein the target element is a component or a container; a first acquisition submodule, used to obtain the target element corresponding to the identifier from the server; and an addition submodule, used to add the target element at the target adding position in the second user interface.
[0156] Optionally, the editing module 703 also includes: a second acquisition sub-module, used to acquire the screen parameters of the second terminal before the adding sub-module adds the target element at the target adding position in the second user interface; an adjustment sub-module, used to adjust the appearance of the target element according to the screen parameters; the adding sub-module is used to add the adjusted target element to the target adding position in the second user interface.
[0157] Optionally, when the operation instruction for the component or container corresponding to the second user interface is to add a new component, and the component is a special effect component, the editing module 703 also includes: a third acquisition sub-module, used to obtain the rendering engine of the second terminal; and a rendering sub-module, used to use the rendering engine to render the target element added to the second user interface.
[0158] Optionally, the device 700 also includes: a sixth receiving module, used to receive a synchronization instruction sent by the server, which includes the updated target content; a fourth updating module, used to update the target content in the currently displayed second user interface to the updated target content if the second terminal currently displays the second user interface; and a fifth updating module, used to update the target content in the second user interface to the updated target content in the background if the second terminal does not currently display the second user interface.
[0159] The present disclosure also provides an interface editing device, which is applied to a server. Figure 8 As shown, the device 800 includes: a third receiving module 801, used to receive an update instruction, wherein the update instruction is an update instruction uploaded by a terminal for a target content stored in the server, wherein the target content is one of a component, a container, and a material; a first update module 802, used to update the target content corresponding to the update instruction received by the third receiving module 801; and a second synchronization module 803, used to synchronize the target content obtained after the first update module 802 is updated to other terminals that use the target content.
[0160] In this implementation, the user can update the components, containers, materials and other contents in the server at any time through the terminal, and synchronize the modified contents to each terminal, thereby ensuring that the contents referenced by the currently edited user interface are consistent with the server.
[0161] The present disclosure also provides an interface editing device, which is applied to a server. Fig. 9 As shown, the device 900 includes: a fourth receiving module 901, used to receive editing operation instructions uploaded by a first terminal, wherein the editing operation instructions are generated by the first terminal according to interactive operation instructions input by a user for a first user interface; a first sending module 902, used to send the editing operation instructions received by the fourth receiving module 901 to a second terminal, so that the second terminal edits the component or container corresponding to the second user interface according to the editing operation instructions, thereby realizing synchronous editing of the first user interface and the second user interface.
[0162] In the above technical solution, the first terminal receives an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edits the first user interface according to the interactive operation instruction; converts the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface; and synchronizes the editing operation instruction to the second terminal through a server, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction. In this way, cross-terminal synchronous editing of the user interface can be achieved, that is, multiple terminals can synchronously edit the same user interface, thereby improving the editing efficiency of the user interface and improving the user experience. In addition, the terminal for synchronously editing the same user interface can include a large screen, so that the user can directly view the editing effect through the large screen, and then adjust the user interface according to the editing effect, thereby further improving the editing efficiency of the user interface and the user experience.
[0163] Optionally, when the operation type of the editing operation instruction is adding a new component or adding a new container, the device 900 also includes: a determination module, used to determine the identifier of the target element to be added according to the editing operation instruction before the first sending module 902 sends the editing operation instruction to the second terminal, wherein the target element is a component or a container; a first acquisition module, used to acquire the target element corresponding to the identifier; and the first sending module 902 is used to send the editing operation instruction and the target element to the second terminal.
[0164] Optionally, the device 900 also includes: a second acquisition module, used to acquire the screen parameters of the second terminal before the first sending module 902 sends the editing operation instruction and the target element to the second terminal; an adjustment module, used to adjust the appearance of the target element according to the screen parameters; the first sending module 902 is used to send the editing operation instruction and the adjusted target element to the second terminal.
[0165] Optionally, the server stores container and component management rules; the device 900 also includes: a third synchronization module, used to synchronize the management rules to the first terminal and the second terminal, so that the first terminal and the second terminal display the user interface according to the management rules.
[0166] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0167] The present disclosure also provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the interface editing method on the first terminal side, the steps of the interface editing method on the second terminal side, or the steps of the interface editing method on the server side.
[0168] Fig.10 FIG. 1 is a block diagram of an electronic device 1000 according to an exemplary embodiment. Fig.10 As shown, the electronic device 1000 may include: a processor 1001 and a memory 1002. The electronic device 1000 may also include one or more of a multimedia component 1003, an input / output (I / O) interface 1004, and a communication component 1005.
[0169] The processor 1001 is used to control the overall operation of the electronic device 1000 to complete all or part of the steps in the interface editing method on the first terminal side. The memory 1002 is used to store various types of data to support the operation of the electronic device 1000, and these data may include instructions for any application or method used to operate on the electronic device 1000, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 1002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 1003 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 1002 or sent through the communication component 1005. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 1004 provides an interface between the processor 1001 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1005 is used for wired or wireless communication between the electronic device 1000 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 1005 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0170] In an exemplary embodiment, the electronic device 1000 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned interface editing method on the first terminal side.
[0171] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the interface editing method on the first terminal side are implemented. For example, the computer-readable storage medium can be the memory 1002 including the program instructions, and the program instructions can be executed by the processor 1001 of the electronic device 1000 to complete the interface editing method on the first terminal side.
[0172] Fig.11 FIG. 1 is a block diagram of an electronic device 1100 according to an exemplary embodiment. Fig.11 As shown, the electronic device 1100 may include: a processor 1101 and a memory 1102. The electronic device 1100 may also include one or more of a multimedia component 1103, an input / output (I / O) interface 1104, and a communication component 1105.
[0173] The processor 1101 is used to control the overall operation of the electronic device 1100 to complete all or part of the steps in the interface editing method on the second terminal side. The memory 1102 is used to store various types of data to support the operation of the electronic device 1100, and these data may include instructions for any application or method used to operate on the electronic device 1100, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 1102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 1103 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 1102 or sent through the communication component 1105. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 1104 provides an interface between the processor 1101 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1105 is used for wired or wireless communication between the electronic device 1100 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 1105 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0174] In an exemplary embodiment, the electronic device 1100 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned interface editing method on the second terminal side.
[0175] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by the processor, the steps of the interface editing method on the second terminal side are implemented. For example, the computer-readable storage medium can be the memory 1102 including the program instructions, and the program instructions can be executed by the processor 1101 of the electronic device 1100 to complete the interface editing method on the second terminal side.
[0176] Fig.12 1 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 may be provided as a server. Fig.12 The electronic device 1900 includes a processor 1922, which may be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1922 may be configured to execute the computer program to perform the above-mentioned server-side interface editing method.
[0177] In addition, the electronic device 1900 may further include a power supply component 1926 and a communication component 1950. The power supply component 1926 may be configured to perform power management of the electronic device 1900, and the communication component 1950 may be configured to implement communication of the electronic device 1900, for example, wired or wireless communication. In addition, the electronic device 1900 may further include an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OS X TM , Unix TM , LinuxTM etc.
[0178] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned server-side interface editing method are implemented. For example, the non-transitory computer-readable storage medium can be the above-mentioned memory 1932 including program instructions, and the above-mentioned program instructions can be executed by the processor 1922 of the electronic device 1900 to complete the above-mentioned server-side interface editing method.
[0179] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned server-side interface editing method when executed by the programmable device.
[0180] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0181] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0182] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. An interface editing method, applied to a first terminal, characterized in that: include: receiving an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and editing the first user interface according to the interactive operation instruction; According to a pre-established operation instruction set, converting the interactive operation instruction into an editing operation instruction for a component or container corresponding to the first user interface, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; The editing operation instruction is synchronized to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction.
2. The method according to claim 1, characterized in that The step of synchronizing the editing operation instruction to the second terminal includes: directly sending the editing operation instruction to the second terminal; or The editing operation instruction is sent to a server that is communicatively connected to the first terminal, so that the server sends the editing operation instruction to the second terminal.
3. The method according to claim 1, characterized in that The operation type of the editing operation instruction is any one of changing the properties of a component, changing the properties of a container, adding a new component, adding a new container, deleting a component, and deleting a container.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving an update instruction input by a user, wherein the update instruction is an update instruction for target content stored in a server, wherein the target content is one of a component, a container, and a material; The update instruction is sent to the server so that the server updates the target content.
5. The method according to any one of claims 1 to 3, characterized in that The first user interface includes a display area and an editing area, and the display area of the first user interface displays the same content as that of the second user interface.
6. An interface editing method, applied to a second terminal, characterized in that: include: Receiving an editing operation instruction, wherein the editing operation instruction is generated by the first terminal according to a pre-established operation instruction set and an interactive operation instruction input by a user for the first user interface, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; Parsing the editing operation instruction to obtain an operation instruction for a component or container corresponding to the second user interface; According to the operation instruction on the component or container corresponding to the second user interface, the second user interface is edited to achieve synchronous editing of the first user interface and the second user interface.
7. The method according to claim 6, characterized in that When the operation instruction on the component or container corresponding to the second user interface is to add a new component or a new container, editing the second user interface according to the operation instruction on the component or container corresponding to the second user interface includes: Determine, according to the operation instruction on the component or container corresponding to the second user interface, an identifier and a target adding position of a target element to be added, wherein the target element is a component or a container; Obtaining a target element corresponding to the identifier from a server; The target element is added at the target adding position in the second user interface.
8. The method according to claim 7, characterized in that Before the step of adding the target element at the target adding position in the second user interface, the step of editing the second user interface according to the operation instruction on the component or container corresponding to the second user interface further includes: Acquiring screen parameters of the second terminal; Adjusting the appearance of the target element according to the screen parameters; Adding the target element at the target adding position in the second user interface includes: The adjusted target element is added to the target adding position in the second user interface.
9. The method according to claim 7, characterized in that: When the operation instruction for the component or container corresponding to the second user interface is to add a new component, and the component is a special effect component, editing the second user interface according to the operation instruction for the component or container corresponding to the second user interface further includes: Obtaining a rendering engine of the second terminal; The target element added to the second user interface is rendered using the rendering engine.
10. The method according to any one of claims 6 to 9, characterized in that: The method further comprises: Receiving a synchronization instruction sent by the server, which contains the updated target content; If the second terminal currently displays the second user interface, updating the target content in the currently displayed second user interface to the updated target content; If the second terminal does not currently display the second user interface, the target content in the second user interface is updated to the updated target content in the background.
11. An interface editing method, applied to a server, characterized in that: include: receiving an update instruction, wherein the update instruction is an update instruction uploaded by a terminal for target content stored in the server, wherein the target content is one of a component, a container, and a material, and the server is used to store the component, the container, and the material, so that the terminal can realize resource sharing through the server; Updating the target content corresponding to the update instruction; The updated target content is synchronized to other terminals that use the target content.
12. An interface editing method, applied to a server, characterized in that: include: receiving an editing operation instruction uploaded by the first terminal, wherein the editing operation instruction is generated by the first terminal according to a pre-established operation instruction set and an interactive operation instruction input by a user for the first user interface, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; The editing operation instruction is sent to the second terminal, so that the second terminal edits the component or container corresponding to the second user interface according to the editing operation instruction, thereby realizing synchronous editing of the first user interface and the second user interface.
13. The method according to claim 12, characterized in that When the operation type of the editing operation instruction is adding a component or adding a container, before the step of sending the editing operation instruction to the second terminal, the method further includes: Determine, according to the editing operation instruction, an identifier of a target element to be added, wherein the target element is a component or a container; Get the target element corresponding to the identifier; The sending the editing operation instruction to the second terminal includes: The editing operation instruction and the target element are sent to a second terminal.
14. The method according to claim 13, characterized in that Before the step of sending the editing operation instruction and the target element to the second terminal, the method further includes: Acquiring screen parameters of the second terminal; Adjusting the appearance of the target element according to the screen parameters; The sending the editing operation instruction and the target element to the second terminal includes: The editing operation instruction and the adjusted target element are sent to the second terminal.
15. The method according to any one of claims 12 to 14, characterized in that: The server stores container and component management rules; The method further comprises: The management rule is synchronized to the first terminal and the second terminal, so that the first terminal and the second terminal display a user interface according to the management rule.
16. An interface editing device, applied to a first terminal, characterized in that: include: A first receiving module, configured to receive an interactive operation instruction input by a user for a first user interface displayed by the first terminal, and edit the first user interface according to the interactive operation instruction; a conversion module, configured to convert the interactive operation instruction received by the first receiving module into an editing operation instruction for a component or container corresponding to the first user interface according to a pre-established operation instruction set, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; The first synchronization module is used to synchronize the editing operation instruction obtained by the conversion module to the second terminal, so that the second terminal synchronously edits the second user interface displayed on the second terminal according to the editing operation instruction.
17. An interface editing device, applied to a second terminal, characterized in that: include: A second receiving module is used to receive an editing operation instruction, wherein the editing operation instruction is generated by the first terminal according to a pre-established operation instruction set and an interactive operation instruction input by a user for the first user interface, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; A parsing module, configured to parse the editing operation instruction received by the second receiving module to obtain an operation instruction for a component or container corresponding to the second user interface; The editing module is used to edit the second user interface according to the operation instruction of the component or container corresponding to the second user interface obtained by the parsing module, so as to realize synchronous editing of the first user interface and the second user interface.
18. An interface editing device, applied to a server, characterized in that: include: a third receiving module, configured to receive an update instruction, wherein the update instruction is an update instruction uploaded by a terminal for target content stored in the server, wherein the target content is one of a component, a container, and a material, and the server is configured to store the component, the container, and the material, so that the terminal can realize resource sharing through the server; A first updating module, configured to update the target content corresponding to the updating instruction received by the third receiving module; The second synchronization module is used to synchronize the target content obtained after the first updating module is updated to other terminals that use the target content.
19. An interface editing device, applied to a server, characterized in that: include: a fourth receiving module, configured to receive an editing operation instruction uploaded by the first terminal, wherein the editing operation instruction is generated by the first terminal according to a pre-established operation instruction set and an interactive operation instruction input by a user for the first user interface, wherein the operation instruction set includes editing operation instructions corresponding to different interactive operation instructions; The first sending module is used to send the editing operation instruction received by the fourth receiving module to the second terminal, so that the second terminal edits the component or container corresponding to the second user interface according to the editing operation instruction, thereby realizing synchronous editing of the first user interface and the second user interface.
20. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 15 are implemented.
21. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
On-line collaborative nolinear editing system
CN102081946A
Information processing method, device and system and storage medium
CN112905174A
Information interaction method and device, electronic equipment and storage medium
CN113591439A
