IOS推流SDK必须搭建七牛的服务器?并且只能往七牛服务器上进行推流吗?

新手上路,请多包涵

用七牛的SDK推流错误
2016-01-22 17:14:30.137 PLCameraStreamingKit[527:90129] MicrophoneSource: startRunning
2016-01-22 17:14:31.868 PLCameraStreamingKit[527:90068] Stream State: Connecting
2016-01-22 17:14:38.390 PLCameraStreamingKit[527:90068] Received memory warning.
ERROR: PILI_RTMP_Connect0, failed to connect socket. 60 (Operation timed out)
2016-01-22 17:15:46.908 PLCameraStreamingKit[527:90068] Stream State: Error. Error Domain=pili.error.rtmp Code=-1001 "Failed to connect socket. Operation timed out" UserInfo={NSLocalizedDescription=Failed to connect socket. Operation timed out}


/ 从服务端拿回的 streamJSON 结构如下:

//    @{@"id": @"stream_id",
//      @"title": @"stream_title",
//      @"hub": @"hub_name",
//      @"publishKey": @"publish_key",
//      @"publishSecurity": @"dynamic", // or static
//      @"disabled": @(NO),
//      @"profiles": @[@"480p", @"720p"],    // or empty Array []
//      @"hosts": @{
//              @"publish": @{
//                      @"rtmp": @"rtmp_publish_host"
//                      },
//              @"play": @{
//                      @"rtmp": @"rtmp_play_host",
//                      @"hls": @"hls_play_host"
//                      }
//              }
//      }

参数代表什么意思?

阅读 6.2k
1 个回答

你是自己搭建直播还是使用第三方直播sdk的?
我们是帮开发者提供直播sdk、api接口。demo源码的。说下我们的您的问题在我们sdk上的表现吧
直播的服务器我们是有提供的,推拉流的数据都上传到我们的服务器,根据开发者的需要,我们将数据抄送到开发者的服务器上。这部分的服务器是不会额外收费的。
除直播外的服务器,你想用谁的就用谁的。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进