Method, device and electronic equipment for subscription processing of multimedia objects

By automatically generating multimedia objects on the server side, the problem of time-consuming manual generation of daily sign-in images by users is solved, and efficient multimedia object creation is achieved.

CN113505275BActive Publication Date: 2025-11-28BEIJING ZHONGWANG EQXIU TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110875826.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2025-11-28
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

In existing technologies, users need to manually generate daily sign-in images, which is time-consuming and inefficient, and cannot efficiently generate multimedia objects.

Method used

Multimedia objects are automatically generated on the server side. By obtaining subscription event trigger instructions from the client, object templates and custom data are filtered, and a headless browser is used for fusion and rendering to generate and return the target multimedia object.

Benefits of technology

It saves users time in creating multimedia objects, reduces the production process, and improves production efficiency. Clients can obtain the required multimedia objects with just one click by subscribing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113505275B_ABST
    Figure CN113505275B_ABST
Patent Text Reader

Abstract

The application discloses a multimedia object subscription processing method, device and electronic equipment. The method comprises the following steps: obtaining a generation instruction for generating a multimedia object on a server, the generation instruction being triggered based on a client subscription event; screening an object template required for generating the multimedia object; obtaining custom data provided by the client for the subscription event; and performing assembly and rendering processing on the target template and the custom data of the client, so as to finally obtain a target multimedia object required by the client and feed back to the client. The client only needs to subscribe by one key, and the required multimedia object can be automatically generated by means of the subscription service of the server. Therefore, the multimedia object production time of the client user is saved, the production process is reduced, and the production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet, and in particular to a multimedia object subscription processing method and device and electronic equipment. BACKGROUND

[0002] Users such as self-media / sales personnel often need to make daily sign pictures every day to achieve the purpose of daily sign, and for the daily sign picture making needs of such users, the generation of daily sign pictures is generally realized based on daily sign picture generation software (referred to as "daily sign software"). In the daily sign picture generation mode based on daily sign software, the user needs to manually open the software, search for templates using the editor, and edit custom information on the searched templates to generate daily sign pictures.

[0003] This way requires a lot of manual operation, is time-consuming and inefficient, and brings inconvenience to the user's daily sign picture making. SUMMARY

[0004] Therefore, the present application provides a multimedia object subscription processing method and device and electronic equipment, which automatically generates multimedia objects of corresponding styles on the server (such as daily sign pictures of different styles), to save the user's multimedia object making time, reduce the making process, and improve the making efficiency.

[0005] To achieve the above technical purposes, the following technical solutions are specifically provided:

[0006] A multimedia object subscription processing method applied to a server;

[0007] The method comprises:

[0008] Obtaining a generation instruction indicating the generation of a multimedia object, the generation instruction being triggered based on a subscription event of a client subscribing to the multimedia object;

[0009] Filtering object templates required for generating the multimedia object to obtain a target template;

[0010] Obtaining custom data provided by the client for the subscribed multimedia object;

[0011] Fusing and rendering the target template and the custom data to obtain a target multimedia object, and feeding back the target multimedia object to the client.

[0012] Optionally, the filtering of the object templates required for generating the multimedia object to obtain the target template comprises:

[0013] Loading preset template retrieval conditions, filtering object templates matching the preset template retrieval conditions from a template library to obtain the target template.

[0014] Optionally, the fusing and rendering of the target template and the customized data comprises:

[0015] fusing and rendering the target template and the customized data by using a headless browser;

[0016] Optionally, the headless browser is a browser without user interface.

[0017] Optionally, the fusing and rendering of the target template and the customized data by using a headless browser comprises:

[0018] initializing the headless browser to create a blank browser page;

[0019] loading template data of the target template in the blank browser page according to address information of the target template; the template data comprises a template component set and labels corresponding to at least part of template components in the template component set;

[0020] matching the template components with the customized data according to the labels of the template components;

[0021] fusing each customized data item in the customized data into the template data of the browser page according to the matching result;

[0022] rendering the template data and the fused customized data on the browser page to obtain the target multimedia object.

[0023] Optionally, the fusing each customized data item in the customized data into the template data of the browser page according to the matching result comprises:

