[go: up one dir, main page]

CN107346557B - Method and apparatus for updating animation - Google Patents

Method and apparatus for updating animation Download PDF

Info

Publication number
CN107346557B
CN107346557B CN201610294037.9A CN201610294037A CN107346557B CN 107346557 B CN107346557 B CN 107346557B CN 201610294037 A CN201610294037 A CN 201610294037A CN 107346557 B CN107346557 B CN 107346557B
Authority
CN
China
Prior art keywords
animation
data
file
client
information
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
CN201610294037.9A
Other languages
Chinese (zh)
Other versions
CN107346557A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610294037.9A priority Critical patent/CN107346557B/en
Publication of CN107346557A publication Critical patent/CN107346557A/en
Application granted granted Critical
Publication of CN107346557B publication Critical patent/CN107346557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2213/00Indexing scheme for animation
    • G06T2213/12Rule based animation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application discloses the method and apparatus for updating animation.One specific embodiment of the method includes: the acquisition request sent to background server to the animated versions number of the animation in application, wherein the background server is the server being supported to the application of installation in the client;Whether the animated versions number for detecting the animation are consistent with from the received animated versions number of the background server;In the case of inconsistencies, Xiang Suoshu background server sends the acquisition request to the animated versions of the animation in application, wherein the animated versions information includes: index information, the file information, resource information;According to from the received animated versions information update animation of the background server.The embodiment, which realizes, is effectively and rapidly updated animation.

Description

