我想通過wowza rest api(/ v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries)創建Facebook流。如何在wowza中使用rest api添加流目標到Facebook?
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": ""
}`
按照該API文檔他們是很多參數的,我有API調用時通過,但他們沒有提到的,適當的文件。
請幫我:)
Facebook Live API要求使用唯一的應用程序ID來生成訪問令牌。當您創建/更新流目標(啓動Facebook登錄窗口)時,此令牌協商將從Wowza Streaming Engine Manager UI進行處理,然後作爲Wowza流目標中的屬性添加,以允許其發佈到Facebook頁面。令牌不能從REST API創建。您需要在外部使用Facebook API處理令牌管理。一旦你擁有了必要的訪問令牌,你就可以通過REST API將其填充到你的Wowza流目標中。 –