[0024] determining, for each customized data item, whether a reserved space size of a template component matched with the customized data item is smaller than a data size of the customized data item;

[0025] if not, filling content of the customized data item into the reserved space of the template component;

[0026] if yes, determining an idle area not smaller than the data size of the customized data item from the browser page according to layout information of the template data in the browser page, and filling content of the customized data item into the idle area.

[0027] Optionally, the method further comprises:

[0028] creating a page DOM tree according to the browser page fused with the template data and the customized data, and storing the page DOM tree for the client on the server.

[0029] The client has a reserved channel for calling the page DOM tree, and the client can perform secondary editing on the called page DOM tree through the reserved channel, and the server generates the multimedia object required by the client by performing secondary editing on the page DOM tree.

[0030] Optionally, the target multimedia object is a daily sign picture; and the generation instruction indicating the generation of the multimedia object comprises:

[0031] The server acquires the generation instruction indicating the generation of the daily sign picture according to a timing task at a predetermined time node every day.

[0032] Optionally, the feedback of the target multimedia object to the client comprises:

[0033] The server feeds back the generated daily sign picture to the client in the form of a public account or an applet.

[0034] A multimedia object subscription processing apparatus applied to a server;

[0035] The apparatus comprises:

[0036] A first acquisition module configured to acquire a generation instruction indicating the generation of a multimedia object, the generation instruction being triggered based on a subscription event of a client subscribing to the multimedia object;

[0037] A screening module configured to screen an object template required for generating the multimedia object to obtain a target template;

[0038] A second acquisition module configured to acquire custom data provided by the client for the subscribed multimedia object;

[0039] A fusion and rendering processing module configured to perform fusion and rendering processing on the target template and the custom data to obtain a target multimedia object;

[0040] A feedback module configured to feed back the target multimedia object to the client.

[0041] An electronic device comprising:

[0042] A memory configured to store at least a set of computer instructions;

[0043] A processor configured to realize the multimedia object subscription processing method according to any one of the preceding embodiments by executing the set of instructions stored in the memory.

[0044] Compared with the related art, the present application has the following beneficial effects:

[0045] The application discloses a subscription processing method, device and electronic equipment of a multimedia object. The method comprises the following steps: obtaining, on a server side, a generation instruction for generating a multimedia object triggered based on a client subscription event; screening an object template required for generating the multimedia object; obtaining custom data provided by the client for the subscription event; and assembling and rendering the target template and the custom data of the client, so as to finally obtain a target multimedia object required by the client and feed back to the client. The client only needs to subscribe to one key, and the required multimedia object can be automatically generated by means of the subscription service of the server side, so that the multimedia object production time of the client user is saved, the production process is reduced, and the production efficiency is improved. BRIEF DESCRIPTION OF DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0047] Figure 1 A flowchart of a multimedia object subscription processing method disclosed by the embodiments of the present application;

[0048] Figure 2 A processing flowchart based on headless browser fusion and rendering template data and custom data of the client disclosed by the embodiments of the present application;

[0049] Figure 3 An example of a generated daily schedule picture disclosed by the embodiments of the present application;

[0050] Figure 4 A flowchart of a daily schedule service provided by the server side to the client based on a subscription pool disclosed by the embodiments of the present application;

[0051] Figure 5 A subscription processing interaction schematic diagram between the client and the server side disclosed by the embodiments of the present application;

[0052] Figure 6 An example of the server side interacting with the client in the form of a public account disclosed by the embodiments of the present application;

[0053] Figure 7 Another flowchart of a multimedia object subscription processing method disclosed by the embodiments of the present application;

[0054] Figure 8 A structural schematic diagram of a multimedia object subscription processing device disclosed by the embodiments of the present application;

[0055] Figure 9 A structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0057] To solve the technical problems in the related art, the present application discloses a multimedia object subscription processing method and device and an electronic device. The method generates multimedia objects of corresponding styles automatically on a server side (for example, generates daily sign pictures of different styles every day), thereby saving the multimedia object production time of a user, reducing the production process, and improving the production efficiency.

