Okay
  Public Ticket #3644193
Configuring Mini-Player
Closed

Comments

  • Douglas started the conversation

    Hi, I don't really have  a technical issue, I want to ask about the mini-player. I have a playlist that resides on one of the pages. We were thinking of having a button in the header, that could launch a mini-player  and then the user would have the option of closing it. Is this possible? Would that require creating an additional playlist? Thanks

  •  659
    Alexandre replied

    Hi douglas, 

    Are you using MP3 Player PRO?

    We dont have any fucntion to close the sticky player. We can only minimise it.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Douglas replied

    Thanks, how about launching the mini-player? As I mentioned we would like to launch or start the miniplayer via button or link. Is that possible?

  • Douglas replied

    .....and yes I am using MP3 Player PRO

  •  659
    Alexandre replied

    Hi, 

    Solution 1:
    You can use the mp3 player element to create a button. 
    You have to select the BUTTON layout and set the sticky player to true.


    Solution 2:
    You can use this js code: 
    IRON.sonaar.player.setPlayerAndPlay({id:'111'});

    You can use this html code to create your button:
    <a  href="javascript:IRON.sonaar.player.setPlayerAndPlay({id:'111'})">PLAY</a>

    *Dont forget to replace the  '111' by your own playlist ID you wanna play. 

    This code only works if Sonaar Scripts are loaded. If you alreay have an audio player in your page, or if the coninuous player feature is activated, you dont have do worried about it. But otherwise, go to wp-admin>mp3 player>settings>general>admin setting
    And activate the option "Load Sonaar Scripts on Every Pages"

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Douglas replied

    Ok that's great, thanks Alexandre. I'm not very technical but I will try these out and keep you posted. I also tried placing the mp3 widget within an Elementor popup, and it seems to be working, I can open and close the widget, although I don't know if there will be any code conflicts. So far I haven't noticed anything unusual. Cheers