Okay
  Public Ticket #3541949
Help for playlist
Closed

Comments

  • Janne started the conversation

    I would like to get instructions how to create an audio playlist programatically in Wordpress.

    Some background:

    I have a lot of mp3-files. I'll show them all for the enduser. She selects some of them and I save her selection into a mySql table. When she wants to listen all those I should be able to play them. The other end user has another selection of mp3s. So how to create those 'personalised' playlists, and play them?

  •  1,103
    Max replied

    Hi,

    You must add your MP3 by going to wp-admin > MP3 Player > Tracks

    If you want to bulk import MP3, the only way is by either using a CSV file, or adding your mp3 in the WP Media Library then use our bulk importer tool in WP-Admin > MP3 Player > Tools > Bulk Playlist Creation

    Thanks,


    Max from the Sonaar.io Crew

  • Janne replied

    Hi,

    I don't have difficulties for uploadind mp3s. The problem is: I don't know how to create a personalised playlist of the mp3s the one user has selected. The other user has selected other mp3s, so for her I need another playlis.t

    How can I add mp3 urls to playlist programatically? Without admin interventions.

  •  1,103
    Max replied

    Hi,

    Are you refering to the "Favorite" playlist ? See Favorite Documentation : https://sonaar.io/docs/add-to-favorites/


    Thanks,


    Max from the Sonaar.io Crew

  • Janne replied

    Hi Max,

    looks like we're approaching my target 'though not yet there...

    I was looking the documention link you provided, but couldn't find a clear answer to solve my problem.

    The question still remains: how can I add one, or more, mp3s to a certain playlist, using php or js? An example would help me a lot. If the solution requires Pro/business/whatsoever licence it'll be okay I'd be prepared for that.

    Regards, Janne

  •  1,103
    Max replied

    This is not possible to add MP3 on the fly using PHP or JS.

    Beside the favorite user list, only site admin can create playlists.


    Thanks,


    Max from the Sonaar.io Crew