Wowza Community

Can't start the stream from GoCoder after calling the update Application API

I was trying to automate the live Streaming using Wowza Streaming Engine. For that, I installed the streaming engine in my AWS EC2 instance then I tried the following REST API for the create Application and I connected from the Wowza GoCoder using mobile.

When I do that I can’t the receive the distributed stream in JW player due to CORS error.
So I called a REST API to update the cors. But after that my wowza Gocoder couldn’t connect the application.

Let me know what I missed on my API calls.

Please find the create API
URL : http://52.37.27.133:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/may26-6
Method : POST

Body :

{
   "restURI": "http://52.37.27.133:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may26-6",
   "name": "may26-6",
   "appType": "Live",
   "clientStreamReadAccess": "*",
   "clientStreamWriteAccess": "*",
   "description": "A basic live application",
   "streamConfig": {
    	"restURI": "http://52.37.27.133:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may26-6/streamconfiguration",
    	"streamType": "live-record-lowlatency",
    	"storageDirExists": "false",
    	"createStorageDir": "true",
    	"storageDir": "/usr/local/WowzaStreamingEngine/content/may26-6"
   }
}
<br>

Update API
URL :http://52.37.27.133:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/may26-6/adv
Method : PUT
Body :

{
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/may23-1/adv",
"version": "1430682096001",
"advancedSettings": [
{
"enabled": true,
"canRemove": true,
"name": "CORSHeadersEnableMain",
"value": "true",
"defaultValue": true,
"type": "Boolean",
"sectionName": "Application",
"section": "/Root/Application/HTTPStreamer",
"documented": true
},
{
"enabled": true,
"canRemove": true,
"name": "httpCORSHeadersEnabled",
"value": "true",
"defaultValue": true,
"type": "Boolean",
"sectionName": "Application",
"section": "/Root/Application/HTTPStreamer",
"documented": true
}
]
}

Thanks,

Ram

Hi Ram,

The error from JWPlayer may not be related to CORS issues. It is best if we can check your Wowza instance configuration and log events. Please create a support ticket and send us the following:

  • conf/

  • logs/

Michelle

Hi Michelle,
I am calling update API due to the CORS issue. But after update API executes my Gocoder encoder couldn’t connect with the engine. I already opened a ticket regarding this. Still that is in open state. My ticket Id is #229918.

Hi, when you compare the XML files before and after applying the update, what differences do you see? Do you also perform a restart for the app right after sending the update command?