@ MainThread public void playAnimation ( ) { if ( compositionLayer == null ) { lazyCompositionTasks . add ( new LazyCompositionTask ( ) { @ Override public void run ( LottieComposition composition ) { playAnimation ( ) ; } } ) ; return ; } if ( systemAnimationsEnabled || getRepeatCount ( ) == 0 ) { animator . playAnimation ( ) ; } if ( ! systemAnimationsEnabled ) { setFrame ( ( int ) ( getSpeed ( ) < 0 ? getMinFrame ( ) : getMaxFrame ( ) ) ) ; } }
Plays the animation from the beginning . If speed is < 0 it will start at the end and play towards the beginning