Home | History | Annotate | Download | only in player

Lines Matching refs:item

46  * Handles playback of a single media item using MediaPlayer.
111 public void play(final PlaylistItem item) {
113 Log.d(TAG, "play: item=" + item);
116 mSeekToPos = (int)item.getPosition();
118 mMediaPlayer.setDataSource(mContext, item.getUri());
121 Log.e(TAG, "MediaPlayer throws IllegalStateException, uri=" + item.getUri());
123 Log.e(TAG, "MediaPlayer throws IOException, uri=" + item.getUri());
125 Log.e(TAG, "MediaPlayer throws IllegalArgumentException, uri=" + item.getUri());
127 Log.e(TAG, "MediaPlayer throws SecurityException, uri=" + item.getUri());
129 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PLAYING) {
137 public void seek(final PlaylistItem item) {
139 Log.d(TAG, "seek: item=" + item);
141 int pos = (int)item.getPosition();
153 public void getStatus(final PlaylistItem item, final boolean update) {
157 item.setDuration(mMediaPlayer.getDuration());
158 item.setPosition(mSeekToPos > 0 ?
160 item.setTimestamp(SystemClock.elapsedRealtime());
203 public void enqueue(final PlaylistItem item) {
372 * Handles playback of a single media item using MediaPlayer in SurfaceView
574 * Handles playback of a single media item using MediaPlayer in