Lines Matching refs:item

128     public void play(final PlaylistItem item) {  in play()  argument
130 Log.d(TAG, "play: item=" + item); in play()
132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in play()
137 item.setRemoteItemId(itemId); in play()
138 if (item.getPosition() > 0) { in play()
139 seekInternal(item); in play()
141 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in play()
157 public void seek(final PlaylistItem item) { in seek() argument
158 seekInternal(item); in seek()
162 public void getStatus(final PlaylistItem item, final boolean update) { in getStatus() argument
163 if (!mClient.hasSession() || item.getRemoteItemId() == null) { in getStatus()
170 Log.d(TAG, "getStatus: item=" + item + ", update=" + update); in getStatus()
172 mClient.getStatus(item.getRemoteItemId(), null, new ItemActionCallback() { in getStatus()
181 item.setState(state); in getStatus()
182 item.setPosition(itemStatus.getContentPosition()); in getStatus()
183 item.setDuration(itemStatus.getContentDuration()); in getStatus()
184 item.setTimestamp(itemStatus.getTimestamp()); in getStatus()
281 public void enqueue(final PlaylistItem item) { in enqueue() argument
287 startSession(item); in enqueue()
289 enqueueInternal(item); in enqueue()
292 mTempQueue.add(item); in enqueue()
294 enqueueInternal(item); in enqueue()
359 private void enqueueInternal(final PlaylistItem item) { in enqueueInternal() argument
363 Log.d(TAG, "enqueue: item=" + item); in enqueueInternal()
365 mClient.enqueue(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in enqueueInternal()
370 item.setRemoteItemId(itemId); in enqueueInternal()
371 if (item.getPosition() > 0) { in enqueueInternal()
372 seekInternal(item); in enqueueInternal()
374 if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) { in enqueueInternal()
379 for (PlaylistItem item : mTempQueue) { in enqueueInternal()
380 enqueueInternal(item); in enqueueInternal()
399 private void seekInternal(final PlaylistItem item) { in seekInternal() argument
403 Log.d(TAG, "seek: item=" + item); in seekInternal()
405 mClient.seek(item.getRemoteItemId(), item.getPosition(), null, new ItemActionCallback() { in seekInternal()
422 private void startSession(final PlaylistItem item) { in startSession() argument
427 enqueueInternal(item); in startSession()