pili-engineering / PLCameraStreamingKit

PLCameraStreamingKit 是 Pili 直播 SDK 的 iOS 推流端,是带有采集模块老版本 SDK。如果是新用户接入,建议使用 PLMediaStreamingKit。该版本支持 RTMP 推流,h.264 和 AAC 编码,硬编软编支持。具有丰富的数据和状态回调,方便用户根据自己的业务定制化开发。具有直播场景下的重要功能,如:美颜、背景音乐、水印等功能。
https://github.com/pili-engineering/PLMediaStreamingKit
Apache License 2.0
1.03k stars 254 forks source link

这个demo 到底是怎么运行的? #141

Open zas132 opened 8 years ago

zas132 commented 8 years ago

NSDictionary *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": @{ @"rtmp://pai.xxx.com/live/":@"a", } };

PLStream *stream = [PLStream streamWithJSON:streamJSON];

日志如下: KSCrash: App is running in a debugger. Only user reported events will be handled. INFO : KSCrash.m (323): -[KSCrash sendAllReportsWithCompletion:]: Sending 0 crash reports 2016-06-23 14:18:41.333 PLCameraStreamingKit[1121:520133] Focus POI not supported 2016-06-23 14:18:41.334 PLCameraStreamingKit[1121:520133] Focus mode not supported: AVCaptureFocusModeContinuousAutoFocus 2016-06-23 14:18:41.334 PLCameraStreamingKit[1121:520133] CameraSource: startRunning 2016-06-23 14:18:41.926 PLCameraStreamingKit[1121:520133] set captured asbd to : 44100.000000 2016-06-23 14:18:41.973 PLCameraStreamingKit[1121:520247] handleRouteChange: AVAudioSessionRouteChangeNotification reason The reason for the change is unknown. 2016-06-23 14:18:42.150 PLCameraStreamingKit[1121:520019] Zoom Range: [1..48] 2016-06-23 14:19:00.207 PLCameraStreamingKit[1121:520019] Received memory warning.

Kivenhaoyu commented 8 years ago

这个需要开通七牛帐号,提供streamjson来推流的