Wowza Community

Stream Unavailable check cross origin policy error on wowza player

I created a live stream using the rest api and got the players for the stream but following is my player code

<div id="playerElement" style="width:100%; height:0; padding:0 0 56.25% 0"></div><script type="text/javascript">var myPlayer = WowzaPlayer.create('playerElement',{
            "license":"my license key","title":"My-Test Stream","description":"MY Test player","sourceURL":"","autoPlay":false,"volume":"50","mute":false,"loop":false,"audioOnly":false,"uiShowQuickRewind":true,"uiQuickRewindSeconds":"30"}
when i click on the player play icon it gives me error of stream unavialable check cross origin policy
what is the solution to this.

You are mixing HTTP and HTTPS content which is creating a Cross Origin Resource Sharing (CORS) issue which is why you cannot play back your live streams. Your page, the player, and the URL to your stream must all use either HTTP or HTTPS.

Wowza Streaming Engine can use an SSL certificate. We provide a free StreamLock SSL certificate to our customers.

You can instead use your own SSL certificate if you wish. Note that once you create the JKS file you can install the certificate using the StreamLock method.

You can also request an SSL certificate from a certificate authority.

Please also ensure that you have CORS enabled.

I’m currently testing on localhost and using wowza cloud what is the config option for the stream to play on localhost http?


Wowza Streaming Engine is configured to accept connections from Wowza Streaming Engine Manager on the localhost.

I’m not using streaming engine i’m using cloud