@@ -207,17 +207,17 @@ - (LFLiveSession *)session {
207
207
audioConfiguration.audioSampleRate = LFLiveAudioSampleRate_44100Hz;
208
208
209
209
LFLiveVideoConfiguration *videoConfiguration = [LFLiveVideoConfiguration new];
210
- videoConfiguration.videoSize = CGSizeMake(500, 700 );
210
+ videoConfiguration.videoSize = CGSizeMake(720, 1280 );
211
211
videoConfiguration.videoBitRate = 800*1024;
212
212
videoConfiguration.videoMaxBitRate = 1000*1024;
213
213
videoConfiguration.videoMinBitRate = 500*1024;
214
214
videoConfiguration.videoFrameRate = 15;
215
215
videoConfiguration.videoMaxKeyframeInterval = 30;
216
216
videoConfiguration.landscape = NO;
217
- videoConfiguration.sessionPreset = LFCaptureSessionPreset720x1280 ;
217
+ videoConfiguration.sessionPreset = LFCaptureSessionPreset360x640 ;
218
218
219
219
_session = [[LFLiveSession alloc] initWithAudioConfiguration:audioConfiguration videoConfiguration:videoConfiguration];
220
- */
220
+ */
221
221
222
222
223
223
/* * 自己定制高质量音频128K 分辨率设置为720*1280 方向横屏 */
@@ -229,14 +229,14 @@ - (LFLiveSession *)session {
229
229
audioConfiguration.audioSampleRate = LFLiveAudioSampleRate_44100Hz;
230
230
231
231
LFLiveVideoConfiguration *videoConfiguration = [LFLiveVideoConfiguration new];
232
- videoConfiguration.videoSize = CGSizeMake(720, 1280 );
232
+ videoConfiguration.videoSize = CGSizeMake(1280, 720 );
233
233
videoConfiguration.videoBitRate = 800*1024;
234
234
videoConfiguration.videoMaxBitRate = 1000*1024;
235
235
videoConfiguration.videoMinBitRate = 500*1024;
236
236
videoConfiguration.videoFrameRate = 15;
237
237
videoConfiguration.videoMaxKeyframeInterval = 30;
238
- videoConfiguration.landscape = NO ;
239
- videoConfiguration.sessionPreset = LFCaptureSessionPreset360x640 ;
238
+ videoConfiguration.landscape = YES ;
239
+ videoConfiguration.sessionPreset = LFCaptureSessionPreset720x1280 ;
240
240
241
241
_session = [[LFLiveSession alloc] initWithAudioConfiguration:audioConfiguration videoConfiguration:videoConfiguration];
242
242
*/
@@ -247,7 +247,7 @@ - (LFLiveSession *)session {
247
247
248
248
UIImageView *imageView = [[UIImageView alloc ] init ];
249
249
imageView.alpha = 0.8 ;
250
- imageView.frame = CGRectMake (320 - 29 , 100 , 29 , 29 );
250
+ imageView.frame = CGRectMake (100 , 100 , 29 , 29 );
251
251
imageView.image = [UIImage imageNamed: @" ios-29x29" ];
252
252
_session.warterMarkView = imageView;
253
253
0 commit comments