Interactive content generation method, device, storage medium and electronic device
By obtaining the interactive data to be displayed by users, determining the interactive template and replacing the node content, the problem of low efficiency in the generation of interactive content in the prior art is solved, and automatic batch generation and efficiency improvement are achieved.
Patent Information
- Application Number
- CN202110476704.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2041-04-29
AI Technical Summary
In the prior art, interactive content generation requires manual configuration of the display content of each interactive element, resulting in low generation efficiency and inability to achieve batch generation.
By obtaining the interactive data to be displayed submitted by the user, the interactive template is determined to be a graph structure composed of nodes and edges, and content replacement is performed for the nodes in the interactive template to generate multiple interactive content of different styles.
Automatic batch generation of interactive content is realized, which reduces manual participation, improves generation efficiency, and simplifies the description of interactive templates.
Smart Images

Figure CN113190316B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an interactive content generation method, device, storage medium and electronic device. Background Art
[0002] Interactive content is a new type of content that can enable complex interactions with users.
[0003] In the related art, the generation of interactive content requires manual configuration of the display content of each interactive element. Since it is highly dependent on manual work and limited by the imagination and creativity of the creator, the generated interactive content is limited. In addition, each interactive element needs to be manually configured, so the efficiency of interactive content generation is low, and it is impossible to efficiently realize the batch generation of interactive content. Summary of the invention
[0004] 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.
[0005] In a first aspect, the present disclosure provides a method for generating interactive content, the method comprising:
[0006] Get the interactive data to be displayed submitted by the user;
[0007] Determine an interaction template, where the interaction template is used to describe the interaction form of the interactive content. The interaction template is a graph structure composed of nodes and edges. The nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump conditions between the interactive elements.
[0008] For at least one node in the interactive module, content of the node is replaced based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles.
[0009] In a second aspect, the present disclosure further provides an interactive content generating device, the device comprising:
[0010] An acquisition module is used to acquire the interactive data to be displayed submitted by the user;
[0011] A determination module, used to determine an interaction template, wherein the interaction template is used to describe the interaction form of the interactive content, and the interaction template is a graph structure composed of nodes and edges, wherein the nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump conditions between the interactive elements;
[0012] The replacement module is used to replace the content of at least one node in the interactive module based on the interactive data to be displayed, so as to obtain multiple interactive contents of different styles.
[0013] In a third aspect, the present disclosure further provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect when the program is executed by a processing device.
[0014] In a fourth aspect, the present disclosure further provides an electronic device, including:
[0015] a storage device having a computer program stored thereon;
[0016] A processing device is used to execute the computer program in the storage device to implement the steps of the method in the first aspect.
[0017] Through the above technical solution, the content of the nodes in the interactive template can be automatically replaced based on the interactive data to be displayed. The user only needs to submit the interactive data to be displayed to generate multiple interactive contents of different styles. There is no need to manually configure the display content of each interactive element, which reduces the manual participation in the interactive content generation process, thereby improving the efficiency of interactive content generation and realizing automatic batch generation of interactive content. In addition, by describing the transformation logic of the interactive template through nodes and edges, the description of the interactive template is simplified, the underlying template implementation and technical differences can be shielded, and the data structure conversion between different interactive templates can be realized.
[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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:
[0020] Figure 1 is a flow chart of a method for generating interactive content according to an exemplary embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram of an interactive template in an interactive content generation method according to an exemplary embodiment of the present disclosure;
[0022] Figure 3 is a schematic diagram of a process of content replacement in an interactive content generation method according to an exemplary embodiment of the present disclosure;
[0023] Figure 4is a block diagram of an interactive content generating device according to an exemplary embodiment of the present disclosure;
[0024] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] 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.
[0026] 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.
[0027] 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.
[0028] It should be noted that the concepts of "first", "second", etc. 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. It should also be noted that the modifications of "one" and "multiple" 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, they should be understood as "one or more".
[0029] 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.
[0030] Interactive content is a type of content that is gradually emerging. It can display the corresponding interactive results based on the user's interactive operations in the interactive page, or it can also display new interactive results based on the user's further interactive operations on the interactive results. By analogy, it can achieve complex interactions with users. The forms of interactive content are mainly H5 landing pages, interactive parts of the page, etc., and can include interactive videos, interactive games, etc. Taking the lottery interactive game as an example, it usually includes multiple interactive pages such as the introduction page, lottery page and lottery result page, and each interactive page includes different interactive elements such as pictures and texts. Each interactive element can have different display content and display styles under different interactive pages.
[0031] The related technology requires manual configuration of the display content and display style of each interactive element. Since it is highly dependent on manual work and limited by the imagination and creativity of the creator, the generated interactive content styles are limited. In addition, each interactive element needs to be manually configured, so the efficiency of interactive content generation is low, and it is impossible to efficiently realize the batch generation of interactive content.
[0032] In view of this, the present disclosure provides a new interactive content generation method to reduce manual participation in the interactive content generation process, improve the generation efficiency of interactive content, and realize automatic batch generation of interactive content.
[0033] Figure 1 FIG. 1 is a flow chart of a method for generating interactive content according to an exemplary embodiment of the present disclosure. Figure 1 , the interactive content generation method comprises:
[0034] Step 101: Obtain interactive data to be displayed submitted by the user.
[0035] For example, the interactive data to be displayed can be different types of data such as pictures, text, and videos that the user expects to be displayed in the interactive content, and the embodiments of the present disclosure do not limit this. In actual applications, users can upload interactive data to be displayed by category according to the data type. For example, in the picture upload interface, upload interactive pictures to be displayed, or in the text upload interface, upload interactive text to be displayed, etc., and the embodiments of the present disclosure do not limit this.
[0036] Step 102, determine an interaction template, where the interaction template is used to describe the interactive form of the interactive content. The interaction template is a graph structure consisting of nodes and edges. The nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump between the interactive elements.
[0037] For example, an interactive template can be used to describe which interactive elements the interactive content includes and how the interactive elements jump. Users can perform interactive operations on interactive elements and jump to other interactive elements based on the interactive operations on the interactive elements. For example, after a user clicks on a picture in the interactive content, it jumps to the video playback interface corresponding to the picture, and so on. In the disclosed embodiment, the interactive template can be abstracted into a graph structure composed of nodes and edges. The nodes in the graph structure can be used to represent the interactive elements included in the interactive content, and the edges can be used to represent the jump between interactive elements. Therefore, the interactive jump in the interactive content can be clarified through the state transfer between nodes.
[0038] For example, refer to Figure 2 , the interactive template includes node 1, node 2 and node 3. Node 1 can jump to node 2, node 2 can jump to node 3, and node 3 can jump back to node 2 within a preset number of loops, and then jump from node 2 to node 3, and so on. Among them, node 1 can represent the first interactive element of the interactive content, such as a text element used to introduce the interactive content. Node 2 can represent the second interactive element of the interactive content, such as an interactive operation element such as a selection control that jumps from a text element. Node 3 can represent the third interactive element of the interactive content, such as a picture element that jumps from an interactive operation element to represent the result of the interactive operation.
[0039] Step 103: for at least one node in the interactive module, replace the content of the node based on the interactive data to be displayed, so as to obtain a plurality of interactive contents of different styles.
[0040] For example, each interactive element may include a variety of display contents, such as Figure 2 In the interactive template shown, the text elements corresponding to node 1 may include a background image, a progress bar (such as a loading progress bar) and a theme, and the interactive elements corresponding to nodes 2 and 3 may include a background image, an animation, background music and text. In the disclosed embodiment, the interactive data to be displayed submitted by the user may include the display content required by at least one node. Therefore, in step 103, the content of at least one node in the interactive template may be automatically replaced based on the interactive data to be displayed, thereby obtaining multiple interactive contents of different styles.
[0041] Through the above method, the content of the nodes in the interactive template can be automatically replaced based on the interactive data to be displayed. The user only needs to submit the interactive data to be displayed to generate multiple interactive contents of different styles. There is no need to manually configure the display content of each interactive element, which reduces the manual participation in the interactive content generation process, thereby improving the efficiency of interactive content generation and realizing automatic batch generation of interactive content. In addition, by describing the transformation logic of the interactive template through nodes and edges, the description of the interactive template is simplified, the underlying template implementation and technical differences can be shielded, and the data structure conversion between different interactive templates can be realized.
[0042] In a possible manner, the interaction template can be obtained in the following manner: first, based on the configuration operation for each interactive element in the interactive content, the nodes and edges corresponding to the configuration operation are obtained from a pre-defined plurality of nodes and edges, and then, based on the number of nodes, edges, and auxiliary information of the nodes themselves, the nodes and edges are combined to obtain an interaction template composed of nodes and edges, wherein the auxiliary information includes the maximum number of transfers between nodes.
[0043] For example, the predefined nodes and edges can be obtained by analyzing the interactive elements and the jumps between the interactive elements included in a large amount of interactive content. For example, different types of interactive content such as one-shot interactive content, branching interactive content, and looping interactive content can be analyzed, and the interactive elements in these different types of interactive content can be abstracted into corresponding nodes, and the jumps between the interactive elements can be abstracted into edges between the corresponding nodes. Among them, for branching interactive content, the interactive elements included in different interactive branches in the branching interactive content and the jumps between the interactive elements can be further analyzed to abstract richer nodes and edges, which is not limited in the embodiments of the present disclosure.
[0044] For example, the predefined nodes can adopt the same structure. The predefined edges can characterize the jump conditions of different nodes through transfer attributes. The transfer attribute may include a transfer type attribute for characterizing the jump type between interactive elements corresponding to the node, and the jump type may include automatic jump or manual jump. Among them, automatic jump can be automatic jump to another interactive element after the interactive element is displayed for a certain period of time. Manual jump can be jump to another interactive element after the interactive element is clicked or other operations are performed. The transfer attribute may also include a transfer strategy attribute for characterizing the jump strategy between interactive elements corresponding to the node, and the jump strategy may include random jump or specified jump. Among them, random jump can be a random jump from an interactive element to any interactive element among multiple other interactive elements, and a specified jump can be a jump from an interactive element to another preset interactive element.
[0045] The transfer attribute may also include a transfer effect attribute for characterizing the jump effect between the interactive elements corresponding to the node, a transfer target attribute for characterizing the jump target of each interactive element, and a transfer transfer attribute for characterizing the data transfer situation between the interactive elements. Among them, the jump effect may include a transition animation, a transition sound effect, etc. from an interactive element to another interactive element. The jump target may be the interactive element to which the user jumps after performing an interactive operation. The data transfer situation may be the content that needs to be displayed in another interactive element after the user jumps from an interactive element to another interactive element, such as the product information that needs to be displayed in another interactive element in an e-commerce scenario.
[0046] After pre-defining multiple nodes and multiple edges, the user can configure the interactive elements of the interactive content to be generated on the front-end page, and configure the jump status of each interactive element by adjusting the connection relationship between the interactive elements. Then, the corresponding node can be determined from the pre-defined multiple nodes according to the interactive element corresponding to the configuration operation, and the corresponding edge can be determined from the pre-defined multiple edges according to the connection relationship between the interactive elements corresponding to the configuration operation. In this way, all nodes and all edges corresponding to the interactive content to be generated can be obtained.
[0047] Then, nodes and edges can be combined according to the number of nodes, edges and auxiliary information of nodes, so as to obtain an interactive template composed of nodes and edges. Among them, the auxiliary information of nodes can be used to limit the number of jumps between nodes, such as the maximum number of transfers between nodes. Therefore, when there are repeated jumps between nodes, such as repeated play scenarios in certain game scenes, the auxiliary information of nodes can be used to avoid infinite loops of repeated jumps between nodes, so as to ensure the normal execution process of interactive content.
[0048] Through the above method, based on the understanding of the characteristics of existing interactive content, each interactive element can be abstracted into a corresponding node, and the jump relationship between each interactive element can be abstracted into an edge between nodes. Subsequently, according to the user's configuration operation, the nodes and edges corresponding to the interactive content to be generated can be determined from multiple pre-defined nodes and edges, and an interactive template composed of different nodes and edges can be obtained, which simplifies the description of the interactive template, shields the underlying template implementation and technical differences, and realizes the conversion of data structures between different interactive templates.
[0049] Of course, in other possible ways, the nodes and edges corresponding to the interactive content to be generated can be determined from a plurality of predefined nodes and edges by code writing to obtain an interactive template composed of different nodes and edges, which is not limited in this embodiment of the present disclosure.
[0050] In a possible manner, step 101 may be to obtain the interactive data submitted by the user according to the material requirement format of each interactive element, wherein each interactive element corresponds to a plurality of interactive data. Accordingly, step 103 may be to replace the content of each node in the interactive template according to each interactive data corresponding to the node, and to perform all possible combinations of the nodes after content replacement while keeping the relationship between the nodes and the edges in the interactive template unchanged, so as to obtain a plurality of interactive contents of different styles.
[0051] For example, as described above, each interactive element can include multiple display contents, so the disclosed embodiment can prompt the user to upload various display contents required for each interactive element. In other words, the interactive data to be displayed can be the interactive data submitted by the user according to the material requirement format of each interactive element. Among them, the materials include picture materials, text materials, video materials, etc. The material requirement format corresponds to the data format of different materials, such as the JPG format used to represent pictures, etc. In this way, the interactive data corresponding to each interactive element can be obtained. In addition, the user can upload multiple different interactive data for each interactive element to further increase the richness of the interactive content finally generated.
[0052] In the case where each interactive element corresponds to multiple interactive data, replacing the content of the node based on the interactive data to be displayed can be to perform all possible content replacement combinations on the multiple interactive data corresponding to each interactive element, thereby obtaining multiple interactive contents of different styles. Figure 3 , the interactive template includes 3 nodes, namely node 4, node 5 and node 6, and the user submits N text data to be displayed for the text element corresponding to node 4, M picture data to be displayed for the picture element corresponding to node 5, and K video data to be displayed for the video element corresponding to node 6. In this case, the relationship between nodes and edges in the interactive template is kept unchanged, and all possible content replacement combinations are performed on the multiple interactive data corresponding to each node, so that (N×M×K) interactive contents of different styles can be obtained.
[0053] Through the above method, in the process of generating interactive content, the manual participation for configuring interactive elements is reduced, and all possible content replacement combinations can be performed according to the multiple interactive data corresponding to each interactive element, thereby obtaining rich interactive content. Users only need to upload multiple interactive data to realize automatic batch generation of interactive content, thereby improving the efficiency of interactive content generation.
[0054] In a possible manner, determining the interactive template may be: determining a plurality of interactive templates of different types, wherein content fields representing the same data features in the plurality of interactive templates have the same content tag. Accordingly, in each content replacement process, data of the same type may be selected from the interactive data to be displayed to replace the content fields with the content tags in the plurality of interactive templates.
[0055] For example, in the e-commerce interactive template, there is a commodities field that defines commodities, and in the game interactive template, there is an items field that defines game equipment. From the data characteristics represented by these two fields, they are both core candidate content fields of their respective templates. Alternatively, there is a theme field in interactive template A, and a skin field in interactive template B. Although the specific data characteristics of these two fields in their respective templates are different, they both correspond to the visual style of their respective interactive templates.
[0056] Therefore, in order to improve the efficiency of content replacement of interactive templates, and thus improve the efficiency of generating interactive content, before performing content replacement on multiple interactive templates, the same content label can be added to the fields with the same data characteristics in the interactive templates. Then, during each content replacement process, the same type of data can be selected from the interactive data to be displayed to replace the fields with the same content label in the interactive template. For example, the same content label T is added to the theme field of interactive template A and the skin field of interactive template B. During each content replacement process, data representing the visual style of the interactive template can be selected from the interactive data to be displayed to simultaneously replace the fields with content label T in interactive template A and interactive template B. Thus, the content label can be used to simultaneously replace the same type of fields in multiple interactive templates, thereby improving the efficiency of generating interactive content.
[0057] In a possible manner, the interactive template may also include a first data structure for performing attribute conversion on the interactive data replaced into the interactive template and a second data structure for performing attribute calculation on the interactive data replaced into the interactive template. Accordingly, after obtaining a plurality of interactive contents of different styles, when previewing the interactive contents, the attributes of the interactive data in the interactive contents may be converted based on the first data structure and the second data structure through a preset attribute conversion function, so that the attributes of the interactive data in the interactive contents are consistent with the attributes of the interactive template's own data, and then the interactive data after attribute conversion is merged with the interactive template's own data, and the interactive content after data merging is rendered and displayed.
[0058] It should be understood that in the related art, rendering and display will be performed directly according to the interactive content during rendering. In the present disclosure, the sources of the interactive data to be displayed submitted by the user may be different and the data formats may be different. If the multiple interactive contents finally generated are directly rendered and displayed, it may cause display confusion. In order to solve this problem, in an embodiment of the present disclosure, a first data structure for performing attribute conversion on the interactive data submitted by the user in the interactive content and a second data structure for calculating the attributes of the interactive data submitted by the user in the interactive content may be added to the interactive template. Then, based on the first data structure and the second data structure, the interactive data submitted by the user in the interactive content may be rendered and displayed after the attributes are converted through a preset attribute conversion function.
[0059] For example, the interactive template may include preset data of its own, such as a default background image, background music, etc. In the disclosed embodiment, after the interactive data submitted by the user in the interactive content is attributed, the attribute-converted interactive data can be merged with the interactive template's own data, and then the interactive content after the data merging is passed to the renderer of each engine for rendering and display. In this way, the display disorder of the interactive data submitted by the user in the interactive content can be avoided, so that the display of the interactive content is adapted to various display scenarios.
[0060] In a possible manner, the nodes in the interactive template may have configurable attributes, and accordingly, for at least one node in the interactive module, content replacement of the node based on the interactive data to be displayed may be performed by: determining a target node with configurable attributes among all nodes in the interactive template, and then replacing the content of the target node based on the interactive data to be displayed.
[0061] That is to say, the user can predefine the target nodes in the interactive template for which content can be replaced, or can also predefine the attributes in the target nodes for which content can be replaced. In this case, after the user submits the interactive data to be displayed, the target nodes with configurable attributes in the interactive template can be determined first, and then the content of the target nodes can be replaced based on the interactive data to be displayed submitted by the user, while for the target nodes without configurable attributes, there is no need to replace the content. In this way, the configurable content in the interactive template can be customized according to user needs, and only the configurable content can be replaced during the content replacement process, which can meet the user's needs to modify part of the content in the interactive template, avoid unnecessary content replacement operations, and improve the generation efficiency of interactive content.
[0062] In a possible manner, for at least one node in the interactive module, content replacement of the node based on the interactive data to be displayed may be performed by: selecting target interactive data corresponding to at least one node from the interactive data to be displayed based on the data display effect, and then replacing the content of at least one node based on the target interactive data.
[0063] It should be understood that by performing all possible content replacement combinations on the nodes in the interactive template according to the interactive data to be displayed submitted by the user, multiple interactive contents of different styles can be obtained. When the interactive content is delivered online (i.e., displayed to other users), an interactive content with the best display effect can be selected for online delivery. Therefore, in the embodiment of the present disclosure, in order to ensure the display effect of the interactive content on the user's device, the target interactive data corresponding to at least one node can be selected from the interactive data to be displayed based on the data display effect, and then the content of at least one node can be replaced based on the target interactive data.
[0064] That is to say, among the multiple interactive data uploaded by the user for each node in the interactive template, the target interactive data with the best display effect for each node can be selected, so that the interactive content with the best display effect can be obtained by replacing the content of the node based on the target interactive data. For example, the content display model can be trained by sample data and the display effect data corresponding to the sample data, and then the target interactive data with the best display effect for each node can be selected by the content display model. Alternatively, the content of the nodes can be replaced in turn according to the interactive data to be displayed submitted by the user, and then the target interactive data with the best display effect can be manually selected, which is not limited in the embodiments of the present disclosure.
[0065] Through any of the above methods, the content of the nodes in the interactive template can be automatically replaced based on the interactive data to be displayed. Users only need to submit the interactive data to be displayed to generate multiple interactive contents of different styles. There is no need to manually configure the display content of each interactive element, which reduces the manual participation in the interactive content generation process, thereby improving the efficiency of interactive content generation and realizing automatic batch generation of interactive content. In addition, by describing the transformation logic of the interactive template through nodes and edges, the description of the interactive template is simplified, the underlying template implementation and technical differences can be shielded, and the data structure conversion between different interactive templates can be realized.
[0066] Based on the same inventive concept, the embodiment of the present disclosure also provides an interactive content generation device, which can be part or all of an electronic device through software, hardware, or a combination of both. Figure 4 , the interactive content generating device 400 may include:
[0067] The acquisition module 401 is used to acquire the interactive data to be displayed submitted by the user;
[0068] Determining module 402, used to determine an interactive template, where the interactive template is used to describe the interactive form of the interactive content, and the interactive template is a graph structure composed of nodes and edges, where the nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump between the interactive elements;
[0069] The replacement module 403 is used to replace the content of at least one node in the interactive module based on the interactive data to be displayed, so as to obtain a plurality of interactive contents of different styles.
[0070] Optionally, the acquisition module 401 is used to:
[0071] Acquire interactive data submitted by the user according to the material requirement format of each interactive element, wherein each interactive element corresponds to a plurality of interactive data;
[0072] The step of replacing the content of at least one node in the interactive module based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles includes:
[0073] For each node in the interactive template, the content of the node is replaced in turn according to each interactive data corresponding to the node. While keeping the relationship between the nodes and edges in the interactive template unchanged, all possible combinations of the nodes after content replacement are performed to obtain multiple interactive contents of different styles.
[0074] Optionally, the apparatus 400 further includes the following module for determining the interaction template:
[0075] A first template module, configured to obtain nodes and edges corresponding to the configuration operation from a plurality of predefined nodes and edges according to the configuration operation for each interactive element in the interactive content;
[0076] The second template module is used to combine the nodes and edges according to the number of the nodes, the edges and the auxiliary information of the nodes to obtain an interactive template composed of the nodes and the edges, wherein the auxiliary information includes the maximum number of transfers between the nodes.
[0077] Optionally, the determining module 402 is used to:
[0078] Determining a plurality of interactive templates of different types, wherein content fields representing the same data features in the plurality of interactive templates have the same content label;
[0079] The device 400 further includes:
[0080] The selection module is used for selecting data of the same type from the interactive data to be displayed to replace the content fields having the content tags in the multiple interactive templates during each content replacement process.
[0081] Optionally, the interactive template further includes a first data structure for performing attribute conversion on the interactive data replaced into the interactive template and a second data structure for performing attribute calculation on the interactive data replaced into the interactive template, and the device 400 further includes:
[0082] A conversion module, for, after obtaining a plurality of interactive contents of different styles, performing attribute conversion on the interactive data in the interactive contents by using a preset attribute conversion function based on the first data structure and the second data structure when previewing the interactive contents, so that the attributes of the interactive data in the interactive contents are consistent with the attributes of the interactive template's own data;
[0083] The rendering module is used to merge the interactive data after attribute conversion with the interactive template's own data, and render and display the interactive content after the data is merged.
[0084] Optionally, the nodes in the interactive template have configurable attributes, and the replacement module 403 is used to:
[0085] Determine a target node having the configurable attribute among all nodes of the interactive template;
[0086] The content of the target node is replaced based on the interactive data to be displayed.
[0087] Optionally, the replacement module 403 is used to:
[0088] Selecting target interactive data corresponding to the at least one node from the interactive data to be displayed based on the data display effect;
[0089] The content of the at least one node is replaced based on the target interaction data.
[0090] 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.
[0091] Based on the same inventive concept, the present disclosure also provides an electronic device, including:
[0092] a storage device having a computer program stored thereon;
[0093] A processing device is used to execute the computer program in the storage device to implement the steps of any of the above-mentioned interactive content generation methods.
[0094] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop 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. Figure 5 The 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.
[0095] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0096] Typically, the following devices may be connected to the I / O interface 505: an input device 506 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 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 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.
[0097] 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 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0098] 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.
[0099] In some embodiments, any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) can be used for communication, and can be interconnected with any form or medium of digital data communication (e.g., communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), internets (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
[0100] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0101] 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: obtains the interactive data to be displayed submitted by the user; determines an interactive template, wherein the interactive template is used to describe the interactive form of the interactive content, and the interactive template is a graph structure composed of nodes and edges, wherein the nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump between the interactive elements; for at least one node in the interactive module, the content of the node is replaced based on the interactive data to be displayed to obtain multiple interactive contents of different styles.
[0102] 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).
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] According to one or more embodiments of the present disclosure, Example 1 provides a method for generating interactive content, the method comprising:
[0108] Get the interactive data to be displayed submitted by the user;
[0109] Determine an interaction template, where the interaction template is used to describe the interaction form of the interactive content. The interaction template is a graph structure composed of nodes and edges. The nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump conditions between the interactive elements.
[0110] For at least one node in the interactive module, content of the node is replaced based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles.
[0111] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein obtaining the interactive data to be displayed submitted by the user includes:
[0112] Acquire interactive data submitted by the user according to the material requirement format of each interactive element, wherein each interactive element corresponds to a plurality of interactive data;
[0113] The step of replacing the content of at least one node in the interactive module based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles includes:
[0114] For each node in the interactive template, the content of the node is replaced in turn according to each interactive data corresponding to the node. While keeping the relationship between the nodes and edges in the interactive template unchanged, all possible combinations of the nodes after content replacement are performed to obtain multiple interactive contents of different styles.
[0115] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the interactive template is obtained in the following manner:
[0116] According to the configuration operation for each interactive element in the interactive content, obtaining nodes and edges corresponding to the configuration operation from a plurality of predefined nodes and a plurality of edges;
[0117] According to the number of the nodes, the edges and the auxiliary information of the nodes, the nodes and the edges are combined to obtain an interactive template composed of the nodes and the edges, wherein the auxiliary information includes the maximum number of transfers between the nodes.
[0118] According to one or more embodiments of the present disclosure, Example 4 provides a method according to any one of Examples 1-3, wherein determining the interaction template includes:
[0119] Determining a plurality of interactive templates of different types, wherein content fields representing the same data features in the plurality of interactive templates have the same content label;
[0120] The method further comprises:
[0121] During each content replacement process, data of the same type is selected from the interactive data to be displayed to replace the content fields having the content tags in the multiple interactive templates.
[0122] According to one or more embodiments of the present disclosure, Example 5 provides a method of any one of Examples 1-3, wherein the interactive template further includes a first data structure for performing attribute conversion on the interactive data replaced into the interactive template and a second data structure for performing attribute calculation on the interactive data replaced into the interactive template. After obtaining a plurality of interactive contents of different styles, the method further includes:
[0123] When previewing the interactive content, based on the first data structure and the second data structure, the interactive data in the interactive content is attribute-converted by a preset attribute conversion function, so that the attributes of the interactive data in the interactive content are consistent with the attributes of the interactive template's own data;
[0124] The interactive data after attribute conversion is merged with the interactive template's own data, and the interactive content after the data merger is rendered and displayed.
[0125] According to one or more embodiments of the present disclosure, Example 6 provides a method of any one of Examples 1-3, wherein the node in the interaction template has a configurable attribute, and the step of replacing the content of at least one node in the interaction module based on the interaction data to be displayed includes:
[0126] Determine a target node having the configurable attribute among all nodes of the interactive template;
[0127] The content of the target node is replaced based on the interactive data to be displayed.
[0128] According to one or more embodiments of the present disclosure, Example 7 provides the method of any one of Examples 1-3, wherein for at least one node in the interactive module, replacing the content of the node based on the interactive data to be displayed includes:
[0129] Selecting target interactive data corresponding to the at least one node from the interactive data to be displayed based on the data display effect;
[0130] The content of the at least one node is replaced based on the target interaction data.
[0131] According to one or more embodiments of the present disclosure, Example 8 provides an interactive content generation device, the device comprising:
[0132] An acquisition module is used to acquire the interactive data to be displayed submitted by the user;
[0133] A determination module, used to determine an interaction template, wherein the interaction template is used to describe the interaction form of the interactive content, and the interaction template is a graph structure composed of nodes and edges, wherein the nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump conditions between the interactive elements;
[0134] The replacement module is used to replace the content of at least one node in the interactive module based on the interactive data to be displayed, so as to obtain multiple interactive contents of different styles.
[0135] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-7 when executed by a processing device.
[0136] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, including:
[0137] a storage device having a computer program stored thereon;
[0138] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods described in Examples 1-7.
[0139] 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 to form a technical solution.
[0140] 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.
[0141] 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 method for generating interactive content, characterized in that: The method comprises: Get the interactive data to be displayed submitted by the user; Determine an interaction template, wherein the interaction template is used to describe the interaction form of the interactive content, the interaction template is a graph structure composed of nodes and edges, the interaction template also includes a first data structure for performing attribute conversion on the interactive data replaced into the interaction template and a second data structure for performing attribute calculation on the interactive data replaced into the interaction template, the nodes are used to represent the interactive elements included in the interactive content, and the edges are used to represent the jump conditions between the interactive elements; For at least one node in the interactive template, replace the content of the node based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles; When previewing the interactive content, based on the first data structure and the second data structure, the interactive data in the interactive content is attribute-converted by a preset attribute conversion function, so that the attributes of the interactive data in the interactive content are consistent with the attributes of the interactive template's own data; The interactive data after attribute conversion is merged with the interactive template's own data, and the interactive content after the data merger is rendered and displayed.
2. The method according to claim 1, characterized in that The step of obtaining the interactive data to be displayed submitted by the user includes: Acquire interactive data submitted by the user according to the material requirement format of each interactive element, wherein each interactive element corresponds to a plurality of interactive data; The step of replacing the content of at least one node in the interactive template based on the interactive data to be displayed to obtain a plurality of interactive contents of different styles includes: For each node in the interactive template, the content of the node is replaced in turn according to each interactive data corresponding to the node. While keeping the relationship between the nodes and edges in the interactive template unchanged, all possible combinations of the nodes after content replacement are performed to obtain multiple interactive contents of different styles.
3. The method according to claim 1, characterized in that The interactive template is obtained in the following manner: According to the configuration operation for each interactive element in the interactive content, obtaining nodes and edges corresponding to the configuration operation from a plurality of predefined nodes and a plurality of edges; According to the number of the nodes, the edges and the auxiliary information of the nodes, the nodes and the edges are combined to obtain an interactive template consisting of the nodes and the edges, wherein the auxiliary information includes the maximum number of transfers between the nodes.
4. The method according to any one of claims 1 to 3, characterized in that: The step of determining the interaction template comprises: Determining a plurality of interactive templates of different types, wherein content fields representing the same data features in the plurality of interactive templates have the same content label; The method further comprises: During each content replacement process, data of the same type is selected from the interactive data to be displayed to replace the content fields having the content tags in the multiple interactive templates.
5. The method according to any one of claims 1 to 3, characterized in that: The nodes in the interactive template have configurable attributes, and the replacing of the content of at least one node in the interactive template based on the interactive data to be displayed includes: Determine a target node having the configurable attribute among all nodes of the interactive template; The content of the target node is replaced based on the interactive data to be displayed.
6. The method according to any one of claims 1 to 3, characterized in that: The step of replacing the content of at least one node in the interactive template based on the interactive data to be displayed includes: Selecting target interactive data corresponding to the at least one node from the interactive data to be displayed based on the data display effect; The content of the at least one node is replaced based on the target interaction data.
7. An interactive content generating device, characterized in that: The device comprises: An acquisition module is used to acquire the interactive data to be displayed submitted by the user; A determination module, used for determining an interaction template, wherein the interaction template is used for describing the interaction form of the interactive content, the interaction template is a graph structure composed of nodes and edges, the interaction template also includes a first data structure for performing attribute conversion on the interactive data replaced into the interaction template and a second data structure for performing attribute calculation on the interactive data replaced into the interaction template, the nodes are used for representing the interactive elements included in the interactive content, and the edges are used for representing the jump between the interactive elements; A replacement module, configured to replace the content of at least one node in the interactive template based on the interactive data to be displayed, so as to obtain a plurality of interactive contents of different styles; a conversion module, used for, when previewing the interactive content, performing attribute conversion on the interactive data in the interactive content by using a preset attribute conversion function based on the first data structure and the second data structure, so that the attributes of the interactive data in the interactive content are consistent with the attributes of the interactive template's own data; The rendering module is used to merge the interactive data after attribute conversion with the interactive template's own data, and render and display the interactive content after the data is merged.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 6 are implemented.
9. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Interactive multimedia production system and method
CN105792003A
Method and system for generating page file and computer equipment
CN107491311A
Interactive web page arrangement method and device
CN109375916A
Advertisement insertion method and device, electronic equipment and computer storage medium
CN111242696A
Interactive video generation method and device
CN112616086A