Okay
  Public Ticket #3479731
Problem to get the current playing track Icecast
Closed

Comments

  • Thomas started the conversation

    Hello I bought your plugin to add a player on a radio website. 

    My wordpress and icecast stream are running on docker on the same machine. There is also an nginx proxy on top to be able to handle both webpage on same machine. I run icecast packaged with Azuracast solution. 

    radio page : https://radio-marro.narvalo.fr

    wordpress: https://wordpress.narvalo.fr

    Icecast direct url : https://icecast.narvalo.fr

    The only URL that works from inside the container to get the json is http://icecast.narvalo.fr:8000/status-json.xsl without https so my question is can I use url without https for the icecast JSON file request ?

    When I set it I don't get any track title in my player.

    Another solution I found was to use directly the local address (192.168.1.xxx). tested with curl inside the container but doesn't work in the plugin configuration. 

  •  1,120
    Max replied

    From what I see, this is your error:
    Mixed Content: The page at 'https://wordpress.narvalo.fr/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://192.168.1.10:8000/status-json.xsl'. This request has been blocked; the content must be served over HTTPS.

    Make sure your status-json.xsl has the correct URL (its currently pointing to a local server), and is https as well.


    Thanks,


    Max from the Sonaar.io Crew

  • Thomas replied

    So I succeed to make the status-json.xsl by editing the /etc/hosts file of the container to point directly to the reverse-proxy.
    But now I got other problems for a plugin that cost 49€. 

    • The sticky player can't display the artist name even as it is in the json file (please see attachements)??? WHY


  •  1,120
    Max replied

    What are your icecast feed and icecast json url you have set so I can try to reproduce the issue on my end: https://drops.sonaar.io/i/MjKeRb

    Thanks,


    Max from the Sonaar.io Crew

  • Thomas replied

    Hello 

    icecast feed : https://icecast.narvalo.fr/radio.mp3

    icecast json url : https://icecast.narvalo.fr/status-json.xsl

    The best thing possible will be to adapt to azuracast json so like this we can get the good record cover.
    This endpoint send the perfect information for the player that we don't get from the icecast endpoint.
    https://radio-marro.narvalo.fr/api/nowplaying/gimmesomefatsounds
    We got the url of the cover picture and also the elapsed and remaining time of the track so with this informations it's possible to set the timing class of your player in order to get the correct time displayed.

    class="time timing_currentTime"

    class="time timing_totalTime"

  •  1,120
    Max replied

    Hi,

    please enable artist name here: https://drops.sonaar.io/i/YMb4lG

    This will output the artist name in the sticky player: https://drops.sonaar.io/i/ycaZ27

    Thanks,


    Max from the Sonaar.io Crew