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

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

Info

Publication number
CN108449409A
CN108449409A CN201810218007.9A CN201810218007A CN108449409A CN 108449409 A CN108449409 A CN 108449409A CN 201810218007 A CN201810218007 A CN 201810218007A CN 108449409 A CN108449409 A CN 108449409A
Authority
CN
China
Prior art keywords
animation
download address
file
animation file
frame data
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.)
Granted
Application number
CN201810218007.9A
Other languages
Chinese (zh)
Other versions
CN108449409B (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

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

A kind of animation method for pushing of present invention offer, device, equipment and storage medium, this method include:The download address of animation file is obtained, animation key frame data is included at least in the animation file;PUSH message is generated according to the download address and terminal iidentification;The PUSH message is sent to push server, so that the download address is pushed to the corresponding terminal of the terminal iidentification by the push server according to the PUSH message, customer flow consumption can be reduced, and shorten download time, ensure the clarity and fluency of animation.

Description

Animation method for pushing, device, equipment and storage medium
Technical field
The present embodiments relate to the communication technologys more particularly to a kind of animation method for pushing, device, equipment and storage to be situated between Matter.
Background technology
With the continuous development of the terminals such as mobile phone, computer, game machine, ipad, the application scenarios of the push function in terminal It is more and more extensive.In order to further increase user activity, optimization push experience, it is desirable to can believe animation by push function Breath pushes in terminal, directly it can be seen that dynamic after user opens application (Application, App) according to pushed information Draw information.
Currently, the implementation of most of team is:Developer will need the animation pushed that gif pictures are made, by gif Picture is configured on server, and generates a download address, and push server passes through apple push notification service (Apple Push Notification service, APNs) pushed information of a download address comprising above-mentioned gif pictures is pushed To terminal, the address of gif pictures is received after user's click pushed information opening App, corresponding gif pictures are downloaded to this by terminal Ground plays out.
But gif picture volumes are relatively large, and it is larger to customer flow consumption, since download time length leads to animation exhibition Showing that delay is apparent, the screen resolution of different mobile devices differs, and in large screen device plays, image will be very fuzzy, and And gif picture volumes are limited to, the frame number of gif pictures generally will not be very high, so the animation played is not smooth coherent enough, body It tests very poor.
Invention content
A kind of animation method for pushing of offer of the embodiment of the present invention, device, equipment and storage medium, to overcome existing animation Image is fuzzy when broadcasting, delay is apparent, not smooth enough the coherent problem of animation.
First aspect of the embodiment of the present invention provides a kind of animation method for pushing, including:
The download address of animation file is obtained, animation key frame data is included at least in the animation file;
PUSH message is generated according to the download address and terminal iidentification;
The PUSH message is sent to push server so that the push server according to the PUSH message by institute It states download address and is pushed to the corresponding terminal of the terminal iidentification.
Optionally, before the download address for obtaining animation file, the method further includes:
The animation is made, the animation key frame data of the animation is obtained;
The animation file is generated according to the animation key frame data;
Download address is configured for the animation file.
Second aspect of the embodiment of the present invention provides a kind of animation method for pushing, including:
The PUSH message that push server is sent is received, the PUSH message includes download address;
Corresponding animation file is obtained according to the download address, animation key frame number is included at least in the animation file According to;
Key-frame animation object is generated according to the animation key frame data in the animation file;
The key-frame animation object is added on terminal screen and is played out.
Optionally, described that corresponding animation file is obtained according to the download address, including:
It is inquired according to the download address and whether there is the corresponding animation file of the download address in local cache;
If so, obtaining the corresponding animation file of the download address in the local cache;
If it is not, then obtaining the corresponding animation file of the download address from configuration server.
Optionally, described to obtain the corresponding animation file of the download address from configuration server, including:
Animation request message is sent to the configuration server, the animation request message includes the download address;
The animation response message that the configuration server is sent is received, the animation response message includes the download ground The corresponding animation file in location.
Optionally, after the animation response message for receiving the configuration server transmission, the method further includes:
The animation response message is parsed, the corresponding animation file of the download address is obtained;
The corresponding animation file of the download address is stored in the local cache.
Optionally, the animation key frame data according in the animation file generates key-frame animation object, including:
The animation file is parsed, animation key frame data included in the animation file is obtained;
Intermediate state value is calculated according to the animation key frame data;
The key-frame animation object is generated according to the animation key frame data and the intermediate state value.
The third aspect of the embodiment of the present invention provides a kind of animation pusher, including:
Acquisition module, the download address for obtaining animation file include at least animation key frame in the animation file Data;
First generation module, for generating PUSH message according to the download address and terminal iidentification;
Sending module, for the PUSH message to be sent to push server, so that the push server is according to institute It states PUSH message and the download address is pushed to the corresponding terminal of the terminal iidentification.
Optionally, described device further includes:
It makes module and obtains the animation key frame data of the animation for making the animation;
Second generation module, for generating the animation file according to the animation key frame data;
Configuration module, for configuring download address for the animation file.
Fourth aspect of the embodiment of the present invention provides a kind of animation pusher, including:
Receiving module, the PUSH message for receiving push server transmission, the PUSH message includes download address;
Acquisition module is at least wrapped for obtaining corresponding animation file according to the download address in the animation file Include animation key frame data;
Generation module, for generating key-frame animation object according to the animation key frame data in the animation file;
Playing module is played out for the key-frame animation object to be added on terminal screen.
Optionally, the acquisition module is specifically used for being inquired in local cache with the presence or absence of described according to the download address The corresponding animation file of download address;If so, obtaining the corresponding animation file of the download address in the local cache; If it is not, then obtaining the corresponding animation file of the download address from configuration server.
Optionally, the acquisition module obtains the corresponding animation file of the download address from configuration server, including:
The acquisition module sends animation request message to the configuration server, and the animation request message includes described Download address;The animation response message that the configuration server is sent is received, the animation response message includes the download The corresponding animation file in address.
Optionally, described device further includes:
Parsing module obtains the corresponding animation file of the download address for parsing the animation response message;
Memory module, for the corresponding animation file of the download address to be stored in the local cache.
Optionally, the generation module is specifically used for parsing the animation file, obtains and is wrapped described in the animation file The animation key frame data contained;Intermediate state value is calculated according to the animation key frame data;According to the animation key frame number The key-frame animation object is generated according to the intermediate state value.
The 5th aspect of the embodiment of the present invention provides a kind of electronic equipment, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to execute any one of first aspect by executing the executable instruction described dynamic The step of drawing method for pushing.
The 6th aspect of the embodiment of the present invention provides a kind of electronic equipment, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to execute any one of second aspect by executing the executable instruction described dynamic The step of drawing method for pushing.
The 7th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, The step of any one of first aspect or second aspect the animation method for pushing are realized when described program is executed by processor.
A kind of animation method for pushing of offer of the embodiment of the present invention, device, equipment and storage medium, obtain under animation file Set address generates PUSH message according to download address and terminal iidentification, PUSH message is sent to push server, so that push Download address is pushed to the corresponding terminal of terminal iidentification by server according to PUSH message, since animation file includes animation key The data of frame data rather than each frame can reduce customer flow consumption, and under shortening so animation file volume is very small The time is carried, ensure that the promptness of animation play.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart for animation method for pushing that one embodiment of the invention provides;
Fig. 2 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides;
Fig. 3 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides;
Fig. 4 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides;
Fig. 5 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides;
Fig. 6 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides;
Fig. 7 is a kind of block diagram for animation pusher that one embodiment of the invention provides;
Fig. 8 is a kind of block diagram for animation pusher that another embodiment of the present invention provides;
Fig. 9 is a kind of block diagram for animation pusher that another embodiment of the present invention provides;
Figure 10 is a kind of block diagram for animation pusher that another embodiment of the present invention provides;
Figure 11 is the block diagram for a kind of electronic equipment that one embodiment of the invention provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The application scenarios of animation method for pushing provided in an embodiment of the present invention may include configuration server, push server And terminal, configuration server can generate animation file according to demand, and the download address of animation file and terminal iidentification are sent To push server, which is pushed to corresponding terminal by push server according to terminal iidentification.One configuration service Device can correspond to more push server, and a push server can correspond to multiple terminals.For example, configuration server generates After one animation file, the download address of the animation file and at least one terminal iidentification are sent to push server, pushed Download address is distributed to corresponding terminal by server according to each terminal iidentification.Wherein, push server is equivalent to relaying, will match The message for setting server transmission is transmitted to terminal, alternatively, the message of terminal is transmitted to configuration server.In some scenarios, Configuration server can also be communicated directly with terminal, can be with for example, after terminal gets the download address of animation file Animation file is directly downloaded from configuration server according to the download address.
Fig. 1 is a kind of flow chart for animation method for pushing that one embodiment of the invention provides, and the executive agent of this method is Configuration server, as shown in Figure 1, the method for the present embodiment may include:
Step 101, the download address for obtaining animation file, animation key frame data is included at least in animation file.
Wherein, animation key frame data is the value for one group and time correlation for needing the attribute of animation effect to prepare, animation Key frame data is extracted in frame more crucial in animation sequence, and other values being not extracted by time frame These key-frame animation data can be used, be calculated using specific interpolation method, to reach than smoother animation effect Fruit.
Illustratively, animation file can be object tag (JavaScript Object Notation, JSON) file, In embodiments of the present invention, the JSON formatted files of animation file can be a kind of include key-frame animation data, JSON lattice Formula is a kind of data interchange format of lightweight.JSON files are easy to people and read and write, while being also easy to machine parsing and life At, and effectively promote network transmission efficiency.
In the present embodiment, configuration server can make animation according to some user demands, and it is corresponding to export animation Animation file obtains the download address of animation file when needing to push animated message to user.
Step 102 generates PUSH message according to download address and terminal iidentification.
Wherein, download address is the store path of animation file.Terminal iidentification is used to indicate what animation file eventually flowed to Equipment.
In the present embodiment, the download address of the animation file got and terminal iidentification are encapsulated as pushing away by configuration server Message is sent, push server is sent to.
PUSH message is sent to push server by step 103, so that push server will download ground according to PUSH message Location is pushed to the corresponding terminal of terminal iidentification.
In the present embodiment, PUSH message is sent to push server by configuration server, and push server obtains wherein Terminal iidentification, download address is pushed to the corresponding terminal of terminal iidentification, after terminal receives the download address, download correspond to Animation file, further according to animation file generate animation object play on a terminal screen.
Animation method for pushing provided in an embodiment of the present invention, obtains the download address of animation file, according to download address and Terminal iidentification generates PUSH message, and PUSH message is sent to push server, so that push server will according to PUSH message Download address is pushed to the corresponding terminal of terminal iidentification, since animation file includes animation key frame data rather than each frame Data can reduce customer flow consumption, and shorten download time, ensure that animation is broadcast so animation file volume is very small The promptness put.
Fig. 2 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides, as shown in Fig. 2, this method Include the following steps:
Step 201 makes animation, obtains the animation key frame data of animation.
It in the present embodiment, can be corresponding according to making such as content, the attributes of PUSH message in order to improve user experience Animation, for example, being frequently necessary to update many skins for many input methods, the content of these skins is mostly animation, configuration service Device can make a series of animation according to the information of developer's typing, and export the animation key frame data of each animation, For example, AE (Adobe After Effects) software process quality 2D, 3D animation may be used.
Step 202 generates animation file according to animation key frame data.
In the present embodiment, corresponding animation key frame data is generated corresponding each animation by configuration server Animation file, and preserve these animation files.
Illustratively, Bodymovin plug-in units may be used, corresponding JSON files are generated according to animation key frame data, JSON files are animation file.
Step 203 configures download address for animation file.
In the present embodiment, configuration server generates corresponding download address according to the store path of animation file, also, Preserve the correspondence between each animation file and download address.
Step 204, the download address for obtaining animation file, animation key frame data is included at least in animation file.
Step 205 generates PUSH message according to download address and terminal iidentification.
PUSH message is sent to push server by step 206, so that push server will download ground according to PUSH message Location is pushed to the corresponding terminal of terminal iidentification.
Step 204- steps 206 and the realization of the step 101- steps 103 in embodiment illustrated in fig. 1 in the present embodiment is former Manage identical, details are not described herein again.
Animation method for pushing provided in an embodiment of the present invention makes animation, obtains the animation key frame data of animation, according to Animation key frame data generates animation file, configures download address for animation file, obtains the download address of animation file, according to Download address and terminal iidentification generate PUSH message, and PUSH message is sent to push server so that push server according to Download address is pushed to the corresponding terminal of terminal iidentification by PUSH message, by animation mode to user's pushed information, Ke Yizeng Add interest, improves user experience, due to including at least animation key frame data rather than the data of each frame in animation file, So animation file volume is very small, customer flow consumption can be reduced, and shorten download time, ensure that animation play and Shi Xing.
Fig. 3 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides, the executive agent of this method For terminal, as shown in figure 3, the method for the present embodiment may include:
Step 301 receives the PUSH message that push server is sent, and PUSH message includes download address.
In the present embodiment, terminal receives the PUSH message of push server transmission, parses the PUSH message, obtains it In download address, the download address be animation file download address.
Step 302 obtains corresponding animation file according to download address, and animation key frame number is included at least in animation file According to.
In the present embodiment, configuration server can establish each animation file and download address after making animation file Between correspondence, configuration server can in advance by between the animation file configured and download address correspondence, And corresponding animation file is sent to terminal and is preserved, alternatively, terminal actively can also obtain animation from configuration server Correspondence and corresponding animation file between file and download address are preserved.
After terminal gets download address, the corresponding animation file of download address can be searched in local cache, The corresponding animation file of the download address can be obtained to configuration server.
Step 303 generates key-frame animation object according to the animation key frame data in animation file.
In the present embodiment, after terminal gets animation file, which is parsed, obtains pass therein Keyframe animation data generate key-frame animation object according to key-frame animation data.
For example, animation file is JSON files, animation library of increasing income (Lottie), which may be used, to be wrapped in this JSON files The animation key frame data contained, which parses, to be converted into key-frame animation object and plays out.Lottie is one that Airbnb increases income A support Android, iOS and ReactNative, fast implement the library of animation effect in the way of JSON files.
Key-frame animation object is added on terminal screen and plays out by step 304.
In the present embodiment, after terminal generates key-frame animation object, which is added to terminal It is played out on screen.
Animation method for pushing provided in an embodiment of the present invention receives the push for including download address that push server is sent Message obtains corresponding animation file according to download address, and the animation key frame data in being given birth to according to animation file is at key frame Key-frame animation object is added on terminal screen and plays out by animation object, due to including at least animation in animation file The data of key frame data rather than each frame can reduce customer flow consumption, and contract so animation file volume is very small Short download time ensure that the promptness of animation play.
Fig. 4 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides, as shown in figure 4, this method Include the following steps:
Step 401 receives the PUSH message that push server is sent, and PUSH message includes download address.
In the present embodiment, a kind of realization method of the step 302 in embodiment illustrated in fig. 3 includes step 402-404.
Step 402 is inquired in local cache according to download address with the presence or absence of the corresponding animation file of download address;If It is to then follow the steps 403;If it is not, thening follow the steps 404.
In the present embodiment, the correspondence between download address and animation file can be pre-established, which is closed System and corresponding animation file are stored in local cache, and/or, by the correspondence and the storage of corresponding animation file to matching It sets in server.
Terminal receive push server transmission animated message after, according to download address inquire local cache in whether In the presence of animation file corresponding with download address, if animation file corresponding with download address can be inquired in local cache, The corresponding animation file of the download address is then obtained from local cache;If inquiry is less than corresponding with download address in local cache Animation file, then the corresponding animation file of download address is obtained from configuration server.
Step 403 obtains the corresponding animation file of download address in local cache.
In the present embodiment, if animation file corresponding with download address can be inquired in local cache, from local The corresponding animation file of the download address is obtained in caching.
Step 404 obtains the corresponding animation file of download address from configuration server.
In the present embodiment, it if inquiring animation file corresponding less than with download address in local cache, is taken from configuration It is engaged in obtaining the corresponding animation file of download address on device.
Step 405 generates key-frame animation object according to the animation key frame data in animation file.
Key-frame animation object is added on terminal screen and plays out by step 406.
Animation playing method provided in an embodiment of the present invention receives the PUSH message that push server is sent, according to download It whether there is animation file corresponding with download address in address lookup local cache, if can be inquired in local cache under The corresponding animation file of set address then obtains the corresponding animation file of the download address from local cache;If in local cache Inquiry animation file corresponding less than with download address then obtains the corresponding animation file of download address from configuration server, Key-frame animation object is generated according to the animation key frame data in animation file, key-frame animation object is added to reception eventually End screen on play out, when from local cache obtain animation file corresponding with download address when, can to avoid with service The interaction of device improves animation play efficiency;If inquiring corresponding less than with download address animation file in local cache, from It sets and obtains the corresponding animation file of animation inquiry mark on server, ensure that the reliability of animation play, improve user's body It tests.
Fig. 5 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides, as shown in figure 5, this method Include the following steps:
Step 501 receives the PUSH message that push server is sent, and PUSH message includes download address.
Step 502 is inquired in local cache according to download address with the presence or absence of the corresponding animation file of download address;If It is to then follow the steps 503;If it is not, thening follow the steps 504.
Step 503 obtains the corresponding animation file of download address in local cache.
In the present embodiment, a kind of realization method of the step 504 in Fig. 4 may include step 504 and step 505.
Step 504 sends animation request message to configuration server, and animation request message includes download address.
In the present embodiment, when being obtained less than animation file corresponding with download address from local cache, packet is generated The animation request message of download address is included, and the animation request message is sent to configuration server.
Step 505 receives the animation response message that configuration server is sent, and animation response message includes download address pair The animation file answered.
In the present embodiment, after configuration server receives the animation request message that terminal is sent, under acquisition is therein Set address, according to the corresponding animation file of correspondence lookup between download address and animation file, and by the animation file Carrying is sent to terminal in animation response message.
Optionally, after step 505, this method further includes step 506 and step 507:
Step 506, parsing animation response message, obtain the corresponding animation file of download address.
The corresponding animation file of download address is stored in local cache by step 507.
It in the present embodiment, will after terminal gets animation file corresponding with download address from configuration server end Animation file storage corresponding with download address is updated in local cache, also, to original correspondence.
Step 508 generates key-frame animation object according to the animation key frame data in animation file.
Step 509, by key-frame animation object be added to receive terminal screen on play out.
Wherein, step 506 and 507 can also execute after step 508,509, alternatively, step 506 and 507 can also With step 508,509 synchronous execution.
Animation playing method provided in an embodiment of the present invention receives the PUSH message that push server is sent, according to download It whether there is animation file corresponding with download address in address lookup local cache, if can be inquired in local cache under The corresponding animation file of set address then obtains the corresponding animation file of the download address from local cache;If in local cache Inquiry animation file corresponding less than with download address, then send animation request message to configuration server, receives configuration service The animation response message for including the corresponding animation file of download address that device is sent parses animation response message, obtains and downloads Animation file corresponding with download address is stored in local cache, according in animation file by the corresponding animation file in address Animation key frame data generate key-frame animation object, by key-frame animation object be added to receive terminal screen on broadcast It puts, when obtaining animation file corresponding with download address from local cache, can be improved dynamic to avoid the interaction with server Draw playing efficiency;If inquiring animation file corresponding less than with download address in local cache, obtained from configuration server Animation inquiry identifies corresponding animation file, ensure that the reliability of animation play, improves user experience.
Fig. 6 is a kind of flow chart for animation method for pushing that another embodiment of the present invention provides, as shown in fig. 6, this method Include the following steps:
Step 601 receives the PUSH message that push server is sent, and PUSH message includes download address.
Step 602 obtains corresponding animation file according to download address, and animation key frame number is included at least in animation file According to.
In the present embodiment, step " key-frame animation object is generated according to the animation key frame data in animation file " A kind of realization method includes step 603- steps 605.
Step 603, parsing animation file, obtain animation key frame data included in animation file.
In the present embodiment, if animation file is JSON files, Lottie may be used to parse JOSN files, obtain dynamic Draw key frame data.
Step 604 calculates intermediate state value according to animation key frame data.
In the present embodiment, intermediate state value is to use preset algorithm, and acquisition is calculated according to animation key frame data, Median for carrying out transition processing to animation key frame data.At least one intermediate shape is calculated according to animation key frame data State value, for example, the intermediate state value of animation key frame data is calculated using specific interpolation method, in order to ensure the stream of animation Freely, multiple intermediate state values can be calculated.
Step 605 generates key-frame animation object according to animation key frame data and intermediate state value.
In the present embodiment, it is calculated after intermediate state value, is given birth to according to animation key frame data and intermediate state value At key-frame animation object.
Key-frame animation object is added on terminal screen and plays out by step 606.
Animation method for pushing provided in an embodiment of the present invention receives the push for including download address that push server is sent Message obtains corresponding animation file according to download address, parses animation file, animation key frame data obtained, according to animation Key frame data calculates intermediate state value, and key-frame animation object is generated according to animation key frame data and intermediate state value, will Key-frame animation object, which is added on terminal screen, to be played out, and intermediate state value is obtained by calculating animation key frame data, It can ensure that the clarity of animation and enough frame numbers meet the fluency of animation.
Fig. 7 is a kind of block diagram for animation pusher that one embodiment of the invention provides, as shown in fig. 7, the device includes:
Acquisition module 11 is used to obtain the download address of animation file, and animation key frame number is included at least in animation file According to;
First generation module 12 is used to generate PUSH message according to download address and terminal iidentification;
Sending module 13 is used to PUSH message being sent to push server, so that push server will according to PUSH message Download address is pushed to the corresponding terminal of terminal iidentification.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realization principle and skill Art effect is similar, and details are not described herein again.
Fig. 8 is a kind of block diagram for animation pusher that another embodiment of the present invention provides, as shown in figure 8, the device packet It includes:
Acquisition module 11 is used to obtain the download address of animation file, and animation key frame number is included at least in animation file According to;
First generation module 12 is used to generate PUSH message according to download address and terminal iidentification;
Sending module 13 is used to PUSH message being sent to push server, so that push server will according to PUSH message Download address is pushed to the corresponding terminal of terminal iidentification;
Module 14 is made for making animation, obtains the animation key frame data of animation;
Second generation module 15 is used to generate animation file according to animation key frame data;
Configuration module 16 is used to configure download address for animation file.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 2, realization principle and skill Art effect is similar, and details are not described herein again.
Fig. 9 is a kind of block diagram for animation pusher that another embodiment of the present invention provides, as shown in figure 9, the device packet It includes:
Receiving module 21 is used to receive the PUSH message of push server transmission, and PUSH message includes download address;
Acquisition module 22 is used to obtain corresponding animation file according to download address, and including at least animation in animation file closes Key frame data;
Generation module 23 is used to generate key-frame animation object according to the animation key frame data in animation file;
Playing module 24 is played out for key-frame animation object to be added on terminal screen.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 3, realization principle and skill Art effect is similar, and details are not described herein again.
Figure 10 is a kind of block diagram for animation pusher that another embodiment of the present invention provides, as shown in Figure 10, the device Including:
Acquisition module 22 is used to obtain corresponding animation file according to download address, and including at least animation in animation file closes Key frame data;
Generation module 23 is used to generate key-frame animation object according to the animation key frame data in animation file;
Playing module 24 is played out for key-frame animation object to be added on terminal screen.
Optionally, acquisition module 22, which is specifically used for being inquired according to download address, whether there is download address pair in local cache The animation file answered;If so, obtaining the corresponding animation file of download address in local cache;If it is not, then being serviced from configuration Device obtains the corresponding animation file of download address.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 4, realization principle and skill Art effect is similar, and details are not described herein again.
Optionally, acquisition module 22 obtains the corresponding animation file of download address from configuration server, including:
Acquisition module 22 sends animation request message to configuration server, and animation request message includes download address;It receives The animation response message that configuration server is sent, animation response message includes the corresponding animation file of download address.
As shown in Figure 10, which further includes:
Parsing module 25 obtains the corresponding animation file of download address for parsing animation response message;
Memory module 26 is for the corresponding animation file of download address to be stored in local cache.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 5, realization principle and skill Art effect is similar, and details are not described herein again.
Optionally, generation module 23 is specifically used for parsing animation file, and it is crucial to obtain animation included in animation file Frame data;Intermediate state value is calculated according to animation key frame data;It is generated and is closed according to animation key frame data and intermediate state value Keyframe animation object.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 6, realization principle and skill Art effect is similar, and details are not described herein again.
Figure 11 is the block diagram for a kind of electronic equipment that one embodiment of the invention provides, and as shown in figure 11, which includes:
Processor 31;And
Memory 32, the executable instruction for storing processor 31;
Wherein, when the electronic equipment is configured as realizing the function of the configuration server in above-described embodiment, processor 31 are configured to by executing executable instruction come the step of executing animation method for pushing described in Fig. 1 or Fig. 2.
Wherein, when the electronic equipment is configured as realizing the function of the terminal in above-described embodiment, processor configuration 31 For by executing executable instruction come the step of executing animation method for pushing described in Fig. 3-Fig. 6 any embodiments.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, program quilt The step of processor realizes animation method for pushing described in Fig. 1-Fig. 6 any embodiments when executing.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (random access memory, abbreviation RAM), magnetic disc Or the various media that can store program code such as CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (17)

1. a kind of animation method for pushing, which is characterized in that including:
The download address of animation file is obtained, animation key frame data is included at least in the animation file;
PUSH message is generated according to the download address and terminal iidentification;
The PUSH message is sent to push server, so that under the push server will be described according to the PUSH message Set address is pushed to the corresponding terminal of the terminal iidentification.
2. according to the method described in claim 1, it is characterized in that, it is described obtain animation file download address before, it is described Method further includes:
The animation is made, the animation key frame data of the animation is obtained;
The animation file is generated according to the animation key frame data;
Download address is configured for the animation file.
3. a kind of animation method for pushing, which is characterized in that including:
The PUSH message that push server is sent is received, the PUSH message includes download address;
Corresponding animation file is obtained according to the download address, animation key frame data is included at least in the animation file;
Key-frame animation object is generated according to the animation key frame data in the animation file;
The key-frame animation object is added on terminal screen and is played out.
4. according to the method described in claim 3, it is characterized in that, described obtain corresponding animation text according to the download address Part, including:
It is inquired according to the download address and whether there is the corresponding animation file of the download address in local cache;
If so, obtaining the corresponding animation file of the download address in the local cache;
If it is not, then obtaining the corresponding animation file of the download address from configuration server.
5. according to the method described in claim 4, it is characterized in that, described obtain the download address correspondence from configuration server Animation file, including:
Animation request message is sent to the configuration server, the animation request message includes the download address;
The animation response message that the configuration server is sent is received, the animation response message includes the download address pair The animation file answered.
6. according to the method described in claim 5, it is characterized in that, the animation response for receiving the configuration server and sending After message, the method further includes:
The animation response message is parsed, the corresponding animation file of the download address is obtained;
The corresponding animation file of the download address is stored in the local cache.
7. according to claim 3-6 any one of them methods, which is characterized in that the animation according in the animation file Key frame data generates key-frame animation object, including:
The animation file is parsed, animation key frame data included in the animation file is obtained;
Intermediate state value is calculated according to the animation key frame data;
The key-frame animation object is generated according to the animation key frame data and the intermediate state value.
8. a kind of animation pushing meanss, which is characterized in that including:
Acquisition module, the download address for obtaining animation file include at least animation key frame data in the animation file;
First generation module, for generating PUSH message according to the download address and terminal iidentification;
Sending module, for the PUSH message to be sent to push server, so that the push server is pushed away according to Send message that the download address is pushed to the corresponding terminal of the terminal iidentification.
9. device according to claim 8, which is characterized in that described device further includes:
It makes module and obtains the animation key frame data of the animation for making the animation;
Second generation module, for generating the animation file according to the animation key frame data;
Configuration module, for configuring download address for the animation file.
10. a kind of animation pusher, which is characterized in that including:
Receiving module, the PUSH message for receiving push server transmission, the PUSH message includes download address;
Acquisition module includes at least dynamic for obtaining corresponding animation file according to the download address in the animation file Draw key frame data;
Generation module, for generating key-frame animation object according to the animation key frame data in the animation file;
Playing module is played out for the key-frame animation object to be added on terminal screen.
11. device according to claim 10, which is characterized in that the acquisition module is specifically used for according to download ground Location, which is inquired, whether there is the corresponding animation file of the download address in local cache;If so, being obtained in the local cache Take the corresponding animation file of the download address;If it is not, then obtaining the corresponding animation text of the download address from configuration server Part.
12. according to the devices described in claim 11, which is characterized in that the acquisition module is under configuration server acquisition is described The corresponding animation file of set address, including:
The acquisition module sends animation request message to the configuration server, and the animation request message includes the download Address;The animation response message that the configuration server is sent is received, the animation response message includes the download address Corresponding animation file.
13. device according to claim 12, which is characterized in that described device further includes:
Parsing module obtains the corresponding animation file of the download address for parsing the animation response message;
Memory module, for the corresponding animation file of the download address to be stored in the local cache.
14. according to claim 10-13 any one of them devices, which is characterized in that the generation module is specifically used for parsing The animation file obtains animation key frame data included in the animation file;According to the animation key frame data Calculate intermediate state value;The key-frame animation object is generated according to the animation key frame data and the intermediate state value.
15. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to require 1 or 2 any one described dynamic come perform claim by executing the executable instruction The step of drawing method for pushing.
16. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to require 3~7 any one described dynamic come perform claim by executing the executable instruction The step of drawing method for pushing.
17. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled The step of any one of the claim 1~7 animation method for pushing is realized when device executes.
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 true CN108449409A (en) 2018-08-24
CN108449409B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109803157A (en) * 2019-01-18 2019-05-24 上海极链网络科技有限公司 A kind of sequence frame picture transmission method, system and electronic equipment based on video
CN110351599A (en) * 2019-07-29 2019-10-18 阿里巴巴集团控股有限公司 Animation file playback method, device and terminal device
CN110446118A (en) * 2019-07-01 2019-11-12 阿里巴巴集团控股有限公司 Video resource preprocess method and device, video resource method for down loading and device
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
CN113438541A (en) * 2021-07-21 2021-09-24 北京优锘科技有限公司 Viewpoint animation generation method, device, equipment and storage medium
US20220080318A1 (en) * 2018-12-21 2022-03-17 Shanghai Bilibili Technology Co., Ltd. Method and system of automatic animation generation

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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220080318A1 (en) * 2018-12-21 2022-03-17 Shanghai Bilibili Technology Co., Ltd. Method and system of automatic animation generation
CN109803157A (en) * 2019-01-18 2019-05-24 上海极链网络科技有限公司 A kind of sequence frame picture transmission method, system and electronic equipment based on video
CN110446118A (en) * 2019-07-01 2019-11-12 阿里巴巴集团控股有限公司 Video resource preprocess method and device, video resource method for down loading and device
CN110351599A (en) * 2019-07-29 2019-10-18 阿里巴巴集团控股有限公司 Animation file playback method, device and terminal 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
CN113438541A (en) * 2021-07-21 2021-09-24 北京优锘科技有限公司 Viewpoint animation generation method, device, equipment and storage medium
CN113438541B (en) * 2021-07-21 2022-10-11 北京优锘科技有限公司 Viewpoint animation generation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108449409B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN108449409A (en) Animation method for pushing, device, equipment and storage medium
CN104025548B (en) For the method and apparatus for the flexible caching for being delivered media
CN104349176B (en) Adaptive stream media system, method for down loading and streaming media server, user terminal
CN101505320B (en) Graphic user interface sharing method, system and tool
CN108446373A (en) Animation playing method, device, equipment and storage medium
CN105721620B (en) Video information method for pushing and device and video information exhibit method and apparatus
US9814979B2 (en) Data provision system, provision apparatus, execution apparatus, control method, and recording medium
CN104159132B (en) Video customizes the implementation method and device of service
CN110555028A (en) data display method and device
CN109640113B (en) Processing method for dragging video data and proxy server
CN103313120B (en) Show method, mobile terminal, high in the clouds and the system of picture
CN111031400B (en) Barrage presenting method and system
JP2022531339A (en) Resource configuration method, resource configuration device, computer equipment, and computer program
CN108366292A (en) A kind of across a network net cast method and system based on Streaming Media
CN107396136A (en) A kind of video data acquisition methods, device, server and medium
CN106470353B (en) Multimedia data processing method and device and electronic equipment
CN110535961A (en) Resource acquiring method, device, electronic equipment and storage medium
CN109862381A (en) Promotion method, system, device and storage medium based on dynamic video poster
US20100231582A1 (en) Method and system for distributing animation sequences of 3d objects
CN103873956B (en) Media file playing method, system, player, terminal and media storage platform
US11707684B2 (en) Cross-platform consumption of in-game objects
US9292081B2 (en) Systems and methods for programmatically interacting with a media player
CN111346377A (en) Recording and playback method and device for online game, server and terminal
US20130158690A1 (en) Systems and Methods for Dynamic Media Players Utilizing Media Traits
CN107248947A (en) Expression processing method and processing device, computer equipment and storage medium

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