A method and system for pushing three-level flow-saving dynamic messages
By adopting a three-level flow-saving dynamic message push method in the APP message push system, using dynamic message caching and image feature code identification technology to generate audio animations and obtain videos when necessary, the server pressure and user pressure caused by traditional video message push are solved. Traffic overhead problem is solved, and more efficient message push is achieved.
Patent Information
- Application Number
- CN202411117720.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-15
AI Technical Summary
When the traditional APP message push system pushes video messages, it causes increased server pressure and user traffic overhead.
Adopting a three-level flow-saving dynamic message push method, the message management platform encapsulates the message image and text page links, video links and picture sequence information lists. The target client uses dynamic message caching technology and picture feature code identification to generate audio animations and when necessary Get videos from video servers to reduce traffic and server resource overhead.
It effectively reduces the traffic overhead of the target client and the resource overhead of the server, reduces the instant access pressure on the server, and solves the problem of traffic and server pressure when pushing video messages.
Smart Images

Figure CN118646795B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of APP information push technology, and in particular to a three-level traffic-saving dynamic message push method and system. Background Art
[0002] In the traditional APP (APPlication, mobile software) message push system, the operator sets the title, content, jump link, etc. of the activity message on the message management background interface, and then pushes the activity message to the user's mobile phone through a third-party message push service. When the user clicks the message notification on the mobile phone, the jump address of the message will be opened, thereby displaying the graphic page of the promotion activity.
[0003] Due to the rich and diverse participation processes of activities, in order to better promote activities to users, it is often necessary to record the interactive process of participating in the activity as an audio video, and then push message notifications to users' mobile phones, and embed the playing video in the message jump page. The video shows the dynamic switching effect of the participation process of the activity page, and combined with the voice explanation in the video, compared with the static graphic promotion page, the message notification with video has a better activity promotion effect.
[0004] For traditional APP message push systems, dynamic messages mainly rely on embedding videos in the jump page of message notifications. The existing methods have the following technical disadvantages when pushing video messages:
[0005] 1. Videos take up more server bandwidth than images and texts, and also consume more mobile data of users;
[0006] 2. Message notifications are generally pushed uniformly and completed in a short period of time, causing many users to watch the event promotion video in succession in a tight period of time, causing the instantaneous pressure on the server to increase sharply. Summary of the invention
[0007] In order to solve the above problems in the prior art, the present invention provides a three-level traffic-saving dynamic message push method and system, which can solve the problem that the existing message push method brings great pressure to the server and traffic overhead to the user when pushing video messages.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is:
[0009] In a first aspect, the present invention provides a method for pushing a three-level flow-saving dynamic message, comprising:
[0010] Step S1, the message management platform encapsulates the dynamic message to be pushed into an active message package, and pushes the active message package to the target client, the active message package includes the message title, message content, message graphic page link, message video link and picture sequence information list, the picture sequence information list includes the step number, text description, picture identifier and picture link required to synthesize the target video;
[0011] Step S2, the target client receives the active message package, displays the message title and message content, and when receiving the user's open message instruction, automatically jumps to the active graphic page according to the message graphic page link, and caches the picture file on the active graphic page, and when receiving the user's start playing instruction, extracts the picture file in the cache as the target picture, and determines whether the target picture is complete according to the picture identifier. If so, execute step S3, otherwise, download the uncached picture file according to the picture link, and use the downloaded picture file as the target picture, and continue to determine whether the new target picture is complete according to the picture identifier. If so, execute step S3, otherwise execute step S4;
[0012] Step S3: the target client generates an animation with sound according to the text description and the target image for playback;
[0013] Step S4: The target client opens and plays the target video according to the message video link of the activity message package.
[0014] The beneficial effect of the present invention is that the message management platform sequentially encapsulates the message text page link, the message video link and the picture sequence information list when encapsulating. When the target client receives the active message package, it first caches the target picture from the web page, and then obtains the target picture according to the message text page link by using the three-level dynamic message caching technology. Both generate audio animations according to the picture sequence information list and the target picture for playback, and finally obtains the target video from the video server when the target picture cannot be obtained. As a result, not only the traffic overhead of the target client is reduced, but also the resource overhead and instantaneous access pressure of the back-end server are effectively reduced, thereby solving the problem that the existing message push method brings greater pressure to the server and traffic overhead to the user when pushing video messages.
[0015] Optionally, the picture identifier is a picture feature string, and the process of generating the picture feature string includes the following steps:
[0016] Combining the Base64 encoding rule with the SM3 national encryption algorithm, the binary data content of the image file is converted into 64-bit hexadecimal data, which is then used as the image feature string;
[0017] In the step S2, judging whether the target image is complete according to the image identifier, if so, executing step S3, otherwise downloading the uncached image file according to the image link, taking the downloaded image file as the target image, and continuing to judge whether the new target image is complete according to the image identifier, if so, executing step S3 includes the following steps:
[0018] Combining the Base64 encoding rule with the SM3 national secret algorithm, the target image is converted into a first feature string, and all first feature strings are compared with all picture feature strings. If a consistent first feature string and picture feature string are found, the target image corresponding to the first feature string is bound to the step number where the picture feature string is located, and it is determined whether all step numbers are bound to the target image. If so, step S3 is executed;
[0019] Otherwise, download the uncached image file for the image link in the step sequence number that is not bound to the target image, use the downloaded image file as the target image, and determine whether all uncached image files are downloaded to the corresponding image file. If so, complete the acquisition of all target images, and then execute step S3.
[0020] According to the above description, when extracting the target image from the web page cache, the Base64 encoding rules and the SM3 national encryption algorithm are combined to convert the binary data content of the image into 64-bit hexadecimal data as a feature string, and the cached image with the same feature string is checked as the target image, realizing the function of safely and efficiently searching for the same image.
[0021] Optionally, in step S1, the message management platform encapsulates the dynamic message to be pushed into an activity message package including:
[0022] Obtain the width and height of the picture file corresponding to each picture link in the picture sequence information list, use the obtained maximum width and maximum height as the width field and height field in the sound animation to be synthesized, and also add the width field and the height field to the activity message packet;
[0023] The width and height of the sound animation generated in step S3 are the width field and the height field.
[0024] According to the above description, by setting the maximum width and maximum height of all image files as the width field and height field in the audio animation to be synthesized in advance, it is ensured that the generated audio animation can ensure the complete display of all image files.
[0025] Optionally, step S3 includes the following steps:
[0026] The target client arranges all the obtained target images into a group of image sequences according to the step number set in the activity message package, uses the width field and height field in the activity message package as the width and height dimensions of the generated audio animation, uses the first target image in the image sequence as the initial screen, then takes out the description text in the first step number in the activity message package, and converts the description text into voice reading and playback through the TTS engine service of the mobile phone. Within the preset time after the voice reading ends, switches to the next target image through the screen switching process, and obtains the description text in the next step number in turn, performs text-to-speech output, and so on, until all the target images in the image sequence are displayed, and the description text in each step number in the activity message package is read aloud, that is, the generation and playback of the audio animation is completed.
[0027] According to the above description, the image sequence of the dynamic message is encapsulated in the message notification and pushed to the target client. The target client automatically synthesizes the audio animation according to the step instructions in the image sequence, combining animation technology and TTS engine, thereby reducing the processor overhead and storage resource overhead caused by the video encoding and decoding operations caused by generating audio video.
[0028] Optionally, animation effects are used for transition during the screen switching process.
[0029] Optionally, the step S4 further includes the following steps:
[0030] The target client receives the user's exit playback instruction and exits the video playback interface of the dynamic message;
[0031] The target client receives the user's replay instruction and executes steps S3 and S4 according to whether the target image in step S2 is complete.
[0032] According to the above description, it can be seen that not only the dynamic message playback of the promotion activity is realized, but also the operation goals of saving bandwidth for mobile phones and reducing the burden on the server are achieved.
[0033] Optionally, before step S1, the step further includes:
[0034] Step S0, the message management platform receives the operation of adding a dynamic message by the operator, and sends the operation to the reviewer for review. After receiving the reviewer's approval and the push instruction from the operator, step S1 is executed.
[0035] Optionally, in step S1, the message management platform pushes the activity message package to the target client, including the following steps: the message management platform pushes the activity message package to the target client by calling a third-party message push interface.
[0036] Optionally, in step S1, the message management platform encapsulates the dynamic message to be pushed into an activity message package, including the following steps:
[0037] The fields of the message title, message content, message graphic page link, and message video link of the dynamic message to be pushed are directly encapsulated using the corresponding fields of the database record.
[0038] In a second aspect, the present invention provides a three-level flow-saving dynamic message push system, comprising:
[0039] A message management platform, used to encapsulate the dynamic message to be pushed into an active message package, and push the active message package to the target client, wherein the active message package includes a message title, message content, a message graphic page link, a message video link, and a picture sequence information list, wherein the picture sequence information list includes a step number, a text description, a picture identifier, and a picture link required to synthesize a target video;
[0040] The target client is used to receive the active message package, display the message title and message content, and when receiving the user's open message instruction, automatically jump to the active graphic page according to the message graphic page link, and cache the image file on the active graphic page; when receiving the user's start play instruction, extract the image file in the cache as the target image, and judge whether the target image is complete according to the image identifier. If so, generate a sound animation according to the text description and the target image for playback; otherwise, download the uncached image file according to the image link, use the downloaded image file as the target image, and continue to judge whether the new target image is complete according to the image identifier. If so, generate a sound animation according to the text description and the target image for playback; otherwise, open and play the target video according to the message video link of the active message package.
[0041] Among them, the technical effect corresponding to the three-level flow-saving dynamic message push system provided by the second aspect refers to the relevant description of the three-level flow-saving dynamic message push method provided by the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of the main process of a method for pushing a three-level flow-saving dynamic message according to an embodiment of the present invention;
[0043] Figure 2A schematic diagram of a process after a target client receives an activity message packet according to an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the framework of a three-level flow-saving dynamic message push system according to an embodiment of the present invention.
[0045] Description of reference numerals:
[0046] 1. A three-level dynamic message push system for saving traffic;
[0047] 2. Message management platform;
[0048] 3. Target client. DETAILED DESCRIPTION
[0049] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0050] Embodiment 1
[0051] This embodiment is applicable to application scenarios where videos are included in push messages. This is especially true for application scenarios where there are many users to push messages or the videos they carry are relatively large. In the prior art, embedding the video being played in the message jump page not only consumes the user's mobile phone traffic, but also puts a lot of pressure on the server, such as excessive instantaneous pressure and occupying server bandwidth. In this embodiment, three-level dynamic message caching technology, image feature code identification technology, and animation synthesis technology are used to reduce the user's traffic overhead and the server's resource overhead. See the following description for details.
[0052] Please refer to Figure 1 and Figure 2 , a three-level flow-saving dynamic message push method, comprising:
[0053] Step S0, the message management platform receives the operation of adding a dynamic message by the operator, and sends the operation to the reviewer for review. After receiving the reviewer's approval and the push instruction from the operator, step S1 is executed.
[0054] In this embodiment, when a dynamic message needs to be pushed, the operator opens the interface of the message management platform, fills in the message title, message content, the link of the picture page to which the message jumps, the video link to which the message jumps, and fills in the picture sequence information list of the dynamic message when adding a dynamic message. Among them, each record in the picture sequence information list contains the following fields: step number, text description of the step, picture link of the step, and picture ID of the corresponding picture. The picture sequence information list is used to set the picture and text information required for the APP on the target client to synthesize the sound animation.
[0055] Among them, the graphic page to which the message jumps is used to demonstrate to users how to participate in the event. The explanatory pictures referenced on this page will be used as explanatory pictures of the step numbers in the picture sequence information list, that is, they correspond to the pictures in the picture link.
[0056] After that, the operator clicks the Save button, and the management platform saves the dynamic message record to the database, and the review status of the record is "pending review". The reviewer reviews the dynamic message record "pending review". After the review is passed, the operator opens the dynamic message page that has been reviewed and clicks the Push button, and the message management platform starts to execute step S1.
[0057] Step S1, the message management platform encapsulates the dynamic message to be pushed into an activity message package, and pushes the activity message package to the target client, the activity message package includes the message title, message content, message graphic page link, message video link and picture sequence information list, the picture sequence information list includes the step number, text description, picture identifier and picture link required to synthesize the target video;
[0058] In this embodiment, in step S1, the message management platform pushes the activity message package to the target client, including the following steps:
[0059] S11. The message management platform directly encapsulates the fields of the message title, message content, message graphic page link, and message video link of the dynamic message to be pushed using the corresponding fields of the database record.
[0060] That is, the fields of the message title, message content, message graphic page link, and message video link are the title field, content field, web_url field, and video_url field respectively.
[0061] S12, obtaining the width and height of the picture file corresponding to each picture link in the picture sequence information list, using the obtained maximum width and maximum height as the width field and height field in the sound animation to be synthesized, and also adding the width field and height field to the activity message packet;
[0062] In this embodiment, by limiting the width and height of the animation with sound, it is ensured that the generated animation with sound can ensure the complete display of all picture files.
[0063] S13, combining the Base64 encoding rule and the SM3 national encryption algorithm, converting the binary data content of the image file into 64-bit hexadecimal data, and then using it as the image feature string;
[0064] Among them, because the image file name in the web page cache may change, for each image file under the image link in the image sequence information list, their respective feature strings must be calculated separately, and the feature strings are used as unique identifiers to identify different images. The calculation process of the image feature string is described as follows:
[0065] First, use the encoding rules of the Base64 algorithm to convert the binary data content of the image file into a string of hexadecimal data; then use the SM3 national encryption algorithm to encrypt and summarize the aforementioned hexadecimal data string, and finally output a 64-bit string of hexadecimal data.
[0066] Among them, the Base64 algorithm is one of the most common encoding methods for transmitting 8-bit bytecodes on the Internet. It is a method of representing binary data based on 64 printable characters. Among them, the SM3 algorithm is a cryptographic hash function standard adopted by the government of the People's Republic of China, which was issued by the State Cryptography Administration on December 17, 2010. The relevant standard is "GM / T 0004-2012 SM3 Cryptographic Hash Algorithm", which has a high anti-collision ability, and the probability of different information generating the same summary is extremely small. In contrast, the encrypted string generated by the MD5 algorithm is only a 32-bit string of hexadecimal data, and its anti-collision ability is far inferior to that of the SM3 algorithm. Therefore, the 64-bit string encrypted by the SM3 algorithm is suitable as the unique feature string of the picture file, namely the pic_feather field, which realizes the function of safely and efficiently searching for the same picture.
[0067] An example of an activity message package generated by the above encapsulation rules is as follows:
[0068] {
[0069] "title": "Message title",
[0070] "content": "Message content",
[0071] "web_url": "Web link",
[0072] "video_url": "Video link",
[0073] "width": "360",
[0074] "height": "720",
[0075] "steps": [
[0076] {
[0077] "seq": "Step number 1",
[0078] "text": "Text description 1",
[0079] "pic_url": "Picture link 1",
[0080] "pic_feather": "540FA67BAFBC3F6419731B80156D7115E449D910D15C33F08B19346B7DBBCAD5"
[0081] },
[0082] {
[0083] "seq": "Step number 2",
[0084] "text": "Text description 2",
[0085] "pic_url": "Picture link 2",
[0086] "pic_feather": "3DD4C738B7894DD6342618C6D81FE445B5EC658B920518646D62EAC893DA8D97"
[0087] },
[0088] {
[0089] "seq": "Step number 3",
[0090] "text": "Text description 3",
[0091] "pic_url": "Picture link 3",
[0092] "pic_feather": "25BC4026C464A729E3582EE6B1CBD8A5467B4B11F3A9ABB117061EA13483A655"
[0093] } ]
[0095] }
[0096] S14. The message management platform pushes the activity message package to the target client by calling the third-party message push interface.
[0097] That is, after the activity message package to be pushed is generated, the message management platform calls the third-party message push interface to push the activity message package to the mobile phone APP of the target group.
[0098] Step S2, the target client receives the active message package, displays the message title and message content, and when receiving the user's open message instruction, automatically jumps to the active graphic page according to the message graphic page link, and caches the image file on the active graphic page. When receiving the user's start playing instruction, extract the image file in the cache as the target image, and judge whether the target image is complete according to the image identifier. If so, execute step S3, otherwise download the uncached image file according to the image link, use the downloaded image file as the target image, and continue to judge whether the new target image is complete according to the image identifier. If so, execute step S3, otherwise execute step S4;
[0099] Among them, after the target client, i.e. the target mobile phone, receives the message notification, the message title and message content will be displayed in the notification bar. When the user clicks the message notification, the APP on the target mobile phone automatically opens the link of the graphic page to which the message is to jump, i.e. the web_url field in the active message package. At this time, the image file on the active graphic page will be saved to the web cache of the APP.
[0100] Since the activity participation process displayed on the graphic page may be lengthy, some users are accustomed to watching the detailed page switching steps through dynamic methods such as videos or animations, so they click the "Start Playing" button. The APP starts parsing the received activity message package and enters the subsequent dynamic message synthesis process. Figure 2 It can be seen that:
[0101] Step S21: when receiving the user's start play instruction, extract the image file in the cache as the target image, combine the Base64 encoding rule and the SM3 national encryption algorithm, convert the target image into a first feature string, compare all the first feature strings and all the image feature strings, if the same first feature string and image feature string are found, bind the target image corresponding to the first feature string to the step number where the image feature string is located, and determine whether all the step numbers are bound with the target image. If so, execute step S3;
[0102] like Figure 2As shown, if all the step numbers are bound to target images, it means that the web page has cached the target images required for the audio animation, and step S3 is directly performed to generate and play the audio animation.
[0103] Step S22, otherwise, download the uncached image file for the image link in the step sequence number that is not bound to the target image, and use the downloaded image file as the target image, and determine whether all uncached image files are downloaded to the corresponding image file. If so, complete the acquisition of all target images, and then execute step S3.
[0104] like Figure 2 As shown, when all the required target images cannot be extracted from the cache in step S21, the corresponding target images are downloaded from the network according to the image link field, i.e., the pic_url field, set in the activity message packet. If all the target images that cannot be found in the cache can be obtained by downloading, the process proceeds to step S3; if any target image cannot be found in the cache and cannot be obtained by downloading, the process proceeds to step S4.
[0105] Step S3: The target client generates an animation with sound according to the text description and the target image for playback;
[0106] In this embodiment, step S3 includes the following steps:
[0107] The target client arranges all the obtained target images into a group of image sequences according to the step numbers set in the activity message package, uses the width field and height field in the activity message package as the width and height dimensions of the generated audio animation, uses the first target image in the image sequence as the initial screen, then takes out the description text in the first step number in the activity message package, and converts the description text into voice reading and playback through the TTS engine service of the mobile phone. Within the preset time after the voice reading ends, switches to the next target image through the screen switching process, and obtains the description text in the next step number in turn, performs text-to-speech output, and so on, until all the target images in the image sequence are displayed, and the description text in each step number in the activity message package is also read, that is, the generation and playback of the audio animation is completed.
[0108] In this embodiment, animation effects are used for transition during the screen switching process, such as translation, page turning, fade-in and fade-out, etc. The preset time is 1 second, 2 seconds, 3 seconds, etc.
[0109] Therefore, this embodiment combines animation technology with the TTS engine to automatically synthesize audio animation, thereby reducing processor overhead and storage resource overhead caused by video encoding and decoding operations caused by generating audio video.
[0110] Step S4: The target client opens and plays the target video according to the message video link in the activity message package.
[0111] That is, when it is impossible to generate an audio animation based on the image file, the video link, i.e., the video_url field, is taken out from the event message package, and then the video playback interface is opened to pull the stream from the back-end video server and play the screen and dubbing of the promotion video. At this point, some users understand the content of the event message through the event graphic page, and the remaining users understand the content of the event message through the generation of audio animation. Only a small number of users need to open the target video stored in the video server, thus reducing the server bandwidth usage and the instantaneous pressure on the video server. In addition, most users do not need to download the target video, thereby reducing the user's mobile data consumption.
[0112] Step S5: The target client receives the user's exit playback instruction and exits the video playback interface of the dynamic message;
[0113] Step S6: The target client receives the user's replay instruction and executes steps S3 and S4 according to whether the target image in step S2 is complete.
[0114] As a result, not only the dynamic message playback of the promotion activity is realized, but also the operational goals of saving bandwidth for mobile phones and reducing the burden on the server are achieved.
[0115] In a specific example, take a push video with a resolution of 720x1280 and a duration of 1 minute as an example. The video uses a frame rate of 15fps, then the size of the video part encoded by H.264 is about 20MB, and the size of the audio part encoded by AAC is about 1MB, which occupies a total of about 21MB of space. If the technical solution of this embodiment is adopted, if the push content is converted into pictures and texts, a 1-minute video contains about 8 moving pictures, each picture has a resolution of 720x1280, and the size is about 100KB when compressed in JPEG format, then the picture part occupies about 800KB of space. In the text part, there are 100-200 words to explain, and each Chinese word occupies 3 bytes when UTF8 is used for encoding, so the space occupied by the explanation of the text is about 500B; the feature string of each picture is a 64-bit string occupying 64 bytes, and the feature strings of 8 pictures occupy about 500B of space; the space occupied by the explanation of the text and the picture feature string is about 1KB in total. The above text and picture content does not exceed 1MB in size. Animation with sound is synthesized and played at runtime, occupying only the mobile phone RAM, not the mobile phone ROM; while explanation video, in addition to occupying the mobile phone ROM, the decoded audio and video data still occupies the mobile phone RAM when playing, which is no less than the mobile phone RAM occupied by the synthesis and playback of animation with sound. In summary, if push video is used, one video will consume about 21MB of traffic; after switching to text and picture synthesis with sound animation, only about 1MB of traffic is consumed, and the traffic overhead is reduced by about 95%.
[0116] In terms of reducing the backend server load, during the peak push period, the explanation video was pulled about 100 times per minute, and each explanation video was about 21MB in size, which occupied a total bandwidth flow of about 2GB; based on the average 4G network speed of 3M / s, it takes about 7 seconds for the client to pull a video, so the server increases the number of instantaneous connections during the peak push period by 100*7 / 60, which is about 12 per second. After adopting the three-level dynamic message caching technology, 95% of the push messages can be displayed on the client as pictures and texts or synthesized into audio animations based on pictures and texts. Only about 5% of the push messages need to be pulled from the server, thus reducing the bandwidth flow, instantaneous number of connections, and instantaneous CPU load pressure by about 95%.
[0117] In summary, this embodiment reduces the traffic overhead of the target client and alleviates the resource overhead and instantaneous access pressure of the back-end server by using the three-level dynamic message caching technology; realizes the function of safely and efficiently searching for the same image through the image feature code identification technology, and ensures the accuracy of the audio animation; reduces the processor overhead and storage resource overhead caused by the video encoding and decoding operations caused by the generation of audio video through animation synthesis technology, thereby solving the problem that the existing message push method brings great pressure to the server when pushing video messages and brings traffic overhead to the user, and will not bring other pressure to the user and the target client due to the three-level dynamic message caching technology, which has great practical value.
[0118] Embodiment 2
[0119] Please refer to Figure 3 A three-level provincial flow dynamic message push system 1 includes a message management platform 2 and a target client 3, wherein the message management platform 2 implements step S1 in embodiment 1, and the target client 3 implements steps S2 to S6 in embodiment 1.
[0120] Since the system / device described in the above embodiments of the present invention is a system / device used to implement the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and deformation of the system / device based on the method described in the above embodiments of the present invention, and thus will not be described in detail here. All systems / devices used in the method of the above embodiments of the present invention belong to the scope of protection of the present invention.
[0121] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, apparatuses or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.
[0123] It should be noted that in the claims, any reference numerals placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the component name.
[0124] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0125] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0126] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include these modifications and variations.
Claims
1. A method for pushing three-level flow-saving dynamic messages, characterized in that: include: Step S1, the message management platform encapsulates the dynamic message to be pushed into an active message package, and pushes the active message package to the target client, the active message package includes the message title, message content, message graphic page link, message video link and picture sequence information list, the picture sequence information list includes the step number, text description, picture identifier and picture link required to synthesize the target video; Step S2, the target client receives the active message package, displays the message title and message content, and when receiving the user's open message instruction, automatically jumps to the active graphic page according to the message graphic page link, and caches the picture file on the active graphic page, and when receiving the user's start playing instruction, extracts the picture file in the cache as the target picture, and determines whether the target picture is complete according to the picture identifier. If so, execute step S3, otherwise, download the uncached picture file according to the picture link, and use the downloaded picture file as the target picture, and continue to determine whether the new target picture is complete according to the picture identifier. If so, execute step S3, otherwise execute step S4; Step S3: the target client generates an animation with sound according to the text description and the target image for playback; Step S4: the target client opens and plays the target video according to the message video link of the activity message package; The picture identifier is a picture feature string, and the process of generating the picture feature string includes the following steps: Combining the Base64 encoding rule with the SM3 national encryption algorithm, the binary data content of the image file is converted into 64-bit hexadecimal data, which is then used as the image feature string; In the step S2, judging whether the target image is complete according to the image identifier, if so, executing step S3, otherwise downloading the uncached image file according to the image link, taking the downloaded image file as the target image, and continuing to judge whether the new target image is complete according to the image identifier, if so, executing step S3 includes the following steps: Combining the Base64 encoding rule with the SM3 national secret algorithm, the target image is converted into a first feature string, and all first feature strings are compared with all picture feature strings. If a consistent first feature string and picture feature string are found, the target image corresponding to the first feature string is bound to the step number where the picture feature string is located, and it is determined whether all step numbers are bound to the target image. If so, step S3 is executed; Otherwise, download the uncached image file for the image link in the step sequence number that is not bound to the target image, use the downloaded image file as the target image, and determine whether all uncached image files are downloaded to the corresponding image file. If so, complete the acquisition of all target images, and then execute step S3.
2. A method for pushing three-level flow-saving dynamic messages according to claim 1, characterized in that: In step S1, the message management platform encapsulates the dynamic message to be pushed into an activity message package, including: Obtain the width and height of the picture file corresponding to each picture link in the picture sequence information list, use the obtained maximum width and maximum height as the width field and height field in the sound animation to be synthesized, and also add the width field and the height field to the activity message packet; The width and height of the sound animation generated in step S3 are the width field and the height field.
3. A method for pushing three-level flow-saving dynamic messages according to claim 2, characterized in that: The step S3 comprises the following steps: The target client arranges all the obtained target images into a group of image sequences according to the step number set in the activity message package, uses the width field and height field in the activity message package as the width and height dimensions of the generated audio animation, uses the first target image in the image sequence as the initial screen, then takes out the description text in the first step number in the activity message package, and converts the description text into voice reading and playback through the TTS engine service of the mobile phone. Within the preset time after the voice reading ends, switches to the next target image through the screen switching process, and obtains the description text in the next step number in turn, performs text-to-speech output, and so on, until all the target images in the image sequence are displayed, and the description text in each step number in the activity message package is read aloud, that is, the generation and playback of the audio animation is completed.
4. A method for pushing three-level flow-saving dynamic messages according to claim 3, characterized in that: During the screen switching process, animation effects are used for transition.
5. A method for pushing three-level flow-saving dynamic messages according to claim 1, characterized in that: The step S4 further includes the following steps: The target client receives the user's exit playback instruction and exits the video playback interface of the dynamic message; The target client receives the user's replay instruction and executes steps S3 and S4 according to whether the target image in step S2 is complete.
6. A method for pushing three-level flow-saving dynamic messages according to any one of claims 1 to 5, characterized in that: Before step S1, the following steps are also included: Step S0, the message management platform receives the operation of adding a dynamic message by the operator, and sends the operation to the reviewer for review. After receiving the reviewer's approval and the push instruction from the operator, step S1 is executed.
7. A method for pushing three-level flow-saving dynamic messages according to any one of claims 1 to 5, characterized in that: In step S1, the message management platform pushes the activity message package to the target client, including the following steps: the message management platform pushes the activity message package to the target client by calling a third-party message push interface.
8. A method for pushing three-level flow-saving dynamic messages according to any one of claims 1 to 5, characterized in that: In step S1, the message management platform encapsulates the dynamic message to be pushed into an activity message package, including the following steps: The fields of the message title, message content, message graphic page link, and message video link of the dynamic message to be pushed are directly encapsulated using the corresponding fields of the database record.
9. A three-level traffic-saving dynamic message push system, characterized in that: include: A message management platform, used to encapsulate the dynamic message to be pushed into an active message package, and push the active message package to the target client, wherein the active message package includes a message title, message content, a message graphic page link, a message video link, and a picture sequence information list, wherein the picture sequence information list includes a step number, a text description, a picture identifier, and a picture link required to synthesize a target video; The picture identifier is a picture feature string, and the message management platform is further used to combine the Base64 encoding rule and the SM3 national encryption algorithm to convert the binary data content of the picture file into 64-bit hexadecimal data, and then use it as the picture feature string; A target client is used to receive the active message package, display the message title and message content, and when receiving a user's open message instruction, automatically jump to the active graphic page according to the message graphic page link, and cache the picture file on the active graphic page, and when receiving a user's start play instruction, extract the picture file in the cache as the target picture, and judge whether the target picture is complete according to the picture identifier. If so, generate a sound animation according to the text description and the target picture for playback, otherwise download the uncached picture file according to the picture link, use the downloaded picture file as the target picture, and continue to judge whether the new target picture is complete according to the picture identifier. If so, generate a sound animation according to the text description and the target picture for playback, otherwise open and play the target video according to the message video link of the active message package; The target client is used to determine whether the target image is complete according to the image identifier, and if so, generate a sound animation according to the text description and the target image for playback; otherwise, download the uncached image file according to the image link, use the downloaded image file as the target image, and continue to determine whether the new target image is complete according to the image identifier, and if so, generate a sound animation according to the text description and the target image for playback, specifically for: Combining the Base64 encoding rule with the SM3 national secret algorithm, the target image is converted into a first feature string, all first feature strings are compared with all picture feature strings, and if a consistent first feature string and picture feature string are found, the target image corresponding to the first feature string is bound to the step number where the picture feature string is located, and it is determined whether all step numbers are bound to the target image. If so, a sound animation is generated according to the text description and the target image for playback; Otherwise, the uncached image file is downloaded for the image link in the step sequence number that is not bound to the target image, and the downloaded image file is also used as the target image, and it is determined whether all uncached image files are downloaded to the corresponding image file. If so, the acquisition of all target images is completed, and then a sound animation is generated according to the text description and the target image for playback.
Citation Information
Patent Citations
Method and device for processing picture messages
CN103490985A
Message pushing method, device and equipment
CN110198484A
