I’ve used this api follow to documentation which is updating configuration of Transcoder on some application.
I want to change my options through the REST-API then it should be changed on my dashboard as like below:
Transcoder Options
[x]Match source stream name to template name
Fallback Template
my-template
Queried sample :
PUT http://192.168.10.67:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder content-type: application/json; charset=utf-8 Accept: application/json; charset=utf-8
{ "profileDir": "", "licensed": true, "templates": { "vhostName": "", "templates": [ { "id": "Passthrough", "href": "http://119.205.236.242:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder/templates/Passthrough" } ], "serverName": "", "saveFieldList": [ "" ], "version": "" }, "available": true, "serverName": "_defaultServer_", "templateDir": "${com.wowza.wms.context.VHostConfigHome}/transcoder/templates", "version": "", "createTemplateDir": false, "licenses": 0, "liveStreamTranscoder": "", "templatesInUse": "Passthrough", "licensesInUse": 0, "saveFieldList": [ "" ] }
Especially, field templatesInUse section didn’t affect to my application.