@Override
  public void onBackendChanged(final AnimationBackend backend) {
    mAnimatedDrawable.setAnimationBackend(backend);
    mAnimationControlsManager.updateBackendData(backend);
    mAnimatedDrawable.invalidateSelf();
  }
Sample that displays an animated image and media controls to start / stop / seek.
samples/animation2/src/main/java/com/facebook/samples/animation2/MediaControlFragment.java