[0058] Correspondingly, the multimedia object subscription processing method disclosed in the present application can be applied to a server side, for example, a background server or a service platform used to provide a multimedia object (for example, a daily sign picture) subscription service.

[0059] The processing flow of the multimedia object subscription processing method is shown in Figure 1 and specifically includes the following steps.

[0060] In step 101, a generation instruction indicating generation of a multimedia object is obtained. The generation instruction is triggered based on a subscription event of a client subscribing to the multimedia object.

[0061] The multimedia object can be, but is not limited to, a daily sign picture, a script, or the like. The embodiments of the present application will be described mainly by taking the daily sign picture as an example.

[0062] To achieve the technical purpose of saving the multimedia object production time of a user, the embodiments of the present application provide a service of automatically generating a required multimedia object on a server side for a client. The client can subscribe to the service of the server side according to a requirement.

[0063] Moreover, the server side triggers a generation instruction indicating generation of a multimedia object at a corresponding time node based on a subscription event of a client subscribing to the multimedia object. For example, taking the service of a daily sign picture of the server side subscribed to by a client as an example, the server side can trigger a generation instruction indicating generation of a multimedia object according to a timing task at a predetermined time node every day in response to the subscription event of the client. For example, a daily sign picture generation instruction is triggered at 24:00 every day. Correspondingly, the generation instruction indicating generation of a multimedia object can be obtained based on step 101.

[0064] Step 102, screen the object templates required for generating the multimedia object to obtain a target template.

[0065] The server maintains a template library including a series of object templates (e.g., a daily schedule template).

[0066] After obtaining the generation instruction indicating the generation of the multimedia object, a target template is further selected from the template library to provide a template basis for generating the target multimedia object required.

[0067] In an embodiment, optionally, a template can be randomly selected from the template library as the target template, or a preset template retrieval condition can also be automatically loaded to screen the object templates matching the preset template retrieval condition from the template library to obtain the target template.

[0068] The above template retrieval condition is configured in advance by the server, and when template screening is performed, the template retrieval condition is automatically loaded for template matching, without the participation of the client. The template retrieval condition used can be, but is not limited to, used to match a template of a certain time period or a certain holiday from the template library, or used to match a template having an associated relationship with the custom data of the client from the template library, such as a template matching a theme / style of a user of the client (e.g., a teacher, a research and development engineer, or a customer manager).

[0069] Step 103, obtain the custom data provided by the client for the subscribed multimedia object.

[0070] When subscribing to a multimedia object such as a daily schedule picture, the client user can fill in / import the corresponding custom data according to the needs, including but not limited to any one or more of a LOGO, a company name / product name, an address, a two-dimensional code, and a contact method, and submit the custom data to the server. The server receives and stores the custom data submitted by the client, and subsequently loads the stored custom data of the client when generating the multimedia object required by the client, to generate the target multimedia object required by the client by fusing the target template and the custom data of the client.

[0071] Optionally, after obtaining the custom data of the client, the server can further encode the custom data, such as base64 encoding.

[0072] Step 104, fuse and render the target template and the custom data to obtain the target multimedia object, and feed back the target multimedia object to the client.

[0073] In this embodiment, the headless browser is specifically used to fuse and render the target template and the custom data of the client.

[0074] The headless browser is a browser without a user interface.

[0075] Referring to Figure 2 The process of fusing and rendering template data and client custom data based on the headless browser specifically includes:

[0076] Step 201, initializing the headless browser to create a blank browser page;

[0077] The created blank browser page is used as a carrier of template data and client custom data of a target template.

[0078] Step 202, loading template data of a target template in the blank browser page according to address information of the target template; the template data of the target template includes a template component set composed of at least part of template components and labels corresponding to at least part of template components in the template component set.

[0079] The address information of the target template can be, but is not limited to, a URL (uniform resource locator) address of the target template. Further, taking a daily schedule picture as an example, the URL of the target template can specifically refer to a URL address with a daily schedule template ID, and accordingly, the template data of the required daily schedule template can be obtained by loading the URL in the created blank browser page.

