title: How to take animation time from Lottie json in Android?
body: <p>At the moment I'm setting the delay as a constant, instead I want to take the time that is used in the json animation, how can this be done?</p>
  <p>Here is code where i used constant:</p>
  <pre><code>val composableScope = rememberCoroutineScope()
  
  Box(
      contentAlignment = Alignment.Center,
      modifier = Modifier.fillMaxSize()
  ) {
  
      LottieExample()
      composableScope.launch {
          delay(2000L)
          navController.navigate(viewModel.nextRoute) {
              popUpTo(0)
          }
      }
  }
  </code></pre>
  <p>And here is the animation code itself:</p>
  <pre><code>@Composable
  fun LottieExample() {
  
      val compositionResult: LottieCompositionResult = rememberLottieComposition(
          spec = LottieCompositionSpec.RawRes(R.raw.splash_with_background)
      )
      val progress by animateLottieCompositionAsState(
          composition = compositionResult.value,
          isPlaying = true,
          iterations = LottieConstants.IterateForever,
          speed = 1.0f
      )
  
      LottieAnimation(
          composition = compositionResult.value,
          progress = progress,
          modifier = Modifier.padding(all = 12.dp)
      )
  }
  </code></pre>