Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. package training.computing.apptuts.player;
  2.  
  3. public interface Player {
  4. void start();
  5.  
  6. void pause();
  7.  
  8. int getDuration();
  9.  
  10. /**
  11. * @return current playback position in milliseconds.
  12. */
  13. int getCurrentPosition();
  14.  
  15. void seekTo(int pos);
  16.  
  17. boolean isPlaying();
  18.  
  19. int getBufferPercentage();
  20.  
  21. boolean canPause();
  22.  
  23. boolean canSeekBackward();
  24.  
  25. boolean canSeekForward();
  26.  
  27. /**
  28. * Get the audio session id for the player used by this VideoView. This can be used to
  29. * apply audio effects to the audio track of a video.
  30. *
  31. * @return The audio session, or 0 if there was an error.
  32. */
  33. int getAudioSessionId();
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement