Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.
This repository was 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

@kaeteyaruyo

Description

@kaeteyaruyo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions