[Android] AudioService: try to expand media after reaching the end

Edward Wang git at videolan.org
Fri May 30 05:50:40 CEST 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu May 29 21:10:50 2014 -0400| [24a85cd60c1e5a8bdd2cb62dda9278d59425415d] | committer: Edward Wang

AudioService: try to expand media after reaching the end

This is needed e.g. for playlists which must be expanded after they are parsed.

Fixes streams like m3u.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=24a85cd60c1e5a8bdd2cb62dda9278d59425415d
---

 vlc-android/src/org/videolan/vlc/AudioService.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index dbce4bf..ccafc7b 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -454,6 +454,7 @@ public class AudioService extends Service {
                     Log.i(TAG, "MediaPlayerEndReached");
                     service.executeUpdate();
                     service.executeUpdateProgress();
+                    service.determinePrevAndNextIndices();
                     service.next();
                     if (service.mWakeLock.isHeld())
                         service.mWakeLock.release();



More information about the Android mailing list