Okay
  Public Ticket #2492713
Triggering on click
Closed

Comments

  •  2
    Brady started the conversation

    Good morning!

    I'm using your plugin to build a members only page (https://www.ostismeditation.com/member-music/). I'm using slider revolution to build out a featured content slider at the top of the page. I wanted to build my own slider instead of using your music slider so I could customize the slides. Anyways, I used your short code (IRON.sonaar.player.setPlayerAndPlay({ id:"1218"}) on the action of the play button and it does pull up the sticky player for the track, but it doesn't play automatically. You have to click play on the featured play button, and then play on the sticky player.

    The other thing I'm needing help with is when you do click play on the featured item the sticky player only pulls the track/playlist without the option to open up the full playlist from page player. I've made each track it's own playlist as to have it's own cover photo, and I've added all these playlists to the page player. When I click play from the player though the sticky player does have the option to see all the other tracks on player. I only have the player visible for you to see.  Is there a better short code to get the featured track to play from page player. (note: I did try using trackid:"" in the short code instead of id:"" and it didn't initiate the sticky player)

    Thank you for your time,

    Brady

  •  1,103
    Max replied

    Hi,

    unfortunately, this behavior is restricted directly by the browser. We dont have control on this because of the auto-play policy. On some browser, the sticky will start automatically. On other it wont.

    For the tracklist in the sticky, it will only shows up if the playlist you are launching contains more than 1 track. Its not possible to launch a player with only 1 track and shows multiple tracks within the tracklist.



    Thanks,


    Max from the Sonaar.io Crew

  •  2
    Brady replied

    Hi Maxime,

    Okay, that makes sense for the auto play. However, I'm still not sure with the track list section. If you look at the player on my page, even though each is a separate playlists they are all still on the same player as tracks 1, 2, 3, 4, 5. So there is multiple tracks in the player. When I play from the player on the page it pulls up the sticky player with the option to see the  track list. But when I play from a button using this (IRON.sonaar.player.setPlayerAndPlay({ id:"1218"}) it's like it pulls a sticky player for only that playlist and not triggering the track from the player itself. Is there a way to trigger a track within the player? Then I can set my button to trigger play from the players track and the sticky should come up with option to see track list.

    Thanks,

    Brady

  •  1,103
    Max replied

    Hi,

    Could you please provide me access to your wp-admin and I will check how you're setup

    Thanks,


    Max from the Sonaar.io Crew

  •   Brady replied privately
  •  1,103
    Max replied

    How can I login into your site? wp-admin does not work

    Thanks,


    Max from the Sonaar.io Crew

  •  1,103
    Max replied

    got it


    Thanks,


    Max from the Sonaar.io Crew

  •  1,103
    Max replied

    The difference is that your player that is displayed on your page is set with multiple playlist. so when you a play a song, the tracklist icon shows up because it contains other playlist. https://d.pr/i/qeYqrE

    The slider carousel however call a js function with only 1 playlist which contains 1 track. So the tracklist icon does not show up.

    You can start a playlist and specify one of its track by using this JS call: IRON.sonaar.player.setPlayerAndPlay({ id:"4414", trackid:"0"})

    where trackid 0 is the first track, trackid 1 is the second track, trackid 2 is the third track, etc..

    Hope it helps

    Thanks,


    Max from the Sonaar.io Crew

  •  1,103
    Max replied

    You could also fire multiple playlist by separating the id with comma...ex:

    IRON.sonaar.player.setPlayerAndPlay({ id:"5938, 5942", trackid:"0"})

    Thanks,


    Max from the Sonaar.io Crew

  •  2
    Brady replied

    Maxime!

    You're the absolute best! Thank you so much for your time and help on this! This all makes perfect sense now, and I will run some tests with this new information you sent me.

    Thank you,

    Brady

  •  1,103
    Max replied

    You are welcome

    Thanks,


    Max from the Sonaar.io Crew

  •  2
    Brady replied

    Hey Maxime,

    Sorry to bug you again. I'm also trying to get the sticky player to trigger from my custom essential grid, and I can't seem to get the javascript to work.

    I've built a custom grid with the grid automatically pulling my playlist information. I'm editing the grid skin and trying to use an icon (play button) to trigger the sticky player for the automatically populated grid. This is the code I'm using (javascript:IRON.sonaar.player.setPlayer({id:%post_id%, title:’%title%’}) https://www.ostismeditation.com/member-music/

    I must be doing something wrong, because it won't trigger the sticky. Is there a better javascript for this action?

    Thank you for your time!

    Brady

  •  1,103
    Max replied

    quick workaround: use the source tab instead and link to NONE in the Link/SEO tab. see screenshot:

    https://d.pr/i/JuuYJd


    Thanks,


    Max from the Sonaar.io Crew

  •  2
    Brady replied

    Maxime!

    You're so awesome thank you for the help! It worked just like that =). I would really like to give you guys a 5 star review for the amazing service! Where would be the best place to do that?

    Thank you again!

    Brady

  •  1,103
    Max replied

    Awesome Brady! Happy we could help you out! If you have a moment,  you could quickly rate our product 5 stars, just to help me spread the word. It's my little reward to offer great support to yousmile.png

    Simply click here https://www.trustpilot.com/evaluate/sonaar.io, hit 5 stars and you're done.

    Thank you so much! I appreciate !!

    Thanks,


    Max from the Sonaar.io Crew