Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

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

Open
kaeteyaruyo opened this issue May 2, 2021 · 4 comments

Comments

@kaeteyaruyo
Copy link

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

@MRRH826
Copy link

MRRH826 commented Jul 5, 2022

#35

@dicky-cat
Copy link

#39

1 similar comment
@dicky-cat
Copy link

#39

@dicky-cat
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants