Okay
  Public Ticket #3135363
UX: Error messaging
Closed

Comments

  •  2
    Tristan started the conversation

    Hi there, 

    I use your pro plugin to present 3rd party mp3's in my pages (podcasts).

    Very occasionally one of these will fail to play for some reason, but I notice your plugin does not seem to display any kind of error messaging.

    On successful playback we See the 'play' change to 'pause' on the shortcode button. In the case of a failure I would love the button to show 'failed' - or just display any kind of error messaging to let users know there has been a problem.

    Am I missing something, is this possible / is there any error messaging in place?

  •  1,101
    Max replied

    Hi, 

    Unfortunately, as much as I would love to help you, this feature is not possible with Sonaar at the moment.

    On my end, I tagged this ticket as a feature request so that our development team can consider this option, but this doesn't guarantee that Sonaar will indeed implement this feature.

    Finally, I would like to apologize for not providing you with this particular feature at the moment.

    Thanks,


    Max from the Sonaar.io Crew

  •  2
    Tristan replied

    Just to loop back in case it's useful to anyone. I figured this one out.

    Line 221 of sonaar-music-pro/public/js/sonaarPlayer.js has this:

                  .catch((error) => {
                    console.log("Warning = " + error);
                  });

    I've modified that slightly to the below and am now testing triggering a modal should playback fail.

                  .catch((error) => {
                    $('#autoplayModal').modal('show'); 
                    console.log("Warning = " + error);

    This is partly to help show that playback has failed, but primarily to encourage users to allow autoplay in firefox and safari as those browsers don't appear to pay attention to the continuous playback cookie sadly.

    Feature request Max.... it'd be awesome to be able to somehow configure messaging for this via admin