CN106528095A - Method and device for playing animation on terminal - Google Patents
Method and device for playing animation on terminal Download PDFInfo
- Publication number
- CN106528095A CN106528095A CN201610916427.5A CN201610916427A CN106528095A CN 106528095 A CN106528095 A CN 106528095A CN 201610916427 A CN201610916427 A CN 201610916427A CN 106528095 A CN106528095 A CN 106528095A
- Authority
- CN
- China
- Prior art keywords
- animation
- specified object
- playing
- screen
- affiliated partner
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a method and device for playing an animation on a terminal, used for realizing the purpose of slickly playing the animation on the screen of the terminal. The method for playing an animation on a terminal comprises the following steps: calling and starting the first preset method while the instruction of playing the animation of the specified object on the screen of the terminal is received, wherein the first method is used for realizing the playing of the first animation of the specified object on the screen; calling and starting the second method after the playing of the first animation of the specified object is completed, wherein the second method is used for realizing the animation playing of the associated object of the specified object on the screen.
Description
Technical field
The present invention relates to technical field of internet application, the method and dress of more particularly to a kind of playing animation in terminal
Put.
Background technology
With the development of Internet technology, the information that people can be obtained from the Internet is increasingly enriched, due to animation
Can present give people to enrich, interesting picture and content, increasing people like animation is seen on the net.It is dynamic in the Internet
Picture presents to user, such as flash animation in a variety of forms, and flash can include simple animation, video content, answer
Miscellaneous PowerPoint or application program etc..However, with the development of terminal technology, how on the screen of terminal, playing animation becomes
Problem demanding prompt solution.
The content of the invention
The present invention provides a kind of method and device of the playing animation in terminal, to realize on the screen of terminal flexibly
The purpose of ground playing animation.
The present invention provides a kind of method of the playing animation in terminal, including:
When the instruction that the animation for specifying object is played on the screen of terminal is received, default first method is adjusted,
Realized playing the first animation of the specified object on the screen by the first method;
After the first animation of the specified object that finishes playing, default second method is adjusted, by the second method
The animation of the affiliated partner of the specified object is played in realization on the screen.
In an embodiment of the present invention, the method that the first method and the second method belong to specified class.
In an embodiment of the present invention, realize playing the of the specified object on the screen by the first method
One animation, including:
The relevant parameter of the first animation of the specified object is set in the first method;
Based on the relevant parameter of the first animation of the specified object, the of the specified object is played on the screen
One animation.
In an embodiment of the present invention, the relevant parameter of the first animation of the specified object includes at least one following:
The perform duration, playing animation of the specified object starts the size of the specified object, playing animation and terminates the finger
Determine the size of object.
In an embodiment of the present invention, realize playing the pass of the specified object on the screen by the second method
The animation of connection object, including:
The relevant parameter of the animation of the affiliated partner of the specified object is set in the second method;
Based on the relevant parameter of the animation of the affiliated partner of the specified object, the association is played on the screen right
The animation of elephant.
In an embodiment of the present invention, the relevant parameter of the animation of the affiliated partner of the specified object include it is following at least
One of:The execution duration of the affiliated partner, the property parameters of the affiliated partner.
In an embodiment of the present invention, realizing playing the specified object on the screen by the second method
After the animation of affiliated partner, methods described also includes:
Default third method is adjusted, has realized playing the of the specified object on the screen by the third method
Two animations.
The present invention also provides a kind of device of the playing animation in terminal, including:
First playing module, for when the instruction that the animation for specifying object is played on the screen of terminal is received, adjusting
Default first method is played, is realized playing the first animation of the specified object on the screen by the first method;
Second playing module, for, after the first animation of the specified object that finishes playing, having adjusted default second party
Method, is played the animation of the affiliated partner of the specified object on the screen by second method realization.
In an embodiment of the present invention, the method that the first method and the second method belong to specified class.
In an embodiment of the present invention, first playing module is additionally operable to:
The relevant parameter of the first animation of the specified object is set in the first method;
Based on the relevant parameter of the first animation of the specified object, the of the specified object is played on the screen
One animation.
In an embodiment of the present invention, the relevant parameter of the first animation of the specified object includes at least one following:
The perform duration, playing animation of the specified object starts the size of the specified object, playing animation and terminates the finger
Determine the size of object.
In an embodiment of the present invention, second playing module is additionally operable to:
The relevant parameter of the animation of the affiliated partner of the specified object is set in the second method;
Based on the relevant parameter of the animation of the affiliated partner of the specified object, the association is played on the screen right
The animation of elephant.
In an embodiment of the present invention, the relevant parameter of the animation of the affiliated partner of the specified object include it is following at least
One of:The execution duration of the affiliated partner, the property parameters of the affiliated partner.
In an embodiment of the present invention, described device also includes:
3rd playing module, for realizing playing on the screen by the second method in second playing module
After the animation of the affiliated partner of the specified object, default third method is adjusted, realized described by the third method
The second animation of the specified object is played on screen.
In embodiments of the present invention, when the instruction that the animation for specifying object is played on the screen of terminal is received, adjust
Default first method is played, is realized playing the first animation of the specified object on the screen by the first method;
Finish playing after the first animation of the specified object, adjusted default second method, realized described by the second method
The animation of the affiliated partner of the specified object is played on screen.As can be seen here, the embodiment of the present invention can be realized in terminal
The neatly purpose of playing animation on screen.
Other features and advantages of the present invention will be illustrated in the following description, also, partly be become from description
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
In book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for description, the reality with the present invention
Applying example is used for explaining the present invention together, is not construed as limiting the invention.In the accompanying drawings:
The flow chart that Fig. 1 show in one embodiment of the invention the method for playing animation in terminal;
The flow chart that Fig. 2 show in another embodiment of the present invention the method for playing animation in terminal;
Fig. 3 show in one embodiment of the invention the structural representation of the device of playing animation in terminal;
Fig. 4 show in another embodiment of the present invention the structural representation of the device of playing animation in terminal.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
The flow chart of the method for playing animation in terminal is illustrated in figure 1 in one embodiment of the invention, and the method can be with
Apply in the terminals such as computer, smart mobile phone, the method may comprise steps of S11-S12.
Step S11, when the instruction that the animation for specifying object is played on the screen of terminal is received, has adjusted default the
One method, is realized playing the first animation for specifying object on screen by first method.
In this step, it is intended that object can be aperture etc., the invention is not restricted to this.
The related ginseng of the first animation for specifying object, in the alternative embodiment of the present invention, can be set in first method
Number, and then the relevant parameter of the first animation based on specified object, play the first animation for specifying object on screen.Here,
The relevant parameter of the first animation of specified object can include:The execution duration of specified object, playing animation start to specify object
Size, playing animation terminates to specify size, etc. of object.
When specified object is aperture, can realize playing aperture on the screen of terminal from original dimension by first method
Size is to the full animation effect launched.Here, original dimension size and the full size launched can pre-set, such as initial
Size is set to 0, and the full size launched is set to 10 centimetres etc..
Step S12, after the first animation of the specified object that finishes playing, has adjusted default second method, by second method
Realize the animation of the affiliated partner for specifying object is played on screen.
In this step, the relevant parameter of the animation of the affiliated partner of specified object can be set in the second approach, is entered
And the relevant parameter of the animation based on the affiliated partner of specified object, the animation of affiliated partner is played on screen.Here, it is intended that
The relevant parameter of the animation of the affiliated partner of object can include:The execution duration of affiliated partner, the property parameters of affiliated partner,
Etc..
When specified object is aperture, it is intended that the affiliated partner of object can be golden microphone, i.e., can after aperture launches entirely
To trigger the display of golden microphone.In the alternative embodiment of the present invention, can arrange the execution duration of golden microphone, delay time,
Spring special effect parameters (such as elasticity, speed etc.).
In the alternative embodiment of the present invention, realize playing on screen by second method in above step S12 and specify right
After the animation of the affiliated partner of elephant, default third method can also be adjusted, realize playing on screen referring to by third method
Determine the second animation of object.It is possible to further the relevant parameter for arranging the second animation for specifying object in third method, enter
And the relevant parameter of the second animation based on specified object, the second animation for specifying object is played on screen.Here, it is intended that right
The relevant parameter of second animation of elephant can include:The execution duration of specified object, anglec of rotation, etc..
In the alternative embodiment of the present invention, the method that first method and second method belong to specified class, the specified class can
Being CABasicAnimation classes, etc..
In embodiments of the present invention, when the instruction that the animation for specifying object is played on the screen of terminal is received, adjust
Default first method is played, is realized playing the first animation of the specified object on the screen by the first method;
Finish playing after the first animation of the specified object, adjusted default second method, realized described by the second method
The animation of the affiliated partner of the specified object is played on screen.As can be seen here, the embodiment of the present invention can be realized in terminal
The neatly purpose of playing animation on screen.
The realization of the method for playing animation in terminal of the present invention is discussed in detail below by a specific embodiment
Journey.The flow chart of the method for playing animation in terminal is illustrated in figure 2 in another embodiment of the present invention, and the method can be applied
In the terminals such as computer, smart mobile phone, the method may comprise steps of S21-S25.
Step S21, obtains the specified class in terminal system.
In this step, animation effect is realized together using View Animation and Layer Animation.
Step S22, in the animation for specifying first method, second method and third method defined in class to realize respective object
Relevant parameter.
In this step, first method animation1 realizes playing the first animation for specifying object on screen;Second
Method animation2 realizes the animation that the affiliated partner for specifying object is played on screen;Third method animation3 is realized
The second animation for specifying object is played on screen.
Step S23, when the instruction that the animation for specifying object is played on the screen of terminal is received, has adjusted first party
Method, is realized playing the first animation for specifying object on screen by first method.
In this step, it is intended that object can be aperture, and its affiliated partner is golden microphone.Animation1 realizes that aperture is imitated
Really.Duration is performed, the duration represents the overall process duration that aperture launches, and terminates after being fully deployed.Delay time, the method are adjusted
Can not perform at once with after, be performed after the delay time is reached again, such as extend 1 second.Aperture original dimension size can be
0, the full size launched can be 10 centimetres etc..Aperture triggers the display of golden microphone after launching entirely.
Step S24, after the first animation of the specified object that finishes playing, has adjusted second method, is realized by second method
The animation of the affiliated partner for specifying object is played on screen.
In this step, animation2 realizes that the animation of golden microphone is played, and can arrange golden microphone in the second approach
Animation play execution duration, delay time, spring special effect parameters (such as elasticity, speed etc.), and then using second method reality
The animation of golden microphone is played now on screen.After golden microphone spring specially good effect is performed, aperture rotation can be triggered.
Step S25, after the animation for realizing playing by second method the affiliated partner for specifying object on screen, adjusts
Third method, is realized playing the second animation for specifying object on screen by third method.
In this step, aperture rotation is the layer cabasic animation.z axle anglecs of rotation, in angular range
Rotate back and forth.Here it is possible to the execution duration of aperture rotation is arranged in third method, and then realized in screen using third method
The animation effect of aperture rotation is played on curtain.
It should be noted that in actual applications, above-mentioned all optional embodiments can be with any by the way of combining
Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
The method of playing animation in terminal in corresponding to above-described embodiment, the present invention also provide one kind and broadcast in terminal
Put the device of animation.The structural representation of the device of playing animation in terminal, bag are illustrated in figure 3 in one embodiment of the invention
Include:
First playing module 31, for when receive on the screen of terminal play specify object animation instruction when,
Default first method is adjusted, has been realized playing the first animation of the specified object on the screen by the first method;
Second playing module 32, for, after the first animation of the specified object that finishes playing, having adjusted default second
Method, is played the animation of the affiliated partner of the specified object on the screen by second method realization.
In an embodiment of the present invention, the method that the first method and the second method belong to specified class.
In an embodiment of the present invention, first playing module 31 is additionally operable to:
The relevant parameter of the first animation of the specified object is set in the first method;
Based on the relevant parameter of the first animation of the specified object, the of the specified object is played on the screen
One animation.
In an embodiment of the present invention, the relevant parameter of the first animation of the specified object includes at least one following:
The perform duration, playing animation of the specified object starts the size of the specified object, playing animation and terminates the finger
Determine the size of object.
In an embodiment of the present invention, second playing module 32 is additionally operable to:
The relevant parameter of the animation of the affiliated partner of the specified object is set in the second method;
Based on the relevant parameter of the animation of the affiliated partner of the specified object, the association is played on the screen right
The animation of elephant.
In an embodiment of the present invention, the relevant parameter of the animation of the affiliated partner of the specified object include it is following at least
One of:The execution duration of the affiliated partner, the property parameters of the affiliated partner.
In an embodiment of the present invention, as shown in figure 4, the device that figure 3 above shows can also include:
3rd playing module 41, for being realized on the screen by the second method in second playing module 32
After the animation of the affiliated partner for playing the specified object, default third method is adjusted, realized by the third method
The second animation of the specified object is played on the screen.
The said apparatus of the embodiment of the present invention:When the instruction for receiving the animation that specified object is played on the screen of terminal
When, default first method is adjusted, has realized that playing the first of the specified object on the screen moves by the first method
Draw;After the first animation of the specified object that finishes playing, default second method is adjusted, realized by the second method
The animation of the affiliated partner of the specified object is played on the screen.As can be seen here, the embodiment of the present invention can be realized at end
The neatly purpose of playing animation on the screen at end.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware
Apply the form of example.And, the present invention can be using the computer for wherein including computer usable program code at one or more
The shape of the computer program implemented in usable storage medium (including but not limited to disk memory and optical memory etc.)
Formula.
The present invention be with reference to method according to embodiments of the present invention, equipment (system), and computer program flow process
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
The combination of journey and/or square frame and flow chart and/or flow process and/or square frame in block diagram.These computer programs can be provided
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to
Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or
The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention
God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of method of the playing animation in terminal, it is characterised in that include:
When the instruction that the animation for specifying object is played on the screen of terminal is received, default first method is adjusted, by institute
State first method to realize playing the first animation of the specified object on the screen;
After the first animation of the specified object that finishes playing, default second method is adjusted, has been realized by the second method
The animation of the affiliated partner of the specified object is played on the screen.
2. method according to claim 1, it is characterised in that the first method and the second method belong to specified class
Method.
3. method according to claim 1 and 2, it is characterised in that realize broadcasting on the screen by the first method
The first animation of the specified object is put, including:
The relevant parameter of the first animation of the specified object is set in the first method;
Based on the relevant parameter of the first animation of the specified object, play the specified object on the screen first moves
Draw.
4. method according to claim 3, it is characterised in that the relevant parameter of the first animation of the specified object includes
It is at least one following:
The perform duration, playing animation of the specified object starts the size of the specified object, playing animation and terminates institute
State the size of specified object.
5. method according to claim 1 and 2, it is characterised in that realize broadcasting on the screen by the second method
The animation of the affiliated partner of the specified object is put, including:
The relevant parameter of the animation of the affiliated partner of the specified object is set in the second method;
Based on the relevant parameter of the animation of the affiliated partner of the specified object, the affiliated partner is played on the screen
Animation.
6. method according to claim 5, it is characterised in that the related ginseng of the animation of the affiliated partner of the specified object
Number includes at least one following:
The execution duration of the affiliated partner, the property parameters of the affiliated partner.
7. method according to claim 1 and 2, it is characterised in that realized on the screen by the second method
After the animation of the affiliated partner for playing the specified object, methods described also includes:
Default third method is adjusted, has realized that playing the second of the specified object on the screen moves by the third method
Draw.
8. a kind of device of the playing animation in terminal, it is characterised in that include:
First playing module, for when the instruction that the animation for specifying object is played on the screen of terminal is received, having adjusted pre-
If first method, realize playing the first animation of the specified object on the screen by the first method;
Second playing module, for, after the first animation of the specified object that finishes playing, having adjusted default second method, by
The second method realizes the animation of the affiliated partner for playing the specified object on the screen.
9. device according to claim 8, it is characterised in that the first method and the second method belong to specified class
Method.
10. device according to claim 8 or claim 9, it is characterised in that first playing module is additionally operable to:
The relevant parameter of the first animation of the specified object is set in the first method;
Based on the relevant parameter of the first animation of the specified object, play the specified object on the screen first moves
Draw.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916427.5A CN106528095A (en) | 2016-10-20 | 2016-10-20 | Method and device for playing animation on terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610916427.5A CN106528095A (en) | 2016-10-20 | 2016-10-20 | Method and device for playing animation on terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106528095A true CN106528095A (en) | 2017-03-22 |
Family
ID=58332770
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610916427.5A Pending CN106528095A (en) | 2016-10-20 | 2016-10-20 | Method and device for playing animation on terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528095A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104008565A (en) * | 2014-05-26 | 2014-08-27 | 桂林力港网络科技有限公司 | System and method for playing Flash bitmap animation by using cocos2d-x and HE engines |
CN104463932A (en) * | 2013-09-22 | 2015-03-25 | 北大方正集团有限公司 | Animation effect achieving method and device |
CN105528427A (en) * | 2015-12-08 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Media file processing method, and sharing method and device in social application |
-
2016
- 2016-10-20 CN CN201610916427.5A patent/CN106528095A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104463932A (en) * | 2013-09-22 | 2015-03-25 | 北大方正集团有限公司 | Animation effect achieving method and device |
CN104008565A (en) * | 2014-05-26 | 2014-08-27 | 桂林力港网络科技有限公司 | System and method for playing Flash bitmap animation by using cocos2d-x and HE engines |
CN105528427A (en) * | 2015-12-08 | 2016-04-27 | 腾讯科技(深圳)有限公司 | Media file processing method, and sharing method and device in social application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20160203645A1 (en) | System and method for delivering augmented reality to printed books | |
CN108156520B (en) | Video playing method and device, electronic equipment and storage medium | |
CN107728905B (en) | Bullet screen display method and device and storage medium | |
KR102614263B1 (en) | Interaction methods and apparatus, electronic devices and computer-readable storage media | |
CN102364905B (en) | Data reproducing method, device and mobile terminal | |
CN109905732A (en) | The method and device of product placement in video | |
CN109788212A (en) | A kind of processing method of segmenting video, device, terminal and storage medium | |
CN105138216A (en) | Method and apparatus for displaying audience interaction information on virtual seats | |
WO2018000608A1 (en) | Method for sharing panoramic image in virtual reality system, and electronic device | |
CN106249903A (en) | The player method of a kind of virtual reality scenario content and device | |
CN105263038B (en) | The method and apparatus of dynamic displaying virtual auditorium | |
CN106408623A (en) | Character presentation method, device and terminal | |
CN105589816A (en) | Method for making and playing compiled type scene interactive animation | |
CN107454447A (en) | A kind of plug-in loading method of player, device and television set | |
US20170301123A1 (en) | Method and apparatus for realizing boot animation of virtual reality system | |
CN106533916A (en) | Live broadcast message display method and device | |
CN110647780A (en) | Data processing method and system | |
CN104994429A (en) | Video playing method and device | |
CN106528095A (en) | Method and device for playing animation on terminal | |
CN106331525A (en) | Realization method for interactive film | |
CN106527700A (en) | Sound vibration feedback method and system, and virtual reality helmet | |
CN109862385A (en) | Method, apparatus, computer readable storage medium and the terminal device of live streaming | |
CN107222785A (en) | A kind of video play lists processing method, video broadcasting method and relevant apparatus | |
CN106504057A (en) | A kind of display methods of electronic gift and device | |
CN105187887A (en) | Method and device for displaying lottery animation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |
|
RJ01 | Rejection of invention patent application after publication |