Hello,
I’m trying to create smil file with the REST API (wowza 4.2).
I follow the instruction here : https://www.wowza.com/docs/how-to-use-curl-to-query-wowza-rest-api
and I managed to create a new application without problem.
But I can’t create a smil file with this call :
POST /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/smilfiles/{smilfileName}
{
"restURI": "http://XX.XX.XX.XX:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/cdn/smilfiles/myfile",
"serverName": "",
"smilStreams": [
{
"systemLanguage": "en",
"dur": "",
"ngrp": "",
"keyFrameOnly": "",
"src": "myfile_750.mp4",
"systemBitrate": "",
"serverName": "",
"videoCodecId": "",
"type": "video",
"version": "",
"audioBitrate": "44100",
"audioCodecId": "",
"videoBitrate": "750000",
"restURI": "",
"isWowzaCaptionStream": "",
"videoOnly": "",
"audioOnly": "",
"width": "640",
"saveFieldList": [],
"idx": 0,
"begin": "",
"wowzaCaptionIngestType": "",
"height": "360"
},
{
"systemLanguage": "en",
"dur": "",
"ngrp": "",
"keyFrameOnly": "",
"src": "myfile_1100.mp4",
"systemBitrate": "",
"serverName": "",
"videoCodecId": "",
"type": "video",
"version": "",
"audioBitrate": "44100",
"audioCodecId": "",
"videoBitrate": "1100000",
"restURI": "",
"isWowzaCaptionStream": "",
"videoOnly": "",
"audioOnly": "",
"width": "1272",
"saveFieldList": [],
"idx": 1,
"begin": "",
"wowzaCaptionIngestType": "",
"height": "720"
}
],
"saveFieldList": [],
"title": "myfile",
"version": "1434975987"
}
I have this result
{"success":false,"message":null,"data":null}
Can you provide a working example of this call please ?
Thanks