Method and apparatus for updating animation
Technical field
This application involves field of computer technology, and in particular to Internet technical field, more particularly, to update animation Method and apparatus.
Background technique
Application program can prompt user to update or install the application of new version after version iteration and publication.As user When one new version of primary update or installation, program can show the animation of current version (characteristic, advertisement etc.) to user, reach To the effect for attracting user and publicity itself.Effect is allowed to become apparent from, it is necessary to do the customization of depth to animation, and this process It is to need to spend a large amount of resource.If there can be a kind of method, animation can be more efficiently edited, animation is generated, updates animation, The consumption of resource is thus not only reduced, but also can preferably increase the experience of user.
The prior art generally uses animation manual customization or game animation editing machine custom tailored motion picture.Animation manual customization The disadvantage is that designer and developer is needed to put into a large amount of work, each version iteration needs developer to customize reality again Existing, the animation in program cannot timely update, and update and need to repack.The shortcomings that game animation editing machine is that game animation is compiled It is high to collect device complexity, needs to put into a large amount of learning costs, game animation editing machine relies on and game engine, needs inside program It could be handled using game engine, the complexity of game engine, need to consume the more workloads of developer, animation in program It cannot timely update.
Summary of the invention
The purpose of the application is to propose a kind of improved method and apparatus for being used to update animation, to solve background above The technical issues of technology segment is mentioned.
In a first aspect, this application provides a kind of for updating the method for animation, which comprises to background server Send the acquisition request to the animated versions number of the animation in application, wherein the background server is to being mounted on client In the server that is supported of the application;Detect animated versions number of the animation and received from the background server Whether animated versions number are consistent;In the case of inconsistencies, Xiang Suoshu background server sends the animation to the animation in application The acquisition request of version information, wherein the animated versions information includes: index information, the file information, resource information;According to From the received animated versions information update animation of the background server.
In some embodiments, the basis is wrapped from the received animated versions information update animation of the background server It includes: file data is downloaded from the background server according to the index information, the file information and the resource information And resource data;The file data and the resource data are reassembled into correcting animation file;By the correcting animation file It is adapted to the resource that the client platform is supported;The resource that the client platform is supported is converted into animated graphical overview control Collection.
In some embodiments, the method also includes: by the view control collection be added to the application window view In figure;Corresponding business event interface is registered, the displaying to the animation is completed.
Second aspect, this application provides a kind of for updating the device of animation, and described device includes: request unit, is matched It sets for sending the acquisition request to the animated versions number of the animation in application to background server, wherein the background service Device is the server being supported to the application of installation in the client;Detection unit is configured to detect the animation Animated versions number it is whether consistent with from the received animated versions number of the background server;Acquiring unit is configured to not Under unanimous circumstances, Xiang Suoshu background server is sent to the animated versions information of the animation in application, wherein the animation Version information includes: index information, the file information, resource information;Updating unit is configured to basis from the background server Received animated versions information update animation.
In some embodiments, the updating unit is also configured to: according to the index information, the file information and The resource information downloads file data and resource data from the background server;By the file data and the resource Data recombination is at correcting animation file;The correcting animation file is adapted to the resource that the client platform is supported;By institute The resource for stating client platform support is converted into animated graphical overview control collection.
In some embodiments, the updating unit is also configured to: the view control collection is added to the application Window view in;Corresponding business event interface is registered, the displaying to the animation is completed.
The third aspect, this application provides a kind of for updating the method for animation, which is characterized in that the described method includes: The acquisition request of the animated versions number of the animation in the application to the client is received from client;It is sent to the client The animated versions number of animation in the application;The animated versions of the animation in the application to the client are received from client The acquisition request of information, wherein the acquisition request is to detect the animation version of the animation in the application in the client This number and the client received animated versions number it is inconsistent in the case where send;The client is sent to the client The animated versions information of animation in the application at end, wherein the animated versions information includes: index information, the file information, money Source information.
In some embodiments, the method also includes: generate animation data, wherein the animation data includes: animation Version number, animated versions information and correcting animation file.
In some embodiments, the generation animation data includes: creation correcting animation file, comprising: creation blank is drawn The flash templet data of importing are added to generation correcting animation file on painting canvas file by cloth;Edit the correcting animation text Part, comprising: draw different view effects on painting canvas by tool, wherein the tool includes: attribute facility and editor's work Tool;The attribute facility includes: layer properties and object properties;The edit tool includes: view control, animation tool and thing Part tool;The view control provides the view control of the client and guarantees to show and draw with the client synchronization View;The animation tool provides simultaneously synchronous with the holding of the view of the client to the animation operation of corresponding views control;Institute It is simultaneously synchronous with the holding of the event response of the client to state the response that event tool is provided to corresponding views control action event;It will The correcting animation file saves as flash templet, comprising: saves the content of animated versions information and painting canvas, wherein the picture The content of cloth includes: figure layer data, view control data, animation data, event data, preview data, resource data.
In some embodiments, to include that multiple files are integrated be compressed into a compound document format to the correcting animation file File, lookup and adduction relationship are established by exterior chain mode between the multiple file.
In some embodiments, the generation animation data further include: the panoramic view of the content of painting canvas described in preview is imitated Fruit;Simulate the display effect and mode of operation of the content of the painting canvas on the client.
Fourth aspect, this application provides a kind of for updating the device of animation, which is characterized in that described device includes: Receiving unit is configured to receive client to the acquisition request and animated versions information of the animated versions number of the animation in application Acquisition request;Transmission unit is configured to send the animation version of the animation in the application of the client to the client This number and animated versions information, wherein the animated versions information includes: index information, the file information, resource information.
In some embodiments, described device further include: generation unit is configured to generate animation data, wherein described Animation data includes: animated versions number, animated versions information and correcting animation file;
In some embodiments, the generation unit further include: creating unit is configured to creation correcting animation file, Include: creation blank canvas or the flash templet data of importing are added to generation correcting animation file on painting canvas file;Editor Unit is configured to edit the correcting animation file, comprising: different view effects is drawn on painting canvas by tool, In, the tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and object properties;The volume The tool of collecting includes: view control, animation tool and event tool;The view control provides the view control of the client And guarantee is shown with the client synchronization and drawing view;The animation tool provides the animation operation to corresponding views control And it is synchronous with the holding of the view of the client;The event tool provide the response to corresponding views control action event and and The event response of the client keeps synchronizing;Storage unit is configured to the correcting animation file saving as animation mould Version, comprising: save the content of animated versions information and painting canvas, wherein the content of the painting canvas includes: figure layer data, view control Number of packages evidence, animation data, event data, preview data, resource data.
In some embodiments, to include that multiple files are integrated be compressed into a compound document format to the correcting animation file File, lookup and adduction relationship are established by exterior chain mode between the multiple file.
In some embodiments, the generation unit further include: preview unit is configured to the content of painting canvas described in preview Panoramic view effect;Analogue unit is configured to simulate the display effect and operation of the content of the painting canvas on the client Mode.
The method and apparatus provided by the present application for being used to update animation, by judging whether to need more according to animated versions number New animation, obtains newest animated versions information, and the animation data that synchronous correcting animation editor generates realizes the quick of animation It updates.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the method for updating animation of the application;
Fig. 3 is the structural schematic diagram according to one embodiment of the device for updating animation of the application;
Fig. 4 is the flow chart according to another embodiment of the method for updating animation of the application;
Fig. 5 is the schematic diagram according to an application scenarios of the method for updating animation of the application;
Fig. 6 is the structural schematic diagram according to another embodiment of the device for updating animation of the application;
Fig. 7 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present application Figure.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for updating animation of the application or the implementation of the device for updating animation The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as the webpage with animation can be installed on terminal device 101,102,103 Browser application, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be with display screen and the various electronic equipments of supporting animation to show, packet Include but be not limited to smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103 Animation provides the backstage animation server supported.Backstage animation server can be to the animated versions number and animated versions received The data such as information acquisition request carry out the processing such as analyzing, and processing result (such as animation data) is fed back to terminal device.Afterwards Platform animation server can be to provide the server of the business function of client application, can also be that another only provides animation clothes The server of business.
It should be noted that provided by the embodiment of the present application for update the method for animation generally by terminal device 101, 102,103 and server 105 execute, correspondingly, the device for updating animation is generally positioned at terminal device 101,102,103 In server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 of method one embodiment for updating animation according to the application is shown. The method for being used to update animation, comprising the following steps:
Step 201, the acquisition request to the animated versions number of the animation in application is sent to background server.
In the present embodiment, electronic equipment (such as end shown in FIG. 1 thereon is run for updating the method for animation End) it can be sent by wired connection mode or radio connection to background server (such as server shown in FIG. 1) To the acquisition request of the animated versions number of the animation in application, wherein the background server is the institute to installation in the client It states using the server being supported.When the application starting in client, the animation of the application is sent to background server Animated versions acquisition request is to obtain newest animated versions number.
Step 202, whether the animated versions number for detecting animation are consistent with from the received animated versions number of background server.
In the present embodiment, above-mentioned electronic equipment receives after the animated versions number that background server is sent to animation version This number is detected, judge the animation in current application animated versions number whether and from the received animated versions of background server It is number consistent.For example, client is 5.0 using current animated versions number, and from the received animated versions number of background server It is 6.0, then can determine whether out that current animation version is not latest edition, then need to update animation.
Step 203, in the case of inconsistencies, the animated versions information to the animation in application is sent to background server Acquisition request.
In the present embodiment, it when above-mentioned electronic equipment judges that animated versions number are inconsistent based on step 202, is taken to backstage Business device is sent to the acquisition request of the animated versions information of the animation in application to obtain the data for updating animation.Wherein, Animated versions information includes: index information, the file information, resource information.Index information is by the corresponding file of the animated versions The collecting structure of id and resource id composition, can be quickly found out corresponding information by file id and resource id.The file information be by The information such as file id, fileversion number, filename, file path, document time composition, gets the file information by file id It afterwards, can rapidly extracting file content.Resource information is made of resource id, resource name, resource path, resource type, is passed through Resource id can be quickly found out corresponding resource content, for using.
Step 204, according to from the received animated versions information update animation of background server.
In the present embodiment, the application of client is according to from the received index information of background server, the file information, resource Information update animation.
In some optional implementations of the present embodiment, believe according to from the received animated versions of the background server Breath updates animation, comprising: according to the index information, the file information and the resource information from the background server Download file data and resource data;The file data and the resource data are reassembled into correcting animation file;It will be described Correcting animation file is adapted to the resource that the client platform is supported;The resource that the client platform is supported is converted into moving Draw view control collection.Wherein, which includes view object and view relation.For example, when client is from from the background After server receives newest animated versions information, pass through identification index information, the file information and resource information downloading pair The file data and resource data answered.The resource data is text, picture etc., text, the picture, use referred in animation Font etc., editor and displaying convenient for animation.After the completion of file data and resource data downloading, according to the number of downloading completion According to reassembling into correcting animation file, guarantee the correctness of correcting animated format in renewal process.It then will be in correcting animation file Hold data, the resource of active client platform support is converted into, for example, being converted into being adapted to the model according to the model of current phone The resource of mobile phone.The resource that the model mobile phone is supported is converted into animated graphical overview control collection again.
In some optional implementations of the present embodiment, this method further include: be added to the view control collection In the window view of the application;Corresponding business event interface is registered, the displaying to the animation is completed.Wherein, the industry Business event may include click, double-click, left cunning, right cunning, common gesture etc..
In some optional implementations of the present embodiment, this method further includes record version updating information, comprising: is gone through History version number, version updating time, version remarks.
The method provided by the above embodiment of the application by according to the animated versions information that is obtained from background server more The animation of new client application, realizes the quick update of client application animation.
With further reference to Fig. 3, as the realization to method shown in above-mentioned each figure, it is dynamic for updating that this application provides one kind One embodiment of the device of picture, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 3, the device 300 described in the present embodiment for updating animation includes: request unit 301, detection list Member 302, acquiring unit 303 and updating unit 304.Wherein, request unit 301 is configured to send to background server to application In animation animated versions number acquisition request, wherein the background server be to installation in the client described in answer With the server being supported;Detection unit 302 is configured to detect the animated versions number of the animation and take from the backstage Whether the received animated versions number of device of being engaged in are consistent;Acquiring unit 303 is configured in the case of inconsistencies, take to the backstage Business device sends the acquisition request to the animated versions information of the animation in application, wherein the animated versions information includes: index Information, the file information, resource information;Updating unit 304 is configured to basis from the received animated versions of the background server Information update animation.
In the present embodiment, request unit 301 is communicated in a manner of wire communication or wireless communication with background server. The client after having sent animated versions acquisition request of request unit 301 will receive the newest animation of background server transmission Version number.
In the present embodiment, detection unit 302 is judged after needing to update animated versions, notice acquiring unit 303 to The acquisition request of background server transmission animated versions information.
In the present embodiment, acquiring unit 303 is communicated in a manner of wire communication or wireless communication with background server. The client after having sent animated versions information acquisition request of acquiring unit 303 will receive the newest dynamic of background server transmission Draw version information.
In the present embodiment, the newest animated versions information that updating unit 304 utilizes the background server received to send is more New animation.
In some optional implementations of the present embodiment, updating unit 304 is also configured to: being believed according to the index Breath, the file information and the resource information download file data and resource data from the background server;It will be described File data and the resource data reassemble into correcting animation file;The correcting animation file is adapted to the client to hold level with both hands The resource that platform is supported;The resource that the client platform is supported is converted into animated graphical overview control collection.
In some optional implementations of the present embodiment, updating unit 304 is also configured to: by the view control Collection is added in the window view of the application;Corresponding business event interface is registered, the displaying to the animation is completed.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for updating animation.The use In the process 400 for the method for updating animation, comprising the following steps:
Step 401, the acquisition request of the animated versions number of the animation in the application to client is received from client.
In the present embodiment, in the present embodiment, for update animation method run thereon electronic equipment (such as Server shown in FIG. 1) client is received to the acquisition request of the animated versions number of the animation in application, find the request pair The animated versions number answered.
Step 402, the animated versions number for the animation in application for sending client to client.
In the present embodiment, the animated versions number found are returned to client by background server.
Step 403, the acquisition request of the animated versions information of the animation in the application to client is received from client.
In the present embodiment, client is in the animated versions number for detecting animation and from the received animation version of background server This number it is inconsistent when, send animated versions information acquisition request.The acquisition that background server receives animated versions information is asked It asks, finds the corresponding animated versions information of the request.
Step 404, the animated versions information for the animation in application for sending client to client.
In the present embodiment, the animated versions information found is returned to client by background server.
In some optional implementations of the present embodiment, this method further includes generating animation data.Wherein, the animation Data include: animated versions number, animated versions information and correcting animation file, wherein the animated versions information includes: index Information, the file information, resource information.
In some optional implementations of the present embodiment, the generation animation data includes: creation correcting animation text Part, comprising: the flash templet data of importing are added to generation correcting animation file on painting canvas file by creation blank canvas;It compiles Volume correcting animation file, comprising: draw different view effects on painting canvas by tool, wherein the tool includes: Attribute facility and edit tool;The attribute facility includes: layer properties and object properties;The edit tool includes: view Control, animation tool and event tool;The view control provides the view control of the client and guarantees and the visitor Family end simultaneous display and drawing view;The animation tool provides the animation operation and and the client to corresponding views control View keep synchronize;The event tool, which is provided, responds the simultaneously thing with the client to corresponding views control action event Part response keeps synchronizing;The correcting animation file is saved as into flash templet, comprising: save animated versions information and painting canvas Content, wherein the content of the painting canvas includes: figure layer data, view control data, animation data, event data, preview number According to, resource data.For example, when carrying out animation update, the version numbers of the animated versions is set as 6.0, a blank is created and draws Cloth generates interim correcting animation file, using tool in the blank canvas drawing view, by compiled interim correcting animation File is saved into flash templet, and saves animated versions information.
In some optional implementations of the present embodiment, the correcting animation file includes the integrated compression of multiple files At the file of a compound document format, lookup and adduction relationship are established by exterior chain mode between the multiple file.For example, Between internal multiple files, by exterior chain id, (id format is UUID (Universally Unique Identifier Universally Unique Identifier)) index, which is established, searches with adduction relationship (such as < id=" dfks-dfkdn-ukrn-dien " ln=" dfks- sfkdn-tkrn-kien”>)。
In some optional implementations of the present embodiment, the generation animation data further include: painting canvas described in preview Content panoramic view effect;Simulate the display effect and mode of operation of the content of the painting canvas on the client.For example, logical The content-data for obtaining current painting canvas is crossed, corresponding proportion ruler scaling is carried out, is plotted to the overall situation for completing painting canvas on preview pane view Preview.Display effect of the current painting canvas content on terminal (such as type A, resolution ratio 640x960) and operation side are simulated in real time Formula.By the way that terminal attribute (such as type, resolution ratio) is arranged, binding events response simulation mechanism is realized.
With continued reference to the signal that Fig. 5, Fig. 5 are according to the application scenarios of the method for updating animation of the present embodiment Figure.In the application scenarios of Fig. 5, " creation blank animation " 501 or " importing flash templet " when user's making of cartoon, can be clicked 502.When creating blank canvas when clicking " creation blank animation " 501, and clicking " importing flash templet " 502, by the dynamic of importing It draws template data to be added on painting canvas file, regenerates interim correcting animation file.Then View Drawing is carried out using tool, In, tool includes: attribute facility and edit tool;The attribute facility includes: layer properties 509 and object properties 510.Pass through The content of text or picture that tool is added, modifies, deleted draws different view effects 511 on painting canvas.Drawing can be used System API (Application Programming Interface, application programming interface) realizes that different platform uses The API of different platform.
Edit tool mainly contains view control 505, animation tool 506, event tool 507.View control 505, mentions The view control for having supplied corresponding FTP client FTP control can support extension to add.View control ensure that the display of view and draw The view synchronism of system and client.Animation tool 506 provides the animation operation to corresponding views control, while and client The view at end keeps synchronizing, and can support to extend customized animation and record flash templet.Event tool 507, provides to phase It answers the response of view control action event synchronous with the holding of the event response of client, controls the trend and business of event It realizes, such as click event, after user click, the content of operation in next step can be set.
Can also be by click " animation preview " 504, the panoramic view effect of show canvas content in animation preview pane 508 Fruit.
Display effect of the current painting canvas content on terminal (such as type A, resolution ratio 640x960) can also be simulated in real time And mode of operation.
The animation data preservation of generation is used to create new animation, animation mould by point " saving animation " 503 at flash templet The animated versions information for including in version is for being sent to client.Client downloads corresponding file after receiving animated versions information Animation is updated after data and resource data.
The method provided by the above embodiment of the application realizes client by sending animated versions information to client The quick update of the animation of application.
With further reference to Fig. 6, as the realization to method shown in above-mentioned each figure, it is dynamic for updating that this application provides one kind One embodiment of the device of picture, the Installation practice is corresponding with embodiment of the method shown in Fig. 4, which can specifically answer For in various electronic equipments.
As shown in fig. 6, the device 600 described in the present embodiment for updating animation includes: receiving unit 601 and sends single Member 602.Receiving unit 601 is configured to receive client to the acquisition request and animation of the animated versions number of the animation in application The acquisition request of version information;Transmission unit 602 is configured to send to the client dynamic in the application of the client The animated versions number and animated versions information of picture, wherein the animated versions information includes: index information, the file information, resource Information;.
In the present embodiment, receiving unit 601 is configurable to receive client to the animated versions of the animation in application Number acquisition request, it may also be used for receive animated versions information acquisition request.In the acquisition request for receiving animated versions number Corresponding animated versions number are found later, then transmission unit 602 are notified to be sent to client.Receiving animated versions letter Corresponding animated versions information is found after the acquisition request of breath, then transmission unit 602 is notified to be sent to client.
In the present embodiment, the animated versions number that transmission unit 602 receives receiving unit 601 are sent after notice to client Send animated versions number.The animated versions information that transmission unit 602 receives receiving unit 601 is sent after sending notice to client Animated versions information.
In some optional implementations of the present embodiment, which further includes generation unit, for generating and saving Client updates animation data required for animation, wherein the animation data includes: animated versions number, animated versions information With correcting animation file.
In some optional implementations of the present embodiment, generation unit further include: creating unit is configured to create Correcting animation file, comprising: the flash templet data of importing are added on painting canvas file and generate correcting by creation blank canvas Animation file;Edit cell is configured to edit the correcting animation file, comprising: draw difference on painting canvas by tool View effect, wherein the tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and right As attribute;The edit tool includes: view control, animation tool and event tool;The view control provides the visitor The view control at family end and guaranteeing is shown with the client synchronization and drawing view;The animation tool is provided to corresponding views The animation operation of control is simultaneously synchronous with the holding of the view of the client;The event tool, which provides, operates corresponding views control The response of event is simultaneously synchronous with the holding of the event response of the client;Storage unit is configured to the correcting animation text Part saves as flash templet, comprising: saves the content of animated versions information and painting canvas, wherein the content of the painting canvas includes: figure Layer data, view control data, animation data, event data, preview data, resource data.
In some optional implementations of the present embodiment, the correcting animation file includes the integrated compression of multiple files At the file of a compound document format, lookup and adduction relationship are established by exterior chain mode between the multiple file.
In some optional implementations of the present embodiment, generation unit further include: preview unit is configured to preview The panoramic view effect of the content of the painting canvas;Analogue unit is configured to simulate the content of the painting canvas on the client Display effect and mode of operation.
Below with reference to Fig. 7, it illustrates the calculating of the terminal device or server that are suitable for being used to realize the embodiment of the present application The structural schematic diagram of machine system 700.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable Computer program on medium, the computer program include the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communications portion 709, and/or from removable Medium 711 is unloaded to be mounted.When the computer program is executed by central processing unit (CPU) 701, execute in the present processes The above-mentioned function of limiting.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include request unit, detection unit, acquiring unit and updating unit.Wherein, the title of these units not structure under certain conditions The restriction of the pairs of unit itself, for example, request unit is also described as " sending to background server to dynamic in application The unit of the acquisition request of the animated versions number of picture ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;It is also possible to Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are executed by an equipment, so that the equipment: backward Platform server sends the acquisition request to the animated versions number of the animation in application, wherein the background server is to installation The server that the application in the client is supported;Detect the animated versions number of the animation and from the background service Whether the received animated versions number of device are consistent;In the case of inconsistencies, Xiang Suoshu background server is sent to dynamic in application The acquisition request of the animated versions information of picture, wherein the animated versions information includes: index information, the file information, resource letter Breath;According to from the received animated versions information update animation of the background server.Alternatively, above-mentioned non-volatile computer storage Media storage has one or more program, when one or more of programs are executed by an equipment, so that described set It is standby: to receive client to the acquisition request of the animated versions number of the animation in application;The client is sent to the client Application in animation animated versions number;Client is received to the acquisition request of the animated versions information of the animation in application; The animated versions information for the animation in application for sending the client to the client, wherein the animated versions information It include: index information, the file information, resource information.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (16)

1. a kind of for updating the method for animation, which is characterized in that the described method includes:
The acquisition request to the animated versions number of the animation in application is sent to background server, wherein the background server It is the server being supported to the application of installation in the client;
Whether the animated versions number for detecting the animation are consistent with from the received animated versions number of the background server;
In the case of inconsistencies, the acquisition of the animated versions information of the animation in application is asked in Xiang Suoshu background server transmission It asks, wherein the animated versions information includes: index information, the file information, resource information;
Animation is updated according to from the received animated versions information of the background server and animation data;
Wherein, the animation data is generated as follows by the background server:
Create correcting animation file, comprising: the flash templet data of importing are added on painting canvas file by creation blank canvas Generate correcting animation file;
Edit the correcting animation file, comprising: draw different view effects on painting canvas by tool, wherein the work Tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and object properties;The edit tool packet It includes: view control, animation tool and event tool;The view control provide the view control of the client and guarantee with The client synchronization is shown and drawing view;The animation tool provides simultaneously and described to the animation operation of corresponding views control The view of client keeps synchronizing;The event tool provides the response to corresponding views control action event and and the client The event response at end keeps synchronizing;
The correcting animation file is saved as into flash templet, comprising: save the content of animated versions information and painting canvas, wherein The content of the painting canvas includes: figure layer data, view control data, animation data, event data, preview data, resource data.
2. according to claim 1 for updating the method for animation, which is characterized in that the basis is from the background service The received animated versions information update animation of device, comprising:
File data is downloaded from the background server according to the index information, the file information and the resource information And resource data;
The file data and the resource data are reassembled into correcting animation file;
The correcting animation file is adapted to the resource that the client platform is supported;
The resource that the client platform is supported is converted into animated graphical overview control collection.
3. according to claim 2 for updating the method for animation, which is characterized in that the method also includes:
The view control collection is added in the window view of the application;
Corresponding business event interface is registered, the displaying to the animation is completed.
4. a kind of for updating the device of animation, which is characterized in that described device includes:
Request unit is configured to send the acquisition request to the animated versions number of the animation in application to background server, In, the background server is the server being supported to the application of installation in the client;
Detection unit is configured to detect the animated versions number of the animation and from the received animated versions of the background server It is number whether consistent;
Acquiring unit is configured in the case of inconsistencies, and Xiang Suoshu background server is sent to the dynamic of the animation in application Draw the acquisition request of version information, wherein the animated versions information includes: index information, the file information, resource information;
Updating unit is configured to dynamic according to updating from the received animated versions information of the background server and animation data It draws;
Wherein, the animation data is generated as follows by the background server:
Create correcting animation file, comprising: the flash templet data of importing are added on painting canvas file by creation blank canvas Generate correcting animation file;
Edit the correcting animation file, comprising: draw different view effects on painting canvas by tool, wherein the work Tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and object properties;The edit tool packet It includes: view control, animation tool and event tool;The view control provide the view control of the client and guarantee with The client synchronization is shown and drawing view;The animation tool provides simultaneously and described to the animation operation of corresponding views control The view of client keeps synchronizing;The event tool provides the response to corresponding views control action event and and the client The event response at end keeps synchronizing;
The correcting animation file is saved as into flash templet, comprising: save the content of animated versions information and painting canvas, wherein The content of the painting canvas includes: figure layer data, view control data, animation data, event data, preview data, resource data.
5. according to claim 4 for updating the device of animation, which is characterized in that the updating unit also configures use In:
File data is downloaded from the background server according to the index information, the file information and the resource information And resource data;
The file data and the resource data are reassembled into correcting animation file;
The correcting animation file is adapted to the resource that the client platform is supported;
The resource that the client platform is supported is converted into animated graphical overview control collection.
6. according to claim 5 for updating the device of animation, which is characterized in that the updating unit also configures use In:
The view control collection is added in the window view of the application;
Corresponding business event interface is registered, the displaying to the animation is completed.
7. a kind of for updating the method for animation, which is characterized in that the described method includes:
The acquisition request of the animated versions number of the animation in the application to the client is received from client;
The animated versions number of the animation in the application are sent to the client;
The acquisition request of the animated versions information of the animation in the application to the client is received from client, wherein described Acquisition request is to detect that the animated versions number of the animation in the application and the client are received dynamic in the client It is sent in the case that picture version number is inconsistent;
The animated versions information for the animation in application for sending the client to the client, wherein the animated versions Information includes: index information, the file information, resource information;
It generates animation data and sends the animation data to the client;
Wherein, the generation animation data includes:
Create correcting animation file, comprising: the flash templet data of importing are added on painting canvas file by creation blank canvas Generate correcting animation file;
Edit the correcting animation file, comprising: draw different view effects on painting canvas by tool, wherein the work Tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and object properties;The edit tool packet It includes: view control, animation tool and event tool;The view control provide the view control of the client and guarantee with The client synchronization is shown and drawing view;The animation tool provides simultaneously and described to the animation operation of corresponding views control The view of client keeps synchronizing;The event tool provides the response to corresponding views control action event and and the client The event response at end keeps synchronizing;
The correcting animation file is saved as into flash templet, comprising: save the content of animated versions information and painting canvas, wherein The content of the painting canvas includes: figure layer data, view control data, animation data, event data, preview data, resource data.
8. according to claim 7 for updating the method for animation, which is characterized in that the animation data includes: animation Version number, animated versions information and correcting animation file.
9. according to claim 8 for updating the method for animation, which is characterized in that the correcting animation file includes more The integrated file for being compressed into a compound document format of a file, between the multiple file by exterior chain mode establish lookup and Adduction relationship.
10. according to claim 7 for updating the method for animation, which is characterized in that the generation animation data also wraps It includes:
The panoramic view effect of the content of painting canvas described in preview;
Simulate the display effect and mode of operation of the content of the painting canvas on the client.
11. a kind of for updating the device of animation, which is characterized in that described device includes:
Receiving unit is configured to receive client to the acquisition request and animated versions of the animated versions number of the animation in application The acquisition request of information;
Transmission unit is configured to send the animated versions number of the animation in the application of the client to the client, move Draw version information and animation data, wherein the animated versions information includes: index information, the file information, resource information;
Generation unit is configured to generate animation data;
The generation unit further include:
Creating unit is configured to creation correcting animation file, comprising: creation blank canvas or the flash templet data by importing It is added to generation correcting animation file on painting canvas file;
Edit cell is configured to edit the correcting animation file, comprising: draw different views on painting canvas by tool Effect, wherein the tool includes: attribute facility and edit tool;The attribute facility includes: layer properties and object category Property;The edit tool includes: view control, animation tool and event tool;The view control provides the client View control and guarantee to show and drawing view with the client synchronization;The animation tool is provided to corresponding views control Animation operation and synchronous with the holding of the view of the client;The event tool is provided to corresponding views control action event Response and it is synchronous with the holding of the event response of the client;
Storage unit is configured to the correcting animation file saving as flash templet, comprising: save animated versions information and The content of painting canvas, wherein the content of the painting canvas includes: figure layer data, view control data, animation data, event data, pre- Look at data, resource data.
12. according to claim 11 for updating the device of animation, which is characterized in that the animation data includes: dynamic Draw version number, animated versions information and correcting animation file.
13. according to claim 12 for updating the device of animation, which is characterized in that the correcting animation file includes The integrated file for being compressed into a compound document format of multiple files establishes lookup by exterior chain mode between the multiple file And adduction relationship.
14. according to claim 11 for updating the device of animation, which is characterized in that the generation unit further include:
Preview unit is configured to the panoramic view effect of the content of painting canvas described in preview;
Analogue unit is configured to simulate the display effect and mode of operation of the content of the painting canvas on the client.
15. a kind of equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-3,7-10.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed The method as described in any in claim 1-3,7-10 is realized when device executes.
CN201610294037.9A 2016-05-05 2016-05-05 Method and apparatus for updating animation Active CN107346557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610294037.9A CN107346557B (en) 2016-05-05 2016-05-05 Method and apparatus for updating animation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610294037.9A CN107346557B (en) 2016-05-05 2016-05-05 Method and apparatus for updating animation

Publications (2)

Publication Number Publication Date
CN107346557A CN107346557A (en) 2017-11-14
CN107346557B true CN107346557B (en) 2019-06-04

Family

ID=60253905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610294037.9A Active CN107346557B (en) 2016-05-05 2016-05-05 Method and apparatus for updating animation

Country Status (1)

Country Link
CN (1) CN107346557B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174288A (en) * 2017-12-27 2018-06-15 深圳创维-Rgb电子有限公司 Playing method, device, display terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193806A (en) * 2010-03-04 2011-09-21 腾讯科技(深圳)有限公司 Method and device for updating animation
CN103812946A (en) * 2014-02-27 2014-05-21 东莞旨尖动漫科技有限公司 Method and system for online cloud updating of AR application program
CN104079631A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Version management method and related device
CN104281458A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Application data processing method, device and system
CN104469474A (en) * 2014-10-28 2015-03-25 深圳国微技术有限公司 Channel list updating method and device, and terminal device
CN104915977A (en) * 2014-03-14 2015-09-16 腾讯科技(深圳)有限公司 Animation file generation method and device for local application program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8730245B2 (en) * 2008-12-01 2014-05-20 Naturalmotion Ltd. Defining an animation of a virtual object within a virtual world
US8799362B2 (en) * 2010-03-09 2014-08-05 Avistar Communications Corporation Scalable high-performance interactive real-time media architectures for virtual desktop environments
CN104216697B (en) * 2013-06-05 2020-05-22 百度在线网络技术(北京)有限公司 Animation playing method and device for mobile terminal and mobile terminal
CN105094926A (en) * 2015-08-28 2015-11-25 张为坚 Software updating method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193806A (en) * 2010-03-04 2011-09-21 腾讯科技(深圳)有限公司 Method and device for updating animation
CN104281458A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Application data processing method, device and system
CN103812946A (en) * 2014-02-27 2014-05-21 东莞旨尖动漫科技有限公司 Method and system for online cloud updating of AR application program
CN104915977A (en) * 2014-03-14 2015-09-16 腾讯科技(深圳)有限公司 Animation file generation method and device for local application program
CN104079631A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Version management method and related device
CN104469474A (en) * 2014-10-28 2015-03-25 深圳国微技术有限公司 Channel list updating method and device, and terminal device

Also Published As

Publication number Publication date
CN107346557A (en) 2017-11-14

Similar Documents

Publication Publication Date Title
CN112487331B (en) Page generation method and device, storage medium and electronic device
CN105589631B (en) Information display method and device
CN109582317B (en) Method and apparatus for debugging hosted applications
CN108509207A (en) The cross-system of WEB application program is installed
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN106997298A (en) A kind of application resource acquisition methods and device
CN110020329A (en) For generating the methods, devices and systems of webpage
CN109669617A (en) Method and apparatus for switching the page
CN106874519A (en) Webpage representation method and apparatus
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
CN110058854B (en) Method, terminal device and computer-readable medium for generating application
CN104219295A (en) Server-side configuration based information display method and system for mobile equipment
CN107463406A (en) Issue the method and electronic equipment of Mobile solution
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN113741860A (en) Data processing method and device based on RPA robot
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN108509442B (en) Search method and apparatus, server, and computer-readable storage medium
CN107346557B (en) Method and apparatus for updating animation
CN109582580A (en) For debugging system, the method and apparatus of the page
CN105739717B (en) Data inputting method and device
CN112395109A (en) Clipboard content processing method and device
CN111767290B (en) Method and device for updating user portrait
CN110457618A (en) Information displaying method and device
CN109683939B (en) Component object updating method, device and storage medium
CN110990104A (en) Unity 3D-based texture rendering method and device

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