Okay
  Public Ticket #1971891
Audio Player Not Working for all iOS
Closed

Comments

  • kst_one started the conversation

    I'm getting feedback from a number of people saying that the audio player isn't working for them on their phone.  It seems to be that the audio player doesn't play at all for anyone that doesn't have the most recent iOS installed on their phone.  So, is there are fix for this or ...?

  •  669
    Alexandre replied

    Hit Kst_one,

    Our player is compatible with IOS. This issue is not caused by a player. Something else interferes.
    You can try our demo with IOS
    https://demo.sonaar.io/promote

    Thanks,


    Alexandre from the Sonaar.io Crew

  •  669
    Alexandre replied

    Please disable all third part plugin to see if one of them causes conflict. 
    If the player still doesnt work on IOS. Please create a new page with only the sonaar player audio. 
    If the player play well, that means something causes the issue on the homepage. 

    Thanks,


    Alexandre from the Sonaar.io Crew

  • kst_one replied

    So, you're right, it did work when I created a page with just the music player.  And actually when I cloned the problematic page it worked.  But when I deleted the original page and changed the cloned page's name to that of the original, it stopped working.  I'm not at all a programmer, but it seems like the playlist function is getting blocked somehow by the browser.  If I inspect the page and look at the errors this is the one that seems relevant:  

    (index):1 Failed to load https://www.swancommune.earth/?load=playlist.json&title=&albums=3697: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.swancommune.earth' is therefore not allowed access.

    Maybe this helps?

  • kst_one replied

    I wanted to add- another thing I noticed is that when I load the page and the playlist will not play, if I go to the URL for that specific playlist, the playlist will play.  Then if I go back to the original page after that, the playlist suddenly starts playing.  So, the player is definitely compatible with iOS, I agree, but it's getting blocked by some browsers and I'm not sure where that error is occurring to fix it.  However, loading the playlist's unique page first, then returning to the original page seemed to resolve the error somehow?

  • kst_one replied

    I figured it out.  It's because if someone goes to the site with HTTP (vs. HTTPS) the audio player won't work, because the connection isn't secure and javascript gets blocked by the browser.  The most recent version of Chrome forces a redirect to HTTPS, but older versions don't.  So, what I had to do was go into my FTP, find .htaccess file, and add a bit of code at the beginning to force it to always redirect to HTTPS if someone types HTTP for any reason.  This was the help page for Dreamhost: https://help.dreamhost.com/hc/en-us/articles/215747758-Force-your-site-to-load-securely-with-an-htaccess-file

  •  669
    Alexandre replied

    Well done

    Please tell me if you need assitance

    Thanks,


    Alexandre from the Sonaar.io Crew