[0080] The template data of the target template includes a series of template components (i.e., a template component set), which can be, but are not limited to, any type of components such as picture components, text components, two-dimensional code components, shape components, embedded box components, 3D effect components, etc. The series of components of a template can be regarded as its constituent elements. In order to facilitate the fusion of the target template and the custom data of the client, at least part of template components in the template are associated with corresponding labels in advance in this embodiment, for example, the embedded box component 1 in the template is associated with the label "LOGO", the embedded box component 2 is associated with the label "company name", the embedded box component 3 is associated with the label "address", the embedded box component 4 is associated with the label "contact information", the embedded box component 5 is associated with the label "contact information", etc. Accordingly, the template data of the target template also includes labels corresponding to at least part of template components in the template component set.

[0081] Step 203, matching the template components with the custom data according to the labels of the template components;

[0082] On the basis of loading the template data of the target template, further matching each custom data item in the client custom data with the template components according to the labels of the template components.

[0083] Step 204, according to the matching result, each custom data item in the custom data is merged into the template data of the browser page.

[0084] Specifically, based on the matching based on the label, for each custom data item in the client custom data, it can be first determined whether the reserved space size of the template component matched with the custom data item is less than the data size of the custom data item; if not (i.e., not less than), the content of the custom data item is filled into the reserved space of the template component; if yes (i.e., less than), according to the layout information of the template data in the browser page, an idle area not less than the data size of the custom data item is determined from the browser page, and the content of the custom data item is filled into the idle area.

[0085] That is, in the template, the corresponding embedding space is reserved for the custom data item of the client based on the embedding box component and its associated label, but in actual application, the data size of the custom data item in the custom data of different clients is not fixed, and the space reserved in the template for the corresponding custom data item based on the corresponding label may not be enough to accommodate the data content of the custom data item (e.g., address information is too long). For this situation, the embodiment of the application will further combine the actual layout of the template data (e.g., each template component) in the browser page, intelligently screen the idle area sufficient to accommodate the custom data item, and merge the data content of the custom data item into the screened idle area.

[0086] Step 205, rendering the template data and the browser page of the template data and the custom data to obtain the target multimedia object.

[0087] When loading each template component on the browser page and assembling and merging the client custom data into the template component, simultaneously rendering the loaded each template component and assembling and merging the client custom data into the page, optionally, in this process, the resource loading event of the template component can also be listened to to ensure that the loading of each component element included in the target template is not missed.

[0088] By rendering the loaded each template component and assembling and merging the client custom data into the page, the target multimedia object required by the client is finally obtained, and the generated target multimedia object can be further pushed to the client at a set time node.

