UK IPTV · 1 MONTH £7.49 GBP TOTALInstall your player. Request a one-day trial ↗

Viewing journal

Media3 shuffle does not make the next item current index plus one

Media3 item indices retain the original playlist order during shuffle. Use its navigation methods when choosing the next shuffled item.

Availability changes by item
Availability changes by item

Media diagnostics · Primary-source explanation; examples are illustrative. Instructions are based on publisher guidance; a UK IPTV account was not tested on this platform.

Keep order and identity separate

The Media3 playlist guide states that the current media item index refers to the original unshuffled order even while shuffle is enabled. The player follows a separately computed order for playback. Therefore a developer who implements Next by adding one to the current index can select a different item from the player documented shuffled successor. The index remains useful for identifying an entry, but it is not a count of items already played in the shuffled sequence.

Follow a small original example

Imagine an original list indexed zero, one, two and three, with a hypothetical shuffled order of two, zero, three and one. After item two, the intended shuffled successor is zero. Adding one to two would select three and skip that successor. These invented values illustrate the index distinction, not the random order generated by a tested application. Use the documented next item navigation and retain stable media identity for labels.

Test the whole control transition

Compare the displayed title, selected entry and actual playback after a deliberate Next action with shuffle both enabled and disabled. Include the repeat setting when interpreting the end of the list, since it controls another aspect of navigation. Do not assume a playlist problem means a programme is unavailable. This article concerns a Media3 interface implementation and makes no claim that UK IPTV exposes shuffle, that every playlist has these controls or that an index establishes a channel entitlement.

Sources and further reading

Continue reading

Make the first step a useful one

Your screen.
Your next good evening.

Tell us the device and player you use. Compare the term, ask your questions and prepare for a one-day trial.

↑