Okay
  Public Ticket #3547783
Extending the MP3 plugin
Closed

Comments

  • Miloš started the conversation

    Hi,

    My name is Miloš and I'm a developer working on developing the TrackShack company website. We use your plugin for MP3 player and have to admit it's really good. It has plenty of features, but one is crucial to us is missing. It is the possibility to have playlists. Regarding to this, we would like to try to solve the problem for our own case, so my question is: Is there a standard way to customize the plugin or not, especially, I'm interested in this file: public/js/iron-audioplayer/iron-audioplayer.js

    Thank you in advance for answering!
    Have a great day, Miloš

  •  1,103
    Max replied

    Hi,

    What are you refering to as "Playlists'? I mean, what are you trying to achieve exactly? You want to create a widget player that displays tracks according to a certain playlist like we do here: https://templates.sonaar.io/audience/playlists/

    Or you want to allow users to create their own playlist? (which is not something doable with our plugin at this time).

    Thanks,


    Max from the Sonaar.io Crew

  • Miloš replied

    Hi Max,

    Yes, we would need something like this. Can we get on a call(Google Meet or Skype) so that I can share screen and explain what we want in detail? In case this is not possible, I added the short explanation below.

    Basically, we have sets of songs that consist of the original song and the other versions of the songs that are played with different instruments. We added all the songs as our products and now all of the songs get listed when we select one genre. Instead, we would like to get just the original song of the set rendered for each set and when we click on the 'previous' and 'next' buttons in the player track, it switches to the original song in the next set of the songs, not on the other version of the same song in the same set of songs(current behaviour).  I hope you understood. :)
    Here is the page where you can live preview it: https://trackshack.xyz/music/
    Select any genre and you try going to the next or previous song.

    Thanks in advance, Miloš

  •  1,103
    Max replied

    This is not possible (it would be likely very complex to develop inside the plugin directly).
    Perhaps you can only set 1 track in our custom fields for each product (aka the "master" track).

    Then, if you want to offer different versions of the songs, perhaps you can create ACF custom fields for each of your product that will contains track variation, and setup a player into the product post that is linked with your ACF fields for your tracks variation so people can play them when they are on your single product page.

    Thanks,


    Max from the Sonaar.io Crew

  • Miloš replied

    Oh, yes. Maybe that could be good as well. Can you explain the idea a bit more since I'm not sure I understood you well? 

  •  1,103
    Max replied

    Hi,

    I never tried my idea so I dont know if it will work..its just an idea.

    Basically, you set different track version using ACF Fields in your product.

    Then add a sonaar player in the product post template that will play those audio you have set in your ACF Field.

    More info https://sonaar.io/docs/using-player-with-dynamic-custom-fields-for-acf-jetengine-and-metabox/

    Thanks,


    Max from the Sonaar.io Crew