コード例 #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();
     }
   }
 }
コード例 #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();
     }
   }
 }
コード例 #3
0
 @Override
 public boolean isPlaying(Query query) {
   return mLibVLC != null && isPrepared(query) && mLibVLC.isPlaying();
 }