Ejemplo n.º 1
0
 /** Pause playing the current {@link org.tomahawk.libtomahawk.collection.Track} */
 @Override
 public void pause() throws IllegalStateException {
   Log.d(TAG, "pause()");
   if (mLibVLC != null) {
     if (mLibVLC.isPlaying()) {
       mLibVLC.pause();
     }
   }
 }
Ejemplo n.º 2
0
 /** Start playing the previously prepared {@link org.tomahawk.libtomahawk.collection.Track} */
 @Override
 public void start() throws IllegalStateException {
   Log.d(TAG, "start()");
   if (mLibVLC != null) {
     if (!mLibVLC.isPlaying()) {
       mLibVLC.play();
     }
   }
 }
Ejemplo n.º 3
0
 @Override
 public boolean isPlaying(Query query) {
   return mLibVLC != null && isPrepared(query) && mLibVLC.isPlaying();
 }