[0089] Taking the daily sign picture as an example, the server can trigger the daily sign picture generation instruction at a set time node (e.g., 24 o'clock every day) based on the subscription event of the client to the daily sign service, and generate the daily sign picture through the above processing flow, and subsequently push it to the client at 7 o'clock the next day, see Figure 3 , inFigure 3 An example of the generated daily sign picture is provided.

[0090] For a series of subscription events of multiple clients, the server can create a subscription pool for maintaining the subscription information of the clients, and trigger the generation instruction of multimedia objects such as daily sign pictures at corresponding time nodes through a timing task according to the subscription information of different clients in the subscription pool, to generate different daily sign pictures for different clients, and then push the daily sign pictures generated for the clients to the clients according to the information of the client users, such as openid (the identification corresponding to the public number generated when the user follows the public number), userid (the identification generated for the user by WeChat), and the like, as shown in the following table. Figure 4

[0091] For the client, only one key subscription is needed, and different styles (for example, the style of the daily sign picture is updated by changing the daily sign template every day) of the daily sign picture pushed by the server can be obtained at 7 o'clock every day, without the need for the client user to perform a large number of manual operations such as template selection and information editing based on the template.

[0092] Referring to Figure 5 The subscription processing interaction diagram between the client and the server is provided, and the server can feed back the generated daily sign picture or the target multimedia object such as the text to the client in the form of a public number or an applet.

[0093] In this embodiment, if the target multimedia object pushed to the client user does not meet the user's satisfaction, for example, the style of the daily sign picture pushed to the user at 7 o'clock is not what the user expects, the user can initiate a replacement instruction to the server in real time through the public number or the applet, and the server generates a new target multimedia object different from the pushed result of the day in real time and feeds back to the client, as shown in the following table. Figure 6 As shown in the following table, the user can replace a new daily sign picture in real time by replying to the information "daily sign" of the public number.

[0094] According to the above scheme, it can be known that the multimedia object subscription processing method disclosed in the embodiment obtains the generation instruction of the multimedia object triggered based on the subscription event of the client at the server, filters the object template required for generating the multimedia object, obtains the custom data provided by the client for the subscription event, and performs assembly and rendering processing on the target template and the custom data of the client filtered, to finally obtain the target multimedia object required by the client and feed back to the client. The client only needs to subscribe one key, and the server can automatically generate the required multimedia object for the client, thereby saving the multimedia object production time of the client user, reducing the production process, and improving the production efficiency.

[0095] Optionally, in an embodiment, referring to​Figure 7 A flowchart of a subscription processing method of a multimedia object is provided, and the method can further include the following processing:

[0096] In step 105, a page DOM (Document Object Model) tree is created according to the browser page fused with the template data and the custom data, and the page DOM tree is stored on the server for the client.

[0097] The client has a reserved channel for calling the page DOM tree, and the client can perform secondary editing on the called page DOM tree through the reserved channel, and the server generates the multimedia object required by the client by performing secondary editing on the page DOM tree.

[0098] Specifically, in addition to automatically generating and pushing the target multimedia object (such as a daily schedule picture in jpg or png format) for the client, the server also generates a JSON (JavaScript Object Notation) format data file, that is, a page DOM tree, for the client and stores it. If the target multimedia object (such as a daily schedule picture) automatically generated and pushed by the server for the client does not meet the user's satisfaction, the client user can call the page DOM tree through the reserved channel of the page DOM tree and perform secondary editing on it, and the server further generates a multimedia object (such as a jpg daily schedule picture) that can satisfy the client user based on the editing information of the client.

[0099] The embodiment further generates a page DOM tree for the client on the server, thereby realizing the secondary editing function of providing the client with a multimedia object, and further meeting the generation requirement of the personalized multimedia object of the client user.

[0100] Corresponding to the above method, the application embodiment also discloses a subscription processing device of a multimedia object, which is applied to a server, as shown in the figure, and the device comprises: Figure 8 The device comprises:

[0101] The first acquisition module 801 is configured to acquire a generation instruction indicating the generation of a multimedia object, and the generation instruction is triggered based on a subscription event of the client subscribing to the multimedia object.

[0102] The screening module 802 is configured to screen an object template required for generating the multimedia object to obtain a target template.

[0103] The second acquisition module 803 is configured to acquire custom data provided by the client for the subscribed multimedia object.

[0104] The fusion and rendering processing module 804 is configured to perform fusion and rendering processing on the target template and the custom data to obtain a target multimedia object.

[0105] The feedback module 805 is configured to feed back the target multimedia object to the client.

[0106] In an optional implementation of the embodiments of the present application, the screening module 802 is specifically configured to:

[0107] load the preset template retrieval condition, screen the object template matching the preset template retrieval condition from the template library, and obtain the target template.

[0108] In an optional implementation of the embodiments of the present application, the fusion and rendering obtaining module 804 is specifically configured to: utilize a headless browser to perform fusion and rendering processing on the target template and the custom data.

[0109] The headless browser is a browser without a user interface.

[0110] In an optional implementation of the embodiments of the present application, when the fusion and rendering obtaining module 804 utilizes the headless browser to perform fusion and rendering processing on the target template and the custom data, the fusion and rendering obtaining module 804 is configured to:

[0111] initialize the headless browser, and create a blank browser page;

[0112] load the template data of the target template in the blank browser page according to the address information of the target template; the template data includes a template component set and a label corresponding to at least part of the template components in the template component set;

[0113] match the template components with the custom data according to the labels of the template components;

[0114] fuse each custom data item in the custom data into the template data of the browser page according to the matching result;

[0115] render the template data and the fused custom data on the browser page to obtain the target multimedia object.

[0116] In an optional implementation of the embodiments of the present application, when the fusion and rendering obtaining module 804 fuses each custom data item in the custom data into the template data of the browser page according to the matching result, the fusion and rendering obtaining module 804 is configured to:

[0117] determine whether the reserved space size of the template component matched with the custom data item is smaller than the data size of the custom data item for each custom data item;

[0118] if not, fill the content of the custom data item into the reserved space of the template component;

[0119] If yes, according to the layout information of the template data in the browser page, a free area not less than the data size of the custom data item is determined from the browser page, and the content of the custom data item is filled into the free area.

[0120] In an optional embodiment of the present application, the device further comprises:

[0121] The creating module is configured to create a page DOM tree according to the browser page in which the template data and the custom data are fused, and store the page DOM tree for the client on the server side.

[0122] The client has a reserved channel for calling the page DOM tree, and the client can perform secondary editing on the called page DOM tree through the reserved channel, and the server side generates the multimedia object required by the client by performing secondary editing on the page DOM tree.

[0123] In an optional embodiment of the present application, the target multimedia object is a daily sign picture; the first obtaining module 801 is specifically configured to: according to a timing task, obtain a generation instruction indicating generation of a daily sign picture at a predetermined time node of each day.

[0124] In an optional embodiment of the present application, the feedback module 805 is specifically configured to:

[0125] The generated daily sign picture is fed back to the client in the form of a public account or an applet.

[0126] For the multimedia object subscription processing device disclosed in the present application, since it corresponds to the multimedia object subscription processing method disclosed in the method embodiment, the description is relatively simple, and the relevant similarities can be referred to the description of the corresponding method embodiment, which will not be described in detail here.

[0127] In addition, the present application also discloses an electronic device, which can be but is not limited to a server or the like for providing multimedia object subscription services such as daily sign pictures.

[0128] As Figure 9 The structure diagram of the electronic device is shown, which at least includes:

[0129] The memory 901 is used to store a computer instruction set.

[0130] The computer instruction set can be realized in the form of a computer program.

[0131] The memory 901 can include a high-speed random access memory, and can also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.

[0132] The processor 902 is configured to implement the multimedia object subscription processing method of any of the above method embodiments by executing a set of instructions stored on a memory.

[0133] The processor 902 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, etc.

[0134] In addition, the electronic device can also include a communication interface, a communication bus, and the like. The memory, the processor, and the communication interface complete mutual communication through the communication bus.

[0135] The communication interface is configured to enable communication between the electronic device and other devices. The communication bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0136] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be mutually referred to. For the device disclosed by the embodiments, since it corresponds to the method disclosed by the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part.

