I want to create facebook stream through wowza rest api (/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries).
Parameters `{
"shoutcast.destination": "",
"icecast2.public": false,
"akamai.destinationServer": "",
"shoutcast.icq": "",
"facebook.eventSourceName": "",
"timeToLive": 0,
"password": "",
"facebook.destType": "",
"rtpWrap": false,
"icecast2.name": "",
"akamai.hostId": "",
"icecast2.icq": "",
"host": "",
"connectionFlashVersion": "",
"cupertino.renditions": "",
"facebook.title": "",
"debugPackets": false,
"shoutcast.public": false,
"shoutcast.aim": "",
"profile": "",
"icecast2.description": "",
"sessionStatus": "",
"shoutcast.metaname": "",
"icecast2.genre": "",
"facebook.destId": "",
"queryString": "",
"akamai.eventName": "",
"version": "",
"shoutcast.name": "",
"sendStreamCloseCommands": false,
"port": 0,
"sendFCPublish": false,
"icecast2.aim": "",
"http.playlistCount": 0,
"http.playlistTimeout": 0,
"facebook.destName": "",
"audioPort": "",
"icecast2.metaname": "",
"sourceStreamName": "",
"connectionCode": "",
"localBindAddress": "",
"shoutcast.protocol": "",
"debugLogChildren": false,
"serverName": "",
"adaptiveStreaming": false,
"facebook.eventSourceType": "",
"enabled": false,
"shoutcast.irc": "",
"sendReleaseStream": false,
"shoutcast.url": "",
"icecast2.irc": "",
"facebook.description": "",
"debugLog": false,
"shoutcast.genre": "",
"akamai.streamId": "",
"akamai.hdNetwork": false,
"adaptiveGroups": "",
"saveFieldList": [
""
],
"http.playlistAcrossSessions": false,
"secureTokenSharedSecret": "",
"http.fakePosts": false,
"sendSSL": false,
"sendOriginalTimecodes": false,
"icecast2.destination": "",
"facebook.accessToken": "",
"userName": "",
"facebook.privacy": "",
"streamName": "",
"removeDefaultAppInstance": false,
"videoPort": "",
"http.writerDebug": false,
"icecast2.url": "",
"akamai.sendToBackupServer": false,
"destinationServer": "",
"application": "",
"entryName": "",
"streamWaitTimeout": 0,
"appInstance": "",
"originalTimecodeThreshold": "",
"autoStartTranscoder": false,
"sanjose.representationId": ""
}`
As per the api doc their are lot of parameter which I have pass during the api call but they didn’t mention proper document for that.
Please help me out 🙂
2
Answers
Following parameters can be used to create a Facebook stream target through the REST API.
(/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries)
If you have access to the file system where Wowza is installed, you can see all stream targets which are created in the conf{appName}PushPublishMap.txt file. You can configure a stream target through the Wowza streaming engine interface and open this file to get an idea about the required parameters for a particular type of stream target using the REST API.
Please note that this is valid for Wowza Streaming Engine 4.5 and above.
I agree with the answer already provided by @AyazAslam, with a few small caveats:
The “facebook.destType” parameter could be “timeline”,
“page”, “group”, or “event”, so the “facebook.destId” parameter value should more generically be:
The “facebook.privacy” parameter actually only applies to posting to a
“timeline”. It has no effect on other destination types.
“Require App Secret” option disabled since Wowza cannot provide another app’s app
secret in the Facebook API calls it makes.