fixed autoplay bug

This commit is contained in:
Christian Schabesberger 2016-02-12 15:29:11 +01:00
parent 751ffb9de9
commit fc8160acda
3 changed files with 3 additions and 4 deletions

View file

@ -130,7 +130,7 @@ public class PlayVideoActivity extends AppCompatActivity {
public void onPrepared(MediaPlayer mp) {
progressBar.setVisibility(View.GONE);
videoView.seekTo(position);
if (position == 0) {
if (position <= 0) {
videoView.start();
showUi();
} else {