[0137] The skilled person can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in the above description in general terms. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0138] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and

[0139] The above description of disclosed embodiments is intended to be illustrative and not restrictive. Many embodiments of the application will be apparent to those of skill in the art upon reviewing the above description. The scope of the application should, therefore, be determined not with reference to the above description, but instead should be given with reference to the appended claims, along with their full scope of equivalents.

Claims

1. A method for subscribing to multimedia objects, characterized in that, Applied to the server side; The method includes: Obtain a generation instruction to generate a multimedia object, the generation instruction being triggered based on a client-subscribed multimedia object subscription event; Filter the object templates required to generate multimedia objects to obtain the target template; Obtain custom data provided by the client for the subscribed multimedia object; the custom data is filled in or imported by the client user corresponding to the client according to their needs; the custom data includes at least one of the following: logo image, company name, product name, address, QR code, and contact information; The target template and the custom data are fused and rendered to obtain a target multimedia object, which is then fed back to the client. The process of fusing and rendering the target template and the custom data includes: using a headless browser to fuse and render the target template and the custom data; wherein the headless browser is a browser without a user interface; The process of using a headless browser to fuse and render the target template and the custom data includes: initializing the headless browser and creating a blank browser page; loading the template data of the target template in the blank browser page according to the address information of the target template; the template data includes a set of template components and tags corresponding to at least some of the template components in the set; matching the template components with the custom data according to the tags of the template components; merging each custom data item in the custom data into the template data of the browser page according to the matching result; and rendering the template data and the merged custom data on the browser page to obtain the target multimedia object. The step of merging each custom data item in the custom data into the template data of the browser page according to the matching result includes: for each custom data item, determining whether the reserved space size of the template component matching the custom data item is less than the data size of the custom data item; if not, filling the content of the custom data item into the reserved space of the template component; if so, determining a free area in the browser page that is not less than the data size of the custom data item according to the layout information of the template data in the browser page, and filling the content of the custom data item into the free area; Based on the browser page that integrates template data and the custom data, a page DOM tree is created, and the page DOM tree is stored on the server for the client. The client has a reserved channel for calling the page DOM tree. The client can perform secondary editing of the called page DOM tree through the reserved channel, and the server can generate the multimedia object required by the client by secondary editing of the page DOM tree.

