Okay
  Public Ticket #2297703
using podcast player with Amazon S3 audio
Closed

Comments

  • Adam started the conversation

    Hello,

    I'm using one of your podcast templates, and I'm having a problem streaming Amazon S3 audio. Your feedback to users repeatedly says that you, "support these streaming servers along with the real-time spectrum soundwave....Amazon S3...."

    I am finding that I cannot stream audio to the player unless I switch off the real time spectrum analyzer. Are there instructions for setting up audio files to stream from an S3 bucket, using the real time spectrum feature?


    thank you,

    adam

  •  1,114
    Max replied

    Hi,

    Yes, if your website is xyz.com and your media is hosted in another server (eg: S3), you will have a Cors Policy issue and the audio will not play. this is for security purpose..

    To make it works, you must allow your domain xyz.com to connect to your S3 server. This is what we call Access-Control-Allow-Origin

    more info here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin

    So basically, you need to add 

    Access-Control-Allow-Origin: https://xyz.com

    to your Amazon S3 server's header.


    Thanks,


    Max from the Sonaar.io Crew