I
I
iLearner2014-08-17 21:26:06
Audio
iLearner, 2014-08-17 21:26:06

Audio player for a site without specifying source/play-list?

Hello, please advise a player for the site that can play all MP3 / OGG that are on the page, in the order they are presented.
Site on WordPress. The search did not give anything, all the solutions found require either specifying a file (source), or creating a playlist. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2014-08-17
@Taraflex

$(function(){
    var playlist = [];
    $('audio').each(function(){
        playlist.push(this.src);
    })
    console.log(playlist);
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question