2. The method according to claim 1, characterized in that, The process of filtering to generate the object template required for multimedia objects, resulting in the target template, includes: Load the preset template search criteria, filter the object templates that match the preset template search criteria from the template library, and obtain the target template.

3. The method according to claim 1, characterized in that, The target multimedia object is a daily sign-in image; the step of obtaining the generation instruction for generating the multimedia object includes: The server receives instructions to generate a daily sign-in image at predetermined times each day, based on scheduled tasks.

4. The method according to claim 3, characterized in that, The step of feeding back the target multimedia object to the client includes: The server sends the generated daily sign-in image back to the client via a public WeChat account or mini-program.

5. A multimedia object subscription processing device, characterized in that, Applied to the server side; The device includes: The first acquisition module is used to acquire a generation instruction that indicates the generation of a multimedia object, the generation instruction being triggered based on a subscription event of the client subscribing to the multimedia object. The filtering module is used to filter the object templates required to generate multimedia objects, thus obtaining the target template. The second acquisition module is used to acquire custom data provided by the client for the subscribed multimedia object; the custom data is filled in or imported by the client user corresponding to the client according to their needs; the custom data includes at least one of the following: logo image, company name, product name, address, QR code, and contact information; The fusion and rendering processing module is used to fuse and render the target template and the custom data to obtain the target multimedia object; The fusion and rendering acquisition module is specifically used to: use a headless browser to perform fusion and rendering processing on the target template and the custom data; The headless browser is a browser without a user interface; When the fusion and rendering acquisition module uses a headless browser to fuse and render the target template and the custom data, it is used to: initialize the headless browser and create a blank browser page; load the template data of the target template according to the address information of the target template in the blank browser page; the template data includes a set of template components and tags corresponding to at least some of the template components in the set of template components; match the template components with the custom data according to the tags of the template components; fuse each custom data item in the custom data into the template data of the browser page according to the matching result; and render the template data and the fused custom data on the browser page to obtain the target multimedia object. The step of merging each custom data item in the custom data into the template data of the browser page according to the matching result includes: for each custom data item, determining whether the reserved space size of the template component matching the custom data item is less than the data size of the custom data item; if not, filling the content of the custom data item into the reserved space of the template component; if so, determining a free area in the browser page that is not less than the data size of the custom data item according to the layout information of the template data in the browser page, and filling the content of the custom data item into the free area; The feedback module is used to provide feedback of the target multimedia object to the client. A creation module is used to create a page DOM tree based on a browser page that integrates template data and the custom data, and to store the page DOM tree on the server for the client. The client has a reserved channel for calling the page DOM tree. The client can perform secondary editing of the called page DOM tree through the reserved channel, and the server can generate the multimedia object required by the client by secondary editing of the page DOM tree.

6. An electronic device, characterized in that, include: Memory, used to store at least one set of computer instructions; A processor configured to implement the subscription processing method for a multimedia object as described in any one of claims 1-4 by executing the instruction set stored in memory.

Citation Information

Patent Citations

  • A template sleeve printing service design scheme suitable for various architectures

    CN109739448A

  • Page sharing picture generation method and device, and page sharing method and device

    CN112052420A

  • Message storage method and device, message generation method and device, electronic equipment and computer readable medium

    CN112818654A