Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've googled a lot, but I haven't found a solution yet.

Is it possible to loop a single track in the XSPF playlist?

In terms of a pause, we can do it in a xspf playlist as follows:

   <extension application="">

Is there anything similar to loop a track?

With CLI VLC it is possible to loop a given number of times:

cvlc Example.mp4 :input-repeat=3

So I think it can be done using a XSPF playlist.

Please someone enlighten me with wisdom and knowledge to accomplish this task.

share|improve this question
up vote 2 down vote accepted

And the trick is

for infinit loop:


To repeat 3x


just like the command line...

share|improve this answer
Many months later, the answer has finally arrived =D THANKS!!!! Just one clarification: input-repeat=3 will repeat the track FOUR times, not three. So to repeat a track three times we use 2. Thanks for your help =D =) – Metafaniel Jul 24 '13 at 19:01

Wiki lists this as a way to set an option (within the extension data element): <vlc:option>stop-time=55</vlc:option>.

Some VLC playlist options:

--random plays files randomly forever.
--loop loops playlist on end.
--repeat repeats current item until another item is forced
--play-and-stop stops the playlist after each played item.

So maybe try adding: <vlc:option>repeat</vlc:option>

share|improve this answer
Mmm... Sadly no, it won't repeat that way =/ But your answer seems useful, thanks! I'll read more, maybe I'll get something! Let's wait another answer in hopes someone else knows the exact way to do this =) Thanks ;) – Metafaniel Mar 1 '12 at 21:44
I've read but the specification says those options you mention are for playlists indeed but they're not applied as vlc:options like stop-time=55 Those are for tracks. But the playlist ones are only used in a command line code =\ – Metafaniel Mar 2 '12 at 15:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.