You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it would be useful if the CastPlayer class has a method getQueueItems() as following :
/**
* Returns the list of MediaQueueItem as an unmodifiable list
* @return The list of MediaQueueItem, or null if no cast session
*/
public List<MediaQueueItem> getQueueItems() {
return isCastSessionAvailable() ? remoteMediaClient.getMediaStatus().getQueueItems() : null;
}
The text was updated successfully, but these errors were encountered:
You can query the current timeline with castPlayer.getCurrentTimeline() or listen to updates with a Player.EventListener and wait for onTimelineChanged(...).
In this timeline, you'll find as many periods as queue items. Check out timeline.getPeriodCount() and timeline.getPeriod(periodIndex, new Period()). The latter method gives you a Period object with further information about the period. period.id is the one you are looking for.
Hi, it would be useful if the CastPlayer class has a method getQueueItems() as following :
The text was updated successfully, but these errors were encountered: