首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使用rest api将wowza中的流目标添加到facebook?

如何使用rest api将wowza中的流目标添加到facebook?
EN

Stack Overflow用户
提问于 2016-11-11 18:23:10
回答 1查看 1.3K关注 0票数 0

我想通过wowza rest api (/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries).创建facebook流

代码语言:javascript
复制
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调用过程中传递了这些参数,但他们没有提到适当的文档。

请帮帮我:)

EN

回答 1

Stack Overflow用户

发布于 2016-11-24 13:28:04

以下参数可用于通过REST API创建Facebook流目标。(/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/pushpublish/mapentries)

代码语言:javascript
复制
{
  "entryName": "fb-api",
  "profile": "rtmp-facebook",
  "sourceStreamName": "{StreamName}",
  "facebook.title": "Live Test",
  "facebook.destType": "timeline",
  "facebook.destId": "{DestinationPageId}",
  "facebook.destName": "My Timeline",
  "facebook.description": "This is Wowza live test",
  "facebook.accessToken": "{FacebookAccessToken}",
  "facebook.privacy": "onlyMe",
  "extraOptions": {
    "destinationName": "facebook"
  },
  "enabled": true
}

如果您有权访问安装了Wowza的文件系统,则可以看到在\conf{appName}\PushPublishMap.txt文件中创建的所有流目标。您可以通过Wowza streaming engine接口配置一个流目标,并打开此文件以了解使用REST API的特定类型的流目标所需的参数。

请注意,这对Wowza Streaming Engine 4.5及以上版本有效。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40545900

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档