google-developer-training/android-advanced

Advanced Android: [Lesson 13.1][Step 1.5] `mVideoView.getCurrentPosition()` always return 0

Opened this issue · 4 comments

Describe the problem
mVideoView.getCurrentPosition() always return 0, so I can't preserve playback position.
I was doing this codelab in kotlin rather than Java, I am not sure whether the language causes this problem.

In which lesson and step of the codelab can this issue be found?
Lesson 13.1, Step 1.5.

How to reproduce?
I just follow the tutorial, copy and paste the code provided in each step and let Android Studio translate them into kotlin, and then run the app. The video will still restarts from the beginning even thought I have complete Step 1.5.

Versions

  1. What version of Android Studio are you using?
    • AndroidStudio 4.1, run on Ubuntu 16.04
  2. What API level are you targeting?
    • API 19: Android 4.4 (KitKat)

Additional information No.

codelab: advanced-android

Describe the problem mVideoView.getCurrentPosition() always return 0, so I can't preserve playback position. I was doing this codelab in kotlin rather than Java, I am not sure whether the language causes this problem.

In which lesson and step of the codelab can this issue be found? Lesson 13.1, Step 1.5.

How to reproduce? I just follow the tutorial, copy and paste the code provided in each step and let Android Studio translate them into kotlin, and then run the app. The video will still restarts from the beginning even thought I have complete Step 1.5.

Versions

  1. What version of Android Studio are you using?

    • AndroidStudio 4.1, run on Ubuntu 16.04
  2. What API level are you targeting?

    • API 19: Android 4.4 (KitKat)

Additional information No.

codelab: advanced-android