Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5b3d8e4

Browse files
committed
[[ Bug 22673 ]] Show first frame in Android player
This patch ensures that a seek to position 0 is done after loading a file in the Android mobile player. This resolves an issue where the first frame is not being rendered after loading a file.
1 parent 6f46893 commit 5b3d8e4

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

docs/notes/bugfix-22673.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Show first frame in Android mobile player after loading file

engine/src/java/com/runrev/android/nativecontrol/ExtVideoView.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ public void onPrepared(MediaPlayer mp) {
395395
mVideoHeight = mp.getVideoHeight();
396396

397397
int seekToPosition = mSeekWhenPrepared; // mSeekWhenPrepared may be changed after seekTo() call
398-
if (seekToPosition != 0) {
399-
seekTo(seekToPosition);
400-
}
398+
seekTo(seekToPosition);
401399
// IM-2014-02-25: [[ Bug 11753 ]] don't set looping here as this seems to put
402400
// the player into an error state
403401
/* CODE REMOVED */

0 commit comments

Comments
 (0)