Skip to main content

Playlist & shuffle

Collection navigation with loop and shuffle modes.

audio

Preview

Props & interactive options

PropTypeDefaultDescriptionTry it
show_playlisturl param1Show playlist.

Try it in the player

Shuffle mode

Use the shuffle button in the player toolbar to randomise the playlist order. A Fisher–Yates permutation ensures every track plays once before the order is re-shuffled.

Loop playback

Use the loop button in the player toolbar to cycle between three modes: loop the entire playlist, loop the current track only, or disable looping.

Documentation

Navigate a collection of audio tracks with previous/next controls. Loop mode repeats the current track or entire playlist. Shuffle mode randomizes playback order. The playlist section is collapsible and shows thumbnails, titles, and durations.

Code

HTML
<iframe
  id="videas-019dcfc6-6437-7130-bcec-ea6ae48dd871"
  src="https://app.videas.com/embed/019dcfc6-6437-7130-bcec-ea6ae48dd871/?show_playlist=1"
  width="100%" height="200"
  frameborder="0" allowfullscreen
></iframe>
<script>
window.addEventListener('message', function(e) {
  if (e.data && e.data.type === 'videas:embed:resize') {
    var f = document.getElementById('videas-' + e.data.embedId);
    if (f) f.style.height = e.data.height + 'px';
  }
});
</script>

Frequently asked questions

Does shuffle avoid replaying tracks I've already heard?

Yes. Shuffle uses a Fisher–Yates permutation built when the mode is enabled, so every track in the playlist plays once before the order is re-shuffled. This avoids the "iTunes effect" where the same tracks pop up back-to-back.

Can I loop a single track instead of the whole playlist?

Yes. The loop button has two states: loop playlist (default, restarts the collection at the end) and loop one (replays the current track indefinitely). A third click disables looping.

What does the playlist panel show for each track?

A thumbnail, title, duration, and an active-state indicator for the currently playing track. The panel is collapsible so listeners can keep a compact player while still navigating the collection on demand.