Allow media to be played automatically #1153

Merged
kekkyojin merged 2 commits from autoplay-setting into master 2021-02-26 19:24:17 +01:00
Showing only changes of commit f723405032 - Show all commits

View file

@ -291,7 +291,6 @@ public class FileViewFragment extends BaseFragment implements
if (!playbackStarted) { if (!playbackStarted) {
logPlay(currentUrl, startTimeMillis); logPlay(currentUrl, startTimeMillis);
playbackStarted = true; playbackStarted = true;
isPlaying = true;
long lastPosition = loadLastPlaybackPosition(); long lastPosition = loadLastPlaybackPosition();
if (lastPosition > -1) { if (lastPosition > -1) {
@ -340,6 +339,11 @@ public class FileViewFragment extends BaseFragment implements
hideBuffering(); hideBuffering();
} }
} }
@Override
public void onIsPlayingChanged(boolean isPlayng) {
isPlaying = isPlayng;
}
}; };
return root; return root;