Skip to content

Commit d30aecc

Browse files
author
chenliming
committed
fix 编译问题
1 parent b612be7 commit d30aecc

19 files changed

+105
-21
lines changed

FrameWork/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.2.4.1</string>
18+
<string>2.2.4.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

LFLiveKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |s|
33

44
s.name = "LFLiveKit"
5-
s.version = "2.2.4.1"
5+
s.version = "2.2.4.2"
66
s.summary = "LaiFeng ios Live. LFLiveKit."
77
s.homepage = "https://github.com/chenliming777"
88
s.license = { :type => "MIT", :file => "LICENSE" }

LFLiveKit/LFLiveKit.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
// Copyright © 2016年 admin. All rights reserved.
77
//
88

9+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
10+
#import <LFLiveKit/LFLiveSession.h>
11+
#import <LFLiveKit/LFLiveAudioConfiguration.h>
12+
#import <LFLiveKit/LFLiveVideoConfiguration.h>
13+
#import <LFLiveKit/LFAudioFrame.h>
14+
#import <LFLiveKit/LFFrame.h>
15+
#import <LFLiveKit/LFLiveStreamInfo.h>
16+
#import <LFLiveKit/LFVideoFrame.h>
17+
#import <LFLiveKit/LFLiveDebug.h>
18+
#else
919
#import "LFLiveSession.h"
1020
#import "LFLiveAudioConfiguration.h"
1121
#import "LFLiveVideoConfiguration.h"
@@ -14,12 +24,5 @@
1424
#import "LFLiveStreamInfo.h"
1525
#import "LFVideoFrame.h"
1626
#import "LFLiveDebug.h"
27+
#endif
1728

18-
//#import <LFLiveKit/LFLiveSession.h>
19-
//#import <LFLiveKit/LFLiveAudioConfiguration.h>
20-
//#import <LFLiveKit/LFLiveVideoConfiguration.h>
21-
//#import <LFLiveKit/LFAudioFrame.h>
22-
//#import <LFLiveKit/LFFrame.h>
23-
//#import <LFLiveKit/LFLiveStreamInfo.h>
24-
//#import <LFLiveKit/LFVideoFrame.h>
25-
//#import <LFLiveKit/LFLiveDebug.h>

LFLiveKit/LFLiveSession.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88

99
#import <Foundation/Foundation.h>
1010
#import <AVFoundation/AVFoundation.h>
11-
#import "LFLiveStreamInfo.h"
12-
#import "LFAudioFrame.h"
13-
#import "LFVideoFrame.h"
14-
#import "LFLiveAudioConfiguration.h"
15-
#import "LFLiveVideoConfiguration.h"
16-
#import "LFLiveDebug.h"
11+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
12+
#import <LFLiveKit/LFLiveKit.h>
13+
#else
14+
#import "LFLiveKit"
15+
#endif
1716

1817
typedef NS_ENUM(NSInteger,LFLiveCaptureType) {
1918
LFLiveCaptureAudio, //< capture only audio

LFLiveKit/capture/LFAudioCapture.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
#import <Foundation/Foundation.h>
1010
#import <AVFoundation/AVFoundation.h>
11+
12+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
13+
#import <LFLiveKit/LFLiveAudioConfiguration.h>
14+
#else
1115
#import "LFLiveAudioConfiguration.h"
16+
#endif
1217

1318
#pragma mark -- AudioCaptureNotification
1419
/** compoentFialed will post the notification */

LFLiveKit/capture/LFVideoCapture.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
#import <Foundation/Foundation.h>
1010
#import <AVFoundation/AVFoundation.h>
11+
12+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
13+
#import <LFLiveKit/LFLiveVideoConfiguration.h>
14+
#else
1115
#import "LFLiveVideoConfiguration.h"
16+
#endif
1217

1318
@class LFVideoCapture;
1419
/** LFVideoCapture callback videoData */

LFLiveKit/coder/H264/LFAVEncoder.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@
1111
#import <AVFoundation/AVAssetWriterInput.h>
1212
#import <AVFoundation/AVMediaFormat.h>
1313
#import <AVFoundation/AVVideoSettings.h>
14-
#import "sys/stat.h"
14+
#import <sys/stat.h>
15+
16+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
17+
#import <LFLiveKit/LFVideoEncoder.h>
18+
#import <LFLiveKit/LFMP4Atom.h>
19+
#else
1520
#import "LFVideoEncoder.h"
1621
#import "LFMP4Atom.h"
22+
#endif
23+
24+
1725

1826
typedef int (^encoder_handler_t)(NSArray *data, CMTimeValue ptsValue);
1927
typedef int (^param_handler_t)(NSData *params);

LFLiveKit/coder/H264/LFVideoEncoder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
//
88

99
#import <Foundation/Foundation.h>
10-
#import "AVFoundation/AVAssetWriter.h"
11-
#import "AVFoundation/AVAssetWriterInput.h"
12-
#import "AVFoundation/AVMediaFormat.h"
13-
#import "AVFoundation/AVVideoSettings.h"
10+
#import <AVFoundation/AVAssetWriter.h>
11+
#import <AVFoundation/AVAssetWriterInput.h>
12+
#import <AVFoundation/AVMediaFormat.h>
13+
#import <AVFoundation/AVVideoSettings.h>
1414

1515
@interface LFVideoEncoder : NSObject
1616

LFLiveKit/coder/LFAudioEncoding.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@
88

99
#import <Foundation/Foundation.h>
1010
#import <AVFoundation/AVFoundation.h>
11+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
12+
#import <LFLiveKit/LFAudioFrame.h>
13+
#import <LFLiveKit/LFLiveAudioConfiguration.h>
14+
#else
1115
#import "LFAudioFrame.h"
1216
#import "LFLiveAudioConfiguration.h"
17+
#endif
18+
19+
1320

1421
@protocol LFAudioEncoding;
1522
/// 编码器编码后回调

LFLiveKit/coder/LFH264VideoEncoder.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
// Created by feng on 7/5/16.
66
// Copyright (c) 2014 zhanqi.tv. All rights reserved.
77
//
8+
9+
#if __has_include(<LFLiveKit/LFLiveKit.h>)
10+
#import <LFLiveKit/LFVideoEncoding.h>
11+
#else
812
#import "LFVideoEncoding.h"
13+
#endif
914

1015
@interface LFH264VideoEncoder : NSObject <LFVideoEncoding> {
1116

0 commit comments

Comments
 (0)