-
Notifications
You must be signed in to change notification settings - Fork 112
Description
log如下:
2016-06-17 13:38:34.200 GDLiveStreaming_Example[10579:3638533] Creating context
2016-06-17 13:38:34.222 GDLiveStreaming_Example[10579:3638593] Focus mode not supported: AVCaptureFocusModeContinuousAutoFocus
2016-06-17 13:38:34.222 GDLiveStreaming_Example[10579:3638593] Exposure mode not supported: AVCaptureExposureModeContinuousAutoExposure
Connecting: xxx, stream name:letest
ClientState: 1
ClientState: 2
ClientState: 3
Want read:4096, read:1428
ClientState: 4
Not enough s1 size
Want read:2668, read:1645
ClientState: 5
ClientState: 6
Tracking command(1, connect)
Want read:4096, read:305
Steam in buffer size:305
First byte:0x2, header type:0
Handle message:5
Received server window size: 2500000
Steam in buffer size:289
First byte:0x2, header type:0
Handle message:6
Received peer bandwidth limit: 2500000 type: 2
Steam in buffer size:272
First byte:0x2, header type:0
Handle message:1
Request to change incoming chunk size from 128 -> 4096
Steam in buffer size:256
First byte:0x3, header type:0
Handle message:20
Received invoke
Received invoke _result
Find command: connect for ID:1
Tracking command(2, releaseStream)
Tracking command(3, FCPublish)
Tracking command(4, createStream)
ClientState: 7
Want read:4096, read:33
Steam in buffer size:33
First byte:0x3, header type:0
Handle message:20
Received invoke
Received invoke onBWDone
Want read:4096, read:0
Read from stream error:0
ClientState: 11
推送的代码:
_videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPresetiFrame960x540 cameraPosition:AVCaptureDevicePositionFront];
_videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;
_videoCamera.frameRate = 20;
CGSize viewSize = self.view.frame.size;
GPUImageView *filteredVideoView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, viewSize.width, viewSize.height)];
[self.view addSubview:filteredVideoView];
[_videoCamera addTarget:filteredVideoView];
GDLRawDataOutput *rtmpOutput = [[GDLRawDataOutput alloc] initWithVideoCamera:_videoCamera withImageSize:CGSizeMake(400, 712)];
[_videoCamera addTarget:rtmpOutput];
beautifyFilter = [[GPUImageBeautifyFilter alloc] init];
[GDLFilterUtil insertFilter:beautifyFilter before:filteredVideoView toChain:_videoCamera];
[rtmpOutput startUploadStreamWithURL:@"rtmp://xxx/live/" andStreamKey:@"letest"];
_videoCamera.audioEncodingTarget = nil;
[_videoCamera startCameraCapture];