CN108449409B - Animation pushing method, device, equipment and storage medium - Google Patents

Animation pushing method, device, equipment and storage medium Download PDF

Info

Publication number
CN108449409B
CN108449409B CN201810218007.9A CN201810218007A CN108449409B CN 108449409 B CN108449409 B CN 108449409B CN 201810218007 A CN201810218007 A CN 201810218007A CN 108449409 B CN108449409 B CN 108449409B
Authority
CN
China
Prior art keywords
animation
download address
key frame
frame data
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810218007.9A
Other languages
Chinese (zh)
Other versions
CN108449409A (en
Inventor
王晓晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201810218007.9A priority Critical patent/CN108449409B/en
Publication of CN108449409A publication Critical patent/CN108449409A/en
Application granted granted Critical
Publication of CN108449409B publication Critical patent/CN108449409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention provides an animation pushing method, an animation pushing device, animation pushing equipment and a storage medium, wherein the method comprises the following steps: acquiring a download address of an animation file, wherein the animation file at least comprises animation key frame data; generating a push message according to the download address and the terminal identification; and sending the push message to a push server so that the push server pushes the download address to a terminal corresponding to the terminal identifier according to the push message, thereby reducing the flow consumption of users, shortening the download time and ensuring the definition and the fluency of the animation.

Description

Animation pushing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to a communication technology, in particular to an animation pushing method, an animation pushing device, animation pushing equipment and a storage medium.
Background
With the continuous development of terminals such as mobile phones, computers, game machines, ipads and the like, the application scenes of the push function on the terminals are more and more extensive. In order to further improve the user liveness and optimize the pushing experience, it is desirable that animation information can be pushed to the terminal through the pushing function, and after the user opens an Application (App) according to the pushing information, the animation information can be directly seen.
Currently, most team implementations are: the method comprises the steps that a developer makes animations needing to be pushed into gif pictures, the gif pictures are configured on a server and a download address is generated, the Push server pushes Push information containing the download address of the gif pictures to a terminal through Apple Push Notification Services (APNs), a user clicks the Push information to open an App and then receives the address of the gif picture, and the terminal downloads the corresponding gif picture to the local for playing.
However, the gif picture has a relatively large volume and large consumption on user traffic, animation display delay is obvious due to long downloading time, screen resolutions of different mobile devices are different, images are blurred when a large-screen device plays, and the gif picture is limited by the gif picture volume, the number of frames of the gif picture is generally not high, so that played animations are not smooth and consistent enough, and experience is poor.
Disclosure of Invention
The embodiment of the invention provides an animation pushing method, device, equipment and storage medium, aiming at solving the problems of fuzzy images, obvious time delay and insufficient smoothness and continuity of animation in the existing animation playing process.
The first aspect of the embodiments of the present invention provides an animation pushing method, including:
acquiring a download address of an animation file, wherein the animation file at least comprises animation key frame data;
generating a push message according to the download address and the terminal identification;
and sending the push message to a push server so that the push server pushes the download address to a terminal corresponding to the terminal identification according to the push message.
Optionally, before obtaining the download address of the animation file, the method further includes:
making the animation, and acquiring animation key frame data of the animation;
generating the animation file according to the animation key frame data;
and configuring a download address for the animation file.
A second aspect of the embodiments of the present invention provides an animation pushing method, including:
receiving a push message sent by a push server, wherein the push message comprises a download address;
acquiring a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data;
generating a key frame animation object according to animation key frame data in the animation file;
and adding the key frame animation object to a terminal screen for playing.
Optionally, the obtaining the corresponding animation file according to the download address includes:
inquiring whether an animation file corresponding to the download address exists in a local cache or not according to the download address;
if yes, obtaining the animation file corresponding to the download address in the local cache;
and if not, acquiring the animation file corresponding to the download address from the configuration server.
Optionally, the obtaining, from the configuration server, the animation file corresponding to the download address includes:
sending an animation request message to the configuration server, wherein the animation request message comprises the download address;
and receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
Optionally, after receiving the animation response message sent by the configuration server, the method further includes:
analyzing the animation response message to obtain an animation file corresponding to the download address;
and storing the animation file corresponding to the download address in the local cache.
Optionally, the generating a key frame animation object according to animation key frame data in the animation file includes:
analyzing the animation file to obtain animation key frame data contained in the animation file;
calculating an intermediate state value according to the animation key frame data;
and generating the key frame animation object according to the animation key frame data and the intermediate state value.
A third aspect of an embodiment of the present invention provides an animation pushing apparatus, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a download address of an animation file, and the animation file at least comprises animation key frame data;
the first generation module is used for generating a push message according to the download address and the terminal identifier;
and the sending module is used for sending the push message to a push server so that the push server pushes the download address to a terminal corresponding to the terminal identifier according to the push message.
Optionally, the apparatus further comprises:
the production module is used for producing the animation and acquiring animation key frame data of the animation;
the second generation module is used for generating the animation file according to the animation key frame data;
and the configuration module is used for configuring a downloading address for the animation file.
A fourth aspect of the present invention provides an animation pushing apparatus, including:
the receiving module is used for receiving a push message sent by a push server, and the push message comprises a download address;
the acquisition module is used for acquiring a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data;
the generating module is used for generating a key frame animation object according to animation key frame data in the animation file;
and the playing module is used for adding the key frame animation object to a terminal screen for playing.
Optionally, the obtaining module is specifically configured to query, according to the download address, whether an animation file corresponding to the download address exists in a local cache; if yes, obtaining the animation file corresponding to the download address in the local cache; and if not, acquiring the animation file corresponding to the download address from the configuration server.
Optionally, the obtaining module obtains the animation file corresponding to the download address from a configuration server, and includes:
the obtaining module sends an animation request message to the configuration server, wherein the animation request message comprises the downloading address; and receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
Optionally, the apparatus further comprises:
the analysis module is used for analyzing the animation response message to obtain an animation file corresponding to the download address;
and the storage module is used for storing the animation file corresponding to the download address in the local cache.
Optionally, the generating module is specifically configured to parse the animation file, and obtain the animation key frame data included in the animation file; calculating an intermediate state value according to the animation key frame data; and generating the key frame animation object according to the animation key frame data and the intermediate state value.
A fifth aspect of an embodiment of the present invention provides an electronic device, including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the animation pushing method of any one of the first aspect by executing the executable instructions.
A sixth aspect of an embodiment of the present invention provides an electronic device, including:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of the animation pushing method according to any one of the second aspect by executing the executable instructions.
A seventh aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the animation pushing method according to any one of the first aspect or the second aspect.
The embodiment of the invention provides an animation pushing method, device, equipment and storage medium, wherein a downloading address of an animation file is obtained, a pushing message is generated according to the downloading address and a terminal identifier, and the pushing message is sent to a pushing server, so that the pushing server pushes the downloading address to a terminal corresponding to the terminal identifier according to the pushing message.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an animation pushing method according to an embodiment of the present invention;
fig. 2 is a flowchart of an animation pushing method according to another embodiment of the present invention;
fig. 3 is a flowchart of an animation pushing method according to another embodiment of the present invention;
fig. 4 is a flowchart of an animation pushing method according to another embodiment of the present invention;
fig. 5 is a flowchart of an animation pushing method according to another embodiment of the present invention;
fig. 6 is a flowchart of an animation pushing method according to another embodiment of the present invention;
fig. 7 is a block diagram of an animation pushing device according to an embodiment of the present invention;
fig. 8 is a block diagram of an animation pushing device according to another embodiment of the present invention;
fig. 9 is a block diagram of an animation pushing device according to another embodiment of the present invention;
fig. 10 is a block diagram of an animation pushing device according to another embodiment of the present invention;
fig. 11 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application scene of the animation pushing method provided by the embodiment of the invention can comprise a configuration server, a pushing server and a terminal, wherein the configuration server can generate an animation file according to the requirement, the downloading address and the terminal identification of the animation file are sent to the pushing server, and the pushing server pushes the downloading address to the corresponding terminal according to the terminal identification. One configuration server can correspond to a plurality of push servers, and one push server can correspond to a plurality of terminals. For example, after the configuration server generates an animation file, the download address and at least one terminal identifier of the animation file are sent to the push server, and the push server distributes the download address to the corresponding terminal according to each terminal identifier. The push server is equivalent to a relay, and forwards the message sent by the configuration server to the terminal, or forwards the message of the terminal to the configuration server. In some scenarios, the configuration server may also directly communicate with the terminal, for example, after the terminal acquires the download address of the animation file, the animation file may be directly downloaded from the configuration server according to the download address.
Fig. 1 is a flowchart of an animation pushing method according to an embodiment of the present invention, where an execution subject of the method is a configuration server, as shown in fig. 1, the method of the embodiment may include:
step 101, obtaining a download address of an animation file, wherein the animation file at least comprises animation key frame data.
The animation key frame data is a group of values which are prepared by the attribute needing animation effect and are related to time, the animation key frame data are extracted from the frames which are compared in the animation sequence, and the values in other frames which are not extracted can be obtained by calculating the animation data of the key frames by adopting a specific interpolation method, so that the smooth animation effect is achieved.
Illustratively, the animation file may be a JavaScript Object notification (JSON) file, and in the embodiment of the present invention, the animation file may be a JSON format file containing key frame animation data, and the JSON format is a lightweight data exchange format. The JSON file is easy to read and write by people, is easy to analyze and generate by a machine, and effectively improves the network transmission efficiency.
In this embodiment, the configuration server may make an animation according to some user requirements, export an animation file corresponding to the animation, and obtain a download address of the animation file when an animation message needs to be pushed to the user.
And 102, generating a push message according to the download address and the terminal identification.
Wherein, the download address is the storage path of the animation file. And the terminal identification is used for indicating the equipment to which the animation file finally flows.
In this embodiment, the configuration server encapsulates the obtained download address and the terminal identifier of the animation file into a push message, and sends the push message to the push server.
And 103, sending the push message to a push server so that the push server pushes the download address to the terminal corresponding to the terminal identifier according to the push message.
In this embodiment, the configuration server sends the push message to the push server, and the push server obtains the terminal identifier therein, and pushes the download address to the terminal corresponding to the terminal identifier, and after the terminal receives the download address, downloads the corresponding animation file, and then generates an animation object according to the animation file to play on the terminal screen.
According to the animation pushing method provided by the embodiment of the invention, the downloading address of the animation file is obtained, the pushing message is generated according to the downloading address and the terminal identifier, and the pushing message is sent to the pushing server, so that the pushing server pushes the downloading address to the terminal corresponding to the terminal identifier according to the pushing message.
Fig. 2 is a flowchart of an animation pushing method according to another embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step 201, making animation, and obtaining animation key frame data of the animation.
In this embodiment, in order to improve user experience, corresponding animations may be created according to the content, attribute, and the like of a push message, for example, many input methods often need to update many skins, the contents of these skins are mostly animations, the configuration server may create a series of animations according to information entered by a developer, and derive animation key frame data of each animation, for example, ae (adobe After effects) software may be used to synthesize 2D and 3D animations.
Step 202, generating an animation file according to the animation key frame data.
In this embodiment, the configuration server generates corresponding animation files from the corresponding animation key frame data for each animation, and stores the animation files.
Illustratively, a body movie plugin can be adopted to generate a corresponding JSON file according to animation key frame data, and the JSON file is an animation file.
Step 203, configuring a download address for the animation file.
In this embodiment, the configuration server generates a corresponding download address according to the storage path of the animation file, and saves the correspondence between each animation file and the download address.
And step 204, acquiring a download address of the animation file, wherein the animation file at least comprises animation key frame data.
Step 205, generating a push message according to the download address and the terminal identifier.
And step 206, sending the push message to the push server so that the push server pushes the download address to the terminal corresponding to the terminal identifier according to the push message.
The implementation principle of steps 204 to 206 in this embodiment is the same as that of steps 101 to 103 in the embodiment shown in fig. 1, and is not described here again.
The animation pushing method provided by the embodiment of the invention comprises the steps of making an animation, obtaining animation key frame data of the animation, generating an animation file according to the animation key frame data, configuring a download address for the animation file, obtaining the download address of the animation file, generating a pushing message according to the download address and a terminal identifier, and sending the pushing message to a pushing server so that the pushing server pushes the download address to a terminal corresponding to the terminal identifier according to the pushing message, and pushing information to a user in an animation mode, so that interestingness can be increased, user experience can be improved, and as the animation file at least comprises the animation key frame data instead of data of each frame, the volume of the animation file is very small, user flow consumption can be reduced, downloading time is shortened, and timeliness of animation playing is guaranteed.
Fig. 3 is a flowchart of an animation pushing method according to another embodiment of the present invention, where an execution subject of the method is a terminal, as shown in fig. 3, the method of this embodiment may include:
step 301, receiving a push message sent by a push server, where the push message includes a download address.
In this embodiment, the terminal receives the push message sent by the push server, parses the push message, and obtains a download address therein, where the download address is a download address of the animation file.
And 302, acquiring a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data.
In this embodiment, after the configuration server creates the animation file, a corresponding relationship between each animation file and the download address is established, and the configuration server may send the configured corresponding relationship between the animation file and the download address and the corresponding animation file to the terminal in advance for storage, or the terminal may also actively obtain the corresponding relationship between the animation file and the download address and the corresponding animation file from the configuration server for storage.
After the terminal acquires the download address, the animation file corresponding to the download address can be searched in the local cache, and the animation file corresponding to the download address can also be acquired from the configuration server.
And step 303, generating a key frame animation object according to animation key frame data in the animation file.
In this embodiment, after the terminal acquires the animation file, the terminal parses the animation file to acquire the key frame animation data therein, and generates a key frame animation object according to the key frame animation data.
For example, the animation file is a JSON file, and an open source animation library (Lottie) may be used to parse animation key frame data contained in the JSON file and convert the animation key frame data into a key frame animation object for playing. Lottie is a library which supports Android, iOS and ReactNative and is open to Airbnb, and animation effect can be quickly realized by using JSON file.
And step 304, adding the key frame animation object to a terminal screen for playing.
In this embodiment, after the terminal generates the key frame animation object, the key frame animation object is added to the terminal screen for playing.
The animation pushing method provided by the embodiment of the invention receives the pushing message which is sent by the pushing server and comprises the download address, acquires the corresponding animation file according to the download address, generates the key frame animation object according to the animation key frame data generated by the animation file, and adds the key frame animation object to the terminal screen for playing.
Fig. 4 is a flowchart of an animation pushing method according to another embodiment of the present invention, as shown in fig. 4, the method includes the following steps:
step 401, receiving a push message sent by a push server, where the push message includes a download address.
In the present embodiment, one implementation of step 302 in the embodiment shown in fig. 3 includes steps 402 and 404.
Step 402, inquiring whether an animation file corresponding to the download address exists in a local cache according to the download address; if yes, go to step 403; if not, go to step 404.
In this embodiment, a corresponding relationship between the download address and the animation file may be pre-established, and the corresponding relationship and the corresponding animation file may be stored in the local cache, and/or the corresponding relationship and the corresponding animation file may be stored in the configuration server.
After receiving the animation message sent by the push server, the terminal inquires whether an animation file corresponding to the download address exists in the local cache according to the download address, and if the animation file corresponding to the download address can be inquired in the local cache, the terminal acquires the animation file corresponding to the download address from the local cache; and if the animation file corresponding to the download address cannot be inquired in the local cache, acquiring the animation file corresponding to the download address from the configuration server.
And step 403, acquiring the animation file corresponding to the download address in the local cache.
In this embodiment, if the animation file corresponding to the download address can be queried in the local cache, the animation file corresponding to the download address is obtained from the local cache.
And step 404, acquiring the animation file corresponding to the download address from the configuration server.
In this embodiment, if the animation file corresponding to the download address is not found in the local cache, the animation file corresponding to the download address is obtained from the configuration server.
Step 405, generating a key frame animation object according to animation key frame data in the animation file.
And step 406, adding the key frame animation object to the terminal screen for playing.
The animation playing method provided by the embodiment of the invention receives the push message sent by the push server, inquires whether the animation file corresponding to the download address exists in the local cache according to the download address, and if the animation file corresponding to the download address can be inquired in the local cache, acquires the animation file corresponding to the download address from the local cache; if the animation file corresponding to the download address cannot be inquired in the local cache, the animation file corresponding to the download address is obtained from the configuration server, a key frame animation object is generated according to animation key frame data in the animation file, the key frame animation object is added to a screen of the receiving terminal to be played, when the animation file corresponding to the download address is obtained from the local cache, interaction with the server can be avoided, and animation playing efficiency is improved; if the animation file corresponding to the download address cannot be inquired in the local cache, the animation file corresponding to the animation inquiry identification is obtained from the configuration server, so that the reliability of animation playing is ensured, and the user experience is improved.
Fig. 5 is a flowchart of an animation pushing method according to another embodiment of the present invention, as shown in fig. 5, the method includes the following steps:
step 501, receiving a push message sent by a push server, where the push message includes a download address.
Step 502, inquiring whether an animation file corresponding to the download address exists in a local cache according to the download address; if yes, go to step 503; if not, go to step 504.
Step 503, obtaining the animation file corresponding to the download address in the local cache.
In the present embodiment, one implementation of step 504 in fig. 4 may include step 504 and step 505.
Step 504, sending an animation request message to the configuration server, wherein the animation request message comprises a download address.
In this embodiment, when the animation file corresponding to the download address is not acquired from the local cache, an animation request message including the download address is generated, and the animation request message is sent to the configuration server.
And 505, receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
In this embodiment, after receiving an animation request message sent by a terminal, a configuration server obtains a download address therein, searches for a corresponding animation file according to a correspondence between the download address and the animation file, and sends the animation file to the terminal by carrying the animation file in an animation response message.
Optionally, after step 505, the method further comprises steps 506 and 507:
and step 506, analyzing the animation response message to obtain the animation file corresponding to the download address.
And step 507, storing the animation file corresponding to the download address in a local cache.
In this embodiment, after the terminal acquires the animation file corresponding to the download address from the configuration server, the animation file corresponding to the download address is stored in the local cache, and the original corresponding relationship is updated.
And step 508, generating a key frame animation object according to the animation key frame data in the animation file.
Step 509, add the key frame animation object to the screen of the receiving terminal for playing.
Wherein, steps 506 and 507 may also be executed after steps 508, 509, or steps 506 and 507 may also be executed synchronously with steps 508, 509.
The animation playing method provided by the embodiment of the invention receives the push message sent by the push server, inquires whether the animation file corresponding to the download address exists in the local cache according to the download address, and if the animation file corresponding to the download address can be inquired in the local cache, acquires the animation file corresponding to the download address from the local cache; if the animation file corresponding to the download address cannot be inquired in the local cache, sending an animation request message to a configuration server, receiving an animation response message which is sent by the configuration server and comprises the animation file corresponding to the download address, analyzing the animation response message, obtaining the animation file corresponding to the download address, storing the animation file corresponding to the download address in the local cache, generating a key frame animation object according to animation key frame data in the animation file, adding the key frame animation object to a screen of a receiving terminal for playing, and when the animation file corresponding to the download address is obtained from the local cache, avoiding interaction with the server and improving animation playing efficiency; if the animation file corresponding to the download address cannot be inquired in the local cache, the animation file corresponding to the animation inquiry identification is obtained from the configuration server, so that the reliability of animation playing is ensured, and the user experience is improved.
Fig. 6 is a flowchart of an animation pushing method according to another embodiment of the present invention, as shown in fig. 6, the method includes the following steps:
step 601, receiving a push message sent by a push server, where the push message includes a download address.
Step 602, obtaining a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data.
In the present embodiment, one implementation of the step "generating a key frame animation object from animation key frame data in an animation file" includes steps 603-605.
Step 603, analyzing the animation file, and acquiring animation key frame data contained in the animation file.
In this embodiment, if the animation file is a JSON file, lottiee may be used to parse the JOSN file to obtain animation key frame data.
And step 604, calculating an intermediate state value according to the animation key frame data.
In this embodiment, the intermediate state value is an intermediate value obtained by calculation according to the animation key frame data by using a preset algorithm and used for performing transition processing on the animation key frame data. At least one intermediate state value is calculated from the animation key frame data, for example, the intermediate state value of the animation key frame data is calculated using a specific interpolation method, and a plurality of intermediate state values may be calculated in order to ensure the smoothness of the animation.
Step 605, generating a key frame animation object according to the animation key frame data and the intermediate state value.
In this embodiment, after the intermediate state value is calculated, the key frame animation object is generated according to the animation key frame data and the intermediate state value.
Step 606, adding the key frame animation object to the terminal screen for playing.
The animation pushing method provided by the embodiment of the invention receives a pushing message which is sent by a pushing server and comprises a downloading address, acquires a corresponding animation file according to the downloading address, analyzes the animation file, acquires animation key frame data, calculates an intermediate state value according to the animation key frame data, generates a key frame animation object according to the animation key frame data and the intermediate state value, adds the key frame animation object to a terminal screen for playing, and acquires the intermediate state value by calculating the animation key frame data, so that the definition of animation and enough frame number can be ensured to meet the smoothness of the animation.
Fig. 7 is a block diagram of an animation pushing device according to an embodiment of the present invention, as shown in fig. 7, the device includes:
the obtaining module 11 is configured to obtain a download address of an animation file, where the animation file at least includes animation key frame data;
the first generation module 12 is configured to generate a push message according to the download address and the terminal identifier;
the sending module 13 is configured to send the push message to the push server, so that the push server pushes the download address to the terminal corresponding to the terminal identifier according to the push message.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a block diagram of an animation pushing device according to another embodiment of the present invention, as shown in fig. 8, the device includes:
the obtaining module 11 is configured to obtain a download address of an animation file, where the animation file at least includes animation key frame data;
the first generation module 12 is configured to generate a push message according to the download address and the terminal identifier;
the sending module 13 is configured to send the push message to the push server, so that the push server pushes the download address to the terminal corresponding to the terminal identifier according to the push message;
the production module 14 is used for producing animation, and obtaining animation key frame data of the animation;
the second generating module 15 is used for generating an animation file according to the animation key frame data;
the configuration module 16 is used for configuring the download address for the animation file.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a block diagram of an animation pushing device according to another embodiment of the present invention, as shown in fig. 9, the device includes:
the receiving module 21 is configured to receive a push message sent by a push server, where the push message includes a download address;
the obtaining module 22 is configured to obtain a corresponding animation file according to the download address, where the animation file at least includes animation key frame data;
the generating module 23 is configured to generate a key frame animation object according to animation key frame data in the animation file;
the playing module 24 is used for adding the key frame animation object to the terminal screen for playing.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a block diagram of an animation pushing device according to another embodiment of the present invention, as shown in fig. 10, the device includes:
the obtaining module 22 is configured to obtain a corresponding animation file according to the download address, where the animation file at least includes animation key frame data;
the generating module 23 is configured to generate a key frame animation object according to animation key frame data in the animation file;
the playing module 24 is used for adding the key frame animation object to the terminal screen for playing.
Optionally, the obtaining module 22 is specifically configured to query whether an animation file corresponding to the download address exists in the local cache according to the download address; if yes, acquiring the animation file corresponding to the download address in a local cache; if not, the animation file corresponding to the download address is obtained from the configuration server.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the obtaining module 22 obtains the animation file corresponding to the download address from the configuration server, including:
the obtaining module 22 sends an animation request message to the configuration server, wherein the animation request message comprises a downloading address; and receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
As shown in fig. 10, the apparatus further includes:
the analysis module 25 is used for analyzing the animation response message to obtain an animation file corresponding to the download address;
the storage module 26 is configured to store the animation file corresponding to the download address in a local cache.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 5, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the generating module 23 is specifically configured to parse the animation file, and obtain animation key frame data included in the animation file; calculating an intermediate state value according to the animation key frame data; and generating a key frame animation object according to the animation key frame data and the intermediate state value.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 6, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 11 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 11, the electronic device includes:
a processor 31; and
a memory 32 for storing executable instructions of the processor 31;
wherein, when the electronic device is configured to implement the function of the configuration server in the above embodiment, the processor 31 is configured to execute the steps of the animation pushing method described in fig. 1 or fig. 2 by executing the executable instructions.
Wherein, when the electronic device is configured to implement the functions of the terminal in the above embodiments, the processor is configured 31 to execute the steps of the animation pushing method according to any one of fig. 3 to 6 by executing the executable instructions.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the animation pushing method according to any one of fig. 1 to 6.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media capable of storing program codes, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk, or optical disk.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. An animation pushing method, comprising:
making an animation, and acquiring animation key frame data of the animation; the animation key frame data is a group of values which are related to time and need the attribute of the animation effect;
generating an animation file according to the animation key frame data;
configuring a downloading address for the animation file;
acquiring a download address of the animation file, wherein the animation file at least comprises animation key frame data;
generating a push message according to the download address and the terminal identification;
and sending the push message to a push server so that the push server pushes the download address to a terminal corresponding to the terminal identifier according to the push message, and the terminal generates a key frame animation object according to animation key frame data in the animation file.
2. An animation pushing method, comprising:
receiving a push message sent by a push server, wherein the push message comprises a download address;
acquiring a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data; the animation key frame data is a group of values which are related to time and need the attribute of the animation effect;
analyzing the animation file to obtain animation key frame data contained in the animation file;
calculating an intermediate state value according to the animation key frame data;
generating a key frame animation object according to the animation key frame data and the intermediate state value;
and adding the key frame animation object to a terminal screen for playing.
3. The method of claim 2, wherein the obtaining the corresponding animation file according to the download address comprises:
inquiring whether an animation file corresponding to the download address exists in a local cache or not according to the download address;
if yes, obtaining the animation file corresponding to the download address in the local cache;
and if not, acquiring the animation file corresponding to the download address from the configuration server.
4. The method of claim 3, wherein the obtaining the animation file corresponding to the download address from the configuration server comprises:
sending an animation request message to the configuration server, wherein the animation request message comprises the download address;
and receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
5. The method of claim 4, wherein after receiving the animation response message sent by the configuration server, the method further comprises:
analyzing the animation response message to obtain an animation file corresponding to the download address;
and storing the animation file corresponding to the download address in the local cache.
6. An animation promotion device, comprising:
the production module is used for producing the animation and acquiring animation key frame data of the animation; the animation key frame data is a group of values which are related to time and need the attribute of the animation effect;
the second generation module is used for generating an animation file according to the animation key frame data;
the configuration module is used for configuring a downloading address for the animation file;
the acquisition module is used for acquiring a download address of the animation file, and the animation file at least comprises animation key frame data;
the first generation module is used for generating a push message according to the download address and the terminal identifier;
and the sending module is used for sending the push message to a push server so that the push server pushes the download address to a terminal corresponding to the terminal identifier according to the push message.
7. An animation pushing device, comprising:
the receiving module is used for receiving a push message sent by a push server, and the push message comprises a download address;
the acquisition module is used for acquiring a corresponding animation file according to the download address, wherein the animation file at least comprises animation key frame data; the animation key frame data is a group of values which are related to time and need the attribute of the animation effect;
the generating module is used for generating a key frame animation object according to animation key frame data in the animation file;
the playing module is used for adding the key frame animation object to a terminal screen for playing;
the generating module is specifically used for analyzing the animation file and acquiring animation key frame data contained in the animation file; calculating an intermediate state value according to the animation key frame data; and generating the key frame animation object according to the animation key frame data and the intermediate state value.
8. The apparatus according to claim 7, wherein the obtaining module is specifically configured to query, according to the download address, whether an animation file corresponding to the download address exists in a local cache; if yes, obtaining the animation file corresponding to the download address in the local cache; and if not, acquiring the animation file corresponding to the download address from the configuration server.
9. The apparatus of claim 8, wherein the obtaining module obtains the animation file corresponding to the download address from a configuration server, and comprises:
the obtaining module sends an animation request message to the configuration server, wherein the animation request message comprises the downloading address; and receiving an animation response message sent by the configuration server, wherein the animation response message comprises an animation file corresponding to the download address.
10. The apparatus of claim 9, further comprising:
the analysis module is used for analyzing the animation response message to obtain an animation file corresponding to the download address;
and the storage module is used for storing the animation file corresponding to the download address in the local cache.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the steps of the animation push method of claim 1 by executing the executable instructions.
12. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the steps of the animation pushing method according to any one of claims 2 to 5 by executing the executable instructions.
13. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of the animation pushing method according to any one of claims 1 to 5.
CN201810218007.9A 2018-03-16 2018-03-16 Animation pushing method, device, equipment and storage medium Active CN108449409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810218007.9A CN108449409B (en) 2018-03-16 2018-03-16 Animation pushing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810218007.9A CN108449409B (en) 2018-03-16 2018-03-16 Animation pushing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108449409A CN108449409A (en) 2018-08-24
CN108449409B true CN108449409B (en) 2022-03-25

Family

ID=63195615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810218007.9A Active CN108449409B (en) 2018-03-16 2018-03-16 Animation pushing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108449409B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658484A (en) * 2018-12-21 2019-04-19 上海哔哩哔哩科技有限公司 A kind of Automatic Generation of Computer Animation method and Automatic Generation of Computer Animation system
CN109803157A (en) * 2019-01-18 2019-05-24 上海极链网络科技有限公司 A kind of sequence frame picture transmission method, system and electronic equipment based on video
CN110446118B (en) * 2019-07-01 2021-08-20 创新先进技术有限公司 Video resource preprocessing method and device and video resource downloading method and device
CN110351599B (en) * 2019-07-29 2021-12-21 创新先进技术有限公司 Animation file playing method and device and terminal equipment
CN111627093A (en) * 2020-05-13 2020-09-04 上海识装信息科技有限公司 Method and device for configuring GIF information and electronic equipment
CN111986298A (en) * 2020-08-25 2020-11-24 杭州趣维科技有限公司 Two-dimensional code technology-based keyframe animation effect sharing method
CN111984278A (en) * 2020-08-28 2020-11-24 北京达佳互联信息技术有限公司 Method and device for acquiring animation image
CN113438541B (en) * 2021-07-21 2022-10-11 北京优锘科技有限公司 Viewpoint animation generation method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4737174A (en) * 1987-01-20 1988-04-12 Columbus Industries, Inc. Multi-media filter frame construction
CN101753913A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and device for inserting hyperlinks in video, and processor
CN102279739A (en) * 2011-06-10 2011-12-14 吴东辉 Recording method and application of screen operation
CN102402536A (en) * 2010-09-13 2012-04-04 索尼公司 Method and equipment for extracting key frame from video
CN102665109A (en) * 2012-04-19 2012-09-12 中兴通讯股份有限公司 Transmitting and receiving method of multimedia video data and corresponding devices
CN102682459A (en) * 2011-03-15 2012-09-19 新奥特(北京)视频技术有限公司 Method for interpolating keyframe animation curve
CN106303596A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Video recommendation system, method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4737174A (en) * 1987-01-20 1988-04-12 Columbus Industries, Inc. Multi-media filter frame construction
CN101753913A (en) * 2008-12-17 2010-06-23 华为技术有限公司 Method and device for inserting hyperlinks in video, and processor
CN102402536A (en) * 2010-09-13 2012-04-04 索尼公司 Method and equipment for extracting key frame from video
CN102682459A (en) * 2011-03-15 2012-09-19 新奥特(北京)视频技术有限公司 Method for interpolating keyframe animation curve
CN102279739A (en) * 2011-06-10 2011-12-14 吴东辉 Recording method and application of screen operation
CN102665109A (en) * 2012-04-19 2012-09-12 中兴通讯股份有限公司 Transmitting and receiving method of multimedia video data and corresponding devices
CN106303596A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Video recommendation system, method and device

Also Published As

Publication number Publication date
CN108449409A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN108449409B (en) Animation pushing method, device, equipment and storage medium
CN110798696B (en) Live broadcast interaction method and device, electronic equipment and readable storage medium
US10448094B2 (en) Video motion augmentation
CN112791399B (en) Method, device, system, medium and electronic equipment for displaying cloud game picture
CN109309842B (en) Live broadcast data processing method and device, computer equipment and storage medium
CN111031400B (en) Barrage presenting method and system
CN109992406B (en) Picture request method, picture request response method and client
US20230059097A1 (en) Application control method and apparatus, electronic device, and storage medium
CN111225232A (en) Video-based sticker animation engine, realization method, server and medium
CN112307403A (en) Page rendering method, device, storage medium and terminal
CN111818354A (en) Animation configuration method, animation playback method, animation configuration device, animation playback device, animation system and animation media
US20220408160A1 (en) Live commenting processing method and system
US9471299B1 (en) Updating code within an application
CN105681823A (en) Method and device for transcoding video file online
CN111954041A (en) Video loading method, computer equipment and readable storage medium
CN112995743B (en) Video playing method and device
CN111651146B (en) Function generation method, device, equipment and medium
CN111327941B (en) Offline video playing method, device, equipment and medium
CN111131845A (en) Method, electronic device and storage medium for multimedia resource carousel
CN111367592A (en) Information processing method and device
CN114157917B (en) Video editing method and device and terminal equipment
US20240013461A1 (en) Interactive Animation Generation
US20230262292A1 (en) Content playing method and system
CN107800618B (en) Picture recommendation method and device, terminal and computer-readable storage medium
CN116467318A (en) Media content processing method, device and storage medium based on cloud rendering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant