Okay
  Public Ticket #2359506
Player won't play external link
Closed

Comments

  •   PETER BLOCK started the conversation
  •  1,103
    Max replied

    HI,

    The issue you have is caused by a CORS policy. (think of it as a security issue). You are requesting a file from another server and use it on your own server. You need to tell the media server to allow connection from your own domain name. Check with the webhosting of your media server and tell them to allow your domain name in the htaccess.

    By adding something like this: Header set Access-Control-Allow-Origin "*"


    Thanks,


    Max from the Sonaar.io Crew

  •   PETER BLOCK replied privately
  •  1,103
    Max replied

    Hi,

    unfortunately, server backend is beyond my expertise. To set correctly CORS Policy for your media server (http://martinblock.com/), please check directly with the hosting provider of martinblock.com

    Thanks,


    Max from the Sonaar.io Crew

  •  1,103
    Max replied

    This is the error you have in google chrome: https://d.pr/i/qB9Ms8

    Thanks,


    Max from the Sonaar.io Crew

  • PETER BLOCK replied

    so you want to see a secure connection so according to that  rror if I make it a secure connection then it should work??

    Thank you sir

  •  1,103
    Max replied

    Yes, if cors policy are also set correctly

    Thanks,


    Max from the Sonaar.io Crew

  • PETER BLOCK replied

    Maxime  Hope you are well.  Can I transfer my filesdirectly into the media folder or do  you have to  Up load thru the WP uploader?  I have several thousand Files that already exist on the new server I am re-designing a existing site that is archaic  I have 2 servers both are webservers. my 2nd question If I can't do the previous can the external link to mp3s be a network path example /server/music/filename   ? I ask because 2 of my Word Presss sites are on the same server as the files are stored so they could be accessed as a local file. The other  Site is on another server colocated with the one with the files.  I don't want to make anything downloadable or accesible other than thru your players     Or Does it HAve to be Https?

    Thank You sir

  •  647
    Alexandre replied

    Hi Peter,

    1) To import files in the media library, you cant just move them in the media folder. You have to use the wp uploader. But audio files dont have to be in the media library to be played in our player. You can use the "external file" option. 
    2) If I understand well, no this is not possible. The mp3 url have to be reachable is the browser.

    Thanks,


    Alexandre from the Sonaar.io Crew