Commit b76c6858 authored by Sébastien Toque's avatar Sébastien Toque

Events or not errors

parent 6ad5f61e
......@@ -69,20 +69,20 @@ public class AudioService extends Service {
public void handleMessage(Message msg) {
switch (msg.getData().getInt("event")) {
case EventManager.MediaPlayerPlaying:
Log.e(TAG, "MediaPlayerPlaying");
Log.i(TAG, "MediaPlayerPlaying");
break;
case EventManager.MediaPlayerPaused:
Log.e(TAG, "MediaPlayerPaused");
Log.i(TAG, "MediaPlayerPaused");
executeUpdate();
// also hide notification if phone ringing
hideNotification();
break;
case EventManager.MediaPlayerStopped:
Log.e(TAG, "MediaPlayerStopped");
Log.i(TAG, "MediaPlayerStopped");
executeUpdate();
break;
case EventManager.MediaPlayerEndReached:
Log.e(TAG, "MediaPlayerEndReached");
Log.i(TAG, "MediaPlayerEndReached");
executeUpdate();
next();
break;
......
......@@ -250,16 +250,16 @@ public class VideoPlayerActivity extends Activity {
public void handleMessage(Message msg) {
switch (msg.getData().getInt("event")) {
case EventManager.MediaPlayerPlaying:
Log.e(TAG, "MediaPlayerPlaying");
Log.i(TAG, "MediaPlayerPlaying");
break;
case EventManager.MediaPlayerPaused:
Log.e(TAG, "MediaPlayerPaused");
Log.i(TAG, "MediaPlayerPaused");
break;
case EventManager.MediaPlayerStopped:
Log.e(TAG, "MediaPlayerStopped");
Log.i(TAG, "MediaPlayerStopped");
break;
case EventManager.MediaPlayerEndReached:
Log.e(TAG, "MediaPlayerEndReached");
Log.i(TAG, "MediaPlayerEndReached");
/* Exit player when reach the end */
VideoPlayerActivity.this.finish();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment