Audio Player

Hi there!

I have a problem that I hope you can help me find a solution for.
My goal is to have a audio player om my site with a playlist and the option to jump to different time marks in the tracks.

I’ve tried the wix music player. It works great for creating playlists and everything, but I cant add any extra functions in any way.

I’ve also tried to use the audio player and added buttons and a seek function. It works great, but in this case I can’t add a playlist instead.

Does someone have a suggestion on how I can create a playlist for the audio player or how I can add seek buttons to the wix music player?

Alternatively I can add several audio players on the same page, but then I want one seek button to work on all the players.
i.e export function Seek(event) {
$w(“#audioPlayer1, #audioPlayer2”).seek(102);
}
For some reason this doesn’t work. Any suggestions?

Thanks in advance / Kristoffer

For the AudioPlayer app and using it with the seek function, you might find that you have to do each AudioPlayer app on your page as a seperate code function to get it to work.
https://www.wix.com/corvid/reference/$w.AudioPlayer.html#seek

Examples

Move playback to 1 minute and 42 seconds into the audio track

$w("#myAudioPlayer").seek(102);

Move playback and log a message when done

$w("#myAudioPlayer").seek(102)
  .then( () => {
    console.log("Done with seek");
  } );

Check the Wix Support pages about the Wix AudioPlayer.

The Wix Audio Player is a stylish and simple music element that allows you to add a single track to a page on your website.

To do a playlist, you have to use something like Wix Music.

Apart from the Wix AudioPlayer and the AudioPlayer API, the rest of the Wix Music apps is not able to be integrated with code.

Therefore if you require more info on using Wix Music, please go through Wix Support for more info,