Media data generation method and device, electronic equipment and storage medium
By displaying the candidate material area and parameter setting area on the interactive page, and responding to interactive events to obtain parameter content and generate media data, the problem of frequent page switching caused by repeated user adjustments is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202410295348.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2025-09-16
AI Technical Summary
When generating media data, users need to repeatedly adjust prompt information and/or media materials, resulting in frequent page switching and poor user experience.
By displaying the candidate material area of the interactive page, displaying the parameter setting area in response to interactive events, and obtaining parameter content to generate media data, the frequency of page switching is reduced and the interaction method is optimized.
The frequency of page switching during the media data generation process is reduced, the user experience is improved, and an interactive mode of adjusting parameters while browsing candidate materials is realized.
Smart Images

Figure CN120653335A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to computer technology, and more particularly to a method, device, electronic device, and storage medium for generating media data. Background Art
[0002] With the development of computer technology, more and more users have the need to create media data.
[0003] Currently, media data can be generated based on prompt information, as well as media materials such as images and videos. However, since most users may lack professional knowledge, they need to repeatedly adjust the prompt information and / or media materials to generate the media data that meets their expectations. To achieve this, they may need to repeatedly switch between the parameter settings page and the generated results page, adjusting the prompt information and / or media materials on the parameter settings page and browsing the generated media data on the generated results page, resulting in a poor user experience. Summary of the Invention
[0004] The present disclosure provides a method, device, electronic device, and storage medium for generating media data, which can optimize the interactive mode of generating media data and enhance user experience.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for generating media data, including:
[0006] Display the candidate material area of the interactive page;
[0007] In response to an interaction event with respect to the candidate material area, displaying the candidate material area and a parameter setting area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area;
[0008] In response to a parameter setting event in the parameter setting area, obtaining parameter content corresponding to the parameter setting item, and displaying the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data;
[0009] In response to a display event for the generation result area, the candidate material area is switched to a folded form, the parameter setting area and the generation result area are displayed, and the media data is displayed in the generation result area.
[0010] In a second aspect, an embodiment of the present disclosure further provides a device for generating media data, the device comprising:
[0011] The first display module is used to display the candidate material area of the interactive page;
[0012] a second display module, configured to display the candidate material area and a parameter setting area in response to an interaction event with respect to the candidate material area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area;
[0013] a parameter acquisition module, configured to, in response to a parameter setting event in the parameter setting area, acquire parameter content corresponding to the parameter setting item and display the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data;
[0014] The third display module is configured to, in response to a display event for the generated result area, switch the candidate material area to a folded form, display the parameter setting area and the generated result area, and display the media data in the generated result area.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating media data as described in any embodiment of the present disclosure.
[0019] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the method for generating media data as described in any embodiment of the present disclosure.
[0020] The disclosed embodiments provide a method, apparatus, electronic device, and storage medium for generating media data. By displaying a candidate material area on an interactive page, and then displaying the candidate material area and parameter setting area based on interactive events in the candidate material area, it is possible to adjust parameters while browsing candidate materials; obtain parameter content corresponding to parameter setting items based on the parameter setting area, so that media data can be generated based on the parameter content after a generation event is triggered; and display the parameter setting area and generation result area based on a display event in the generation result area, so that parameters can be adjusted while browsing generation results. Therefore, the disclosed embodiments reduce the frequency of page switching during the media data generation process, optimize the interactive method for generating media data, and enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages, and aspects of the various 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 that the originals and elements are not necessarily drawn to scale.
[0022] Figure 1 A flowchart of a method for generating media data provided by an embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram of the layout of an interactive page provided in an embodiment of the present disclosure;
[0024] Figure 3 A schematic diagram showing an interactive page provided by an embodiment of the present disclosure;
[0025] Figure 4 A schematic diagram of page interaction provided by an embodiment of the present disclosure;
[0026] Figure 5 Another page interaction diagram provided by an embodiment of the present disclosure;
[0027] Figure 6 A schematic diagram of another page interaction provided by an embodiment of the present disclosure;
[0028] Figure 7 A schematic diagram of another page interaction provided by an embodiment of the present disclosure;
[0029] Figure 8 A schematic diagram of another page interaction provided by an embodiment of the present disclosure;
[0030] Figure 9 A flowchart of another method for generating media data provided by an embodiment of the present disclosure;
[0031] Figure 10 A schematic diagram of another page interaction provided by an embodiment of the present disclosure;
[0032] Figure 11 A schematic diagram of the structure of a device for generating media data provided by an embodiment of the present disclosure;
[0033] Figure 12 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
[0034] Among them, the red frame represents the preset display area. DETAILED DESCRIPTION
[0035] The following describes embodiments of the present disclosure in more detail 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 limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0036] 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.
[0037] As used herein, the term "including" and its variations are open-ended, 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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0038] It should be noted that the concepts of "first" and "second" mentioned in this 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.
[0039] It should 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".
[0040] 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.
[0041] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0042] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0043] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0044] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0045] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0046] Figure 1 This is a flow chart of a method for generating media data provided in an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where media data is generated. The method can be executed by a media data generation device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0047] like Figure 1 As shown, the method includes:
[0048] S110: Display the candidate material area of the interactive page.
[0049] In the embodiment of the present disclosure, the candidate material area includes candidate materials, which are used to provide parameter reference content to generate media data with similar effects to the candidate materials based on the parameter reference content. For example, the candidate materials include pictures or videos.
[0050] In some embodiments, the interactive page includes a candidate material area, a parameter setting area, and a generated result area.
[0051] The parameter setting area includes parameter setting items, which include one or more of the following: material input, prompt input, lens settings, and model settings. Model settings include prompt relevance and negative prompt words. The generation result area is used to display media data. For example, the generation result area displays media data in order of generation time.
[0052] Figure 2 This is a schematic diagram of the layout of an interactive page provided by an embodiment of the present disclosure. Figure 2As shown, the interactive page 200 includes a candidate material area 210, a parameter setting area 220, and a generated result area 230. The candidate material area 210 and the generated result area 230 are respectively located on both sides of the parameter setting area 220. For example, in the interactive page 200, the candidate material area 210 is located on the left side of the parameter setting area 220, and the generated result area 230 is located on the right side of the parameter setting area 220.
[0053] Exemplarily, the candidate material area of the interactive page includes:
[0054] The interactive page is obtained, and layout information of a candidate material area in the interactive page is determined based on a preset display area, wherein the preset display area is used to represent a screen display range. The candidate material area is displayed within the preset display area according to the layout information, and the parameter setting area and the generated result area are located outside the preset display area.
[0055] The length and height of the candidate material area are adjusted based on the length and height of the preset display area, and the candidate material area is displayed in the preset display area. Figure 3 This is a schematic diagram showing an interactive page provided by an embodiment of the present disclosure. Figure 3 As shown, the candidate material area 310 is displayed within the screen display range 300, and part of the parameter setting area 320 and the entire generation result area 330 are located outside the screen display range 300. In some embodiments, both the parameter setting area and the generation result area are located outside the screen display range.
[0056] S120. In response to an interaction event with respect to the candidate material area, display the candidate material area and a parameter setting area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area.
[0057] In the embodiment of the present disclosure, the interaction event for the candidate material area includes: an interaction event for a first control in the candidate material area, or an interaction event for a second control in the candidate material area corresponding to a target material, wherein the target material represents a candidate material selected in the candidate material area.
[0058] Among them, the first control represents a control in the candidate material area for triggering a form switching event in the parameter setting area. The form switching event represents the switch between the folded form and the expanded form. Among them, the folded form represents the form in which the target area in the interactive page is not displayed in the preset display area. For example, the folded form can be understood as the target area is not displayed on the screen. Correspondingly, the expanded form represents the form in which the target area in the interactive page is displayed in the preset display area. For example, the expanded form can be understood as the target area is displayed on the screen. Among them, the target area can include at least one of the candidate material area, the parameter setting area, and the generated result area.
[0059] For example, if the parameter setting area is in a collapsed state, the parameter setting area is switched to an expanded state in response to a click event of the first control. If the parameter setting area is in an expanded state, the parameter setting area is switched to a collapsed state in response to a click event of the first control.
[0060] In response to a mouse hover event on a target material in the candidate material area, a second control is displayed at a position corresponding to the target material. The second control is used to trigger a display event in the parameter setting area.
[0061] Exemplarily, in response to an interaction event with the candidate material area, displaying the candidate material area and the parameter setting area includes: in response to the interaction event with the candidate material area, shrinking the candidate material area, determining a first display area in the preset display area that does not overlap with the candidate material area; and controlling the parameter setting area to slide into the first display area, so as to display the shrunken candidate material area and the parameter setting area in the preset display area. Controlling the parameter setting area to slide into the first display area includes controlling the parameter setting area to slide from a boundary of the first display area into the first display area at a set speed.
[0062] Figure 4 This is a schematic diagram of a page interaction provided by an embodiment of the present disclosure. Figure 4 As shown, in response to a click event on the first control 420 in the candidate material area 410, the navigation bar is hidden, the candidate material area 410 is slid to the left of the page to enter the display area of the original navigation bar, and a first display area 440 in the preset display area 430 that does not overlap with the candidate material area 410 is determined; the parameter setting area 450 is controlled to slide to the left of the screen to enter the first display area 440, so that the reduced candidate material area 410 and parameter setting area 450 are displayed in the preset display area 430. Thus, a material creation scene is entered where parameters can be adjusted while browsing materials.
[0063] Figure 5 This is another page interaction diagram provided by the embodiment of the present disclosure. Figure 5As shown, in response to a mouse hover event for a target material in candidate material area 510, a second control 520 is displayed at a location corresponding to the target material. In response to a click event on second control 520, parameter reference content 500 corresponding to the target material is obtained, the candidate material area 510 is reduced, and a first display area 540 in the preset display area 530 that does not overlap with the candidate material area 510 is determined. The parameter setting area 550 is controlled to slide to the left side of the screen into the first display area 540, so that the reduced candidate material area 510 and parameter setting area 550 are displayed in the preset display area 530. The parameter reference content 500 is displayed at a location corresponding to the parameter setting item in the parameter setting area 550.
[0064] S130. In response to a parameter setting event in the parameter setting area, obtain parameter content corresponding to the parameter setting item, and display the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data.
[0065] Among them, the parameter setting event represents a parameter setting operation for the parameter setting area. The parameter setting operation includes setting parameter content for the parameter setting item. The parameter content includes prompt information, material information, and target setting information, wherein the material information includes at least one of video, picture, or audio. The target setting information is used to adjust the prompt information and / or material information. For example, with the content generation capability of AIGC (Artificial Intelligence Generated Content) technology, media data is generated based on the prompt information, material information, and target setting information. For example, the media data includes video or pictures.
[0066] Exemplarily, in response to a parameter setting event in the parameter setting area, prompt information, material information and target setting information corresponding to the parameter setting item are obtained, and the prompt information, material information and target setting information are displayed at the corresponding position of the parameter setting item, wherein the target setting information is used to adjust the prompt information and material information.
[0067] In some embodiments, if a candidate material area and a parameter setting area are displayed in a preset display area, and parameter content is displayed at a location corresponding to a parameter setting item in the parameter setting area, and a selection event is detected for a target material in the candidate material area, an information page for the target material and the parameter setting area are displayed. The information page for the target material includes a second control. In response to a click event on the second control, parameter reference content corresponding to the target material is obtained, and the original parameter content at the location corresponding to the parameter setting item is updated based on the parameter reference content.
[0068] Optionally, after displaying the information page and parameter setting area of the target material, if a closing event for the parameter setting area is detected, the information page of the target material is enlarged and the parameter setting area is moved outside the preset display area to display the enlarged information page of the target material within the preset display area.
[0069] S140 . In response to a display event for the generation result area, switch the candidate material area to a folded form, display the parameter setting area and the generation result area, and display the media data in the generation result area.
[0070] In the embodiment of the present disclosure, the display event for the generated result area includes: a click event for the generated control in the parameter setting area. Optionally, the interactive page also includes a navigation bar, and the display event for the generated result area can be triggered by a click event for the generated control in the navigation bar.
[0071] Exemplarily, in response to a display event for the generated result area, a second display area in the preset display area is determined according to the position of the candidate material area, and the candidate material area is switched to a folded form; the parameter setting area is controlled to slide into the second display area, and the generated result area is controlled to slide into the preset display area, so as to display the parameter setting area and the generated result area in the preset display area. Display the media data in the generated result area
[0072] Figure 6 This is another page interaction diagram provided by the embodiment of the present disclosure. Figure 6 As shown, in response to a click event on the generation control 620 in the parameter setting area 610, a display event is triggered in the generation result area 630. Upon detecting that the display event for the generation result area 630 has been triggered, a second display area 600 within the preset display area is determined based on the current position of the candidate material area 640. The candidate material area 640 is then switched to a collapsed state, i.e., the candidate material area 640 is hidden from the interactive page and not displayed within the preset display area. The parameter setting area 610 in the interactive page is controlled to slide toward the second display area 600 to leave space for the generation result area 630 within the preset display area. The generation result area 630 is then controlled to slide into the preset display area so that the parameter setting area 610 and the generation result area 630 are displayed within the preset display area, without overlapping. The media data is displayed in the generation result 630 area. This achieves a switch from the material creation scene to the result adjustment scene. In the result adjustment scene, parameters can be adjusted while viewing the generated media data. In the material creation scene, you can browse candidate materials and adjust parameters at the same time. Figure 7 This is another page interaction diagram provided by the embodiment of the present disclosure. Figure 7As shown, an interactive page 700 is displayed. The interactive page 700 includes a navigation bar 710, a candidate material area 720, and a parameter setting area 730. In response to a click event of a generate control 750 in the navigation bar 710, a display event of the generated result area 740 is triggered. After detecting that the display event of the generated result area 740 has been triggered, the page layout adjustment process is the same as in the above embodiment and will not be repeated here. The generate control in the navigation bar can quickly call up the parameter setting area and the result generation area, allowing direct video generation operations.
[0073] In the embodiment of the present disclosure, after displaying the parameter setting area and the generated result area, the following is further included:
[0074] In response to a click event on a return control in the interactive page, determining a third display area in the preset display area according to a position of the generated result area, and switching the generated result area to a collapsed state;
[0075] The parameter setting area is controlled to slide into the third display area, and the candidate material area is switched to an expanded form, so as to display the candidate material area and the parameter setting area in the preset display area.
[0076] Figure 8 This is another page interaction diagram provided by the embodiment of the present disclosure. Figure 8 As shown, a click operation of the return control 810 in the interactive page 800 is detected, and a third display area 830 in the preset display area is determined based on the position of the generated result area 820, and the generated result area 820 is switched to a collapsed state. The parameter setting area 840 is controlled to slide toward the third display area 830, and the candidate material area 850 is switched to an expanded state. The candidate material area 850 and the parameter setting area 840 are displayed in the preset display area, thereby achieving the switch from the result adjustment scene to the material creation scene.
[0077] Optionally, the navigation bar also includes a creation control, and after displaying the parameter setting area and the generation result area, it also includes: in response to a click event on the creation control in the navigation bar, determining a third display area in the preset display area according to the position of the generation result area, and switching the generation result area to a folded form; controlling the parameter setting area to slide into the third display area, switching the candidate material area to an expanded form, so as to display the candidate material area and parameter setting area in the preset display area.
[0078] Optionally, when the candidate material area and the parameter setting area are displayed in the preset display area, in response to a click event on the first control in the candidate material area, the parameter setting area is switched to a folded form, and the candidate material area is enlarged according to the preset display area to display the candidate material area within the preset display area.
[0079] The technical solution of the disclosed embodiment displays the candidate material area of the interactive page, and then displays the candidate material area and parameter setting area based on the interactive events in the candidate material area, so that parameters can be adjusted while browsing the candidate materials; the parameter content corresponding to the parameter setting items in the parameter setting area is obtained based on the parameter setting area, so that media data can be generated based on the parameter content after the generation event is triggered; and the parameter setting area and generation result area are displayed based on the display event of the generation result area, so that parameters can be adjusted while browsing the generation results. Therefore, the disclosed embodiment reduces the frequency of page switching during the media data generation process, optimizes the interactive method of generating media data, and improves the user experience.
[0080] Figure 9 This is a flow chart of another method for generating media data provided by an embodiment of the present disclosure. Based on the above embodiments, this embodiment additionally defines a step for updating the parameter content in the parameter setting area.
[0081] like Figure 9 As shown, the method includes:
[0082] S910: Display the candidate material area of the interactive page.
[0083] S920: In response to an interaction event with respect to the candidate material area, display the candidate material area and a parameter setting area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area.
[0084] S930. In response to a selection event for a target material in the candidate material area, switch the candidate material area to an information page of the target material to display the information page and parameter setting area of the target material, wherein the information page of the target material includes a second control.
[0085] The target material's information page may be a target material's details page.
[0086] Exemplarily, when displaying the candidate material area and the parameter setting area, if a selection event for the target material in the candidate material area is detected, the candidate material area is replaced with the target material information page to display the target material information page in the area corresponding to the candidate material area.
[0087] S940. In response to a click event of a second control in the information page for the target material, obtain parameter reference content corresponding to the target material, and display the parameter reference content at a corresponding position of the parameter setting item in the parameter setting area.
[0088] The parameter reference content represents a set of parameters required to generate the target material. For example, the parameter reference content includes prompt information, material information, and target setting information corresponding to the target material.
[0089] S950: In response to an adjustment event for the parameter reference content in the parameter setting area, obtain parameter adjustment content corresponding to the parameter setting item.
[0090] The adjustment event represents an operation to modify the parameter content of at least one parameter setting item in the parameter setting area. Based on the adjustment operation on the parameter reference content in the parameter setting area, the parameter setting item to be modified and the parameter adjustment content are determined. The parameter adjustment content represents the parameter content of the adjusted parameter setting item.
[0091] S960: Update the parameter reference content according to the parameter adjustment content to update the parameter content of the parameter setting item.
[0092] Figure 10 This is another page interaction diagram provided by the embodiment of the present disclosure. Figure 10 As shown, a click operation corresponding to a target material in candidate material area 1010 is detected, triggering a selection event for the target material, and displaying the target material's information page 1020 and parameter setting area 1030. Target material information page 1020 includes a second control 1050. In response to the click event on second control 1050, parameter reference content 1040 corresponding to the target material is obtained and displayed at the corresponding location of the parameter setting item in parameter setting area 1030, so that media data similar to the target material is generated based on parameter reference content 1040.
[0093] Optionally, when the information page and parameter setting area of the target material are displayed in the preset display area, if a closing event for the parameter setting page is detected, the parameter setting page is closed, and the information page of the target material is enlarged according to the preset display area to display the information page of the target material in the preset display area.
[0094] Optionally, when the information page of the target material is displayed in the preset display area, if a click event for the second control is detected, the information page of the target material is reduced, a fourth display area in the preset display area that does not overlap with the information page of the target material is determined, and the parameter setting area is controlled to slide into the fourth display area to display the information page and parameter setting area of the target material in the preset display area.
[0095] S970. In response to a display event for the generated result area, the candidate material area is switched to a folded form, the parameter setting area and the generated result area are displayed, and media data is generated based on the updated parameter content, and the media data is displayed in the generated result area.
[0096] The technical solution of the embodiment of the present disclosure, by selecting the target material and filling the parameter setting area based on the parameter reference content of the target material, realizes the parameter configuration method of the target material and generates media data with similar effects to the target material, which can reduce the difficulty of parameter setting in the media data generation process and improve the user experience.
[0097] Figure 11 This is a structural diagram of a media data generation device provided in an embodiment of the present disclosure. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC or server.
[0098] like Figure 11 As shown, the apparatus includes: a first display module 1110 , a second display module 1121 , a parameter acquisition module 1130 and a third display module 1140 .
[0099] The first display module 1110 is used to display the candidate material area of the interactive page;
[0100] A second display module 1121 is configured to display the candidate material area and a parameter setting area in response to an interaction event with respect to the candidate material area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area;
[0101] a parameter acquisition module 1130 configured to, in response to a parameter setting event in the parameter setting area, acquire parameter content corresponding to the parameter setting item and display the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data;
[0102] The third display module 1140 is configured to, in response to a display event for the generated result area, switch the candidate material area to a folded form, display the parameter setting area and the generated result area, and display the media data in the generated result area.
[0103] Optionally, the first display module 1110 is specifically configured to:
[0104] Acquire the interactive page, and determine layout information of a candidate material area in the interactive page based on a preset display area, wherein the preset display area is used to represent a screen display range;
[0105] The candidate material area is displayed in the preset display area according to the layout information, and the parameter setting area and the generated result area are located outside the preset display area.
[0106] Optionally, the interaction event for the candidate material area includes:
[0107] A click event for a first control in the candidate material area, or a click event for a second control corresponding to a target material in the candidate material area.
[0108] Optionally, the second display module 1120 is specifically configured to:
[0109] In response to an interaction event with respect to the candidate material area, reducing the candidate material area, and determining a first display area in the preset display area that does not overlap with the candidate material area;
[0110] The parameter setting area is controlled to slide into the first display area, so as to display the reduced candidate material area and parameter setting area in the preset display area.
[0111] Optionally, the parameter acquisition module 1130 is specifically configured to:
[0112] In response to a parameter setting event in the parameter setting area, prompt information, material information and target setting information corresponding to the parameter setting item are obtained, and the prompt information, material information and target setting information are displayed at the corresponding position of the parameter setting item, wherein the target setting information is used to adjust the prompt information and / or material information.
[0113] Optionally, the display event for the generated result area includes:
[0114] A click event of a control is generated in the parameter setting area.
[0115] Optionally, the interactive page includes a candidate material area, a parameter setting area, and a generated result area; the third display module 1140 is specifically used to:
[0116] In response to a display event for the generated result area, determining a second display area in the preset display area according to the position of the candidate material area, and switching the candidate material area to a folded form;
[0117] The parameter setting area is controlled to slide into the second display area, and the generation result area is controlled to slide into the preset display area, so as to display the parameter setting area and the generation result area in the preset display area.
[0118] Optionally, after displaying the parameter setting area and the generated result area, the following is further included:
[0119] In response to a click event on a return control in the interactive page, determining a third display area in the preset display area according to a position of the generated result area, and switching the generated result area to a collapsed state;
[0120] The parameter setting area is controlled to slide into the third display area, and the candidate material area is switched to an expanded form, so as to display the candidate material area and the parameter setting area in the preset display area.
[0121] Optionally, after displaying the candidate material area and the parameter setting area, the method further includes:
[0122] In response to a selection event for a target material in the candidate material area, switching the candidate material area to an information page of the target material to display the information page and parameter setting area of the target material, wherein the information page of the target material includes a second control;
[0123] In response to a click event of a second control in the information page for the target material, parameter reference content corresponding to the target material is acquired, and the parameter reference content is displayed at a corresponding position of a parameter setting item in the parameter setting area.
[0124] The media data generation device provided in the embodiments of the present disclosure can execute the media data generation method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0125] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0126] Figure 12 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 12 , which shows an electronic device (eg Figure 12 The terminal device in the embodiments 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), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 12 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0127] like Figure 12As shown, the electronic device 1200 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1201, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1202 or a program loaded from a storage device 1208 into a random access memory (RAM) 1203. Various programs and data required for the operation of the electronic device 1200 are also stored in the RAM 1203. The processing device 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An edit / output (I / O) interface 1205 is also connected to the bus 1204.
[0128] Typically, the following devices may be connected to the I / O interface 1205: an input device 1206 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1207 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209. The communication device 1209 may allow the electronic device 1200 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 12 The electronic device 1200 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0129] 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 includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1209, or installed from the storage device 1208, or installed from the ROM 1202. When the computer program is executed by the processing device 1201, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0130] 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.
[0131] The electronic device provided by the embodiment of the present disclosure and the method for generating media data provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0132] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method for generating media data provided in the above embodiment is implemented.
[0133] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0134] In some embodiments, the client and server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0135] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0136] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0137] Display the candidate material area of the interactive page;
[0138] In response to an interaction event with respect to the candidate material area, displaying the candidate material area and a parameter setting area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area;
[0139] In response to a parameter setting event in the parameter setting area, obtaining parameter content corresponding to the parameter setting item, and displaying the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data;
[0140] In response to a display event for the generation result area, the candidate material area is switched to a folded form, the parameter setting area and the generation result area are displayed, and the media data is displayed in the generation result area.
[0141] 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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the 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., through the Internet using an Internet service provider).
[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0144] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0145] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0146] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. 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 the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0147] 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 have been 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.
[0148] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for generating media data, characterized in that: include: Display the candidate material area of the interactive page; In response to an interaction event with respect to the candidate material area, displaying the candidate material area and a parameter setting area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area; In response to a parameter setting event in the parameter setting area, obtaining parameter content corresponding to the parameter setting item, and displaying the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data; In response to a display event for the generation result area, the candidate material area is switched to a folded form, the parameter setting area and the generation result area are displayed, and the media data is displayed in the generation result area.
2. The method according to claim 1, characterized in that The candidate material area for displaying the interactive page includes: Acquire the interactive page, and determine layout information of a candidate material area in the interactive page based on a preset display area, wherein the preset display area is used to represent a screen display range; The candidate material area is displayed in the preset display area according to the layout information, and the parameter setting area and the generated result area are located outside the preset display area.
3. The method according to claim 2, characterized in that The interaction event for the candidate material area includes: A click event for a first control in the candidate material area, or a click event for a second control corresponding to a target material in the candidate material area.
4. The method according to claim 3, characterized in that The displaying of the candidate material area and the parameter setting area in response to the interaction event with respect to the candidate material area includes: In response to an interaction event with respect to the candidate material area, reducing the candidate material area, and determining a first display area in the preset display area that does not overlap with the candidate material area; The parameter setting area is controlled to slide into the first display area, so as to display the reduced candidate material area and parameter setting area in the preset display area.
5. The method according to claim 4, characterized in that The step of obtaining parameter content corresponding to the parameter setting item in response to the parameter setting event in the parameter setting area includes: In response to a parameter setting event in the parameter setting area, prompt information, material information and target setting information corresponding to the parameter setting item are obtained, and the prompt information, material information and target setting information are displayed at the corresponding position of the parameter setting item, wherein the target setting information is used to adjust the prompt information and / or material information.
6. The method according to claim 1, wherein The display events for the generated result area include: A click event of a control is generated in the parameter setting area.
7. The method according to claim 1, characterized in that The interactive page includes a candidate material area, a parameter setting area, and a generated result area; in response to a display event for the generated result area, the candidate material area is switched to a folded form to display the parameter setting area and the generated result area, including: In response to a display event for the generated result area, determining a second display area in the preset display area according to the position of the candidate material area, and switching the candidate material area to a folded form; The parameter setting area is controlled to slide into the second display area, and the generation result area is controlled to slide into the preset display area, so as to display the parameter setting area and the generation result area in the preset display area.
8. The method according to claim 1, characterized in that After displaying the parameter setting area and the generated result area, it also includes: In response to a click event on a return control in the interactive page, determining a third display area in the preset display area according to a position of the generated result area, and switching the generated result area to a collapsed state; The parameter setting area is controlled to slide into the third display area, and the candidate material area is switched to an expanded form, so as to display the candidate material area and the parameter setting area in the preset display area.
9. The method according to claim 1, characterized in that After displaying the candidate material area and the parameter setting area, the method further includes: In response to a selection event for a target material in the candidate material area, switching the candidate material area to an information page of the target material to display the information page and parameter setting area of the target material, wherein the information page of the target material includes a second control; In response to a click event of a second control in the information page for the target material, parameter reference content corresponding to the target material is acquired, and the parameter reference content is displayed at a corresponding position of a parameter setting item in the parameter setting area.
10. A device for generating media data, characterized in that: include: The first display module is used to display the candidate material area of the interactive page; a second display module, configured to display the candidate material area and a parameter setting area in response to an interaction event with respect to the candidate material area, wherein the parameter setting area includes parameter setting items, wherein the interaction event is used to trigger a display event of the parameter setting area; a parameter acquisition module, configured to, in response to a parameter setting event in the parameter setting area, acquire parameter content corresponding to the parameter setting item and display the parameter content at a corresponding position of the parameter setting item, wherein the parameter content is used to generate media data; The third display module is configured to, in response to a display event for the generated result area, switch the candidate material area to a folded form, display the parameter setting area and the generated result area, and display the media data in the generated result area.
11. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating media data according to any one of claims 1 to 9.
12. A storage medium containing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the method for generating media data according to any one of claims 1 to 9.