Allow media to be played automatically #1153
1 changed files with 5 additions and 1 deletions
|
@ -291,7 +291,6 @@ public class FileViewFragment extends BaseFragment implements
|
|||
if (!playbackStarted) {
|
||||
logPlay(currentUrl, startTimeMillis);
|
||||
playbackStarted = true;
|
||||
isPlaying = true;
|
||||
|
||||
long lastPosition = loadLastPlaybackPosition();
|
||||
if (lastPosition > -1) {
|
||||
|
@ -340,6 +339,11 @@ public class FileViewFragment extends BaseFragment implements
|
|||
hideBuffering();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onIsPlayingChanged(boolean isPlayng) {
|
||||
isPlaying = isPlayng;
|
||||
}
|
||||
};
|
||||
|
||||
return root;
|
||||
|
|
Loading…
Reference in a new issue