Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
zas132 opened this issue Jun 23, 2016 · 1 comment
Open

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

zas132 opened this issue Jun 23, 2016 · 1 comment

Comments

@zas132
Copy link

zas132 commented Jun 23, 2016

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
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants