We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f143a9 + 149537c commit a476eedCopy full SHA for a476eed
1 file changed
core/java/android/webkit/HTML5Audio.java
@@ -311,7 +311,11 @@ private void teardown() {
311
}
312
313
private float getMaxTimeSeekable() {
314
- return mMediaPlayer.getDuration() / 1000.0f;
+ if (mState >= PREPARED) {
315
+ return mMediaPlayer.getDuration() / 1000.0f;
316
+ } else {
317
+ return 0;
318
+ }
319
320
321
private native void nativeOnBuffering(int percent, int nativePointer);
0 commit comments