diff --git a/demo/KSYLiveDemo/Info.plist b/demo/KSYLiveDemo/Info.plist index eb0e046..cc3bc81 100644 --- a/demo/KSYLiveDemo/Info.plist +++ b/demo/KSYLiveDemo/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.8.0 + 2.9.0 CFBundleSignature ???? CFBundleVersion - 2.8.0.1 + 2.9.0.0 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/demo/KSYLiveDemo/KSYDemoUI/KSYBgpStreamerVC.m b/demo/KSYLiveDemo/KSYDemoUI/KSYBgpStreamerVC.m index a8444cd..9ea7f4e 100644 --- a/demo/KSYLiveDemo/KSYDemoUI/KSYBgpStreamerVC.m +++ b/demo/KSYLiveDemo/KSYDemoUI/KSYBgpStreamerVC.m @@ -162,10 +162,10 @@ -(void)imagePickerController:(UIImagePickerController *)picker _kit.bgPic = nil; } //设置输出图像的像素格式 + _kit.bgPic = [[GPUImagePicture alloc] initWithImage:image]; _kit.gpuOutputPixelFormat = kCVPixelFormatType_32BGRA; - _kit.bgPicRotate = [[_kit class] getRotationMode:image]; //校正图片朝向 - _kit.bgPic = [[GPUImagePicture alloc] initWithImage:image]; + _kit.bgPicRotate = [[_kit class] getRotationMode:image]; if (image.imageOrientation == UIImageOrientationLeft || image.imageOrientation == UIImageOrientationRight){ _kit.previewDimension = CGSizeMake(_kit.bgPic.outputImageSize.height, _kit.bgPic.outputImageSize.width); }else{ diff --git a/doc/docset-installed.txt b/doc/docset-installed.txt index 1048e1b..d49952b 100644 --- a/doc/docset-installed.txt +++ b/doc/docset-installed.txt @@ -1,4 +1,4 @@ Documentation set was installed to Xcode! Path: /Users/ksvc/Library/Developer/Shared/Documentation/DocSets/com.ksyun.KSYLive_iOS.docset -Time: 2017-09-28 13:02:18 +0000 \ No newline at end of file +Time: 2017-10-20 08:49:57 +0000 \ No newline at end of file diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYAudioMixer.html b/doc/docset/Contents/Resources/Documents/Classes/KSYAudioMixer.html index 4da9c32..ca32a2b 100644 --- a/doc/docset/Contents/Resources/Documents/Classes/KSYAudioMixer.html +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYAudioMixer.html @@ -84,6 +84,8 @@

+ + @@ -92,6 +94,8 @@

+ + @@ -256,6 +260,80 @@

Discussion

+
+

Declared In

+

KSYAudioMixer.h

+
+ + + + +
+ +

– setMixVolume:rightVolume:of: +

+ +
+
+ +
+ + +
+

设置立体声混音音量(默认音量为1.0),如果设置的单声道输出,则使用leftVolume进行处理

+
+ + + +
- (BOOL)setMixVolume:(float)leftVolume rightVolume:(float)rightVolume of:(int)trackId
+ + + +
+

Parameters

+ + + + + + + + + + + + + + + + + +
leftVolume

左声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大)

rightVolume

右声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大)

trackId

设置对应track的

+
+ + + +
+

Return Value

+

NO为设置失败,如track不存在,或vol超出范围

+
+ + + + + +
+

Discussion

+

Warning: 设置放大的音量可能会出现爆音, 请注意 +*

+
+ + + + + + +

Declared In

KSYAudioMixer.h

@@ -315,6 +393,75 @@

Return Value

+
+

Declared In

+

KSYAudioMixer.h

+
+ + +
+
+
+ +

– getMixVolume:rightVolume:of: +

+ +
+
+ +
+ + +
+

查询track的音量,

+
+ + + +
- (void)getMixVolume:(float *)leftVolume rightVolume:(float *)rightVolume of:(int)trackId
+ + + +
+

Parameters

+ + + + + + + + + + + + + + + + + +
leftVolume

左声道音量比例

rightVolume

右音量比例

trackId

设置对应track的

+
+ + + +
+

Return Value

+

负数为查询失败,如track不存在 +*

+
+ + + + + + + + + + +

Declared In

KSYAudioMixer.h

diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYClipWriter.html b/doc/docset/Contents/Resources/Documents/Classes/KSYClipWriter.html index 85c3526..ad6e800 100644 --- a/doc/docset/Contents/Resources/Documents/Classes/KSYClipWriter.html +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYClipWriter.html @@ -80,6 +80,8 @@

+ + @@ -932,6 +934,52 @@

  bWit +
+

Declared In

+

KSYClipWriter.h

+
+ + +

+
+
+ +

  mp4FastStart +

+ +
+
+ +
+ + +
+

mp4文件允许快速启动 (默认YES)

+
+ + + +
@property (nonatomic, assign) BOOL mp4FastStart
+ + + + + + + + + +
+

Discussion

+

mp4格式的文件中将moov等index信息放到文件开头

Warning: 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项

+
+ + + + + + +

Declared In

KSYClipWriter.h

diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYGPUBgpStreamerKit.html b/doc/docset/Contents/Resources/Documents/Classes/KSYGPUBgpStreamerKit.html index a2ab6c3..ede2541 100644 --- a/doc/docset/Contents/Resources/Documents/Classes/KSYGPUBgpStreamerKit.html +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYGPUBgpStreamerKit.html @@ -90,10 +90,6 @@

- - - - @@ -351,98 +347,6 @@

Discussion

-
-

Declared In

-

KSYGPUBgpStreamerKit.h

-
- - -
-
-
- -

  vPreviewMixer -

- -
-
- -
- - -
-

图像混合器 for 预览

-
- - - -
@property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer
- - - - - - - - - -
-

Discussion

-

将多图层的内容叠加

-
- - - - - - - -
-

Declared In

-

KSYGPUBgpStreamerKit.h

-
- - -
-
-
- -

  vStreamMixer -

- -
-
- -
- - -
-

图像混合器 for 推流

-
- - - -
@property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer
- - - - - - - - - -
-

Discussion

-

将多图层的内容叠加

-
- - - - - - -

Declared In

KSYGPUBgpStreamerKit.h

diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYMvEffect.html b/doc/docset/Contents/Resources/Documents/Classes/KSYMvEffect.html index d83e45f..264a96d 100644 --- a/doc/docset/Contents/Resources/Documents/Classes/KSYMvEffect.html +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYMvEffect.html @@ -54,15 +54,19 @@

+ + + + + + - - - + @@ -120,8 +124,8 @@

Overview

+
+ +

– closeMvFilter +

+ +
+
+ +
+ + +
+

关闭mv filter

+
+ + + +
- (void)closeMvFilter
diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYShakeFilter.html b/doc/docset/Contents/Resources/Documents/Classes/KSYShakeFilter.html new file mode 100644 index 0000000..f532f0a --- /dev/null +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYShakeFilter.html @@ -0,0 +1,200 @@ + + + + + + KSYShakeFilter Class Reference + + + + + + +
+
+ +

+ KSYLive_iOS +

+ +

+ Kingsoft +

+ +
+
+ + + +
+
+
+
+

KSYShakeFilter Class Reference

+ + +
+ + + + + + + +
Inherits fromKSYGPUFilter : GPUImageFilter
Declared inKSYShakeFilter.h
+ + + + +
+ +

Overview

+

KSYShakeFilter 画面抖动效果

+ +
    +
  • 类似抖音里放大抖动的效果
  • +
+ +
+ + + + + +
+ + + + + + +
+
+ +

– initWithType: +

+ +
+
+ +
+ + +
+

创建抖动效果的滤镜

+
+ + + +
- (instancetype)initWithType:(KSYShakeType)type
+ + + +
+

Parameters

+ + + + + + + +
type

抖动效果的类型

+
+ + + + + + + + + + + + + +
+

Declared In

+

KSYShakeFilter.h

+
+ + +
+
+
+
+ +
+ + + + + + +
+ + +
+
+
+ + + + diff --git a/doc/docset/Contents/Resources/Documents/Classes/KSYStreamerBase.html b/doc/docset/Contents/Resources/Documents/Classes/KSYStreamerBase.html index 43f6ea1..6d39cfc 100644 --- a/doc/docset/Contents/Resources/Documents/Classes/KSYStreamerBase.html +++ b/doc/docset/Contents/Resources/Documents/Classes/KSYStreamerBase.html @@ -68,6 +68,8 @@

+ + @@ -3327,6 +3329,52 @@

See Also

+
+

Declared In

+

KSYStreamerBase.h

+
+ + +
+
+
+ +

  bypassMp4FastStart +

+ +
+
+ +
+ + +
+

mp4文件允许快速启动 (默认NO)

+
+ + + +
@property (nonatomic, assign) BOOL bypassMp4FastStart
+ + + + + + + + + +
+

Discussion

+

mp4格式的文件中将moov等index信息放到文件开头

开始录制前设置有效

Warning: 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项

+
+ + + + + + +

Declared In

KSYStreamerBase.h

diff --git a/doc/docset/Contents/Resources/Documents/Constants/KSYShakeType.html b/doc/docset/Contents/Resources/Documents/Constants/KSYShakeType.html new file mode 100644 index 0000000..c7c6cd2 --- /dev/null +++ b/doc/docset/Contents/Resources/Documents/Constants/KSYShakeType.html @@ -0,0 +1,175 @@ + + + + + + KSYShakeType Constants Reference + + + + + + +
+
+ +

+ KSYLive_iOS +

+ +

+ Kingsoft +

+ +
+
+ + + +
+
+
+
+

KSYShakeType Constants Reference

+ + +
+ + + + +
Declared inKSYShakeFilter.h
+ + + + + + + +

KSYShakeType

+ + +
+

抖动类型

+
+ + +
+ + +

Definition

+ typedef NS_ENUM(NSInteger, KSYShakeType ) {
+ +    KSYShakeType_ZOOM = 0,
+ +    KSYShakeType_Color = 1,
+ + };
+ +
+ +
+

Constants

+
+ +
KSYShakeType_ZOOM
+
+ + +

放大抖动效果

+ + + + + + +

+ Declared In KSYShakeFilter.h. +

+ +
+ +
KSYShakeType_Color
+
+ + +

彩色抖动效果

+ + + + + + +

+ Declared In KSYShakeFilter.h. +

+ +
+ +
+
+ + + + + + + + +
+

Declared In

+

KSYShakeFilter.h

+
+ + + + + +
+ + +
+
+
+ + + + diff --git a/doc/docset/Contents/Resources/Documents/hierarchy.html b/doc/docset/Contents/Resources/Documents/hierarchy.html index 8a37c95..419fb97 100644 --- a/doc/docset/Contents/Resources/Documents/hierarchy.html +++ b/doc/docset/Contents/Resources/Documents/hierarchy.html @@ -60,6 +60,8 @@

Class Hierarchy

  • KSYGPUDnoiseFilter
  • +
  • KSYShakeFilter
  • + @@ -261,6 +263,8 @@

    Constant References

  • KSYRecordState
  • +
  • KSYShakeType
  • +
  • KSYStreamErrorCode
  • KSYStreamState
  • diff --git a/doc/docset/Contents/Resources/Documents/index.html b/doc/docset/Contents/Resources/Documents/index.html index 6d36961..7148b33 100644 --- a/doc/docset/Contents/Resources/Documents/index.html +++ b/doc/docset/Contents/Resources/Documents/index.html @@ -136,6 +136,8 @@

    Class References

  • KSYReachability
  • +
  • KSYShakeFilter
  • +
  • KSYSpecialEffects
  • KSYStreamerBase
  • @@ -203,6 +205,8 @@

    Constant References

  • KSYRecordState
  • +
  • KSYShakeType
  • +
  • KSYStreamErrorCode
  • KSYStreamState
  • diff --git a/doc/docset/Contents/Resources/Nodes.xml b/doc/docset/Contents/Resources/Nodes.xml index 48a6dfa..b3b1791 100644 --- a/doc/docset/Contents/Resources/Nodes.xml +++ b/doc/docset/Contents/Resources/Nodes.xml @@ -60,6 +60,7 @@ + @@ -69,7 +70,7 @@ Categories index.html - + @@ -79,7 +80,7 @@ Protocols index.html - + @@ -89,7 +90,6 @@ Constants index.html - @@ -124,6 +124,8 @@ + + @@ -133,13 +135,13 @@ Blocks index.html - - + + @@ -1324,6 +1326,12 @@ tasks + + Classes/KSYMvEffect.html + Properties + properties + + @@ -1351,12 +1359,6 @@ tasks - - Classes/KSYMvFilter.html - Properties - properties - - @@ -1495,6 +1497,33 @@ + KSYShakeFilter + Classes/KSYShakeFilter.html + + + + Classes/KSYShakeFilter.html + Overview + overview + + + Classes/KSYShakeFilter.html + Tasks + tasks + + + + + + Classes/KSYShakeFilter.html + Instance Methods + instance_methods + + + + + + KSYSpecialEffects Classes/KSYSpecialEffects.html @@ -1533,7 +1562,7 @@ - + KSYStreamerBase Classes/KSYStreamerBase.html @@ -1566,7 +1595,7 @@ - + KSYTranscoder Classes/KSYTranscoder.html @@ -1599,7 +1628,7 @@ - + KSYUIRecorderKit Classes/KSYUIRecorderKit.html @@ -1632,7 +1661,7 @@ - + KSYVideoInfo Classes/KSYVideoInfo.html @@ -1659,7 +1688,7 @@ - + KSYWeakProxy Classes/KSYWeakProxy.html @@ -1699,7 +1728,7 @@ - + AVAudioSession(KSY) Categories/AVAudioSession+KSY.html @@ -1739,7 +1768,7 @@ - + KSYMediaPlayback Protocols/KSYMediaPlayback.html @@ -1773,213 +1802,218 @@ - + KSYAVMuxerStatus Constants/KSYAVMuxerStatus.html - + KSYAudioCodec Constants/KSYAudioCodec.html - + KSYAudioEffectType Constants/KSYAudioEffectType.html - + KSYAudioNoiseSuppress Constants/KSYAudioNoiseSuppress.html - + KSYBWEstimateMode Constants/KSYBWEstimateMode.html - + KSYBgmPlayerState Constants/KSYBgmPlayerState.html - + KSYCaptureState Constants/KSYCaptureState.html - + KSYDevAuthStatus Constants/KSYDevAuthStatus.html - + KSYLiveScene Constants/KSYLiveScene.html - + KSYMPErrorCode Constants/KSYMPErrorCode.html - + KSYMicType Constants/KSYMicType.html - + KSYNetReachState Constants/KSYNetReachState.html - + KSYNetStateCode Constants/KSYNetStateCode.html - + KSYNetworkStatus Constants/KSYNetworkStatus.html - + KSYPlayRecordScheme Constants/KSYPlayRecordScheme.html - + KSYRecScene Constants/KSYRecScene.html - + KSYRecordError Constants/KSYRecordError.html - + KSYRecordState Constants/KSYRecordState.html - + + KSYShakeType + Constants/KSYShakeType.html + + + KSYStreamErrorCode Constants/KSYStreamErrorCode.html - + KSYStreamState Constants/KSYStreamState.html - + KSYTranscodeErrorCode Constants/KSYTranscodeErrorCode.html - + KSYTranscodeState Constants/KSYTranscodeState.html - + KSYVideoCodec Constants/KSYVideoCodec.html - + KSYVideoDimension Constants/KSYVideoDimension.html - + KSYVideoEncodePerformance Constants/KSYVideoEncodePerformance.html - + KSY_NETTRACKER_ACTION Constants/KSY_NETTRACKER_ACTION.html - + MEDIAINFO_CODEC_ID Constants/MEDIAINFO_CODEC_ID.html - + MEDIAINFO_MUX_TYPE Constants/MEDIAINFO_MUX_TYPE.html - + MEDIAINFO_SAMPLE_FMT Constants/MEDIAINFO_SAMPLE_FMT.html - + MPMovieAudioPan Constants/MPMovieAudioPan.html - + MPMovieMetaType Constants/MPMovieMetaType.html - + MPMovieReloadMode Constants/MPMovieReloadMode.html - + MPMovieStatus Constants/MPMovieStatus.html - + MPMovieVideoDecoderMode Constants/MPMovieVideoDecoderMode.html - + MPMovieVideoDeinterlaceMode Constants/MPMovieVideoDeinterlaceMode.html - + KSYNetworkReachability Blocks/KSYNetworkReachability.html - + KSYNetworkReachable Blocks/KSYNetworkReachable.html - + KSYNetworkUnreachable Blocks/KSYNetworkUnreachable.html - + KSYPlyAudioDataBlock Blocks/KSYPlyAudioDataBlock.html - + KSYPlyMessageDataBlock Blocks/KSYPlyMessageDataBlock.html - + KSYPlyTextureBlock Blocks/KSYPlyTextureBlock.html - + KSYPlyVideoDataBlock Blocks/KSYPlyVideoDataBlock.html diff --git a/doc/docset/Contents/Resources/Tokens14.xml b/doc/docset/Contents/Resources/Tokens14.xml index fbd0bc2..82aa653 100644 --- a/doc/docset/Contents/Resources/Tokens14.xml +++ b/doc/docset/Contents/Resources/Tokens14.xml @@ -594,6 +594,42 @@ + + //apple_ref/occ/instm/KSYClipWriter/setMp4FastStart: + mp4文件允许快速启动 (默认YES) + KSYClipWriter.h + + @property (nonatomic, assign) BOOL mp4FastStart + + + //api/name/mp4FastStart + + + + + //apple_ref/occ/instm/KSYClipWriter/mp4FastStart + mp4文件允许快速启动 (默认YES) + KSYClipWriter.h + + @property (nonatomic, assign) BOOL mp4FastStart + + + //api/name/mp4FastStart + + + + + //apple_ref/occ/instp/KSYClipWriter/mp4FastStart + mp4文件允许快速启动 (默认YES) + KSYClipWriter.h + + @property (nonatomic, assign) BOOL mp4FastStart + + + //api/name/mp4FastStart + + + //apple_ref/occ/instm/KSYClipWriter/setWriteState: 当前写入状态 diff --git a/doc/docset/Contents/Resources/Tokens20.xml b/doc/docset/Contents/Resources/Tokens20.xml index 9fbac0a..4409ebd 100644 --- a/doc/docset/Contents/Resources/Tokens20.xml +++ b/doc/docset/Contents/Resources/Tokens20.xml @@ -84,78 +84,6 @@ - - //apple_ref/occ/instm/KSYGPUBgpStreamerKit/setVPreviewMixer: - 图像混合器 for 预览 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer - - - //api/name/vPreviewMixer - - - - - //apple_ref/occ/instm/KSYGPUBgpStreamerKit/vPreviewMixer - 图像混合器 for 预览 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer - - - //api/name/vPreviewMixer - - - - - //apple_ref/occ/instp/KSYGPUBgpStreamerKit/vPreviewMixer - 图像混合器 for 预览 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer - - - //api/name/vPreviewMixer - - - - - //apple_ref/occ/instm/KSYGPUBgpStreamerKit/setVStreamMixer: - 图像混合器 for 推流 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer - - - //api/name/vStreamMixer - - - - - //apple_ref/occ/instm/KSYGPUBgpStreamerKit/vStreamMixer - 图像混合器 for 推流 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer - - - //api/name/vStreamMixer - - - - - //apple_ref/occ/instp/KSYGPUBgpStreamerKit/vStreamMixer - 图像混合器 for 推流 - KSYGPUBgpStreamerKit.h - - @property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer - - - //api/name/vStreamMixer - - - //apple_ref/occ/instm/KSYGPUBgpStreamerKit/setPreview: 预览视图 diff --git a/doc/docset/Contents/Resources/Tokens38.xml b/doc/docset/Contents/Resources/Tokens38.xml index 6ba416a..a9c1f7f 100644 --- a/doc/docset/Contents/Resources/Tokens38.xml +++ b/doc/docset/Contents/Resources/Tokens38.xml @@ -13,31 +13,58 @@ - //apple_ref/occ/instm/KSYMvEffect/initWithEffectShader: - 初始化并导入effectShader + //apple_ref/occ/instm/KSYMvEffect/setTimeInfo: + 设置MV特效生成的时间 KSYMvEffect.h - - (id)initWithEffectShader:(NSString *)effectShader - - - NSString - shader - - + @property (nonatomic, assign) CGFloat timeInfo + + + //api/name/timeInfo + + + + + //apple_ref/occ/instm/KSYMvEffect/timeInfo + 设置MV特效生成的时间 + KSYMvEffect.h + + @property (nonatomic, assign) CGFloat timeInfo - //api/name/initWithEffectShader: + + //api/name/timeInfo - //apple_ref/occ/instm/KSYMvEffect/closeMvEffect - 关闭mv effect + //apple_ref/occ/instp/KSYMvEffect/timeInfo + 设置MV特效生成的时间 KSYMvEffect.h - - (void)closeMvEffect + @property (nonatomic, assign) CGFloat timeInfo + + //api/name/timeInfo + + + + + //apple_ref/occ/instm/KSYMvEffect/initWithEffectShader:durationTime: + 初始化并导入effectShader + KSYMvEffect.h + + - (instancetype)initWithEffectShader:(NSString *)effectShader durationTime:(CGFloat)durTime + + + durTime + MV特效持续时间 + + shader字符串 + 片源着色器 + + - //api/name/closeMvEffect + //api/name/initWithEffectShader:durationTime: diff --git a/doc/docset/Contents/Resources/Tokens39.xml b/doc/docset/Contents/Resources/Tokens39.xml index 2e9ff71..b5142f0 100644 --- a/doc/docset/Contents/Resources/Tokens39.xml +++ b/doc/docset/Contents/Resources/Tokens39.xml @@ -12,42 +12,6 @@ - - //apple_ref/occ/instm/KSYMvFilter/setMvScreenSource: - - KSYMvFilter.h - - @property (nonatomic, retain) GPUImageMovie *MvScreenSource - - - //api/name/MvScreenSource - - - - - //apple_ref/occ/instm/KSYMvFilter/MvScreenSource - - KSYMvFilter.h - - @property (nonatomic, retain) GPUImageMovie *MvScreenSource - - - //api/name/MvScreenSource - - - - - //apple_ref/occ/instp/KSYMvFilter/MvScreenSource - - KSYMvFilter.h - - @property (nonatomic, retain) GPUImageMovie *MvScreenSource - - - //api/name/MvScreenSource - - - //apple_ref/occ/instm/KSYMvFilter/initWithPath:shouldRepeat: 单个mp4 filter @@ -69,50 +33,38 @@ - //apple_ref/occ/instm/KSYMvFilter/closeMvFilter - 关闭mv filter - KSYMvFilter.h - - - (void)closeMvFilter - - - //api/name/closeMvFilter - - - - - //apple_ref/occ/instm/KSYMvFilter/setMvPlayEndCallback: - mv播放结束回调函数 + //apple_ref/occ/instm/KSYMvFilter/MvPause + mv 播放暂停 KSYMvFilter.h - @property (nonatomic, copy) void ( ^ ) ( ) mvPlayEndCallback + - (void)MvPause - //api/name/mvPlayEndCallback + //api/name/MvPause - //apple_ref/occ/instm/KSYMvFilter/mvPlayEndCallback - mv播放结束回调函数 + //apple_ref/occ/instm/KSYMvFilter/MvResume + mv 播放暂停恢复 KSYMvFilter.h - @property (nonatomic, copy) void ( ^ ) ( ) mvPlayEndCallback + - (void)MvResume - //api/name/mvPlayEndCallback + //api/name/MvResume - //apple_ref/occ/instp/KSYMvFilter/mvPlayEndCallback - mv播放结束回调函数 + //apple_ref/occ/instm/KSYMvFilter/closeMvFilter + 关闭mv filter KSYMvFilter.h - @property (nonatomic, copy) void ( ^ ) ( ) mvPlayEndCallback + - (void)closeMvFilter - //api/name/mvPlayEndCallback + //api/name/closeMvFilter diff --git a/doc/docset/Contents/Resources/Tokens44.xml b/doc/docset/Contents/Resources/Tokens44.xml index a4954e9..c35b4b6 100644 --- a/doc/docset/Contents/Resources/Tokens44.xml +++ b/doc/docset/Contents/Resources/Tokens44.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/cl/KSYSpecialEffects - 金山云特效滤镜 - KSYSpecialEffects.h + //apple_ref/occ/cl/KSYShakeFilter + KSYShakeFilter 画面抖动效果 + KSYShakeFilter.h @@ -13,84 +13,19 @@ - //apple_ref/occ/clm/KSYSpecialEffects/showVersion - show version of this filter - KSYSpecialEffects.h + //apple_ref/occ/instm/KSYShakeFilter/initWithType: + 创建抖动效果的滤镜 + KSYShakeFilter.h - + (void)showVersion - - - //api/name/showVersion - - - - - //apple_ref/occ/instm/KSYSpecialEffects/initWithUIImage: - 初始化并指定特效素材 - KSYSpecialEffects.h - - - (id)initWithUIImage:(UIImage *)image + - (instancetype)initWithType:(KSYShakeType)type - image - 特效素材 + type + 抖动效果的类型 - 构造的滤镜 - //api/name/initWithUIImage: - - - - - //apple_ref/occ/instm/KSYSpecialEffects/setSpecialEffectsUIImage: - 指定特效素材 - KSYSpecialEffects.h - - - (void)setSpecialEffectsUIImage:(UIImage *)image - - - image - 特效素材 - - - - //api/name/setSpecialEffectsUIImage: - - - - - //apple_ref/occ/instm/KSYSpecialEffects/setIntensity: - 特效参数 - KSYSpecialEffects.h - - @property (readwrite, nonatomic) CGFloat intensity - - - //api/name/intensity - - - - - //apple_ref/occ/instm/KSYSpecialEffects/intensity - 特效参数 - KSYSpecialEffects.h - - @property (readwrite, nonatomic) CGFloat intensity - - - //api/name/intensity - - - - - //apple_ref/occ/instp/KSYSpecialEffects/intensity - 特效参数 - KSYSpecialEffects.h - - @property (readwrite, nonatomic) CGFloat intensity - - //api/name/intensity + //api/name/initWithType: diff --git a/doc/docset/Contents/Resources/Tokens45.xml b/doc/docset/Contents/Resources/Tokens45.xml index e45dc04..454aebb 100644 --- a/doc/docset/Contents/Resources/Tokens45.xml +++ b/doc/docset/Contents/Resources/Tokens45.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/cl/KSYStreamerBase - 金山云直播推流SDK iOS版提供了iOS移动设备上的推流功能 - KSYStreamerBase.h + //apple_ref/occ/cl/KSYSpecialEffects + 金山云特效滤镜 + KSYSpecialEffects.h @@ -13,2365 +13,84 @@ - //apple_ref/occ/instm/KSYStreamerBase/getKSYVersion - 获取SDK版本号 - KSYStreamerBase.h + //apple_ref/occ/clm/KSYSpecialEffects/showVersion + show version of this filter + KSYSpecialEffects.h - - (NSString *)getKSYVersion + + (void)showVersion - //api/name/getKSYVersion + //api/name/showVersion - //apple_ref/occ/instm/KSYStreamerBase/setHostURL: - 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 - KSYStreamerBase.h + //apple_ref/occ/instm/KSYSpecialEffects/initWithUIImage: + 初始化并指定特效素材 + KSYSpecialEffects.h - @property (nonatomic, readonly) NSURL *hostURL - - - //api/name/hostURL - - - - - //apple_ref/occ/instm/KSYStreamerBase/hostURL - 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 - KSYStreamerBase.h - - @property (nonatomic, readonly) NSURL *hostURL - - - //api/name/hostURL - - - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 - KSYStreamerBase.h - - @property (nonatomic, readonly) NSURL *hostURL - - - //api/name/hostURL - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoFPS: - 视频帧率 默认:15 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoFPS - - - //api/name/videoFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoFPS - 视频帧率 默认:15 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoFPS - - - //api/name/videoFPS - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoFPS - 视频帧率 默认:15 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoFPS - - - //api/name/videoFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoMinFPS: - 视频帧率最小值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMinFPS - - - //api/name/videoMinFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoMinFPS - 视频帧率最小值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMinFPS - - - //api/name/videoMinFPS - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinFPS - 视频帧率最小值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMinFPS - - - //api/name/videoMinFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoMaxFPS: - 视频帧率最大值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMaxFPS - - - //api/name/videoMaxFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoMaxFPS - 视频帧率最大值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMaxFPS - - - //api/name/videoMaxFPS - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxFPS - 视频帧率最大值,默认与videoFPS相同 - KSYStreamerBase.h - - @property (nonatomic, assign) int videoMaxFPS - - - //api/name/videoMaxFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoCodec: - 视频编码器 默认为 自动选择 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf - - - - @property (nonatomic, assign) KSYVideoCodec videoCodec - - - //api/name/videoCodec - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoCodec - 视频编码器 默认为 自动选择 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf - - - - @property (nonatomic, assign) KSYVideoCodec videoCodec - - - //api/name/videoCodec - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoCodec - 视频编码器 默认为 自动选择 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf - - - - @property (nonatomic, assign) KSYVideoCodec videoCodec - - - //api/name/videoCodec - - - - - //apple_ref/occ/instm/KSYStreamerBase/setAudioCodec: - 音频编码器 (默认为AAC-HE) - KSYStreamerBase.h - - - //apple_ref/c/tdef/KSYAudioCodec - - - - @property (nonatomic, assign) KSYAudioCodec audioCodec - - - //api/name/audioCodec - - - - - //apple_ref/occ/instm/KSYStreamerBase/audioCodec - 音频编码器 (默认为AAC-HE) - KSYStreamerBase.h - - - //apple_ref/c/tdef/KSYAudioCodec - - - - @property (nonatomic, assign) KSYAudioCodec audioCodec - - - //api/name/audioCodec - - - - - //apple_ref/occ/instp/KSYStreamerBase/audioCodec - 音频编码器 (默认为AAC-HE) - KSYStreamerBase.h - - - //apple_ref/c/tdef/KSYAudioCodec - - - - @property (nonatomic, assign) KSYAudioCodec audioCodec - - - //api/name/audioCodec - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoInitBitrate: - 视频编码起始码率(单位:kbps, 默认:500) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoInitBitrate - - - //api/name/videoInitBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoInitBitrate - 视频编码起始码率(单位:kbps, 默认:500) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoInitBitrate - - - //api/name/videoInitBitrate - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoInitBitrate - 视频编码起始码率(单位:kbps, 默认:500) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoInitBitrate - - - //api/name/videoInitBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoMaxBitrate: - 视频编码最高码率(单位:kbps, 默认:800) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoMaxBitrate - - - //api/name/videoMaxBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoMaxBitrate - 视频编码最高码率(单位:kbps, 默认:800) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoMaxBitrate - - - //api/name/videoMaxBitrate - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - 视频编码最高码率(单位:kbps, 默认:800) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - - - - @property (nonatomic, assign) int videoMaxBitrate - - - //api/name/videoMaxBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoMinBitrate: - 视频编码最低码率(单位:kbps, 默认:200) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, assign) int videoMinBitrate - - - //api/name/videoMinBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoMinBitrate - 视频编码最低码率(单位:kbps, 默认:200) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, assign) int videoMinBitrate - - - //api/name/videoMinBitrate - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate - 视频编码最低码率(单位:kbps, 默认:200) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, assign) int videoMinBitrate - - - //api/name/videoMinBitrate - - - - - //apple_ref/occ/instm/KSYStreamerBase/setStreamMetaData: - 推流全局附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *streamMetaData - - - //api/name/streamMetaData - - - - - //apple_ref/occ/instm/KSYStreamerBase/streamMetaData - 推流全局附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *streamMetaData - - - //api/name/streamMetaData - - - - - //apple_ref/occ/instp/KSYStreamerBase/streamMetaData - 推流全局附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *streamMetaData - - - //api/name/streamMetaData - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoMetaData: - 视频流附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *videoMetaData - - - //api/name/videoMetaData - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoMetaData - 视频流附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *videoMetaData - - - //api/name/videoMetaData - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoMetaData - 视频流附带的metadata (默认为nil) - KSYStreamerBase.h - - @property (atomic, copy) NSDictionary *videoMetaData - - - //api/name/videoMetaData - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoCrf: - 质量等级(默认:20) - KSYStreamerBase.h - - @property (nonatomic, assign) int videoCrf - - - //api/name/videoCrf - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoCrf - 质量等级(默认:20) - KSYStreamerBase.h - - @property (nonatomic, assign) int videoCrf - - - //api/name/videoCrf - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoCrf - 质量等级(默认:20) - KSYStreamerBase.h - - @property (nonatomic, assign) int videoCrf - - - //api/name/videoCrf - - - - - //apple_ref/occ/instm/KSYStreamerBase/setMaxKeyInterval: - 最大关键帧间隔(单位:秒, 默认:3) - KSYStreamerBase.h - - @property (nonatomic, assign) float maxKeyInterval - - - //api/name/maxKeyInterval - - - - - //apple_ref/occ/instm/KSYStreamerBase/maxKeyInterval - 最大关键帧间隔(单位:秒, 默认:3) - KSYStreamerBase.h - - @property (nonatomic, assign) float maxKeyInterval - - - //api/name/maxKeyInterval - - - - - //apple_ref/occ/instp/KSYStreamerBase/maxKeyInterval - 最大关键帧间隔(单位:秒, 默认:3) - KSYStreamerBase.h - - @property (nonatomic, assign) float maxKeyInterval - - - //api/name/maxKeyInterval - - - - - //apple_ref/occ/instm/KSYStreamerBase/setAudiokBPS: - 音频编码码率(单位:kbps) - KSYStreamerBase.h - - @property (nonatomic, assign) int audiokBPS - - - //api/name/audiokBPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/audiokBPS - 音频编码码率(单位:kbps) - KSYStreamerBase.h - - @property (nonatomic, assign) int audiokBPS - - - //api/name/audiokBPS - - - - - //apple_ref/occ/instp/KSYStreamerBase/audiokBPS - 音频编码码率(单位:kbps) - KSYStreamerBase.h - - @property (nonatomic, assign) int audiokBPS - - - //api/name/audiokBPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBwEstimateMode: - 带宽估计模式 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode - - - //api/name/bwEstimateMode - - - - - //apple_ref/occ/instm/KSYStreamerBase/bwEstimateMode - 带宽估计模式 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode - - - //api/name/bwEstimateMode - - - - - //apple_ref/occ/instp/KSYStreamerBase/bwEstimateMode - 带宽估计模式 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode - - - //api/name/bwEstimateMode - - - - - //apple_ref/occ/instm/KSYStreamerBase/setLiveScene: - 本次直播的目标场景 (默认为KSYLiveScene_Default) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYLiveScene liveScene - - - //api/name/liveScene - - - - - //apple_ref/occ/instm/KSYStreamerBase/liveScene - 本次直播的目标场景 (默认为KSYLiveScene_Default) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYLiveScene liveScene - - - //api/name/liveScene - - - - - //apple_ref/occ/instp/KSYStreamerBase/liveScene - 本次直播的目标场景 (默认为KSYLiveScene_Default) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYLiveScene liveScene - - - //api/name/liveScene - - - - - //apple_ref/occ/instm/KSYStreamerBase/setRecScene: - 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYRecScene recScene - - - //api/name/recScene - - - - - //apple_ref/occ/instm/KSYStreamerBase/recScene - 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYRecScene recScene - - - //api/name/recScene - - - - - //apple_ref/occ/instp/KSYStreamerBase/recScene - 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) - KSYStreamerBase.h - - @property (nonatomic, assign) KSYRecScene recScene - - - //api/name/recScene - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoEncodePerf: - 视频编码性能档次 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf - - - //api/name/videoEncodePerf - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoEncodePerf - 视频编码性能档次 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf - - - //api/name/videoEncodePerf - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf - 视频编码性能档次 - KSYStreamerBase.h - - @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf - - - //api/name/videoEncodePerf - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBWithVideo: - 是否处理视频的图像数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithVideo - - - //api/name/bWithVideo - - - - - //apple_ref/occ/instm/KSYStreamerBase/bWithVideo - 是否处理视频的图像数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithVideo - - - //api/name/bWithVideo - - - - - //apple_ref/occ/instp/KSYStreamerBase/bWithVideo - 是否处理视频的图像数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithVideo - - - //api/name/bWithVideo - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBWithAudio: - 是否处理音频数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithAudio - - - //api/name/bWithAudio - - - - - //apple_ref/occ/instm/KSYStreamerBase/bWithAudio - 是否处理音频数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithAudio - - - //api/name/bWithAudio - - - - - //apple_ref/occ/instp/KSYStreamerBase/bWithAudio - 是否处理音频数据 (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithAudio - - - //api/name/bWithAudio - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBWithMessage: - 是否处理Message (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithMessage - - - //api/name/bWithMessage - - - - - //apple_ref/occ/instm/KSYStreamerBase/bWithMessage - 是否处理Message (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithMessage - - - //api/name/bWithMessage - - - - - //apple_ref/occ/instp/KSYStreamerBase/bWithMessage - 是否处理Message (默认YES) - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL bWithMessage - - - //api/name/bWithMessage - - - - - //apple_ref/occ/instm/KSYStreamerBase/setScaleRatio: - cpu缩放比率,设置>0为按比例缩放,默认为0 - KSYStreamerBase.h - - @property (nonatomic, assign) float scaleRatio - - - //api/name/scaleRatio - - - - - //apple_ref/occ/instm/KSYStreamerBase/scaleRatio - cpu缩放比率,设置>0为按比例缩放,默认为0 - KSYStreamerBase.h - - @property (nonatomic, assign) float scaleRatio - - - //api/name/scaleRatio - - - - - //apple_ref/occ/instp/KSYStreamerBase/scaleRatio - cpu缩放比率,设置>0为按比例缩放,默认为0 - KSYStreamerBase.h - - @property (nonatomic, assign) float scaleRatio - - - //api/name/scaleRatio - - - - - //apple_ref/occ/instm/KSYStreamerBase/setStreamState: - 当前推流状况 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamState streamState - - - //api/name/streamState - - - - - //apple_ref/occ/instm/KSYStreamerBase/streamState - 当前推流状况 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamState streamState - - - //api/name/streamState - - - - - //apple_ref/occ/instp/KSYStreamerBase/streamState - 当前推流状况 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamState streamState - - - //api/name/streamState - - - - - //apple_ref/occ/instm/KSYStreamerBase/getStreamStateName: - 获取推流状态对应的字符串 - KSYStreamerBase.h - - - (NSString *)getStreamStateName:(KSYStreamState)stat - - - stat - 状态码 - - - 状态名称 - //api/name/getStreamStateName: - - - - - //apple_ref/occ/instm/KSYStreamerBase/getCurStreamStateName - 获取当前推流状态对应的字符串 - KSYStreamerBase.h - - - (NSString *)getCurStreamStateName - - 当前状态名称 - //api/name/getCurStreamStateName - - - - - //apple_ref/occ/instm/KSYStreamerBase/setStreamErrorCode: - 当前推流的错误码 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/streamState - - - - @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode - - - //api/name/streamErrorCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/streamErrorCode - 当前推流的错误码 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/streamState - - - - @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode - - - //api/name/streamErrorCode - - - - - //apple_ref/occ/instp/KSYStreamerBase/streamErrorCode - 当前推流的错误码 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/streamState - - - - @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode - - - //api/name/streamErrorCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/setStreamStateChange: - 发生推流状态变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange - - - //api/name/streamStateChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/streamStateChange - 发生推流状态变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange - - - //api/name/streamStateChange - - - - - //apple_ref/occ/instp/KSYStreamerBase/streamStateChange - 发生推流状态变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange - - - //api/name/streamStateChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/getKSYStreamErrorCodeName: - 获取错误码对应的字符串 - KSYStreamerBase.h - - - (NSString *)getKSYStreamErrorCodeName:(KSYStreamErrorCode)code - - - code - 错误码 - - - - //api/name/getKSYStreamErrorCodeName: - - - - - //apple_ref/occ/instm/KSYStreamerBase/getCurKSYStreamErrorCodeName - 获取当前错误码对应的字符串 - KSYStreamerBase.h - - - (NSString *)getCurKSYStreamErrorCodeName - - - //api/name/getCurKSYStreamErrorCodeName - - - - - //apple_ref/occ/instm/KSYStreamerBase/setNetStateCode: - 当前推流的网络事件 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetStateCode netStateCode - - - //api/name/netStateCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/netStateCode - 当前推流的网络事件 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetStateCode netStateCode - - - //api/name/netStateCode - - - - - //apple_ref/occ/instp/KSYStreamerBase/netStateCode - 当前推流的网络事件 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetStateCode netStateCode - - - //api/name/netStateCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/setVideoFPSChange: - 帧率应发生变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange - - - //api/name/videoFPSChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/videoFPSChange - 帧率应发生变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange - - - //api/name/videoFPSChange - - - - - //apple_ref/occ/instp/KSYStreamerBase/videoFPSChange - 帧率应发生变化时的回调函数 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange - - - //api/name/videoFPSChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/initWithDefaultCfg - 初始化方法 (step1) - KSYStreamerBase.h - - - (instancetype)initWithDefaultCfg - - - //api/name/initWithDefaultCfg - - - - - //apple_ref/occ/instm/KSYStreamerBase/startStream: - 启动推流 (step2) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/audiokBPS - - - - - (void)startStream:(NSURL *)url - - - url - 目标地址 - - - - //api/name/startStream: - - - - - //apple_ref/occ/instm/KSYStreamerBase/stopStream - 停止推流 (step3) - KSYStreamerBase.h - - - (void)stopStream - - - //api/name/stopStream - - - - - //apple_ref/occ/instm/KSYStreamerBase/muteStream: - 静音推流 (仍然有音频输出发送, 只是音量为0) - KSYStreamerBase.h - - - (void)muteStream:(BOOL)bMute - - - bMute - YES / ON - - - - //api/name/muteStream: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processVideoSampleBuffer: - 处理一个视频帧(只支持编码前的原始图像数据) - KSYStreamerBase.h - - - (void)processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer - - - sampleBuffer - Buffer to process - - - - //api/name/processVideoSampleBuffer: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processVideoSampleBuffer:onComplete: - 处理一个视频帧(只支持编码前的原始图像数据) - KSYStreamerBase.h - - - (void)processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer onComplete:(void ( ^ ) ( BOOL ))completion - - - sampleBuffer - Buffer to process - - completion - 当前视频帧处理完成的回调 - - - - //api/name/processVideoSampleBuffer:onComplete: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processVideoPixelBuffer:timeInfo: - 处理一个视频帧(只支持编码前的原始图像数据) - KSYStreamerBase.h - - - (void)processVideoPixelBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp - - - pixelBuffer - 待编码的像素数据 - - timeStamp - 待编码的时间戳 - - - - //api/name/processVideoPixelBuffer:timeInfo: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processVideoPixelBuffer:timeInfo:onComplete: - 处理一个视频帧(只支持编码前的原始图像数据) - KSYStreamerBase.h - - - (void)processVideoPixelBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp onComplete:(void ( ^ ) ( BOOL ))completion - - - pixelBuffer - 待编码的像素数据 - - timeStamp - 待编码的时间戳 - - completion - 当前视频帧处理完成的回调 - - - - //api/name/processVideoPixelBuffer:timeInfo:onComplete: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processAudioSampleBuffer: - 处理一段音频数据 - KSYStreamerBase.h - - - (void)processAudioSampleBuffer:(CMSampleBufferRef)sampleBuffer - - - sampleBuffer - Buffer to process - - - - //api/name/processAudioSampleBuffer: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processAudioData:nbSample:withFormat:timeinfo: - 处理一段音频数据 - KSYStreamerBase.h - - - (void)processAudioData:(uint8_t **)pData nbSample:(int)len withFormat:(const AudioStreamBasicDescription *)fmt timeinfo:(CMTime *)pts - - - pData - 原始数据指针数组 - - len - 数据的长度,单位为字节 - - fmt - 原始数据的格式 (必须保证一次推流过程中数据格式不变) - - pts - 原始数据的时间戳 - - - - //api/name/processAudioData:nbSample:withFormat:timeinfo: - - - - - //apple_ref/occ/instm/KSYStreamerBase/processMessageData: - 处理一个消息 - KSYStreamerBase.h - - - (void)processMessageData:(NSDictionary *)messageData - - - message - message to process - - - - //api/name/processMessageData: - - - - - //apple_ref/occ/instm/KSYStreamerBase/setClientAk: - 获取当前用户的ak -@warnning 默认是空的,只有在需要鉴权时,才能获取到 - KSYStreamerBase.h - - @property (nonatomic, assign) NSString *clientAk - - - //api/name/clientAk - - - - - //apple_ref/occ/instm/KSYStreamerBase/clientAk - 获取当前用户的ak -@warnning 默认是空的,只有在需要鉴权时,才能获取到 - KSYStreamerBase.h - - @property (nonatomic, assign) NSString *clientAk - - - //api/name/clientAk - - - - - //apple_ref/occ/instp/KSYStreamerBase/clientAk - 获取当前用户的ak -@warnning 默认是空的,只有在需要鉴权时,才能获取到 - KSYStreamerBase.h - - @property (nonatomic, assign) NSString *clientAk - - - //api/name/clientAk - - - - - //apple_ref/occ/instm/KSYStreamerBase/setExpireDate: - 获取当前SDK过期时间 - KSYStreamerBase.h - - @property (nonatomic, assign) NSDate *expireDate - - - //api/name/expireDate - - - - - //apple_ref/occ/instm/KSYStreamerBase/expireDate - 获取当前SDK过期时间 - KSYStreamerBase.h - - @property (nonatomic, assign) NSDate *expireDate - - - //api/name/expireDate - - - - - //apple_ref/occ/instp/KSYStreamerBase/expireDate - 获取当前SDK过期时间 - KSYStreamerBase.h - - @property (nonatomic, assign) NSDate *expireDate - - - //api/name/expireDate - - - - - //apple_ref/occ/instm/KSYStreamerBase/setStreamID: - 查询当前推流的事件ID - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSString *streamID - - - //api/name/streamID - - - - - //apple_ref/occ/instm/KSYStreamerBase/streamID - 查询当前推流的事件ID - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSString *streamID - - - //api/name/streamID - - - - - //apple_ref/occ/instp/KSYStreamerBase/streamID - 查询当前推流的事件ID - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSString *streamID - - - //api/name/streamID - - - - - //apple_ref/occ/instm/KSYStreamerBase/isStreaming - 查询当前是否处于推流状态 (建立连接中, 或连接中) - KSYStreamerBase.h - - - (BOOL)isStreaming - - - //api/name/isStreaming - - - - - //apple_ref/occ/instm/KSYStreamerBase/setEncodeVKbps: - 查询当前编码的视频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, readonly) double encodeVKbps - - - //api/name/encodeVKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/encodeVKbps - 查询当前编码的视频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, readonly) double encodeVKbps - - - //api/name/encodeVKbps - - - - - //apple_ref/occ/instp/KSYStreamerBase/encodeVKbps - 查询当前编码的视频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate - - - - @property (nonatomic, readonly) double encodeVKbps - - - //api/name/encodeVKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/setEncodeAKbps: - 查询当前编码的音频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/audiokBPS - - - - @property (nonatomic, readonly) double encodeAKbps - - - //api/name/encodeAKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/encodeAKbps - 查询当前编码的音频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/audiokBPS - - - - @property (nonatomic, readonly) double encodeAKbps - - - //api/name/encodeAKbps - - - - - //apple_ref/occ/instp/KSYStreamerBase/encodeAKbps - 查询当前编码的音频码率大小(每秒更新) - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/audiokBPS - - - - @property (nonatomic, readonly) double encodeAKbps - - - //api/name/encodeAKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/setUploadedKByte: - 查询本次推流发送的流量大小 (仅推流时有效) - KSYStreamerBase.h - - @property (nonatomic, readonly) int uploadedKByte - - - //api/name/uploadedKByte - - - - - //apple_ref/occ/instm/KSYStreamerBase/uploadedKByte - 查询本次推流发送的流量大小 (仅推流时有效) - KSYStreamerBase.h - - @property (nonatomic, readonly) int uploadedKByte - - - //api/name/uploadedKByte - - - - - //apple_ref/occ/instp/KSYStreamerBase/uploadedKByte - 查询本次推流发送的流量大小 (仅推流时有效) - KSYStreamerBase.h - - @property (nonatomic, readonly) int uploadedKByte - - - //api/name/uploadedKByte - - - - - //apple_ref/occ/instm/KSYStreamerBase/setCurrentUploadingKbps: - 查询当前上传的码率大小 (每秒更新) - KSYStreamerBase.h - - @property (nonatomic, readonly) double currentUploadingKbps - - - //api/name/currentUploadingKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/currentUploadingKbps - 查询当前上传的码率大小 (每秒更新) - KSYStreamerBase.h - - @property (nonatomic, readonly) double currentUploadingKbps - - - //api/name/currentUploadingKbps - - - - - //apple_ref/occ/instp/KSYStreamerBase/currentUploadingKbps - 查询当前上传的码率大小 (每秒更新) - KSYStreamerBase.h - - @property (nonatomic, readonly) double currentUploadingKbps - - - //api/name/currentUploadingKbps - - - - - //apple_ref/occ/instm/KSYStreamerBase/setEncodingFPS: - 查询当前编码的平均视频帧率 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoFPS - - - - @property (nonatomic, readonly) double encodingFPS - - - //api/name/encodingFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/encodingFPS - 查询当前编码的平均视频帧率 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoFPS - - - - @property (nonatomic, readonly) double encodingFPS - - - //api/name/encodingFPS - - - - - //apple_ref/occ/instp/KSYStreamerBase/encodingFPS - 查询当前编码的平均视频帧率 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/videoFPS - - - - @property (nonatomic, readonly) double encodingFPS - - - //api/name/encodingFPS - - - - - //apple_ref/occ/instm/KSYStreamerBase/setEncodedFrames: - 查询本次推流编码的视频总帧数 - KSYStreamerBase.h - - @property (nonatomic, readonly) int encodedFrames - - - //api/name/encodedFrames - - - - - //apple_ref/occ/instm/KSYStreamerBase/encodedFrames - 查询本次推流编码的视频总帧数 - KSYStreamerBase.h - - @property (nonatomic, readonly) int encodedFrames - - - //api/name/encodedFrames - - - - - //apple_ref/occ/instp/KSYStreamerBase/encodedFrames - 查询本次推流编码的视频总帧数 - KSYStreamerBase.h - - @property (nonatomic, readonly) int encodedFrames - - - //api/name/encodedFrames - - - - - //apple_ref/occ/instm/KSYStreamerBase/setDroppedVideoFrames: - 查询本次推流发送的丢帧数量 - KSYStreamerBase.h - - @property (nonatomic, readonly) int droppedVideoFrames - - - //api/name/droppedVideoFrames - - - - - //apple_ref/occ/instm/KSYStreamerBase/droppedVideoFrames - 查询本次推流发送的丢帧数量 - KSYStreamerBase.h - - @property (nonatomic, readonly) int droppedVideoFrames - - - //api/name/droppedVideoFrames - - - - - //apple_ref/occ/instp/KSYStreamerBase/droppedVideoFrames - 查询本次推流发送的丢帧数量 - KSYStreamerBase.h - - @property (nonatomic, readonly) int droppedVideoFrames - - - //api/name/droppedVideoFrames - - - - - //apple_ref/occ/instm/KSYStreamerBase/setQosInfo: - 推流的qos信息 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo - - - //api/name/qosInfo - - - - - //apple_ref/occ/instm/KSYStreamerBase/qosInfo - 推流的qos信息 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo - - - //api/name/qosInfo - - - - - //apple_ref/occ/instp/KSYStreamerBase/qosInfo - 推流的qos信息 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo - - - //api/name/qosInfo - - - - - //apple_ref/occ/instm/KSYStreamerBase/setRtmpHostIP: - 查询当前推流的rtmp服务器的主机IP - KSYStreamerBase.h - - @property (atomic, readonly) NSString *rtmpHostIP - - - //api/name/rtmpHostIP - - - - - //apple_ref/occ/instm/KSYStreamerBase/rtmpHostIP - 查询当前推流的rtmp服务器的主机IP - KSYStreamerBase.h - - @property (atomic, readonly) NSString *rtmpHostIP - - - //api/name/rtmpHostIP - - - - - //apple_ref/occ/instp/KSYStreamerBase/rtmpHostIP - 查询当前推流的rtmp服务器的主机IP - KSYStreamerBase.h - - @property (atomic, readonly) NSString *rtmpHostIP - - - //api/name/rtmpHostIP - - - - - //apple_ref/occ/instm/KSYStreamerBase/setShouldEnableKSYStatModule: - 收集网络相关状态的日志,默认开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - - - //api/name/shouldEnableKSYStatModule - - - - - //apple_ref/occ/instm/KSYStreamerBase/shouldEnableKSYStatModule - 收集网络相关状态的日志,默认开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - - - //api/name/shouldEnableKSYStatModule - - - - - //apple_ref/occ/instp/KSYStreamerBase/shouldEnableKSYStatModule - 收集网络相关状态的日志,默认开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - - - //api/name/shouldEnableKSYStatModule - - - - - //apple_ref/occ/instm/KSYStreamerBase/setLogBlock: - 获取Streamer中与网络相关的日志 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - - - //api/name/logBlock - - - - - //apple_ref/occ/instm/KSYStreamerBase/logBlock - 获取Streamer中与网络相关的日志 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - - - //api/name/logBlock - - - - - //apple_ref/occ/instp/KSYStreamerBase/logBlock - 获取Streamer中与网络相关的日志 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - - - //api/name/logBlock - - - - - //apple_ref/occ/instm/KSYStreamerBase/takePhotoWithQuality:fileName: - 截图功能,目前只支持jpg格式 - KSYStreamerBase.h - - - (void)takePhotoWithQuality:(CGFloat)jpegCompressionQuality fileName:(NSString *)filename - - - jpegCompressionQuality - 设置图像的压缩比例 - - filename - 图片的文件名 - - - - //api/name/takePhotoWithQuality:fileName: - - - - - //apple_ref/occ/instm/KSYStreamerBase/getSnapshotWithCompletion: - 获取当前编码的截图 - KSYStreamerBase.h - - - (void)getSnapshotWithCompletion:(void ( ^ ) ( UIImage *))completion + - (id)initWithUIImage:(UIImage *)image - completion - 通过完成代码块获取到截图完成的图像 + image + 特效素材 - - //api/name/getSnapshotWithCompletion: - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordURL: - 旁路录像地址 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSURL *bypassRecordURL - - - //api/name/bypassRecordURL - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordURL - 旁路录像地址 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSURL *bypassRecordURL - - - //api/name/bypassRecordURL - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordURL - 旁路录像地址 - KSYStreamerBase.h - - - //apple_ref/occ/instp/KSYStreamerBase/hostURL - - - - @property (nonatomic, readonly) NSURL *bypassRecordURL - - - //api/name/bypassRecordURL + 构造的滤镜 + //api/name/initWithUIImage: - //apple_ref/occ/instm/KSYStreamerBase/startBypassRecord: - 启动旁路录像 - KSYStreamerBase.h + //apple_ref/occ/instm/KSYSpecialEffects/setSpecialEffectsUIImage: + 指定特效素材 + KSYSpecialEffects.h - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordState - - - - - (BOOL)startBypassRecord:(NSURL *)url + - (void)setSpecialEffectsUIImage:(UIImage *)image - url - 本地录像文件地址:/private/var/..../test.mp4 + image + 特效素材 - 是否能尝试启动写入, 不能表明真正开始录像了,真正开始请确认bypassRecordState的值 - //api/name/startBypassRecord: - - - - - //apple_ref/occ/instm/KSYStreamerBase/stopBypassRecord - 停止旁路录像 - KSYStreamerBase.h - - - (void)stopBypassRecord - - - //api/name/stopBypassRecord - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordDuration: - 旁路录像的文件时长 - KSYStreamerBase.h - - @property (nonatomic, readonly) double bypassRecordDuration - - - //api/name/bypassRecordDuration - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordDuration - 旁路录像的文件时长 - KSYStreamerBase.h - - @property (nonatomic, readonly) double bypassRecordDuration - - - //api/name/bypassRecordDuration - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordDuration - 旁路录像的文件时长 - KSYStreamerBase.h - - @property (nonatomic, readonly) double bypassRecordDuration - - - //api/name/bypassRecordDuration - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordState: - 旁路录像的状态 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordState bypassRecordState - - - //api/name/bypassRecordState - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordState - 旁路录像的状态 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordState bypassRecordState - - - //api/name/bypassRecordState - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordState - 旁路录像的状态 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordState bypassRecordState - - - //api/name/bypassRecordState - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordErrorCode: - 旁路录像的错误码 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode - - - //api/name/bypassRecordErrorCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordErrorCode - 旁路录像的错误码 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode - - - //api/name/bypassRecordErrorCode - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordErrorCode - 旁路录像的错误码 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode - - - //api/name/bypassRecordErrorCode - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordErrorName: - 旁路录像的错误名称 - KSYStreamerBase.h - - @property (nonatomic, readonly) NSString *bypassRecordErrorName - - - //api/name/bypassRecordErrorName - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordErrorName - 旁路录像的错误名称 - KSYStreamerBase.h - - @property (nonatomic, readonly) NSString *bypassRecordErrorName - - - //api/name/bypassRecordErrorName - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordErrorName - 旁路录像的错误名称 - KSYStreamerBase.h - - @property (nonatomic, readonly) NSString *bypassRecordErrorName - - - //api/name/bypassRecordErrorName - - - - - //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordStateChange: - 当旁路录制的状态变化时 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange - - - //api/name/bypassRecordStateChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/bypassRecordStateChange - 当旁路录制的状态变化时 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange - - - //api/name/bypassRecordStateChange - - - - - //apple_ref/occ/instp/KSYStreamerBase/bypassRecordStateChange - 当旁路录制的状态变化时 - KSYStreamerBase.h - - @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange - - - //api/name/bypassRecordStateChange - - - - - //apple_ref/occ/instm/KSYStreamerBase/setShouldEnableKSYDropModule: - 是否允许编码前丢帧,默认开启 -@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYDropModule - - - //api/name/shouldEnableKSYDropModule - - - - - //apple_ref/occ/instm/KSYStreamerBase/shouldEnableKSYDropModule - 是否允许编码前丢帧,默认开启 -@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYDropModule - - - //api/name/shouldEnableKSYDropModule - - - - - //apple_ref/occ/instp/KSYStreamerBase/shouldEnableKSYDropModule - 是否允许编码前丢帧,默认开启 -@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 - KSYStreamerBase.h - - @property (nonatomic, assign) BOOL shouldEnableKSYDropModule - - - //api/name/shouldEnableKSYDropModule - - - - - //apple_ref/occ/instm/KSYStreamerBase/setNetReachability: - / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYReachability *netReachability - - - //api/name/netReachability - - - - - //apple_ref/occ/instm/KSYStreamerBase/netReachability - / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYReachability *netReachability - - - //api/name/netReachability - - - - - //apple_ref/occ/instp/KSYStreamerBase/netReachability - / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYReachability *netReachability - - - //api/name/netReachability - - - - - //apple_ref/occ/instm/KSYStreamerBase/setNetReachState: - 是否能连通外网 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetReachState netReachState - - - //api/name/netReachState - - - - - //apple_ref/occ/instm/KSYStreamerBase/netReachState - 是否能连通外网 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetReachState netReachState - - - //api/name/netReachState - - - - - //apple_ref/occ/instp/KSYStreamerBase/netReachState - 是否能连通外网 - KSYStreamerBase.h - - @property (nonatomic, readonly) KSYNetReachState netReachState - - //api/name/netReachState + //api/name/setSpecialEffectsUIImage: - //apple_ref/occ/instm/KSYStreamerBase/setReachabilityDetectURL: - 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” - KSYStreamerBase.h + //apple_ref/occ/instm/KSYSpecialEffects/setIntensity: + 特效参数 + KSYSpecialEffects.h - @property (nonatomic, readwrite) NSString *reachabilityDetectURL + @property (readwrite, nonatomic) CGFloat intensity - //api/name/reachabilityDetectURL + //api/name/intensity - //apple_ref/occ/instm/KSYStreamerBase/reachabilityDetectURL - 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” - KSYStreamerBase.h + //apple_ref/occ/instm/KSYSpecialEffects/intensity + 特效参数 + KSYSpecialEffects.h - @property (nonatomic, readwrite) NSString *reachabilityDetectURL + @property (readwrite, nonatomic) CGFloat intensity - //api/name/reachabilityDetectURL + //api/name/intensity - //apple_ref/occ/instp/KSYStreamerBase/reachabilityDetectURL - 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” - KSYStreamerBase.h + //apple_ref/occ/instp/KSYSpecialEffects/intensity + 特效参数 + KSYSpecialEffects.h - @property (nonatomic, readwrite) NSString *reachabilityDetectURL + @property (readwrite, nonatomic) CGFloat intensity - //api/name/reachabilityDetectURL + //api/name/intensity diff --git a/doc/docset/Contents/Resources/Tokens46.xml b/doc/docset/Contents/Resources/Tokens46.xml index 80e2a0d..9d8b5b7 100644 --- a/doc/docset/Contents/Resources/Tokens46.xml +++ b/doc/docset/Contents/Resources/Tokens46.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/cl/KSYTranscoder - 不同音视频文件格式间的转码 - KSYTranscoder.h + //apple_ref/occ/cl/KSYStreamerBase + 金山云直播推流SDK iOS版提供了iOS移动设备上的推流功能 + KSYStreamerBase.h @@ -13,229 +13,2401 @@ - //apple_ref/occ/instm/KSYTranscoder/startTranscode:outputFilePath: - 开始转换 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/getKSYVersion + 获取SDK版本号 + KSYStreamerBase.h - - (void)startTranscode:(NSURL *)inputFilePath outputFilePath:(NSURL *)outputFilePath + - (NSString *)getKSYVersion + + + //api/name/getKSYVersion + + + + + //apple_ref/occ/instm/KSYStreamerBase/setHostURL: + 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSURL *hostURL + + + //api/name/hostURL + + + + + //apple_ref/occ/instm/KSYStreamerBase/hostURL + 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSURL *hostURL + + + //api/name/hostURL + + + + + //apple_ref/occ/instp/KSYStreamerBase/hostURL + 直播推流时为rtmp主机地址; 本地文件录制时,为输出文件路径 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSURL *hostURL + + + //api/name/hostURL + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoFPS: + 视频帧率 默认:15 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoFPS + + + //api/name/videoFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoFPS + 视频帧率 默认:15 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoFPS + + + //api/name/videoFPS + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoFPS + 视频帧率 默认:15 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoFPS + + + //api/name/videoFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoMinFPS: + 视频帧率最小值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMinFPS + + + //api/name/videoMinFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoMinFPS + 视频帧率最小值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMinFPS + + + //api/name/videoMinFPS + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinFPS + 视频帧率最小值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMinFPS + + + //api/name/videoMinFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoMaxFPS: + 视频帧率最大值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMaxFPS + + + //api/name/videoMaxFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoMaxFPS + 视频帧率最大值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMaxFPS + + + //api/name/videoMaxFPS + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxFPS + 视频帧率最大值,默认与videoFPS相同 + KSYStreamerBase.h + + @property (nonatomic, assign) int videoMaxFPS + + + //api/name/videoMaxFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoCodec: + 视频编码器 默认为 自动选择 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf + + + + @property (nonatomic, assign) KSYVideoCodec videoCodec + + + //api/name/videoCodec + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoCodec + 视频编码器 默认为 自动选择 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf + + + + @property (nonatomic, assign) KSYVideoCodec videoCodec + + + //api/name/videoCodec + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoCodec + 视频编码器 默认为 自动选择 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf + + + + @property (nonatomic, assign) KSYVideoCodec videoCodec + + + //api/name/videoCodec + + + + + //apple_ref/occ/instm/KSYStreamerBase/setAudioCodec: + 音频编码器 (默认为AAC-HE) + KSYStreamerBase.h + + + //apple_ref/c/tdef/KSYAudioCodec + + + + @property (nonatomic, assign) KSYAudioCodec audioCodec + + + //api/name/audioCodec + + + + + //apple_ref/occ/instm/KSYStreamerBase/audioCodec + 音频编码器 (默认为AAC-HE) + KSYStreamerBase.h + + + //apple_ref/c/tdef/KSYAudioCodec + + + + @property (nonatomic, assign) KSYAudioCodec audioCodec + + + //api/name/audioCodec + + + + + //apple_ref/occ/instp/KSYStreamerBase/audioCodec + 音频编码器 (默认为AAC-HE) + KSYStreamerBase.h + + + //apple_ref/c/tdef/KSYAudioCodec + + + + @property (nonatomic, assign) KSYAudioCodec audioCodec + + + //api/name/audioCodec + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoInitBitrate: + 视频编码起始码率(单位:kbps, 默认:500) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoInitBitrate + + + //api/name/videoInitBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoInitBitrate + 视频编码起始码率(单位:kbps, 默认:500) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoInitBitrate + + + //api/name/videoInitBitrate + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoInitBitrate + 视频编码起始码率(单位:kbps, 默认:500) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoInitBitrate + + + //api/name/videoInitBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoMaxBitrate: + 视频编码最高码率(单位:kbps, 默认:800) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoMaxBitrate + + + //api/name/videoMaxBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoMaxBitrate + 视频编码最高码率(单位:kbps, 默认:800) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoMaxBitrate + + + //api/name/videoMaxBitrate + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + 视频编码最高码率(单位:kbps, 默认:800) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + + + + @property (nonatomic, assign) int videoMaxBitrate + + + //api/name/videoMaxBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoMinBitrate: + 视频编码最低码率(单位:kbps, 默认:200) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, assign) int videoMinBitrate + + + //api/name/videoMinBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoMinBitrate + 视频编码最低码率(单位:kbps, 默认:200) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, assign) int videoMinBitrate + + + //api/name/videoMinBitrate + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoMinBitrate + 视频编码最低码率(单位:kbps, 默认:200) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, assign) int videoMinBitrate + + + //api/name/videoMinBitrate + + + + + //apple_ref/occ/instm/KSYStreamerBase/setStreamMetaData: + 推流全局附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *streamMetaData + + + //api/name/streamMetaData + + + + + //apple_ref/occ/instm/KSYStreamerBase/streamMetaData + 推流全局附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *streamMetaData + + + //api/name/streamMetaData + + + + + //apple_ref/occ/instp/KSYStreamerBase/streamMetaData + 推流全局附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *streamMetaData + + + //api/name/streamMetaData + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoMetaData: + 视频流附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *videoMetaData + + + //api/name/videoMetaData + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoMetaData + 视频流附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *videoMetaData + + + //api/name/videoMetaData + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoMetaData + 视频流附带的metadata (默认为nil) + KSYStreamerBase.h + + @property (atomic, copy) NSDictionary *videoMetaData + + + //api/name/videoMetaData + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoCrf: + 质量等级(默认:20) + KSYStreamerBase.h + + @property (nonatomic, assign) int videoCrf + + + //api/name/videoCrf + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoCrf + 质量等级(默认:20) + KSYStreamerBase.h + + @property (nonatomic, assign) int videoCrf + + + //api/name/videoCrf + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoCrf + 质量等级(默认:20) + KSYStreamerBase.h + + @property (nonatomic, assign) int videoCrf + + + //api/name/videoCrf + + + + + //apple_ref/occ/instm/KSYStreamerBase/setMaxKeyInterval: + 最大关键帧间隔(单位:秒, 默认:3) + KSYStreamerBase.h + + @property (nonatomic, assign) float maxKeyInterval + + + //api/name/maxKeyInterval + + + + + //apple_ref/occ/instm/KSYStreamerBase/maxKeyInterval + 最大关键帧间隔(单位:秒, 默认:3) + KSYStreamerBase.h + + @property (nonatomic, assign) float maxKeyInterval + + + //api/name/maxKeyInterval + + + + + //apple_ref/occ/instp/KSYStreamerBase/maxKeyInterval + 最大关键帧间隔(单位:秒, 默认:3) + KSYStreamerBase.h + + @property (nonatomic, assign) float maxKeyInterval + + + //api/name/maxKeyInterval + + + + + //apple_ref/occ/instm/KSYStreamerBase/setAudiokBPS: + 音频编码码率(单位:kbps) + KSYStreamerBase.h + + @property (nonatomic, assign) int audiokBPS + + + //api/name/audiokBPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/audiokBPS + 音频编码码率(单位:kbps) + KSYStreamerBase.h + + @property (nonatomic, assign) int audiokBPS + + + //api/name/audiokBPS + + + + + //apple_ref/occ/instp/KSYStreamerBase/audiokBPS + 音频编码码率(单位:kbps) + KSYStreamerBase.h + + @property (nonatomic, assign) int audiokBPS + + + //api/name/audiokBPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBwEstimateMode: + 带宽估计模式 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode + + + //api/name/bwEstimateMode + + + + + //apple_ref/occ/instm/KSYStreamerBase/bwEstimateMode + 带宽估计模式 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode + + + //api/name/bwEstimateMode + + + + + //apple_ref/occ/instp/KSYStreamerBase/bwEstimateMode + 带宽估计模式 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYBWEstimateMode bwEstimateMode + + + //api/name/bwEstimateMode + + + + + //apple_ref/occ/instm/KSYStreamerBase/setLiveScene: + 本次直播的目标场景 (默认为KSYLiveScene_Default) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYLiveScene liveScene + + + //api/name/liveScene + + + + + //apple_ref/occ/instm/KSYStreamerBase/liveScene + 本次直播的目标场景 (默认为KSYLiveScene_Default) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYLiveScene liveScene + + + //api/name/liveScene + + + + + //apple_ref/occ/instp/KSYStreamerBase/liveScene + 本次直播的目标场景 (默认为KSYLiveScene_Default) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYLiveScene liveScene + + + //api/name/liveScene + + + + + //apple_ref/occ/instm/KSYStreamerBase/setRecScene: + 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYRecScene recScene + + + //api/name/recScene + + + + + //apple_ref/occ/instm/KSYStreamerBase/recScene + 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYRecScene recScene + + + //api/name/recScene + + + + + //apple_ref/occ/instp/KSYStreamerBase/recScene + 本次录制的目标场景 (默认为KSYRecScene_ConstantBitRate) + KSYStreamerBase.h + + @property (nonatomic, assign) KSYRecScene recScene + + + //api/name/recScene + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoEncodePerf: + 视频编码性能档次 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf + + + //api/name/videoEncodePerf + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoEncodePerf + 视频编码性能档次 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf + + + //api/name/videoEncodePerf + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoEncodePerf + 视频编码性能档次 + KSYStreamerBase.h + + @property (nonatomic, assign) KSYVideoEncodePerformance videoEncodePerf + + + //api/name/videoEncodePerf + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBWithVideo: + 是否处理视频的图像数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithVideo + + + //api/name/bWithVideo + + + + + //apple_ref/occ/instm/KSYStreamerBase/bWithVideo + 是否处理视频的图像数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithVideo + + + //api/name/bWithVideo + + + + + //apple_ref/occ/instp/KSYStreamerBase/bWithVideo + 是否处理视频的图像数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithVideo + + + //api/name/bWithVideo + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBWithAudio: + 是否处理音频数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithAudio + + + //api/name/bWithAudio + + + + + //apple_ref/occ/instm/KSYStreamerBase/bWithAudio + 是否处理音频数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithAudio + + + //api/name/bWithAudio + + + + + //apple_ref/occ/instp/KSYStreamerBase/bWithAudio + 是否处理音频数据 (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithAudio + + + //api/name/bWithAudio + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBWithMessage: + 是否处理Message (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithMessage + + + //api/name/bWithMessage + + + + + //apple_ref/occ/instm/KSYStreamerBase/bWithMessage + 是否处理Message (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithMessage + + + //api/name/bWithMessage + + + + + //apple_ref/occ/instp/KSYStreamerBase/bWithMessage + 是否处理Message (默认YES) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bWithMessage + + + //api/name/bWithMessage + + + + + //apple_ref/occ/instm/KSYStreamerBase/setScaleRatio: + cpu缩放比率,设置>0为按比例缩放,默认为0 + KSYStreamerBase.h + + @property (nonatomic, assign) float scaleRatio + + + //api/name/scaleRatio + + + + + //apple_ref/occ/instm/KSYStreamerBase/scaleRatio + cpu缩放比率,设置>0为按比例缩放,默认为0 + KSYStreamerBase.h + + @property (nonatomic, assign) float scaleRatio + + + //api/name/scaleRatio + + + + + //apple_ref/occ/instp/KSYStreamerBase/scaleRatio + cpu缩放比率,设置>0为按比例缩放,默认为0 + KSYStreamerBase.h + + @property (nonatomic, assign) float scaleRatio + + + //api/name/scaleRatio + + + + + //apple_ref/occ/instm/KSYStreamerBase/setStreamState: + 当前推流状况 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYStreamState streamState + + + //api/name/streamState + + + + + //apple_ref/occ/instm/KSYStreamerBase/streamState + 当前推流状况 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYStreamState streamState + + + //api/name/streamState + + + + + //apple_ref/occ/instp/KSYStreamerBase/streamState + 当前推流状况 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYStreamState streamState + + + //api/name/streamState + + + + + //apple_ref/occ/instm/KSYStreamerBase/getStreamStateName: + 获取推流状态对应的字符串 + KSYStreamerBase.h + + - (NSString *)getStreamStateName:(KSYStreamState)stat + + + stat + 状态码 + + + 状态名称 + //api/name/getStreamStateName: + + + + + //apple_ref/occ/instm/KSYStreamerBase/getCurStreamStateName + 获取当前推流状态对应的字符串 + KSYStreamerBase.h + + - (NSString *)getCurStreamStateName + + 当前状态名称 + //api/name/getCurStreamStateName + + + + + //apple_ref/occ/instm/KSYStreamerBase/setStreamErrorCode: + 当前推流的错误码 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/streamState + + + + @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode + + + //api/name/streamErrorCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/streamErrorCode + 当前推流的错误码 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/streamState + + + + @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode + + + //api/name/streamErrorCode + + + + + //apple_ref/occ/instp/KSYStreamerBase/streamErrorCode + 当前推流的错误码 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/streamState + + + + @property (nonatomic, readonly) KSYStreamErrorCode streamErrorCode + + + //api/name/streamErrorCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/setStreamStateChange: + 发生推流状态变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange + + + //api/name/streamStateChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/streamStateChange + 发生推流状态变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange + + + //api/name/streamStateChange + + + + + //apple_ref/occ/instp/KSYStreamerBase/streamStateChange + 发生推流状态变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYStreamState newState ) streamStateChange + + + //api/name/streamStateChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/getKSYStreamErrorCodeName: + 获取错误码对应的字符串 + KSYStreamerBase.h + + - (NSString *)getKSYStreamErrorCodeName:(KSYStreamErrorCode)code + + + code + 错误码 + + + + //api/name/getKSYStreamErrorCodeName: + + + + + //apple_ref/occ/instm/KSYStreamerBase/getCurKSYStreamErrorCodeName + 获取当前错误码对应的字符串 + KSYStreamerBase.h + + - (NSString *)getCurKSYStreamErrorCodeName + + + //api/name/getCurKSYStreamErrorCodeName + + + + + //apple_ref/occ/instm/KSYStreamerBase/setNetStateCode: + 当前推流的网络事件 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetStateCode netStateCode + + + //api/name/netStateCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/netStateCode + 当前推流的网络事件 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetStateCode netStateCode + + + //api/name/netStateCode + + + + + //apple_ref/occ/instp/KSYStreamerBase/netStateCode + 当前推流的网络事件 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetStateCode netStateCode + + + //api/name/netStateCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/setVideoFPSChange: + 帧率应发生变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange + + + //api/name/videoFPSChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/videoFPSChange + 帧率应发生变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange + + + //api/name/videoFPSChange + + + + + //apple_ref/occ/instp/KSYStreamerBase/videoFPSChange + 帧率应发生变化时的回调函数 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( int32_t newVideoFPS ) videoFPSChange + + + //api/name/videoFPSChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/initWithDefaultCfg + 初始化方法 (step1) + KSYStreamerBase.h + + - (instancetype)initWithDefaultCfg + + + //api/name/initWithDefaultCfg + + + + + //apple_ref/occ/instm/KSYStreamerBase/startStream: + 启动推流 (step2) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/audiokBPS + + + + - (void)startStream:(NSURL *)url + + + url + 目标地址 + + + + //api/name/startStream: + + + + + //apple_ref/occ/instm/KSYStreamerBase/stopStream + 停止推流 (step3) + KSYStreamerBase.h + + - (void)stopStream + + + //api/name/stopStream + + + + + //apple_ref/occ/instm/KSYStreamerBase/muteStream: + 静音推流 (仍然有音频输出发送, 只是音量为0) + KSYStreamerBase.h + + - (void)muteStream:(BOOL)bMute + + + bMute + YES / ON + + + + //api/name/muteStream: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processVideoSampleBuffer: + 处理一个视频帧(只支持编码前的原始图像数据) + KSYStreamerBase.h + + - (void)processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer + + + sampleBuffer + Buffer to process + + + + //api/name/processVideoSampleBuffer: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processVideoSampleBuffer:onComplete: + 处理一个视频帧(只支持编码前的原始图像数据) + KSYStreamerBase.h + + - (void)processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer onComplete:(void ( ^ ) ( BOOL ))completion + + + sampleBuffer + Buffer to process + + completion + 当前视频帧处理完成的回调 + + + + //api/name/processVideoSampleBuffer:onComplete: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processVideoPixelBuffer:timeInfo: + 处理一个视频帧(只支持编码前的原始图像数据) + KSYStreamerBase.h + + - (void)processVideoPixelBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp + + + pixelBuffer + 待编码的像素数据 + + timeStamp + 待编码的时间戳 + + + + //api/name/processVideoPixelBuffer:timeInfo: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processVideoPixelBuffer:timeInfo:onComplete: + 处理一个视频帧(只支持编码前的原始图像数据) + KSYStreamerBase.h + + - (void)processVideoPixelBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp onComplete:(void ( ^ ) ( BOOL ))completion + + + pixelBuffer + 待编码的像素数据 + + timeStamp + 待编码的时间戳 + + completion + 当前视频帧处理完成的回调 + + + + //api/name/processVideoPixelBuffer:timeInfo:onComplete: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processAudioSampleBuffer: + 处理一段音频数据 + KSYStreamerBase.h + + - (void)processAudioSampleBuffer:(CMSampleBufferRef)sampleBuffer + + + sampleBuffer + Buffer to process + + + + //api/name/processAudioSampleBuffer: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processAudioData:nbSample:withFormat:timeinfo: + 处理一段音频数据 + KSYStreamerBase.h + + - (void)processAudioData:(uint8_t **)pData nbSample:(int)len withFormat:(const AudioStreamBasicDescription *)fmt timeinfo:(CMTime *)pts + + + pData + 原始数据指针数组 + + len + 数据的长度,单位为字节 + + fmt + 原始数据的格式 (必须保证一次推流过程中数据格式不变) + + pts + 原始数据的时间戳 + + + + //api/name/processAudioData:nbSample:withFormat:timeinfo: + + + + + //apple_ref/occ/instm/KSYStreamerBase/processMessageData: + 处理一个消息 + KSYStreamerBase.h + + - (void)processMessageData:(NSDictionary *)messageData - inputFilePath - 输入文件路径 - - outputFilePath - 输出文件路径 + message + message to process - //api/name/startTranscode:outputFilePath: + //api/name/processMessageData: + + + + + //apple_ref/occ/instm/KSYStreamerBase/setClientAk: + 获取当前用户的ak +@warnning 默认是空的,只有在需要鉴权时,才能获取到 + KSYStreamerBase.h + + @property (nonatomic, assign) NSString *clientAk + + + //api/name/clientAk + + + + + //apple_ref/occ/instm/KSYStreamerBase/clientAk + 获取当前用户的ak +@warnning 默认是空的,只有在需要鉴权时,才能获取到 + KSYStreamerBase.h + + @property (nonatomic, assign) NSString *clientAk + + + //api/name/clientAk + + + + + //apple_ref/occ/instp/KSYStreamerBase/clientAk + 获取当前用户的ak +@warnning 默认是空的,只有在需要鉴权时,才能获取到 + KSYStreamerBase.h + + @property (nonatomic, assign) NSString *clientAk + + + //api/name/clientAk + + + + + //apple_ref/occ/instm/KSYStreamerBase/setExpireDate: + 获取当前SDK过期时间 + KSYStreamerBase.h + + @property (nonatomic, assign) NSDate *expireDate + + + //api/name/expireDate + + + + + //apple_ref/occ/instm/KSYStreamerBase/expireDate + 获取当前SDK过期时间 + KSYStreamerBase.h + + @property (nonatomic, assign) NSDate *expireDate + + + //api/name/expireDate + + + + + //apple_ref/occ/instp/KSYStreamerBase/expireDate + 获取当前SDK过期时间 + KSYStreamerBase.h + + @property (nonatomic, assign) NSDate *expireDate + + + //api/name/expireDate + + + + + //apple_ref/occ/instm/KSYStreamerBase/setStreamID: + 查询当前推流的事件ID + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/hostURL + + + + @property (nonatomic, readonly) NSString *streamID + + + //api/name/streamID + + + + + //apple_ref/occ/instm/KSYStreamerBase/streamID + 查询当前推流的事件ID + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/hostURL + + + + @property (nonatomic, readonly) NSString *streamID + + + //api/name/streamID + + + + + //apple_ref/occ/instp/KSYStreamerBase/streamID + 查询当前推流的事件ID + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/hostURL + + + + @property (nonatomic, readonly) NSString *streamID + + + //api/name/streamID + + + + + //apple_ref/occ/instm/KSYStreamerBase/isStreaming + 查询当前是否处于推流状态 (建立连接中, 或连接中) + KSYStreamerBase.h + + - (BOOL)isStreaming + + + //api/name/isStreaming + + + + + //apple_ref/occ/instm/KSYStreamerBase/setEncodeVKbps: + 查询当前编码的视频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, readonly) double encodeVKbps + + + //api/name/encodeVKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/encodeVKbps + 查询当前编码的视频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, readonly) double encodeVKbps + + + //api/name/encodeVKbps + + + + + //apple_ref/occ/instp/KSYStreamerBase/encodeVKbps + 查询当前编码的视频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoMaxBitrate + + + + @property (nonatomic, readonly) double encodeVKbps + + + //api/name/encodeVKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/setEncodeAKbps: + 查询当前编码的音频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/audiokBPS + + + + @property (nonatomic, readonly) double encodeAKbps + + + //api/name/encodeAKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/encodeAKbps + 查询当前编码的音频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/audiokBPS + + + + @property (nonatomic, readonly) double encodeAKbps + + + //api/name/encodeAKbps + + + + + //apple_ref/occ/instp/KSYStreamerBase/encodeAKbps + 查询当前编码的音频码率大小(每秒更新) + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/audiokBPS + + + + @property (nonatomic, readonly) double encodeAKbps + + + //api/name/encodeAKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/setUploadedKByte: + 查询本次推流发送的流量大小 (仅推流时有效) + KSYStreamerBase.h + + @property (nonatomic, readonly) int uploadedKByte + + + //api/name/uploadedKByte + + + + + //apple_ref/occ/instm/KSYStreamerBase/uploadedKByte + 查询本次推流发送的流量大小 (仅推流时有效) + KSYStreamerBase.h + + @property (nonatomic, readonly) int uploadedKByte + + + //api/name/uploadedKByte + + + + + //apple_ref/occ/instp/KSYStreamerBase/uploadedKByte + 查询本次推流发送的流量大小 (仅推流时有效) + KSYStreamerBase.h + + @property (nonatomic, readonly) int uploadedKByte + + + //api/name/uploadedKByte + + + + + //apple_ref/occ/instm/KSYStreamerBase/setCurrentUploadingKbps: + 查询当前上传的码率大小 (每秒更新) + KSYStreamerBase.h + + @property (nonatomic, readonly) double currentUploadingKbps + + + //api/name/currentUploadingKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/currentUploadingKbps + 查询当前上传的码率大小 (每秒更新) + KSYStreamerBase.h + + @property (nonatomic, readonly) double currentUploadingKbps + + + //api/name/currentUploadingKbps + + + + + //apple_ref/occ/instp/KSYStreamerBase/currentUploadingKbps + 查询当前上传的码率大小 (每秒更新) + KSYStreamerBase.h + + @property (nonatomic, readonly) double currentUploadingKbps + + + //api/name/currentUploadingKbps + + + + + //apple_ref/occ/instm/KSYStreamerBase/setEncodingFPS: + 查询当前编码的平均视频帧率 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoFPS + + + + @property (nonatomic, readonly) double encodingFPS + + + //api/name/encodingFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/encodingFPS + 查询当前编码的平均视频帧率 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoFPS + + + + @property (nonatomic, readonly) double encodingFPS + + + //api/name/encodingFPS + + + + + //apple_ref/occ/instp/KSYStreamerBase/encodingFPS + 查询当前编码的平均视频帧率 + KSYStreamerBase.h + + + //apple_ref/occ/instp/KSYStreamerBase/videoFPS + + + + @property (nonatomic, readonly) double encodingFPS + + + //api/name/encodingFPS + + + + + //apple_ref/occ/instm/KSYStreamerBase/setEncodedFrames: + 查询本次推流编码的视频总帧数 + KSYStreamerBase.h + + @property (nonatomic, readonly) int encodedFrames + + + //api/name/encodedFrames + + + + + //apple_ref/occ/instm/KSYStreamerBase/encodedFrames + 查询本次推流编码的视频总帧数 + KSYStreamerBase.h + + @property (nonatomic, readonly) int encodedFrames + + + //api/name/encodedFrames + + + + + //apple_ref/occ/instp/KSYStreamerBase/encodedFrames + 查询本次推流编码的视频总帧数 + KSYStreamerBase.h + + @property (nonatomic, readonly) int encodedFrames + + + //api/name/encodedFrames + + + + + //apple_ref/occ/instm/KSYStreamerBase/setDroppedVideoFrames: + 查询本次推流发送的丢帧数量 + KSYStreamerBase.h + + @property (nonatomic, readonly) int droppedVideoFrames + + + //api/name/droppedVideoFrames + + + + + //apple_ref/occ/instm/KSYStreamerBase/droppedVideoFrames + 查询本次推流发送的丢帧数量 + KSYStreamerBase.h + + @property (nonatomic, readonly) int droppedVideoFrames + + + //api/name/droppedVideoFrames + + + + + //apple_ref/occ/instp/KSYStreamerBase/droppedVideoFrames + 查询本次推流发送的丢帧数量 + KSYStreamerBase.h + + @property (nonatomic, readonly) int droppedVideoFrames + + + //api/name/droppedVideoFrames + + + + + //apple_ref/occ/instm/KSYStreamerBase/setQosInfo: + 推流的qos信息 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo + + + //api/name/qosInfo - //apple_ref/occ/instm/KSYTranscoder/stopTranscode - 停止转换 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/qosInfo + 推流的qos信息 + KSYStreamerBase.h - - (void)stopTranscode + @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo - //api/name/stopTranscode + //api/name/qosInfo - //apple_ref/occ/instm/KSYTranscoder/setDuration: - 转换文件的总时长,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instp/KSYStreamerBase/qosInfo + 推流的qos信息 + KSYStreamerBase.h - @property (nonatomic, readonly) float duration + @property (nonatomic, readonly) KSYStreamerQosInfo *qosInfo - //api/name/duration + //api/name/qosInfo - //apple_ref/occ/instm/KSYTranscoder/duration - 转换文件的总时长,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/setRtmpHostIP: + 查询当前推流的rtmp服务器的主机IP + KSYStreamerBase.h - @property (nonatomic, readonly) float duration + @property (atomic, readonly) NSString *rtmpHostIP - //api/name/duration + //api/name/rtmpHostIP - //apple_ref/occ/instp/KSYTranscoder/duration - 转换文件的总时长,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/rtmpHostIP + 查询当前推流的rtmp服务器的主机IP + KSYStreamerBase.h - @property (nonatomic, readonly) float duration + @property (atomic, readonly) NSString *rtmpHostIP - //api/name/duration + //api/name/rtmpHostIP - //apple_ref/occ/instm/KSYTranscoder/setPosition: - 当前转换位置,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instp/KSYStreamerBase/rtmpHostIP + 查询当前推流的rtmp服务器的主机IP + KSYStreamerBase.h - @property (nonatomic, readonly) float position + @property (atomic, readonly) NSString *rtmpHostIP - //api/name/position + //api/name/rtmpHostIP - //apple_ref/occ/instm/KSYTranscoder/position - 当前转换位置,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/setShouldEnableKSYStatModule: + 收集网络相关状态的日志,默认开启 + KSYStreamerBase.h - @property (nonatomic, readonly) float position + @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - //api/name/position + //api/name/shouldEnableKSYStatModule - //apple_ref/occ/instp/KSYTranscoder/position - 当前转换位置,单位是秒 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/shouldEnableKSYStatModule + 收集网络相关状态的日志,默认开启 + KSYStreamerBase.h - @property (nonatomic, readonly) float position + @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - //api/name/position + //api/name/shouldEnableKSYStatModule - //apple_ref/occ/instm/KSYTranscoder/setProgress: - 转换进度 - KSYTranscoder.h + //apple_ref/occ/instp/KSYStreamerBase/shouldEnableKSYStatModule + 收集网络相关状态的日志,默认开启 + KSYStreamerBase.h - @property (nonatomic, readonly) float progress + @property (nonatomic, assign) BOOL shouldEnableKSYStatModule - //api/name/progress + //api/name/shouldEnableKSYStatModule - //apple_ref/occ/instm/KSYTranscoder/progress - 转换进度 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/setLogBlock: + 获取Streamer中与网络相关的日志 + KSYStreamerBase.h - @property (nonatomic, readonly) float progress + @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - //api/name/progress + //api/name/logBlock - //apple_ref/occ/instp/KSYTranscoder/progress - 转换进度 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/logBlock + 获取Streamer中与网络相关的日志 + KSYStreamerBase.h - @property (nonatomic, readonly) float progress + @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - //api/name/progress + //api/name/logBlock - //apple_ref/occ/instm/KSYTranscoder/setTranscodeState: - 当前转码状况 - KSYTranscoder.h + //apple_ref/occ/instp/KSYStreamerBase/logBlock + 获取Streamer中与网络相关的日志 + KSYStreamerBase.h - @property (nonatomic, readonly) KSYTranscodeState transcodeState + @property (nonatomic, copy) void ( ^ ) ( NSString *logJson ) logBlock - //api/name/transcodeState + //api/name/logBlock - //apple_ref/occ/instm/KSYTranscoder/transcodeState - 当前转码状况 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/takePhotoWithQuality:fileName: + 截图功能,目前只支持jpg格式 + KSYStreamerBase.h + + - (void)takePhotoWithQuality:(CGFloat)jpegCompressionQuality fileName:(NSString *)filename + + + jpegCompressionQuality + 设置图像的压缩比例 + + filename + 图片的文件名 + + - @property (nonatomic, readonly) KSYTranscodeState transcodeState + //api/name/takePhotoWithQuality:fileName: + + + + + //apple_ref/occ/instm/KSYStreamerBase/getSnapshotWithCompletion: + 获取当前编码的截图 + KSYStreamerBase.h + - (void)getSnapshotWithCompletion:(void ( ^ ) ( UIImage *))completion + + + completion + 通过完成代码块获取到截图完成的图像 + + - //api/name/transcodeState + //api/name/getSnapshotWithCompletion: - //apple_ref/occ/instp/KSYTranscoder/transcodeState - 当前转码状况 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordURL: + 旁路录像地址 + KSYStreamerBase.h - @property (nonatomic, readonly) KSYTranscodeState transcodeState + + //apple_ref/occ/instp/KSYStreamerBase/hostURL + + + + @property (nonatomic, readonly) NSURL *bypassRecordURL - //api/name/transcodeState + //api/name/bypassRecordURL - //apple_ref/occ/instm/KSYTranscoder/setTranscodeErrorCode: - 转码器的错误码 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordURL + 旁路录像地址 + KSYStreamerBase.h - //apple_ref/occ/instp/KSYTranscoder/transcodeState + //apple_ref/occ/instp/KSYStreamerBase/hostURL - @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode + @property (nonatomic, readonly) NSURL *bypassRecordURL - //api/name/transcodeErrorCode + //api/name/bypassRecordURL - //apple_ref/occ/instm/KSYTranscoder/transcodeErrorCode - 转码器的错误码 - KSYTranscoder.h + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordURL + 旁路录像地址 + KSYStreamerBase.h - //apple_ref/occ/instp/KSYTranscoder/transcodeState + //apple_ref/occ/instp/KSYStreamerBase/hostURL - @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode + @property (nonatomic, readonly) NSURL *bypassRecordURL + + + //api/name/bypassRecordURL + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassMp4FastStart: + mp4文件允许快速启动 (默认NO) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bypassMp4FastStart + + + //api/name/bypassMp4FastStart + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassMp4FastStart + mp4文件允许快速启动 (默认NO) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bypassMp4FastStart + + + //api/name/bypassMp4FastStart + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassMp4FastStart + mp4文件允许快速启动 (默认NO) + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL bypassMp4FastStart - //api/name/transcodeErrorCode + //api/name/bypassMp4FastStart - //apple_ref/occ/instp/KSYTranscoder/transcodeErrorCode - 转码器的错误码 - KSYTranscoder.h + //apple_ref/occ/instm/KSYStreamerBase/startBypassRecord: + 启动旁路录像 + KSYStreamerBase.h - //apple_ref/occ/instp/KSYTranscoder/transcodeState + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordState - @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode + - (BOOL)startBypassRecord:(NSURL *)url + + + url + 本地录像文件地址:/private/var/..../test.mp4 + + + 是否能尝试启动写入, 不能表明真正开始录像了,真正开始请确认bypassRecordState的值 + //api/name/startBypassRecord: + + + + + //apple_ref/occ/instm/KSYStreamerBase/stopBypassRecord + 停止旁路录像 + KSYStreamerBase.h + + - (void)stopBypassRecord + + + //api/name/stopBypassRecord + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordDuration: + 旁路录像的文件时长 + KSYStreamerBase.h + + @property (nonatomic, readonly) double bypassRecordDuration + + + //api/name/bypassRecordDuration + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordDuration + 旁路录像的文件时长 + KSYStreamerBase.h + + @property (nonatomic, readonly) double bypassRecordDuration + + + //api/name/bypassRecordDuration + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordDuration + 旁路录像的文件时长 + KSYStreamerBase.h + + @property (nonatomic, readonly) double bypassRecordDuration + + + //api/name/bypassRecordDuration + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordState: + 旁路录像的状态 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordState bypassRecordState + + + //api/name/bypassRecordState + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordState + 旁路录像的状态 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordState bypassRecordState + + + //api/name/bypassRecordState + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordState + 旁路录像的状态 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordState bypassRecordState + + + //api/name/bypassRecordState + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordErrorCode: + 旁路录像的错误码 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode + + + //api/name/bypassRecordErrorCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordErrorCode + 旁路录像的错误码 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode + + + //api/name/bypassRecordErrorCode + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordErrorCode + 旁路录像的错误码 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYRecordError bypassRecordErrorCode + + + //api/name/bypassRecordErrorCode + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordErrorName: + 旁路录像的错误名称 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSString *bypassRecordErrorName + + + //api/name/bypassRecordErrorName + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordErrorName + 旁路录像的错误名称 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSString *bypassRecordErrorName + + + //api/name/bypassRecordErrorName + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordErrorName + 旁路录像的错误名称 + KSYStreamerBase.h + + @property (nonatomic, readonly) NSString *bypassRecordErrorName + + + //api/name/bypassRecordErrorName + + + + + //apple_ref/occ/instm/KSYStreamerBase/setBypassRecordStateChange: + 当旁路录制的状态变化时 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange + + + //api/name/bypassRecordStateChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/bypassRecordStateChange + 当旁路录制的状态变化时 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange + + + //api/name/bypassRecordStateChange + + + + + //apple_ref/occ/instp/KSYStreamerBase/bypassRecordStateChange + 当旁路录制的状态变化时 + KSYStreamerBase.h + + @property (nonatomic, copy) void ( ^ ) ( KSYRecordState recordState ) bypassRecordStateChange + + + //api/name/bypassRecordStateChange + + + + + //apple_ref/occ/instm/KSYStreamerBase/setShouldEnableKSYDropModule: + 是否允许编码前丢帧,默认开启 +@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL shouldEnableKSYDropModule + + + //api/name/shouldEnableKSYDropModule + + + + + //apple_ref/occ/instm/KSYStreamerBase/shouldEnableKSYDropModule + 是否允许编码前丢帧,默认开启 +@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL shouldEnableKSYDropModule + + + //api/name/shouldEnableKSYDropModule + + + + + //apple_ref/occ/instp/KSYStreamerBase/shouldEnableKSYDropModule + 是否允许编码前丢帧,默认开启 +@warnning 请勿在直播时使用,否则可能出现音视频不同步,仅在离线转码需要输出所有帧的情况下开启 + KSYStreamerBase.h + + @property (nonatomic, assign) BOOL shouldEnableKSYDropModule + + + //api/name/shouldEnableKSYDropModule + + + + + //apple_ref/occ/instm/KSYStreamerBase/setNetReachability: + / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYReachability *netReachability + + + //api/name/netReachability + + + + + //apple_ref/occ/instm/KSYStreamerBase/netReachability + / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYReachability *netReachability + + + //api/name/netReachability + + + + + //apple_ref/occ/instp/KSYStreamerBase/netReachability + / 网络状态监控 (当SDK内部发现网络不可用时主动发出connet_break的错误码) + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYReachability *netReachability + + + //api/name/netReachability + + + + + //apple_ref/occ/instm/KSYStreamerBase/setNetReachState: + 是否能连通外网 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetReachState netReachState + + + //api/name/netReachState + + + + + //apple_ref/occ/instm/KSYStreamerBase/netReachState + 是否能连通外网 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetReachState netReachState + + + //api/name/netReachState + + + + + //apple_ref/occ/instp/KSYStreamerBase/netReachState + 是否能连通外网 + KSYStreamerBase.h + + @property (nonatomic, readonly) KSYNetReachState netReachState + + + //api/name/netReachState + + + + + //apple_ref/occ/instm/KSYStreamerBase/setReachabilityDetectURL: + 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” + KSYStreamerBase.h + + @property (nonatomic, readwrite) NSString *reachabilityDetectURL + + + //api/name/reachabilityDetectURL + + + + + //apple_ref/occ/instm/KSYStreamerBase/reachabilityDetectURL + 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” + KSYStreamerBase.h + + @property (nonatomic, readwrite) NSString *reachabilityDetectURL + + + //api/name/reachabilityDetectURL + + + + + //apple_ref/occ/instp/KSYStreamerBase/reachabilityDetectURL + 用于检测网络连通性的地址,默认使用地址为“www.baidu.com” + KSYStreamerBase.h + + @property (nonatomic, readwrite) NSString *reachabilityDetectURL - //api/name/transcodeErrorCode + //api/name/reachabilityDetectURL diff --git a/doc/docset/Contents/Resources/Tokens47.xml b/doc/docset/Contents/Resources/Tokens47.xml index b45072c..1170e6c 100644 --- a/doc/docset/Contents/Resources/Tokens47.xml +++ b/doc/docset/Contents/Resources/Tokens47.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/cl/KSYUIRecorderKit - - KSYUIRecorderKit.h + //apple_ref/occ/cl/KSYTranscoder + 不同音视频文件格式间的转码 + KSYTranscoder.h @@ -13,182 +13,229 @@ - //apple_ref/occ/instm/KSYUIRecorderKit/initWithScheme: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/startTranscode:outputFilePath: + 开始转换 + KSYTranscoder.h - - (instancetype)initWithScheme:(KSYPlayRecordScheme)scheme + - (void)startTranscode:(NSURL *)inputFilePath outputFilePath:(NSURL *)outputFilePath + + + inputFilePath + 输入文件路径 + + outputFilePath + 输出文件路径 + + + //api/name/startTranscode:outputFilePath: + + + + + //apple_ref/occ/instm/KSYTranscoder/stopTranscode + 停止转换 + KSYTranscoder.h + + - (void)stopTranscode + + + //api/name/stopTranscode + + + + + //apple_ref/occ/instm/KSYTranscoder/setDuration: + 转换文件的总时长,单位是秒 + KSYTranscoder.h + + @property (nonatomic, readonly) float duration - //api/name/initWithScheme: + + //api/name/duration - //apple_ref/occ/instm/KSYUIRecorderKit/setContentView: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/duration + 转换文件的总时长,单位是秒 + KSYTranscoder.h - @property (nonatomic, readwrite) UIView *contentView + @property (nonatomic, readonly) float duration - //api/name/contentView + //api/name/duration - //apple_ref/occ/instm/KSYUIRecorderKit/contentView - - KSYUIRecorderKit.h + //apple_ref/occ/instp/KSYTranscoder/duration + 转换文件的总时长,单位是秒 + KSYTranscoder.h - @property (nonatomic, readwrite) UIView *contentView + @property (nonatomic, readonly) float duration - //api/name/contentView + //api/name/duration - //apple_ref/occ/instp/KSYUIRecorderKit/contentView - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/setPosition: + 当前转换位置,单位是秒 + KSYTranscoder.h - @property (nonatomic, readwrite) UIView *contentView + @property (nonatomic, readonly) float position - //api/name/contentView + //api/name/position - //apple_ref/occ/instm/KSYUIRecorderKit/processWithTextureId:TextureSize:Time: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/position + 当前转换位置,单位是秒 + KSYTranscoder.h - - (void)processWithTextureId:(GLuint)InputTexture TextureSize:(CGSize)TextureSize Time:(CMTime)time + @property (nonatomic, readonly) float position - //api/name/processWithTextureId:TextureSize:Time: + //api/name/position - //apple_ref/occ/instm/KSYUIRecorderKit/processAudioSampleBuffer: - - KSYUIRecorderKit.h + //apple_ref/occ/instp/KSYTranscoder/position + 当前转换位置,单位是秒 + KSYTranscoder.h - - (void)processAudioSampleBuffer:(CMSampleBufferRef)buf + @property (nonatomic, readonly) float position - //api/name/processAudioSampleBuffer: + //api/name/position - //apple_ref/occ/instm/KSYUIRecorderKit/processVideoSampleBuffer:timeInfo: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/setProgress: + 转换进度 + KSYTranscoder.h - - (void)processVideoSampleBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp + @property (nonatomic, readonly) float progress - //api/name/processVideoSampleBuffer:timeInfo: + //api/name/progress - //apple_ref/occ/instm/KSYUIRecorderKit/startRecord: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/progress + 转换进度 + KSYTranscoder.h - - (void)startRecord:(NSURL *)path + @property (nonatomic, readonly) float progress - //api/name/startRecord: + //api/name/progress - //apple_ref/occ/instm/KSYUIRecorderKit/stopRecord - - KSYUIRecorderKit.h + //apple_ref/occ/instp/KSYTranscoder/progress + 转换进度 + KSYTranscoder.h - - (void)stopRecord + @property (nonatomic, readonly) float progress - //api/name/stopRecord + //api/name/progress - //apple_ref/occ/instm/KSYUIRecorderKit/setBPlayRecord: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/setTranscodeState: + 当前转码状况 + KSYTranscoder.h - @property BOOL bPlayRecord + @property (nonatomic, readonly) KSYTranscodeState transcodeState - //api/name/bPlayRecord + //api/name/transcodeState - //apple_ref/occ/instm/KSYUIRecorderKit/bPlayRecord - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/transcodeState + 当前转码状况 + KSYTranscoder.h - @property BOOL bPlayRecord + @property (nonatomic, readonly) KSYTranscodeState transcodeState - //api/name/bPlayRecord + //api/name/transcodeState - //apple_ref/occ/instp/KSYUIRecorderKit/bPlayRecord - - KSYUIRecorderKit.h + //apple_ref/occ/instp/KSYTranscoder/transcodeState + 当前转码状况 + KSYTranscoder.h - @property BOOL bPlayRecord + @property (nonatomic, readonly) KSYTranscodeState transcodeState - //api/name/bPlayRecord + //api/name/transcodeState - //apple_ref/occ/instm/KSYUIRecorderKit/setWriter: - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/setTranscodeErrorCode: + 转码器的错误码 + KSYTranscoder.h - @property (nonatomic, readwrite) KSYMovieWriter *writer + + //apple_ref/occ/instp/KSYTranscoder/transcodeState + + + + @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode - //api/name/writer + //api/name/transcodeErrorCode - //apple_ref/occ/instm/KSYUIRecorderKit/writer - - KSYUIRecorderKit.h + //apple_ref/occ/instm/KSYTranscoder/transcodeErrorCode + 转码器的错误码 + KSYTranscoder.h - @property (nonatomic, readwrite) KSYMovieWriter *writer + + //apple_ref/occ/instp/KSYTranscoder/transcodeState + + + + @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode - //api/name/writer + //api/name/transcodeErrorCode - //apple_ref/occ/instp/KSYUIRecorderKit/writer - - KSYUIRecorderKit.h + //apple_ref/occ/instp/KSYTranscoder/transcodeErrorCode + 转码器的错误码 + KSYTranscoder.h - @property (nonatomic, readwrite) KSYMovieWriter *writer + + //apple_ref/occ/instp/KSYTranscoder/transcodeState + + + + @property (nonatomic, readonly) KSYTranscodeErrorCode transcodeErrorCode - //api/name/writer + //api/name/transcodeErrorCode diff --git a/doc/docset/Contents/Resources/Tokens48.xml b/doc/docset/Contents/Resources/Tokens48.xml index 6d780f6..626681f 100644 --- a/doc/docset/Contents/Resources/Tokens48.xml +++ b/doc/docset/Contents/Resources/Tokens48.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/cl/KSYVideoInfo - 视频信息 - KSYMediaInfo.h + //apple_ref/occ/cl/KSYUIRecorderKit + + KSYUIRecorderKit.h @@ -13,110 +13,182 @@ - //apple_ref/occ/instm/KSYVideoInfo/setVcodec: - 视频编码格式, 具体类型为MEDIAINFOCODECID - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/initWithScheme: + + KSYUIRecorderKit.h - @property (nonatomic) MEDIAINFO_CODEC_ID vcodec + - (instancetype)initWithScheme:(KSYPlayRecordScheme)scheme - //api/name/vcodec + //api/name/initWithScheme: - //apple_ref/occ/instm/KSYVideoInfo/vcodec - 视频编码格式, 具体类型为MEDIAINFOCODECID - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/setContentView: + + KSYUIRecorderKit.h - @property (nonatomic) MEDIAINFO_CODEC_ID vcodec + @property (nonatomic, readwrite) UIView *contentView - //api/name/vcodec + //api/name/contentView - //apple_ref/occ/instp/KSYVideoInfo/vcodec - 视频编码格式, 具体类型为MEDIAINFOCODECID - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/contentView + + KSYUIRecorderKit.h - @property (nonatomic) MEDIAINFO_CODEC_ID vcodec + @property (nonatomic, readwrite) UIView *contentView - //api/name/vcodec + //api/name/contentView - //apple_ref/occ/instm/KSYVideoInfo/setFrame_width: - 视频帧宽度 - KSYMediaInfo.h + //apple_ref/occ/instp/KSYUIRecorderKit/contentView + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_width + @property (nonatomic, readwrite) UIView *contentView - //api/name/frame_width + //api/name/contentView - //apple_ref/occ/instm/KSYVideoInfo/frame_width - 视频帧宽度 - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/processWithTextureId:TextureSize:Time: + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_width + - (void)processWithTextureId:(GLuint)InputTexture TextureSize:(CGSize)TextureSize Time:(CMTime)time - //api/name/frame_width + //api/name/processWithTextureId:TextureSize:Time: - //apple_ref/occ/instp/KSYVideoInfo/frame_width - 视频帧宽度 - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/processAudioSampleBuffer: + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_width + - (void)processAudioSampleBuffer:(CMSampleBufferRef)buf - //api/name/frame_width + //api/name/processAudioSampleBuffer: - //apple_ref/occ/instm/KSYVideoInfo/setFrame_height: - 视频帧高度 - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/processVideoSampleBuffer:timeInfo: + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_height + - (void)processVideoSampleBuffer:(CVPixelBufferRef)pixelBuffer timeInfo:(CMTime)timeStamp - //api/name/frame_height + //api/name/processVideoSampleBuffer:timeInfo: - //apple_ref/occ/instm/KSYVideoInfo/frame_height - 视频帧高度 - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/startRecord: + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_height + - (void)startRecord:(NSURL *)path - //api/name/frame_height + //api/name/startRecord: - //apple_ref/occ/instp/KSYVideoInfo/frame_height - 视频帧高度 - KSYMediaInfo.h + //apple_ref/occ/instm/KSYUIRecorderKit/stopRecord + + KSYUIRecorderKit.h - @property (nonatomic, assign) int32_t frame_height + - (void)stopRecord - //api/name/frame_height + //api/name/stopRecord + + + + + //apple_ref/occ/instm/KSYUIRecorderKit/setBPlayRecord: + + KSYUIRecorderKit.h + + @property BOOL bPlayRecord + + + //api/name/bPlayRecord + + + + + //apple_ref/occ/instm/KSYUIRecorderKit/bPlayRecord + + KSYUIRecorderKit.h + + @property BOOL bPlayRecord + + + //api/name/bPlayRecord + + + + + //apple_ref/occ/instp/KSYUIRecorderKit/bPlayRecord + + KSYUIRecorderKit.h + + @property BOOL bPlayRecord + + + //api/name/bPlayRecord + + + + + //apple_ref/occ/instm/KSYUIRecorderKit/setWriter: + + KSYUIRecorderKit.h + + @property (nonatomic, readwrite) KSYMovieWriter *writer + + + //api/name/writer + + + + + //apple_ref/occ/instm/KSYUIRecorderKit/writer + + KSYUIRecorderKit.h + + @property (nonatomic, readwrite) KSYMovieWriter *writer + + + //api/name/writer + + + + + //apple_ref/occ/instp/KSYUIRecorderKit/writer + + KSYUIRecorderKit.h + + @property (nonatomic, readwrite) KSYMovieWriter *writer + + + //api/name/writer diff --git a/doc/docset/Contents/Resources/Tokens49.xml b/doc/docset/Contents/Resources/Tokens49.xml index 1466124..985a4f1 100644 --- a/doc/docset/Contents/Resources/Tokens49.xml +++ b/doc/docset/Contents/Resources/Tokens49.xml @@ -1,12 +1,11 @@ - + - //apple_ref/occ/cl/KSYWeakProxy - A proxy used to hold a weak object. -It can be used to avoid retain cycles, such as the target in NSTimer or CADisplayLink. - KSYWeakProxy.h + //apple_ref/occ/cl/KSYVideoInfo + 视频信息 + KSYMediaInfo.h @@ -14,72 +13,110 @@ It can be used to avoid retain cycles, such as the target in NSTimer or CADispla - //apple_ref/occ/instm/KSYWeakProxy/setTarget: - The proxy target. - KSYWeakProxy.h + //apple_ref/occ/instm/KSYVideoInfo/setVcodec: + 视频编码格式, 具体类型为MEDIAINFOCODECID + KSYMediaInfo.h - @property (nullable, nonatomic, weak, readonly) id target + @property (nonatomic) MEDIAINFO_CODEC_ID vcodec - //api/name/target + //api/name/vcodec - //apple_ref/occ/instm/KSYWeakProxy/target - The proxy target. - KSYWeakProxy.h + //apple_ref/occ/instm/KSYVideoInfo/vcodec + 视频编码格式, 具体类型为MEDIAINFOCODECID + KSYMediaInfo.h - @property (nullable, nonatomic, weak, readonly) id target + @property (nonatomic) MEDIAINFO_CODEC_ID vcodec - //api/name/target + //api/name/vcodec - //apple_ref/occ/instp/KSYWeakProxy/target - The proxy target. - KSYWeakProxy.h + //apple_ref/occ/instp/KSYVideoInfo/vcodec + 视频编码格式, 具体类型为MEDIAINFOCODECID + KSYMediaInfo.h - @property (nullable, nonatomic, weak, readonly) id target + @property (nonatomic) MEDIAINFO_CODEC_ID vcodec - //api/name/target + //api/name/vcodec - //apple_ref/occ/instm/KSYWeakProxy/initWithTarget: - Creates a new weak proxy for target. - KSYWeakProxy.h - - - (instancetype)initWithTarget:(id)target - - - target - Target object. - - - A new proxy object. - //api/name/initWithTarget: + //apple_ref/occ/instm/KSYVideoInfo/setFrame_width: + 视频帧宽度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_width + + + //api/name/frame_width + + + + + //apple_ref/occ/instm/KSYVideoInfo/frame_width + 视频帧宽度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_width + + + //api/name/frame_width + + + + + //apple_ref/occ/instp/KSYVideoInfo/frame_width + 视频帧宽度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_width + + + //api/name/frame_width - //apple_ref/occ/clm/KSYWeakProxy/proxyWithTarget: - Creates a new weak proxy for target. - KSYWeakProxy.h - - + (instancetype)proxyWithTarget:(id)target - - - target - Target object. - - - A new proxy object. - //api/name/proxyWithTarget: + //apple_ref/occ/instm/KSYVideoInfo/setFrame_height: + 视频帧高度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_height + + + //api/name/frame_height + + + + + //apple_ref/occ/instm/KSYVideoInfo/frame_height + 视频帧高度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_height + + + //api/name/frame_height + + + + + //apple_ref/occ/instp/KSYVideoInfo/frame_height + 视频帧高度 + KSYMediaInfo.h + + @property (nonatomic, assign) int32_t frame_height + + + //api/name/frame_height diff --git a/doc/docset/Contents/Resources/Tokens50.xml b/doc/docset/Contents/Resources/Tokens50.xml index 2b1412e..53d7bec 100644 --- a/doc/docset/Contents/Resources/Tokens50.xml +++ b/doc/docset/Contents/Resources/Tokens50.xml @@ -1,11 +1,12 @@ - + - //apple_ref/occ/cat/AVAudioSession(KSY) - iOS的AVAudioSession 属性配置工具类 - AVAudioSession+KSY.h + //apple_ref/occ/cl/KSYWeakProxy + A proxy used to hold a weak object. +It can be used to avoid retain cycles, such as the target in NSTimer or CADisplayLink. + KSYWeakProxy.h @@ -13,247 +14,72 @@ - //apple_ref/occ/instm/AVAudioSession/setDefaultCfg - 设置默认配置 - AVAudioSession+KSY.h + //apple_ref/occ/instm/KSYWeakProxy/setTarget: + The proxy target. + KSYWeakProxy.h - - (void)setDefaultCfg + @property (nullable, nonatomic, weak, readonly) id target - //api/name/setDefaultCfg + //api/name/target - //apple_ref/occ/instm/AVAudioSession/setBInterruptOtherAudio: - 是否打断其他后台的音乐播放 (默认为NO) - AVAudioSession+KSY.h + //apple_ref/occ/instm/KSYWeakProxy/target + The proxy target. + KSYWeakProxy.h - @property (nonatomic, assign) BOOL bInterruptOtherAudio + @property (nullable, nonatomic, weak, readonly) id target - //api/name/bInterruptOtherAudio + //api/name/target - //apple_ref/occ/instm/AVAudioSession/bInterruptOtherAudio - 是否打断其他后台的音乐播放 (默认为NO) - AVAudioSession+KSY.h + //apple_ref/occ/instp/KSYWeakProxy/target + The proxy target. + KSYWeakProxy.h - @property (nonatomic, assign) BOOL bInterruptOtherAudio + @property (nullable, nonatomic, weak, readonly) id target - //api/name/bInterruptOtherAudio + //api/name/target - //apple_ref/occ/instp/AVAudioSession/bInterruptOtherAudio - 是否打断其他后台的音乐播放 (默认为NO) - AVAudioSession+KSY.h + //apple_ref/occ/instm/KSYWeakProxy/initWithTarget: + Creates a new weak proxy for target. + KSYWeakProxy.h - @property (nonatomic, assign) BOOL bInterruptOtherAudio - - - //api/name/bInterruptOtherAudio - - - - - //apple_ref/occ/instm/AVAudioSession/setBDefaultToSpeaker: - 启动采集后,是否从扬声器播放声音 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bDefaultToSpeaker - - - //api/name/bDefaultToSpeaker - - - - - //apple_ref/occ/instm/AVAudioSession/bDefaultToSpeaker - 启动采集后,是否从扬声器播放声音 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bDefaultToSpeaker - - - //api/name/bDefaultToSpeaker - - - - - //apple_ref/occ/instp/AVAudioSession/bDefaultToSpeaker - 启动采集后,是否从扬声器播放声音 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bDefaultToSpeaker - - - //api/name/bDefaultToSpeaker - - - - - //apple_ref/occ/instm/AVAudioSession/setBAllowBluetooth: - 是否启用蓝牙设备 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bAllowBluetooth - - - //api/name/bAllowBluetooth - - - - - //apple_ref/occ/instm/AVAudioSession/bAllowBluetooth - 是否启用蓝牙设备 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bAllowBluetooth - - - //api/name/bAllowBluetooth - - - - - //apple_ref/occ/instp/AVAudioSession/bAllowBluetooth - 是否启用蓝牙设备 (默认为YES) - AVAudioSession+KSY.h - - @property (nonatomic, assign) BOOL bAllowBluetooth - - - //api/name/bAllowBluetooth - - - - - //apple_ref/occ/instm/AVAudioSession/setAVAudioSessionCategory: - 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) - AVAudioSession+KSY.h - - @property (nonatomic, assign) NSString *AVAudioSessionCategory - - - //api/name/AVAudioSessionCategory - - - - - //apple_ref/occ/instm/AVAudioSession/AVAudioSessionCategory - 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) - AVAudioSession+KSY.h - - @property (nonatomic, assign) NSString *AVAudioSessionCategory - - - //api/name/AVAudioSessionCategory - - - - - //apple_ref/occ/instp/AVAudioSession/AVAudioSessionCategory - 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) - AVAudioSession+KSY.h - - @property (nonatomic, assign) NSString *AVAudioSessionCategory - - - //api/name/AVAudioSessionCategory - - - - - //apple_ref/occ/instm/AVAudioSession/isBluetoothInputAvaible - 是否有蓝牙麦克风可用 - AVAudioSession+KSY.h - - + (BOOL)isBluetoothInputAvaible - - 是/否有蓝牙麦克风可用 - //api/name/isBluetoothInputAvaible - - - - - //apple_ref/occ/instm/AVAudioSession/switchBluetoothInput: - 选择是否使用蓝牙麦克风 - AVAudioSession+KSY.h - - + (BOOL)switchBluetoothInput:(BOOL)onOrOff + - (instancetype)initWithTarget:(id)target - onOrOff - : YES 使用蓝牙麦克风 NO + target + Target object. - 是/否有蓝牙麦克风可用 - //api/name/switchBluetoothInput: - - - - - //apple_ref/occ/instm/AVAudioSession/isHeadsetInputAvaible - 是否有耳机麦克风可用 - AVAudioSession+KSY.h - - + (BOOL)isHeadsetInputAvaible - - 是/否有耳机麦克风 - //api/name/isHeadsetInputAvaible + A new proxy object. + //api/name/initWithTarget: - //apple_ref/occ/instm/AVAudioSession/isHeadsetPluggedIn - 查询当前是否有耳机(包括蓝牙耳机) - AVAudioSession+KSY.h + //apple_ref/occ/clm/KSYWeakProxy/proxyWithTarget: + Creates a new weak proxy for target. + KSYWeakProxy.h - + (BOOL)isHeadsetPluggedIn - - - //api/name/isHeadsetPluggedIn - - - - - //apple_ref/occ/instm/AVAudioSession/setCurrentMicType: - 当前使用的音频采集设备 - AVAudioSession+KSY.h - - @property KSYMicType currentMicType - - - //api/name/currentMicType - - - - - //apple_ref/occ/instm/AVAudioSession/currentMicType - 当前使用的音频采集设备 - AVAudioSession+KSY.h - - @property KSYMicType currentMicType - - - //api/name/currentMicType - - - - - //apple_ref/occ/instp/AVAudioSession/currentMicType - 当前使用的音频采集设备 - AVAudioSession+KSY.h - - @property KSYMicType currentMicType - - - //api/name/currentMicType + + (instancetype)proxyWithTarget:(id)target + + + target + Target object. + + + A new proxy object. + //api/name/proxyWithTarget: diff --git a/doc/docset/Contents/Resources/Tokens51.xml b/doc/docset/Contents/Resources/Tokens51.xml index e043d0f..6320439 100644 --- a/doc/docset/Contents/Resources/Tokens51.xml +++ b/doc/docset/Contents/Resources/Tokens51.xml @@ -1,11 +1,11 @@ - + - //apple_ref/occ/intf/KSYMediaPlayback - KSYMediaPlayback为播放内核KSYMoviePlayerController提供播放控制功能。 - KSYMediaPlayback.h + //apple_ref/occ/cat/AVAudioSession(KSY) + iOS的AVAudioSession 属性配置工具类 + AVAudioSession+KSY.h @@ -13,152 +13,247 @@ - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay - 准备视频播放 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/setDefaultCfg + 设置默认配置 + AVAudioSession+KSY.h - - //apple_ref/occ/intfp/KSYMediaPlayback/isPreparedToPlay + - (void)setDefaultCfg + + + //api/name/setDefaultCfg + + + + + //apple_ref/occ/instm/AVAudioSession/setBInterruptOtherAudio: + 是否打断其他后台的音乐播放 (默认为NO) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bInterruptOtherAudio + + + //api/name/bInterruptOtherAudio + + + + + //apple_ref/occ/instm/AVAudioSession/bInterruptOtherAudio + 是否打断其他后台的音乐播放 (默认为NO) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bInterruptOtherAudio + + + //api/name/bInterruptOtherAudio + + - - - - (void)prepareToPlay + + //apple_ref/occ/instp/AVAudioSession/bInterruptOtherAudio + 是否打断其他后台的音乐播放 (默认为NO) + AVAudioSession+KSY.h + @property (nonatomic, assign) BOOL bInterruptOtherAudio - //api/name/prepareToPlay + + //api/name/bInterruptOtherAudio - //apple_ref/occ/intfm/KSYMediaPlayback/setIsPreparedToPlay: - 查询视频准备是否完成 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/setBDefaultToSpeaker: + 启动采集后,是否从扬声器播放声音 (默认为YES) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bDefaultToSpeaker - - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + //api/name/bDefaultToSpeaker + + + + + //apple_ref/occ/instm/AVAudioSession/bDefaultToSpeaker + 启动采集后,是否从扬声器播放声音 (默认为YES) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bDefaultToSpeaker + + + //api/name/bDefaultToSpeaker + + - - - @property (nonatomic, readonly) BOOL isPreparedToPlay + + //apple_ref/occ/instp/AVAudioSession/bDefaultToSpeaker + 启动采集后,是否从扬声器播放声音 (默认为YES) + AVAudioSession+KSY.h + @property (nonatomic, assign) BOOL bDefaultToSpeaker - //api/name/isPreparedToPlay + + //api/name/bDefaultToSpeaker - //apple_ref/occ/intfm/KSYMediaPlayback/isPreparedToPlay - 查询视频准备是否完成 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/setBAllowBluetooth: + 是否启用蓝牙设备 (默认为YES) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bAllowBluetooth - - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + //api/name/bAllowBluetooth + + - - - @property (nonatomic, readonly) BOOL isPreparedToPlay + + //apple_ref/occ/instm/AVAudioSession/bAllowBluetooth + 是否启用蓝牙设备 (默认为YES) + AVAudioSession+KSY.h + @property (nonatomic, assign) BOOL bAllowBluetooth - //api/name/isPreparedToPlay + + //api/name/bAllowBluetooth - //apple_ref/occ/intfp/KSYMediaPlayback/isPreparedToPlay - 查询视频准备是否完成 - KSYMediaPlayback.h + //apple_ref/occ/instp/AVAudioSession/bAllowBluetooth + 是否启用蓝牙设备 (默认为YES) + AVAudioSession+KSY.h + + @property (nonatomic, assign) BOOL bAllowBluetooth - - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + //api/name/bAllowBluetooth + + - - - @property (nonatomic, readonly) BOOL isPreparedToPlay + + //apple_ref/occ/instm/AVAudioSession/setAVAudioSessionCategory: + 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) + AVAudioSession+KSY.h + + @property (nonatomic, assign) NSString *AVAudioSessionCategory - //api/name/isPreparedToPlay + //api/name/AVAudioSessionCategory - //apple_ref/occ/intfm/KSYMediaPlayback/play - 播放当前视频。 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/AVAudioSessionCategory + 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) + AVAudioSession+KSY.h - - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + @property (nonatomic, assign) NSString *AVAudioSessionCategory + + + //api/name/AVAudioSessionCategory + + - - - - (void)play + + //apple_ref/occ/instp/AVAudioSession/AVAudioSessionCategory + 本SDK使用的AVAudioSession的类别 (默认为AVAudioSessionCategoryPlayAndRecord) + AVAudioSession+KSY.h + + @property (nonatomic, assign) NSString *AVAudioSessionCategory - //api/name/play + //api/name/AVAudioSessionCategory - //apple_ref/occ/intfm/KSYMediaPlayback/pause - 暂停播放当前视频。 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/isBluetoothInputAvaible + 是否有蓝牙麦克风可用 + AVAudioSession+KSY.h - - (void)pause + + (BOOL)isBluetoothInputAvaible + 是/否有蓝牙麦克风可用 + //api/name/isBluetoothInputAvaible + + + + + //apple_ref/occ/instm/AVAudioSession/switchBluetoothInput: + 选择是否使用蓝牙麦克风 + AVAudioSession+KSY.h - //api/name/pause + + (BOOL)switchBluetoothInput:(BOOL)onOrOff + + + onOrOff + : YES 使用蓝牙麦克风 NO + + + 是/否有蓝牙麦克风可用 + //api/name/switchBluetoothInput: - //apple_ref/occ/intfm/KSYMediaPlayback/stop - 结束当前视频的播放。 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/isHeadsetInputAvaible + 是否有耳机麦克风可用 + AVAudioSession+KSY.h - - //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + (BOOL)isHeadsetInputAvaible + + 是/否有耳机麦克风 + //api/name/isHeadsetInputAvaible + + - - - - (void)stop + + //apple_ref/occ/instm/AVAudioSession/isHeadsetPluggedIn + 查询当前是否有耳机(包括蓝牙耳机) + AVAudioSession+KSY.h + + + (BOOL)isHeadsetPluggedIn - //api/name/stop + //api/name/isHeadsetPluggedIn - //apple_ref/occ/intfm/KSYMediaPlayback/setCurrentPlaybackTime: - 播放视频的当前时刻,单位为秒。 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/setCurrentMicType: + 当前使用的音频采集设备 + AVAudioSession+KSY.h - @property (nonatomic) NSTimeInterval currentPlaybackTime + @property KSYMicType currentMicType - //api/name/currentPlaybackTime + //api/name/currentMicType - //apple_ref/occ/intfm/KSYMediaPlayback/currentPlaybackTime - 播放视频的当前时刻,单位为秒。 - KSYMediaPlayback.h + //apple_ref/occ/instm/AVAudioSession/currentMicType + 当前使用的音频采集设备 + AVAudioSession+KSY.h - @property (nonatomic) NSTimeInterval currentPlaybackTime + @property KSYMicType currentMicType - //api/name/currentPlaybackTime + //api/name/currentMicType - //apple_ref/occ/intfp/KSYMediaPlayback/currentPlaybackTime - 播放视频的当前时刻,单位为秒。 - KSYMediaPlayback.h + //apple_ref/occ/instp/AVAudioSession/currentMicType + 当前使用的音频采集设备 + AVAudioSession+KSY.h - @property (nonatomic) NSTimeInterval currentPlaybackTime + @property KSYMicType currentMicType - //api/name/currentPlaybackTime + //api/name/currentMicType diff --git a/doc/docset/Contents/Resources/Tokens52.xml b/doc/docset/Contents/Resources/Tokens52.xml index e3c0a00..77c8cac 100644 --- a/doc/docset/Contents/Resources/Tokens52.xml +++ b/doc/docset/Contents/Resources/Tokens52.xml @@ -1,67 +1,167 @@ - + - //apple_ref/c/tdef/KSYAVMuxerStatus - 交织处理状态 - KSYAVMuxer.h + //apple_ref/occ/intf/KSYMediaPlayback + KSYMediaPlayback为播放内核KSYMoviePlayerController提供播放控制功能。 + KSYMediaPlayback.h - - - //apple_ref/c/econst/KSYAVMuxerStatusIdle - 初始状态 - KSYAVMuxerStatusIdle - - KSYAVMuxer.h - + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + 准备视频播放 + KSYMediaPlayback.h + + + //apple_ref/occ/intfp/KSYMediaPlayback/isPreparedToPlay + + + + - (void)prepareToPlay + + + //api/name/prepareToPlay - - - - //apple_ref/c/econst/KSYAVMuxerStatusMuxing - 处理中 - KSYAVMuxerStatusMuxing - - KSYAVMuxer.h - + + + + //apple_ref/occ/intfm/KSYMediaPlayback/setIsPreparedToPlay: + 查询视频准备是否完成 + KSYMediaPlayback.h + + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + + + @property (nonatomic, readonly) BOOL isPreparedToPlay + + + //api/name/isPreparedToPlay - - - - //apple_ref/c/econst/KSYAVMuxerStatusCompleted - 处理完成 - KSYAVMuxerStatusCompleted - - KSYAVMuxer.h - + + + + //apple_ref/occ/intfm/KSYMediaPlayback/isPreparedToPlay + 查询视频准备是否完成 + KSYMediaPlayback.h + + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + + + @property (nonatomic, readonly) BOOL isPreparedToPlay + + + //api/name/isPreparedToPlay - - - - //apple_ref/c/econst/KSYAVMuxerStatusFailed - 处理失败 - KSYAVMuxerStatusFailed - - KSYAVMuxer.h - + + + + //apple_ref/occ/intfp/KSYMediaPlayback/isPreparedToPlay + 查询视频准备是否完成 + KSYMediaPlayback.h + + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + + + @property (nonatomic, readonly) BOOL isPreparedToPlay + + + //api/name/isPreparedToPlay - - - - //apple_ref/c/econst/KSYAVMuxerStatusCancelled - 处理任务被取消 - KSYAVMuxerStatusCancelled - - KSYAVMuxer.h - + + + + //apple_ref/occ/intfm/KSYMediaPlayback/play + 播放当前视频。 + KSYMediaPlayback.h + + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + + + - (void)play + + + //api/name/play + + + + + //apple_ref/occ/intfm/KSYMediaPlayback/pause + 暂停播放当前视频。 + KSYMediaPlayback.h + + - (void)pause + + + //api/name/pause - + + + + //apple_ref/occ/intfm/KSYMediaPlayback/stop + 结束当前视频的播放。 + KSYMediaPlayback.h + + + //apple_ref/occ/intfm/KSYMediaPlayback/prepareToPlay + + + + - (void)stop + + + //api/name/stop + + + + + //apple_ref/occ/intfm/KSYMediaPlayback/setCurrentPlaybackTime: + 播放视频的当前时刻,单位为秒。 + KSYMediaPlayback.h + + @property (nonatomic) NSTimeInterval currentPlaybackTime + + + //api/name/currentPlaybackTime + + + + + //apple_ref/occ/intfm/KSYMediaPlayback/currentPlaybackTime + 播放视频的当前时刻,单位为秒。 + KSYMediaPlayback.h + + @property (nonatomic) NSTimeInterval currentPlaybackTime + + + //api/name/currentPlaybackTime + + + + + //apple_ref/occ/intfp/KSYMediaPlayback/currentPlaybackTime + 播放视频的当前时刻,单位为秒。 + KSYMediaPlayback.h + + @property (nonatomic) NSTimeInterval currentPlaybackTime + + + //api/name/currentPlaybackTime + + + diff --git a/doc/docset/Contents/Resources/Tokens53.xml b/doc/docset/Contents/Resources/Tokens53.xml index bacf635..fe857c6 100644 --- a/doc/docset/Contents/Resources/Tokens53.xml +++ b/doc/docset/Contents/Resources/Tokens53.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYAudioCodec - 音频编码器类型 - KSYTypeDef.h + //apple_ref/c/tdef/KSYAVMuxerStatus + 交织处理状态 + KSYAVMuxer.h @@ -14,41 +14,51 @@ - //apple_ref/c/econst/KSYAudioCodec_AAC_HE - aac音频软件编码器 - AAC_HE - KSYAudioCodec_AAC_HE + //apple_ref/c/econst/KSYAVMuxerStatusIdle + 初始状态 + KSYAVMuxerStatusIdle - KSYTypeDef.h + KSYAVMuxer.h - //apple_ref/c/econst/KSYAudioCodec_AAC - aac音频软件编码器 - AAC_LC - KSYAudioCodec_AAC + //apple_ref/c/econst/KSYAVMuxerStatusMuxing + 处理中 + KSYAVMuxerStatusMuxing - KSYTypeDef.h + KSYAVMuxer.h - //apple_ref/c/econst/KSYAudioCodec_AT_AAC - iOS自带的audiotoolbox音频编码器 - AAC_LC (CPU占用较低,但推荐码率:64kbps单声道,128kbps双声道) - KSYAudioCodec_AT_AAC + //apple_ref/c/econst/KSYAVMuxerStatusCompleted + 处理完成 + KSYAVMuxerStatusCompleted - KSYTypeDef.h + KSYAVMuxer.h - //apple_ref/c/econst/KSYAudioCodec_AAC_HE_V2 - aac软件编码器 - AACHEV2 (仅双声道音频可用;如果输入数据为单声道,则自动退化为 AAC_HE) - KSYAudioCodec_AAC_HE_V2 + //apple_ref/c/econst/KSYAVMuxerStatusFailed + 处理失败 + KSYAVMuxerStatusFailed - KSYTypeDef.h + KSYAVMuxer.h + + + + + + //apple_ref/c/econst/KSYAVMuxerStatusCancelled + 处理任务被取消 + KSYAVMuxerStatusCancelled + + KSYAVMuxer.h diff --git a/doc/docset/Contents/Resources/Tokens54.xml b/doc/docset/Contents/Resources/Tokens54.xml index e83cd9d..5b13740 100644 --- a/doc/docset/Contents/Resources/Tokens54.xml +++ b/doc/docset/Contents/Resources/Tokens54.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYAudioEffectType - 音效类型 - KSYAUAudioCapture.h + //apple_ref/c/tdef/KSYAudioCodec + 音频编码器类型 + KSYTypeDef.h @@ -14,51 +14,41 @@ - //apple_ref/c/econst/KSYAudioEffectType_NONE - 初始化时状态为空闲 - KSYAudioEffectType_NONE + //apple_ref/c/econst/KSYAudioCodec_AAC_HE + aac音频软件编码器 - AAC_HE + KSYAudioCodec_AAC_HE - KSYAUAudioCapture.h + KSYTypeDef.h - //apple_ref/c/econst/KSYAudioEffectType_MALE - 大叔 - KSYAudioEffectType_MALE + //apple_ref/c/econst/KSYAudioCodec_AAC + aac音频软件编码器 - AAC_LC + KSYAudioCodec_AAC - KSYAUAudioCapture.h + KSYTypeDef.h - //apple_ref/c/econst/KSYAudioEffectType_FEMALE - 萝莉 - KSYAudioEffectType_FEMALE + //apple_ref/c/econst/KSYAudioCodec_AT_AAC + iOS自带的audiotoolbox音频编码器 - AAC_LC (CPU占用较低,但推荐码率:64kbps单声道,128kbps双声道) + KSYAudioCodec_AT_AAC - KSYAUAudioCapture.h + KSYTypeDef.h - //apple_ref/c/econst/KSYAudioEffectType_HEROIC - 宏大 - KSYAudioEffectType_HEROIC + //apple_ref/c/econst/KSYAudioCodec_AAC_HE_V2 + aac软件编码器 - AACHEV2 (仅双声道音频可用;如果输入数据为单声道,则自动退化为 AAC_HE) + KSYAudioCodec_AAC_HE_V2 - KSYAUAudioCapture.h - - - - - - //apple_ref/c/econst/KSYAudioEffectType_ROBOT - 机器人 - KSYAudioEffectType_ROBOT - - KSYAUAudioCapture.h + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens55.xml b/doc/docset/Contents/Resources/Tokens55.xml index e9e780b..45aaf12 100644 --- a/doc/docset/Contents/Resources/Tokens55.xml +++ b/doc/docset/Contents/Resources/Tokens55.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYAudioNoiseSuppress - 噪声抑制等级 + //apple_ref/c/tdef/KSYAudioEffectType + 音效类型 KSYAUAudioCapture.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYAudioNoiseSuppress_OFF - 关闭 - KSYAudioNoiseSuppress_OFF + //apple_ref/c/econst/KSYAudioEffectType_NONE + 初始化时状态为空闲 + KSYAudioEffectType_NONE KSYAUAudioCapture.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYAudioNoiseSuppress_LOW - 温和 - KSYAudioNoiseSuppress_LOW + //apple_ref/c/econst/KSYAudioEffectType_MALE + 大叔 + KSYAudioEffectType_MALE KSYAUAudioCapture.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/KSYAudioNoiseSuppress_MEDIUM - 中等 - KSYAudioNoiseSuppress_MEDIUM + //apple_ref/c/econst/KSYAudioEffectType_FEMALE + 萝莉 + KSYAudioEffectType_FEMALE KSYAUAudioCapture.h @@ -44,9 +44,9 @@ - //apple_ref/c/econst/KSYAudioNoiseSuppress_HIGH - 激进 - KSYAudioNoiseSuppress_HIGH + //apple_ref/c/econst/KSYAudioEffectType_HEROIC + 宏大 + KSYAudioEffectType_HEROIC KSYAUAudioCapture.h @@ -54,9 +54,9 @@ - //apple_ref/c/econst/KSYAudioNoiseSuppress_VERYHIGH - 非常激进 - KSYAudioNoiseSuppress_VERYHIGH + //apple_ref/c/econst/KSYAudioEffectType_ROBOT + 机器人 + KSYAudioEffectType_ROBOT KSYAUAudioCapture.h diff --git a/doc/docset/Contents/Resources/Tokens56.xml b/doc/docset/Contents/Resources/Tokens56.xml index 847a1db..8240d27 100644 --- a/doc/docset/Contents/Resources/Tokens56.xml +++ b/doc/docset/Contents/Resources/Tokens56.xml @@ -1,12 +1,11 @@ - + - //apple_ref/c/tdef/KSYBWEstimateMode - 网络自适应模式类型 - - KSYTypeDef.h + //apple_ref/c/tdef/KSYAudioNoiseSuppress + 噪声抑制等级 + KSYAUAudioCapture.h @@ -15,31 +14,51 @@ - //apple_ref/c/econst/KSYBWEstMode_Default - 默认模式 (综合模式,比较平稳) - KSYBWEstMode_Default + //apple_ref/c/econst/KSYAudioNoiseSuppress_OFF + 关闭 + KSYAudioNoiseSuppress_OFF - KSYTypeDef.h + KSYAUAudioCapture.h - //apple_ref/c/econst/KSYBWEstMode_Negtive - 流畅优先模式(消极上调, 极速下调) - KSYBWEstMode_Negtive + //apple_ref/c/econst/KSYAudioNoiseSuppress_LOW + 温和 + KSYAudioNoiseSuppress_LOW - KSYTypeDef.h + KSYAUAudioCapture.h - //apple_ref/c/econst/KSYBWEstMode_Disable - 禁用网络自适应网络调整 - KSYBWEstMode_Disable + //apple_ref/c/econst/KSYAudioNoiseSuppress_MEDIUM + 中等 + KSYAudioNoiseSuppress_MEDIUM - KSYTypeDef.h + KSYAUAudioCapture.h + + + + + + //apple_ref/c/econst/KSYAudioNoiseSuppress_HIGH + 激进 + KSYAudioNoiseSuppress_HIGH + + KSYAUAudioCapture.h + + + + + + //apple_ref/c/econst/KSYAudioNoiseSuppress_VERYHIGH + 非常激进 + KSYAudioNoiseSuppress_VERYHIGH + + KSYAUAudioCapture.h diff --git a/doc/docset/Contents/Resources/Tokens57.xml b/doc/docset/Contents/Resources/Tokens57.xml index 2f2b1b6..7b231b6 100644 --- a/doc/docset/Contents/Resources/Tokens57.xml +++ b/doc/docset/Contents/Resources/Tokens57.xml @@ -1,10 +1,11 @@ - + - //apple_ref/c/tdef/KSYBgmPlayerState - 音频播放状态 + //apple_ref/c/tdef/KSYBWEstimateMode + 网络自适应模式类型 + KSYTypeDef.h @@ -14,9 +15,9 @@ - //apple_ref/c/econst/KSYBgmPlayerStateInit - 初始状态 - KSYBgmPlayerStateInit + //apple_ref/c/econst/KSYBWEstMode_Default + 默认模式 (综合模式,比较平稳) + KSYBWEstMode_Default KSYTypeDef.h @@ -24,9 +25,9 @@ - //apple_ref/c/econst/KSYBgmPlayerStateStarting - 背景音正在播放 - KSYBgmPlayerStateStarting + //apple_ref/c/econst/KSYBWEstMode_Negtive + 流畅优先模式(消极上调, 极速下调) + KSYBWEstMode_Negtive KSYTypeDef.h @@ -34,49 +35,9 @@ - //apple_ref/c/econst/KSYBgmPlayerStateStopped - 背景音停止 - KSYBgmPlayerStateStopped - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYBgmPlayerStatePlaying - 背景音正在播放 - KSYBgmPlayerStatePlaying - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYBgmPlayerStatePaused - 背景音暂停 - KSYBgmPlayerStatePaused - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYBgmPlayerStateError - 背景音播放出错 - KSYBgmPlayerStateError - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYBgmPlayerStateInterrupted - 背景音被打断 - KSYBgmPlayerStateInterrupted + //apple_ref/c/econst/KSYBWEstMode_Disable + 禁用网络自适应网络调整 + KSYBWEstMode_Disable KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens58.xml b/doc/docset/Contents/Resources/Tokens58.xml index 175104e..fbb1f92 100644 --- a/doc/docset/Contents/Resources/Tokens58.xml +++ b/doc/docset/Contents/Resources/Tokens58.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYCaptureState - 采集设备状态 + //apple_ref/c/tdef/KSYBgmPlayerState + 音频播放状态 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYCaptureStateIdle - 设备空闲中 - KSYCaptureStateIdle + //apple_ref/c/econst/KSYBgmPlayerStateInit + 初始状态 + KSYBgmPlayerStateInit KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYCaptureStateCapturing - 设备工作中 - KSYCaptureStateCapturing + //apple_ref/c/econst/KSYBgmPlayerStateStarting + 背景音正在播放 + KSYBgmPlayerStateStarting KSYTypeDef.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/KSYCaptureStateDevAuthDenied - 设备授权被拒绝 - KSYCaptureStateDevAuthDenied + //apple_ref/c/econst/KSYBgmPlayerStateStopped + 背景音停止 + KSYBgmPlayerStateStopped KSYTypeDef.h @@ -44,9 +44,9 @@ - //apple_ref/c/econst/KSYCaptureStateClosingCapture - 关闭采集设备中 - KSYCaptureStateClosingCapture + //apple_ref/c/econst/KSYBgmPlayerStatePlaying + 背景音正在播放 + KSYBgmPlayerStatePlaying KSYTypeDef.h @@ -54,9 +54,9 @@ - //apple_ref/c/econst/KSYCaptureStateParameterError - 参数错误,无法打开(比如设置的分辨率,码率当前设备不支持) - KSYCaptureStateParameterError + //apple_ref/c/econst/KSYBgmPlayerStatePaused + 背景音暂停 + KSYBgmPlayerStatePaused KSYTypeDef.h @@ -64,9 +64,19 @@ - //apple_ref/c/econst/KSYCaptureStateDevBusy - 设备正忙,请稍后尝试 ( 该状态在发出通知0.5秒后被清除 ) - KSYCaptureStateDevBusy + //apple_ref/c/econst/KSYBgmPlayerStateError + 背景音播放出错 + KSYBgmPlayerStateError + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYBgmPlayerStateInterrupted + 背景音被打断 + KSYBgmPlayerStateInterrupted KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens59.xml b/doc/docset/Contents/Resources/Tokens59.xml index 15e80d2..7c7b274 100644 --- a/doc/docset/Contents/Resources/Tokens59.xml +++ b/doc/docset/Contents/Resources/Tokens59.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYDevAuthStatus - 设备授权状态 + //apple_ref/c/tdef/KSYCaptureState + 采集设备状态 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYDevAuthStatusNotDetermined - 还没有确定是否授权 - KSYDevAuthStatusNotDetermined + //apple_ref/c/econst/KSYCaptureStateIdle + 设备空闲中 + KSYCaptureStateIdle KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYDevAuthStatusRestricted - 设备受限,一般在家长模式下设备会受限 - KSYDevAuthStatusRestricted + //apple_ref/c/econst/KSYCaptureStateCapturing + 设备工作中 + KSYCaptureStateCapturing KSYTypeDef.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/KSYDevAuthStatusDenied - 拒绝授权 - KSYDevAuthStatusDenied + //apple_ref/c/econst/KSYCaptureStateDevAuthDenied + 设备授权被拒绝 + KSYCaptureStateDevAuthDenied KSYTypeDef.h @@ -44,9 +44,29 @@ - //apple_ref/c/econst/KSYDevAuthStatusAuthorized - 已授权 - KSYDevAuthStatusAuthorized + //apple_ref/c/econst/KSYCaptureStateClosingCapture + 关闭采集设备中 + KSYCaptureStateClosingCapture + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYCaptureStateParameterError + 参数错误,无法打开(比如设置的分辨率,码率当前设备不支持) + KSYCaptureStateParameterError + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYCaptureStateDevBusy + 设备正忙,请稍后尝试 ( 该状态在发出通知0.5秒后被清除 ) + KSYCaptureStateDevBusy KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens60.xml b/doc/docset/Contents/Resources/Tokens60.xml index 7fdc055..5cc5424 100644 --- a/doc/docset/Contents/Resources/Tokens60.xml +++ b/doc/docset/Contents/Resources/Tokens60.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYLiveScene - 直播场景 (KSY内部会根据场景的特征进行参数调优) + //apple_ref/c/tdef/KSYDevAuthStatus + 设备授权状态 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYLiveScene_Default - 默认通用场景(不确定场景时使用) - KSYLiveScene_Default + //apple_ref/c/econst/KSYDevAuthStatusNotDetermined + 还没有确定是否授权 + KSYDevAuthStatusNotDetermined KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYLiveScene_Showself - 秀场场景, 主播上半身为主 - KSYLiveScene_Showself + //apple_ref/c/econst/KSYDevAuthStatusRestricted + 设备受限,一般在家长模式下设备会受限 + KSYDevAuthStatusRestricted KSYTypeDef.h @@ -34,9 +34,19 @@ - //apple_ref/c/econst/KSYLiveScene_Game - 游戏场景 - KSYLiveScene_Game + //apple_ref/c/econst/KSYDevAuthStatusDenied + 拒绝授权 + KSYDevAuthStatusDenied + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYDevAuthStatusAuthorized + 已授权 + KSYDevAuthStatusAuthorized KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens61.xml b/doc/docset/Contents/Resources/Tokens61.xml index bc6bc00..bf716b6 100644 --- a/doc/docset/Contents/Resources/Tokens61.xml +++ b/doc/docset/Contents/Resources/Tokens61.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYMPErrorCode - 错误码 - KSYMoviePlayerDefines.h + //apple_ref/c/tdef/KSYLiveScene + 直播场景 (KSY内部会根据场景的特征进行参数调优) + KSYTypeDef.h @@ -14,211 +14,31 @@ - //apple_ref/c/econst/KSYMPOK - 正常 - KSYMPOK + //apple_ref/c/econst/KSYLiveScene_Default + 默认通用场景(不确定场景时使用) + KSYLiveScene_Default - KSYMoviePlayerDefines.h + KSYTypeDef.h - //apple_ref/c/econst/KSYMPErrorCodeUnknownError - 未知错误 - KSYMPErrorCodeUnknownError + //apple_ref/c/econst/KSYLiveScene_Showself + 秀场场景, 主播上半身为主 + KSYLiveScene_Showself - KSYMoviePlayerDefines.h + KSYTypeDef.h - //apple_ref/c/econst/KSYMPErrorCodeFileIOError - 读写数据异常 - KSYMPErrorCodeFileIOError + //apple_ref/c/econst/KSYLiveScene_Game + 游戏场景 + KSYLiveScene_Game - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeUnsupportProtocol - 不支持的流媒体协议 - KSYMPErrorCodeUnsupportProtocol - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeDNSParseFailed - DNS解析失败 - KSYMPErrorCodeDNSParseFailed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeCreateSocketFailed - 创建socket失败 - KSYMPErrorCodeCreateSocketFailed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeConnectServerFailed - 连接服务器失败 - KSYMPErrorCodeConnectServerFailed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeBadRequest - http请求返回400 - KSYMPErrorCodeBadRequest - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeUnauthorizedClient - http请求返回401 - KSYMPErrorCodeUnauthorizedClient - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeAccessForbidden - http请求返回403 - KSYMPErrorCodeAccessForbidden - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeTargetNotFound - http请求返回404 - KSYMPErrorCodeTargetNotFound - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeOtherErrorCode - http请求返回4xx - KSYMPErrorCodeOtherErrorCode - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeServerException - http请求返回5xx - KSYMPErrorCodeServerException - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeInvalidData - 无效的媒体数据 - KSYMPErrorCodeInvalidData - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeUnsupportVideoCodec - 不支持的视频编码类型 - KSYMPErrorCodeUnsupportVideoCodec - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeUnsupportAudioCodec - 不支持的音频编码类型 - KSYMPErrorCodeUnsupportAudioCodec - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeVideoDecodeFailed - 视频解码失败 - KSYMPErrorCodeVideoDecodeFailed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCodeAudioDecodeFailed - 音频解码失败 - KSYMPErrorCodeAudioDecodeFailed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorCode3xxOverFlow - 次数过多的3xx跳转(8次) - KSYMPErrorCode3xxOverFlow - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorInvalidURL - 无效的url - KSYMPErrorInvalidURL - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/KSYMPErrorNetworkUnReachable - 网络不通 - KSYMPErrorNetworkUnReachable - - KSYMoviePlayerDefines.h + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens62.xml b/doc/docset/Contents/Resources/Tokens62.xml index b44d82d..002574f 100644 --- a/doc/docset/Contents/Resources/Tokens62.xml +++ b/doc/docset/Contents/Resources/Tokens62.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYMicType - 音频输入设备类型 - KSYTypeDef.h + //apple_ref/c/tdef/KSYMPErrorCode + 错误码 + KSYMoviePlayerDefines.h @@ -14,41 +14,211 @@ - //apple_ref/c/econst/KSYMicType_builtinMic - Built-in microphone on an iOS device - KSYMicType_builtinMic + //apple_ref/c/econst/KSYMPOK + 正常 + KSYMPOK - KSYTypeDef.h + KSYMoviePlayerDefines.h - //apple_ref/c/econst/KSYMicType_headsetMic - Microphone on a wired headset - KSYMicType_headsetMic + //apple_ref/c/econst/KSYMPErrorCodeUnknownError + 未知错误 + KSYMPErrorCodeUnknownError - KSYTypeDef.h + KSYMoviePlayerDefines.h - //apple_ref/c/econst/KSYMicType_bluetoothMic - 蓝牙设备 - KSYMicType_bluetoothMic + //apple_ref/c/econst/KSYMPErrorCodeFileIOError + 读写数据异常 + KSYMPErrorCodeFileIOError - KSYTypeDef.h + KSYMoviePlayerDefines.h - //apple_ref/c/econst/KSYMicType_unknow - 未知设备 - KSYMicType_unknow + //apple_ref/c/econst/KSYMPErrorCodeUnsupportProtocol + 不支持的流媒体协议 + KSYMPErrorCodeUnsupportProtocol - KSYTypeDef.h + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeDNSParseFailed + DNS解析失败 + KSYMPErrorCodeDNSParseFailed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeCreateSocketFailed + 创建socket失败 + KSYMPErrorCodeCreateSocketFailed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeConnectServerFailed + 连接服务器失败 + KSYMPErrorCodeConnectServerFailed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeBadRequest + http请求返回400 + KSYMPErrorCodeBadRequest + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeUnauthorizedClient + http请求返回401 + KSYMPErrorCodeUnauthorizedClient + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeAccessForbidden + http请求返回403 + KSYMPErrorCodeAccessForbidden + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeTargetNotFound + http请求返回404 + KSYMPErrorCodeTargetNotFound + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeOtherErrorCode + http请求返回4xx + KSYMPErrorCodeOtherErrorCode + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeServerException + http请求返回5xx + KSYMPErrorCodeServerException + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeInvalidData + 无效的媒体数据 + KSYMPErrorCodeInvalidData + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeUnsupportVideoCodec + 不支持的视频编码类型 + KSYMPErrorCodeUnsupportVideoCodec + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeUnsupportAudioCodec + 不支持的音频编码类型 + KSYMPErrorCodeUnsupportAudioCodec + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeVideoDecodeFailed + 视频解码失败 + KSYMPErrorCodeVideoDecodeFailed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCodeAudioDecodeFailed + 音频解码失败 + KSYMPErrorCodeAudioDecodeFailed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorCode3xxOverFlow + 次数过多的3xx跳转(8次) + KSYMPErrorCode3xxOverFlow + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorInvalidURL + 无效的url + KSYMPErrorInvalidURL + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/KSYMPErrorNetworkUnReachable + 网络不通 + KSYMPErrorNetworkUnReachable + + KSYMoviePlayerDefines.h diff --git a/doc/docset/Contents/Resources/Tokens63.xml b/doc/docset/Contents/Resources/Tokens63.xml index aac7e6b..3d8a7a8 100644 --- a/doc/docset/Contents/Resources/Tokens63.xml +++ b/doc/docset/Contents/Resources/Tokens63.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYNetReachState - 网络链接状态 + //apple_ref/c/tdef/KSYMicType + 音频输入设备类型 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYNetReachState_Unknown - 未知 - KSYNetReachState_Unknown + //apple_ref/c/econst/KSYMicType_builtinMic + Built-in microphone on an iOS device + KSYMicType_builtinMic KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYNetReachState_OK - 联网 - KSYNetReachState_OK + //apple_ref/c/econst/KSYMicType_headsetMic + Microphone on a wired headset + KSYMicType_headsetMic KSYTypeDef.h @@ -34,9 +34,19 @@ - //apple_ref/c/econst/KSYNetReachState_Bad - 断网 - KSYNetReachState_Bad + //apple_ref/c/econst/KSYMicType_bluetoothMic + 蓝牙设备 + KSYMicType_bluetoothMic + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYMicType_unknow + 未知设备 + KSYMicType_unknow KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens64.xml b/doc/docset/Contents/Resources/Tokens64.xml index 8aff773..65b8427 100644 --- a/doc/docset/Contents/Resources/Tokens64.xml +++ b/doc/docset/Contents/Resources/Tokens64.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYNetStateCode - 网络状况事件码,用于指示当前网络健康状况 + //apple_ref/c/tdef/KSYNetReachState + 网络链接状态 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYNetStateCode_NONE - 正常无错误 - KSYNetStateCode_NONE + //apple_ref/c/econst/KSYNetReachState_Unknown + 未知 + KSYNetReachState_Unknown KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYNetStateCode_SEND_PACKET_SLOW - 发送包时间过长,( 单次发送超过 500毫秒 ) - KSYNetStateCode_SEND_PACKET_SLOW + //apple_ref/c/econst/KSYNetReachState_OK + 联网 + KSYNetReachState_OK KSYTypeDef.h @@ -34,79 +34,9 @@ - //apple_ref/c/econst/KSYNetStateCode_EST_BW_RAISE - 估计带宽调整,上调 - KSYNetStateCode_EST_BW_RAISE - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_EST_BW_DROP - 估计带宽调整,下调 - KSYNetStateCode_EST_BW_DROP - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_VIDEO_FPS_RAISE - 帧率调整,上调 - KSYNetStateCode_VIDEO_FPS_RAISE - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_VIDEO_FPS_DROP - 帧率调整,下调 - KSYNetStateCode_VIDEO_FPS_DROP - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_KSYAUTHFAILED - SDK 鉴权失败 (暂时正常推流5~8分钟后终止推流) - KSYNetStateCode_KSYAUTHFAILED - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_IN_AUDIO_DISCONTINUOUS - 输入音频不连续 - KSYNetStateCode_IN_AUDIO_DISCONTINUOUS - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_UNREACHABLE - 网络变为不可用 - KSYNetStateCode_UNREACHABLE - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYNetStateCode_REACHABLE - 网络变为可用 - KSYNetStateCode_REACHABLE + //apple_ref/c/econst/KSYNetReachState_Bad + 断网 + KSYNetReachState_Bad KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens65.xml b/doc/docset/Contents/Resources/Tokens65.xml index e7b0530..4ce85a9 100644 --- a/doc/docset/Contents/Resources/Tokens65.xml +++ b/doc/docset/Contents/Resources/Tokens65.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYNetworkStatus - Create NS_ENUM macro if it does not exist on the targeted version of iOS or OS X. - KSYReachability.h + //apple_ref/c/tdef/KSYNetStateCode + 网络状况事件码,用于指示当前网络健康状况 + KSYTypeDef.h @@ -14,31 +14,101 @@ - //apple_ref/c/econst/KSYNotReachable - - KSYNotReachable + //apple_ref/c/econst/KSYNetStateCode_NONE + 正常无错误 + KSYNetStateCode_NONE - KSYReachability.h + KSYTypeDef.h - //apple_ref/c/econst/KSYReachableViaWiFi - - KSYReachableViaWiFi + //apple_ref/c/econst/KSYNetStateCode_SEND_PACKET_SLOW + 发送包时间过长,( 单次发送超过 500毫秒 ) + KSYNetStateCode_SEND_PACKET_SLOW - KSYReachability.h + KSYTypeDef.h - //apple_ref/c/econst/KSYReachableViaWWAN - - KSYReachableViaWWAN + //apple_ref/c/econst/KSYNetStateCode_EST_BW_RAISE + 估计带宽调整,上调 + KSYNetStateCode_EST_BW_RAISE - KSYReachability.h + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_EST_BW_DROP + 估计带宽调整,下调 + KSYNetStateCode_EST_BW_DROP + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_VIDEO_FPS_RAISE + 帧率调整,上调 + KSYNetStateCode_VIDEO_FPS_RAISE + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_VIDEO_FPS_DROP + 帧率调整,下调 + KSYNetStateCode_VIDEO_FPS_DROP + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_KSYAUTHFAILED + SDK 鉴权失败 (暂时正常推流5~8分钟后终止推流) + KSYNetStateCode_KSYAUTHFAILED + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_IN_AUDIO_DISCONTINUOUS + 输入音频不连续 + KSYNetStateCode_IN_AUDIO_DISCONTINUOUS + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_UNREACHABLE + 网络变为不可用 + KSYNetStateCode_UNREACHABLE + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYNetStateCode_REACHABLE + 网络变为可用 + KSYNetStateCode_REACHABLE + + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens66.xml b/doc/docset/Contents/Resources/Tokens66.xml index 6461f16..72a04f5 100644 --- a/doc/docset/Contents/Resources/Tokens66.xml +++ b/doc/docset/Contents/Resources/Tokens66.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYPlayRecordScheme - 录制方案 - KSYUIRecorderKit.h + //apple_ref/c/tdef/KSYNetworkStatus + Create NS_ENUM macro if it does not exist on the targeted version of iOS or OS X. + KSYReachability.h @@ -14,21 +14,31 @@ - //apple_ref/c/econst/KSYPlayerRecord_PicMix_Scheme - UI+Video混合方案 - KSYPlayerRecord_PicMix_Scheme + //apple_ref/c/econst/KSYNotReachable + + KSYNotReachable - KSYUIRecorderKit.h + KSYReachability.h - //apple_ref/c/econst/KSYPlayerRecord_ScreenShot_Scheme - 截屏式方案 - KSYPlayerRecord_ScreenShot_Scheme + //apple_ref/c/econst/KSYReachableViaWiFi + + KSYReachableViaWiFi - KSYUIRecorderKit.h + KSYReachability.h + + + + + + //apple_ref/c/econst/KSYReachableViaWWAN + + KSYReachableViaWWAN + + KSYReachability.h diff --git a/doc/docset/Contents/Resources/Tokens67.xml b/doc/docset/Contents/Resources/Tokens67.xml index 7ce6403..324607d 100644 --- a/doc/docset/Contents/Resources/Tokens67.xml +++ b/doc/docset/Contents/Resources/Tokens67.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYRecScene - 录制场景 - KSYTypeDef.h + //apple_ref/c/tdef/KSYPlayRecordScheme + 录制方案 + KSYUIRecorderKit.h @@ -14,21 +14,21 @@ - //apple_ref/c/econst/KSYRecScene_ConstantBitRate - 恒定码率场景 - KSYRecScene_ConstantBitRate + //apple_ref/c/econst/KSYPlayerRecord_PicMix_Scheme + UI+Video混合方案 + KSYPlayerRecord_PicMix_Scheme - KSYTypeDef.h + KSYUIRecorderKit.h - //apple_ref/c/econst/KSYRecScene_ConstantQuality - 恒定质量场景 - KSYRecScene_ConstantQuality + //apple_ref/c/econst/KSYPlayerRecord_ScreenShot_Scheme + 截屏式方案 + KSYPlayerRecord_ScreenShot_Scheme - KSYTypeDef.h + KSYUIRecorderKit.h diff --git a/doc/docset/Contents/Resources/Tokens68.xml b/doc/docset/Contents/Resources/Tokens68.xml index dca4220..b2869c7 100644 --- a/doc/docset/Contents/Resources/Tokens68.xml +++ b/doc/docset/Contents/Resources/Tokens68.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYRecordError - 旁路录制错误码 + //apple_ref/c/tdef/KSYRecScene + 录制场景 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYRecordErrorNone - 无错误 - KSYRecordErrorNone + //apple_ref/c/econst/KSYRecScene_ConstantBitRate + 恒定码率场景 + KSYRecScene_ConstantBitRate KSYTypeDef.h @@ -24,29 +24,9 @@ - //apple_ref/c/econst/KSYRecordErrorPathInvalid - 地址错误 - KSYRecordErrorPathInvalid - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYRecordErrorFormatNotSupport - 格式不支持 - KSYRecordErrorFormatNotSupport - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYRecordErrorInternal - 内部错误 - KSYRecordErrorInternal + //apple_ref/c/econst/KSYRecScene_ConstantQuality + 恒定质量场景 + KSYRecScene_ConstantQuality KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens69.xml b/doc/docset/Contents/Resources/Tokens69.xml index 89d0bf8..582af38 100644 --- a/doc/docset/Contents/Resources/Tokens69.xml +++ b/doc/docset/Contents/Resources/Tokens69.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYRecordState - 旁路录制状态 + //apple_ref/c/tdef/KSYRecordError + 旁路录制错误码 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYRecordStateIdle - 初始状态 - KSYRecordStateIdle + //apple_ref/c/econst/KSYRecordErrorNone + 无错误 + KSYRecordErrorNone KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYRecordStateRecording - 录像中 - KSYRecordStateRecording + //apple_ref/c/econst/KSYRecordErrorPathInvalid + 地址错误 + KSYRecordErrorPathInvalid KSYTypeDef.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/KSYRecordStateStopped - 录像停止 - KSYRecordStateStopped + //apple_ref/c/econst/KSYRecordErrorFormatNotSupport + 格式不支持 + KSYRecordErrorFormatNotSupport KSYTypeDef.h @@ -44,9 +44,9 @@ - //apple_ref/c/econst/KSYRecordStateError - 录像失败 - KSYRecordStateError + //apple_ref/c/econst/KSYRecordErrorInternal + 内部错误 + KSYRecordErrorInternal KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens70.xml b/doc/docset/Contents/Resources/Tokens70.xml index afb9f05..d77fd50 100644 --- a/doc/docset/Contents/Resources/Tokens70.xml +++ b/doc/docset/Contents/Resources/Tokens70.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYStreamErrorCode - 推流错误码,用于指示推流失败的原因 + //apple_ref/c/tdef/KSYRecordState + 旁路录制状态 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYStreamErrorCode_NONE - 正常无错误 - KSYStreamErrorCode_NONE + //apple_ref/c/econst/KSYRecordStateIdle + 初始状态 + KSYRecordStateIdle KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYStreamErrorCode_KSYAUTHFAILED - (obsolete) - KSYStreamErrorCode_KSYAUTHFAILED + //apple_ref/c/econst/KSYRecordStateRecording + 录像中 + KSYRecordStateRecording KSYTypeDef.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/__deprecated_enum_msg - - __deprecated_enum_msg + //apple_ref/c/econst/KSYRecordStateStopped + 录像停止 + KSYRecordStateStopped KSYTypeDef.h @@ -44,329 +44,9 @@ - //apple_ref/c/econst/( - - ( - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/"auth removed" - - "auth removed" - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/) - - ) - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_ENCODE_FRAMES_FAILED - 当前帧编码失败 - KSYStreamErrorCode_ENCODE_FRAMES_FAILED - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_CODEC_OPEN_FAILED - 无法打开配置指示的CODEC - KSYStreamErrorCode_CODEC_OPEN_FAILED - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_CONNECT_FAILED - 连接出错,检查地址 - KSYStreamErrorCode_CONNECT_FAILED - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_CONNECT_BREAK - 网络连接中断 - KSYStreamErrorCode_CONNECT_BREAK - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_NonExistDomain - rtmp 推流域名不存在 (KSY 自定义) - KSYStreamErrorCode_RTMP_NonExistDomain - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_NonExistApplication - rtmp 应用名不存在(KSY 自定义) - KSYStreamErrorCode_RTMP_NonExistApplication - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_AlreadyExistStreamName - rtmp 流名已存在(KSY 自定义) - KSYStreamErrorCode_RTMP_AlreadyExistStreamName - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_ForbiddenByBlacklist - rtmp 被黑名单拒绝(KSY 自定义) - KSYStreamErrorCode_RTMP_ForbiddenByBlacklist - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InternalError - rtmp 内部错误(KSY 自定义) - KSYStreamErrorCode_RTMP_InternalError - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_URLExpired - rtmp URL 地址已过期(KSY 自定义) - KSYStreamErrorCode_RTMP_URLExpired - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_SignatureDoesNotMatch - rtmp URL 地址签名错误(KSY 自定义) - KSYStreamErrorCode_RTMP_SignatureDoesNotMatch - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InvalidAccessKeyId - rtmp URL 中AccessKeyId非法(KSY 自定义) - KSYStreamErrorCode_RTMP_InvalidAccessKeyId - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_BadParams - rtmp URL 中参数错误(KSY 自定义) - KSYStreamErrorCode_RTMP_BadParams - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_ForbiddenByRegion - rtmp URL 中的推流不在发布点内(KSY 自定义) - KSYStreamErrorCode_RTMP_ForbiddenByRegion - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_FRAMES_THRESHOLD - (obsolete) - KSYStreamErrorCode_FRAMES_THRESHOLD - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_NO_INPUT_SAMPLE - (obsolete) - KSYStreamErrorCode_NO_INPUT_SAMPLE - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_DNS_Parse_failed - 对于URL中的域名解析失败 - KSYStreamErrorCode_DNS_Parse_failed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_Connect_Server_failed - 对于URL对应的服务器连接失败(无法建立TCP连接) - KSYStreamErrorCode_Connect_Server_failed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_Publish_failed - 跟RTMP服务器完成握手后,向{appname}/{streamname} 推流失败 - KSYStreamErrorCode_RTMP_Publish_failed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_AV_SYNC_ERROR - 音视频同步失败 (输入的音频和视频的时间戳的差值超过5s) - KSYStreamErrorCode_AV_SYNC_ERROR - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_INVALID_ADDRESS - 非法地址(地址为空或url中的协议或本地文件的后缀SDK不支持, 请检查) - KSYStreamErrorCode_INVALID_ADDRESS - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_NETWORK_UNREACHABLE - 网络不通 - KSYStreamErrorCode_NETWORK_UNREACHABLE - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_GetUserIdFailed - 获取user id失败 (KSY 自定义) - KSYStreamErrorCode_RTMP_GetUserIdFailed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_AkAndUserIsNotMatch - AK和user id不匹配 (KSY 自定义) - KSYStreamErrorCode_RTMP_AkAndUserIsNotMatch - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_GetServerInfoFailed - 获取服务器信息失败 (KSY 自定义) - KSYStreamErrorCode_RTMP_GetServerInfoFailed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_IllegalOutsideUrl - 非法的外部url (KSY 自定义) - KSYStreamErrorCode_RTMP_IllegalOutsideUrl - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_OutsideAuthFailed - 外部鉴权失败 (KSY 自定义) - KSYStreamErrorCode_RTMP_OutsideAuthFailed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_SimpleAuthFailed - 简单鉴权失败(KSY 自定义) - KSYStreamErrorCode_RTMP_SimpleAuthFailed - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InvalidAuthType - 无效的鉴权类型 (KSY 自定义) - KSYStreamErrorCode_RTMP_InvalidAuthType - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamErrorCode_RTMP_IllegalUserId - 非法的user id (KSY 自定义) - KSYStreamErrorCode_RTMP_IllegalUserId + //apple_ref/c/econst/KSYRecordStateError + 录像失败 + KSYRecordStateError KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens71.xml b/doc/docset/Contents/Resources/Tokens71.xml index 4dc898d..25c8258 100644 --- a/doc/docset/Contents/Resources/Tokens71.xml +++ b/doc/docset/Contents/Resources/Tokens71.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYStreamState - 推流状态 - KSYTypeDef.h + //apple_ref/c/tdef/KSYShakeType + 抖动类型 + KSYShakeFilter.h @@ -14,51 +14,21 @@ - //apple_ref/c/econst/KSYStreamStateIdle - 初始化时状态为空闲 - KSYStreamStateIdle + //apple_ref/c/econst/KSYShakeType_ZOOM + 放大抖动效果 + KSYShakeType_ZOOM - KSYTypeDef.h + KSYShakeFilter.h - //apple_ref/c/econst/KSYStreamStateConnecting - 连接中 - KSYStreamStateConnecting + //apple_ref/c/econst/KSYShakeType_Color + 彩色抖动效果 + KSYShakeType_Color - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamStateConnected - 已连接 - KSYStreamStateConnected - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamStateDisconnecting - 断开连接中 - KSYStreamStateDisconnecting - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYStreamStateError - 推流出错 - KSYStreamStateError - - KSYTypeDef.h + KSYShakeFilter.h diff --git a/doc/docset/Contents/Resources/Tokens72.xml b/doc/docset/Contents/Resources/Tokens72.xml index c277931..e1ead93 100644 --- a/doc/docset/Contents/Resources/Tokens72.xml +++ b/doc/docset/Contents/Resources/Tokens72.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYTranscodeErrorCode - 转码错误码,用于说明转码失败的原因 - KSYTranscoder.h + //apple_ref/c/tdef/KSYStreamErrorCode + 推流错误码,用于指示推流失败的原因 + KSYTypeDef.h @@ -14,91 +14,361 @@ - //apple_ref/c/econst/KSYTranscodeErrorCode_None + //apple_ref/c/econst/KSYStreamErrorCode_NONE 正常无错误 - KSYTranscodeErrorCode_None + KSYStreamErrorCode_NONE - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_InvalidAddress - 无效的文件地址(输入或输出地址为空) - KSYTranscodeErrorCode_InvalidAddress + //apple_ref/c/econst/KSYStreamErrorCode_KSYAUTHFAILED + (obsolete) + KSYStreamErrorCode_KSYAUTHFAILED - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_InputFile_OpenFailed - 打开输入文件失败 - KSYTranscodeErrorCode_InputFile_OpenFailed + //apple_ref/c/econst/__deprecated_enum_msg + + __deprecated_enum_msg - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_InvalidData - 无效的媒体数据 - KSYTranscodeErrorCode_InvalidData + //apple_ref/c/econst/( + + ( - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_UnsupportedFormat - 不支持的输出文件格式 - KSYTranscodeErrorCode_OutputFile_UnsupportedFormat + //apple_ref/c/econst/"auth removed" + + "auth removed" - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_OpenFailed - 打开输出文件失败 - KSYTranscodeErrorCode_OutputFile_OpenFailed + //apple_ref/c/econst/) + + ) - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_AddStreamFailed - 输出文件添加流失败 - KSYTranscodeErrorCode_OutputFile_AddStreamFailed + //apple_ref/c/econst/KSYStreamErrorCode_ENCODE_FRAMES_FAILED + 当前帧编码失败 + KSYStreamErrorCode_ENCODE_FRAMES_FAILED - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_StartWriteFailed - 输出文件头写入失败(通常为不支持的codec) - KSYTranscodeErrorCode_OutputFile_StartWriteFailed + //apple_ref/c/econst/KSYStreamErrorCode_CODEC_OPEN_FAILED + 无法打开配置指示的CODEC + KSYStreamErrorCode_CODEC_OPEN_FAILED - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeErrorCode_Transcoding_Failed - 转码过程中出现错误 - KSYTranscodeErrorCode_Transcoding_Failed + //apple_ref/c/econst/KSYStreamErrorCode_CONNECT_FAILED + 连接出错,检查地址 + KSYStreamErrorCode_CONNECT_FAILED - KSYTranscoder.h + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_CONNECT_BREAK + 网络连接中断 + KSYStreamErrorCode_CONNECT_BREAK + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_NonExistDomain + rtmp 推流域名不存在 (KSY 自定义) + KSYStreamErrorCode_RTMP_NonExistDomain + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_NonExistApplication + rtmp 应用名不存在(KSY 自定义) + KSYStreamErrorCode_RTMP_NonExistApplication + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_AlreadyExistStreamName + rtmp 流名已存在(KSY 自定义) + KSYStreamErrorCode_RTMP_AlreadyExistStreamName + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_ForbiddenByBlacklist + rtmp 被黑名单拒绝(KSY 自定义) + KSYStreamErrorCode_RTMP_ForbiddenByBlacklist + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InternalError + rtmp 内部错误(KSY 自定义) + KSYStreamErrorCode_RTMP_InternalError + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_URLExpired + rtmp URL 地址已过期(KSY 自定义) + KSYStreamErrorCode_RTMP_URLExpired + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_SignatureDoesNotMatch + rtmp URL 地址签名错误(KSY 自定义) + KSYStreamErrorCode_RTMP_SignatureDoesNotMatch + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InvalidAccessKeyId + rtmp URL 中AccessKeyId非法(KSY 自定义) + KSYStreamErrorCode_RTMP_InvalidAccessKeyId + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_BadParams + rtmp URL 中参数错误(KSY 自定义) + KSYStreamErrorCode_RTMP_BadParams + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_ForbiddenByRegion + rtmp URL 中的推流不在发布点内(KSY 自定义) + KSYStreamErrorCode_RTMP_ForbiddenByRegion + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_FRAMES_THRESHOLD + (obsolete) + KSYStreamErrorCode_FRAMES_THRESHOLD + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_NO_INPUT_SAMPLE + (obsolete) + KSYStreamErrorCode_NO_INPUT_SAMPLE + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_DNS_Parse_failed + 对于URL中的域名解析失败 + KSYStreamErrorCode_DNS_Parse_failed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_Connect_Server_failed + 对于URL对应的服务器连接失败(无法建立TCP连接) + KSYStreamErrorCode_Connect_Server_failed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_Publish_failed + 跟RTMP服务器完成握手后,向{appname}/{streamname} 推流失败 + KSYStreamErrorCode_RTMP_Publish_failed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_AV_SYNC_ERROR + 音视频同步失败 (输入的音频和视频的时间戳的差值超过5s) + KSYStreamErrorCode_AV_SYNC_ERROR + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_INVALID_ADDRESS + 非法地址(地址为空或url中的协议或本地文件的后缀SDK不支持, 请检查) + KSYStreamErrorCode_INVALID_ADDRESS + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_NETWORK_UNREACHABLE + 网络不通 + KSYStreamErrorCode_NETWORK_UNREACHABLE + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_GetUserIdFailed + 获取user id失败 (KSY 自定义) + KSYStreamErrorCode_RTMP_GetUserIdFailed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_AkAndUserIsNotMatch + AK和user id不匹配 (KSY 自定义) + KSYStreamErrorCode_RTMP_AkAndUserIsNotMatch + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_GetServerInfoFailed + 获取服务器信息失败 (KSY 自定义) + KSYStreamErrorCode_RTMP_GetServerInfoFailed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_IllegalOutsideUrl + 非法的外部url (KSY 自定义) + KSYStreamErrorCode_RTMP_IllegalOutsideUrl + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_OutsideAuthFailed + 外部鉴权失败 (KSY 自定义) + KSYStreamErrorCode_RTMP_OutsideAuthFailed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_SimpleAuthFailed + 简单鉴权失败(KSY 自定义) + KSYStreamErrorCode_RTMP_SimpleAuthFailed + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_InvalidAuthType + 无效的鉴权类型 (KSY 自定义) + KSYStreamErrorCode_RTMP_InvalidAuthType + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamErrorCode_RTMP_IllegalUserId + 非法的user id (KSY 自定义) + KSYStreamErrorCode_RTMP_IllegalUserId + + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens73.xml b/doc/docset/Contents/Resources/Tokens73.xml index 90367ae..8565eab 100644 --- a/doc/docset/Contents/Resources/Tokens73.xml +++ b/doc/docset/Contents/Resources/Tokens73.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYTranscodeState - 转码状态 - KSYTranscoder.h + //apple_ref/c/tdef/KSYStreamState + 推流状态 + KSYTypeDef.h @@ -14,41 +14,51 @@ - //apple_ref/c/econst/KSYTranscodeState_Idle - 初始状态 - KSYTranscodeState_Idle + //apple_ref/c/econst/KSYStreamStateIdle + 初始化时状态为空闲 + KSYStreamStateIdle - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeState_Transcoding - 转码中 - KSYTranscodeState_Transcoding + //apple_ref/c/econst/KSYStreamStateConnecting + 连接中 + KSYStreamStateConnecting - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeState_Completed - 转码完成 - KSYTranscodeState_Completed + //apple_ref/c/econst/KSYStreamStateConnected + 已连接 + KSYStreamStateConnected - KSYTranscoder.h + KSYTypeDef.h - //apple_ref/c/econst/KSYTranscodeState_Error - 转码失败 - KSYTranscodeState_Error + //apple_ref/c/econst/KSYStreamStateDisconnecting + 断开连接中 + KSYStreamStateDisconnecting - KSYTranscoder.h + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYStreamStateError + 推流出错 + KSYStreamStateError + + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens74.xml b/doc/docset/Contents/Resources/Tokens74.xml index a132ef7..66b78fb 100644 --- a/doc/docset/Contents/Resources/Tokens74.xml +++ b/doc/docset/Contents/Resources/Tokens74.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYVideoCodec - 视频编码器类型 - KSYTypeDef.h + //apple_ref/c/tdef/KSYTranscodeErrorCode + 转码错误码,用于说明转码失败的原因 + KSYTranscoder.h @@ -14,61 +14,91 @@ - //apple_ref/c/econst/KSYVideoCodec_X264 - 视频编码器 - h264 软件编码器 - KSYVideoCodec_X264 + //apple_ref/c/econst/KSYTranscodeErrorCode_None + 正常无错误 + KSYTranscodeErrorCode_None - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoCodec_QY265 - 视频编码器 - KSY265 软件编码器 - KSYVideoCodec_QY265 + //apple_ref/c/econst/KSYTranscodeErrorCode_InvalidAddress + 无效的文件地址(输入或输出地址为空) + KSYTranscodeErrorCode_InvalidAddress - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoCodec_VT264 - 视频编码器 - iOS VT264硬件编码器 (iOS 8.0以上支持) - KSYVideoCodec_VT264 + //apple_ref/c/econst/KSYTranscodeErrorCode_InputFile_OpenFailed + 打开输入文件失败 + KSYTranscodeErrorCode_InputFile_OpenFailed - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoCodec_VT265 - 视频编码器 - iOS VT265硬件编码器 (iOS 11.0 以上) - KSYVideoCodec_VT265 + //apple_ref/c/econst/KSYTranscodeErrorCode_InvalidData + 无效的媒体数据 + KSYTranscodeErrorCode_InvalidData - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoCodec_AUTO - 视频编码器 - 由SDK自动选择( VT264 > X264) - KSYVideoCodec_AUTO + //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_UnsupportedFormat + 不支持的输出文件格式 + KSYTranscodeErrorCode_OutputFile_UnsupportedFormat - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoCodec_GIF - 视频编码器 - gif - KSYVideoCodec_GIF + //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_OpenFailed + 打开输出文件失败 + KSYTranscodeErrorCode_OutputFile_OpenFailed - KSYTypeDef.h + KSYTranscoder.h + + + + + + //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_AddStreamFailed + 输出文件添加流失败 + KSYTranscodeErrorCode_OutputFile_AddStreamFailed + + KSYTranscoder.h + + + + + + //apple_ref/c/econst/KSYTranscodeErrorCode_OutputFile_StartWriteFailed + 输出文件头写入失败(通常为不支持的codec) + KSYTranscodeErrorCode_OutputFile_StartWriteFailed + + KSYTranscoder.h + + + + + + //apple_ref/c/econst/KSYTranscodeErrorCode_Transcoding_Failed + 转码过程中出现错误 + KSYTranscodeErrorCode_Transcoding_Failed + + KSYTranscoder.h diff --git a/doc/docset/Contents/Resources/Tokens75.xml b/doc/docset/Contents/Resources/Tokens75.xml index 1f96e78..1181aa0 100644 --- a/doc/docset/Contents/Resources/Tokens75.xml +++ b/doc/docset/Contents/Resources/Tokens75.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSYVideoDimension - 采集分辨率 - KSYTypeDef.h + //apple_ref/c/tdef/KSYTranscodeState + 转码状态 + KSYTranscoder.h @@ -14,81 +14,41 @@ - //apple_ref/c/econst/KSYVideoDimension_16_9__1280x720 - 16 : 9 宽高比,1280 x 720 分辨率 - KSYVideoDimension_16_9__1280x720 + //apple_ref/c/econst/KSYTranscodeState_Idle + 初始状态 + KSYTranscodeState_Idle - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoDimension_16_9__960x540 - 16 : 9 宽高比,960 x 540 分辨率 - KSYVideoDimension_16_9__960x540 + //apple_ref/c/econst/KSYTranscodeState_Transcoding + 转码中 + KSYTranscodeState_Transcoding - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoDimension_4_3__640x480 - 4 : 3 宽高比,640 x 480 分辨率 - KSYVideoDimension_4_3__640x480 + //apple_ref/c/econst/KSYTranscodeState_Completed + 转码完成 + KSYTranscodeState_Completed - KSYTypeDef.h + KSYTranscoder.h - //apple_ref/c/econst/KSYVideoDimension_16_9__640x360 - 16 : 9 宽高比,640 x 360 分辨率 - KSYVideoDimension_16_9__640x360 + //apple_ref/c/econst/KSYTranscodeState_Error + 转码失败 + KSYTranscodeState_Error - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYVideoDimension_5_4__352x288 - 4 : 3 宽高比,320 x 240 分辨率 - KSYVideoDimension_5_4__352x288 - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYVideoDimension_UserDefine_Scale - 缩放自定义分辨率 从设备支持的最近分辨率缩放获得, 若设备没有对应宽高比的分辨率,则裁剪后进行缩放 - KSYVideoDimension_UserDefine_Scale - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYVideoDimension_UserDefine_Crop - 裁剪自定义分辨率 从设备支持的最近分辨率裁剪获得 - KSYVideoDimension_UserDefine_Crop - - KSYTypeDef.h - - - - - - //apple_ref/c/econst/KSYVideoDimension_Default - 默认分辨率,默认为 4 : 3 宽高比,640 x 480 分辨率 - KSYVideoDimension_Default - - KSYTypeDef.h + KSYTranscoder.h diff --git a/doc/docset/Contents/Resources/Tokens76.xml b/doc/docset/Contents/Resources/Tokens76.xml index 87eb60b..d37d46f 100644 --- a/doc/docset/Contents/Resources/Tokens76.xml +++ b/doc/docset/Contents/Resources/Tokens76.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/KSYVideoEncodePerformance - 视频编码性能档次 (视频质量 和 设备资源之间的权衡) + //apple_ref/c/tdef/KSYVideoCodec + 视频编码器类型 KSYTypeDef.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/KSYVideoEncodePer_LowPower - 低功耗: cpu资源消耗低一些,视频质量差一些 - KSYVideoEncodePer_LowPower + //apple_ref/c/econst/KSYVideoCodec_X264 + 视频编码器 - h264 软件编码器 + KSYVideoCodec_X264 KSYTypeDef.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/KSYVideoEncodePer_Balance - 均衡档次: 性价比比较高 - KSYVideoEncodePer_Balance + //apple_ref/c/econst/KSYVideoCodec_QY265 + 视频编码器 - KSY265 软件编码器 + KSYVideoCodec_QY265 KSYTypeDef.h @@ -34,9 +34,39 @@ - //apple_ref/c/econst/KSYVideoEncodePer_HighPerformance - 高性能: 画面质量高 - KSYVideoEncodePer_HighPerformance + //apple_ref/c/econst/KSYVideoCodec_VT264 + 视频编码器 - iOS VT264硬件编码器 (iOS 8.0以上支持) + KSYVideoCodec_VT264 + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoCodec_VT265 + 视频编码器 - iOS VT265硬件编码器 (iOS 11.0 以上) + KSYVideoCodec_VT265 + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoCodec_AUTO + 视频编码器 - 由SDK自动选择( VT264 > X264) + KSYVideoCodec_AUTO + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoCodec_GIF + 视频编码器 - gif + KSYVideoCodec_GIF KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens77.xml b/doc/docset/Contents/Resources/Tokens77.xml index 7947670..88e271d 100644 --- a/doc/docset/Contents/Resources/Tokens77.xml +++ b/doc/docset/Contents/Resources/Tokens77.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/KSY_NETTRACKER_ACTION - 探测方式 - KSYNetTracker.h + //apple_ref/c/tdef/KSYVideoDimension + 采集分辨率 + KSYTypeDef.h @@ -14,21 +14,81 @@ - //apple_ref/c/econst/KSY_NETTRACKER_ACTION_MTR - mtr方式,探测链路上每个节点 - KSY_NETTRACKER_ACTION_MTR + //apple_ref/c/econst/KSYVideoDimension_16_9__1280x720 + 16 : 9 宽高比,1280 x 720 分辨率 + KSYVideoDimension_16_9__1280x720 - KSYNetTracker.h + KSYTypeDef.h - //apple_ref/c/econst/KSY_NETTRACKER_ACTION_PING - ping方式,直接探测终点 - KSY_NETTRACKER_ACTION_PING + //apple_ref/c/econst/KSYVideoDimension_16_9__960x540 + 16 : 9 宽高比,960 x 540 分辨率 + KSYVideoDimension_16_9__960x540 - KSYNetTracker.h + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_4_3__640x480 + 4 : 3 宽高比,640 x 480 分辨率 + KSYVideoDimension_4_3__640x480 + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_16_9__640x360 + 16 : 9 宽高比,640 x 360 分辨率 + KSYVideoDimension_16_9__640x360 + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_5_4__352x288 + 4 : 3 宽高比,320 x 240 分辨率 + KSYVideoDimension_5_4__352x288 + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_UserDefine_Scale + 缩放自定义分辨率 从设备支持的最近分辨率缩放获得, 若设备没有对应宽高比的分辨率,则裁剪后进行缩放 + KSYVideoDimension_UserDefine_Scale + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_UserDefine_Crop + 裁剪自定义分辨率 从设备支持的最近分辨率裁剪获得 + KSYVideoDimension_UserDefine_Crop + + KSYTypeDef.h + + + + + + //apple_ref/c/econst/KSYVideoDimension_Default + 默认分辨率,默认为 4 : 3 宽高比,640 x 480 分辨率 + KSYVideoDimension_Default + + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens78.xml b/doc/docset/Contents/Resources/Tokens78.xml index 3333739..92b2f62 100644 --- a/doc/docset/Contents/Resources/Tokens78.xml +++ b/doc/docset/Contents/Resources/Tokens78.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/MEDIAINFO_CODEC_ID - 音视频格式 - KSYMediaInfo.h + //apple_ref/c/tdef/KSYVideoEncodePerformance + 视频编码性能档次 (视频质量 和 设备资源之间的权衡) + KSYTypeDef.h @@ -14,151 +14,31 @@ - //apple_ref/c/econst/MEDIAINFO_CODEC_ID_UNKNOWN - 未知的音视频编码格式 - MEDIAINFO_CODEC_ID_UNKNOWN + //apple_ref/c/econst/KSYVideoEncodePer_LowPower + 低功耗: cpu资源消耗低一些,视频质量差一些 + KSYVideoEncodePer_LowPower - KSYMediaInfo.h + KSYTypeDef.h - //apple_ref/c/econst/MEDIAINFO_CODEC_MPEG2VIDEO - 视频编码格式MPEG2 - MEDIAINFO_CODEC_MPEG2VIDEO + //apple_ref/c/econst/KSYVideoEncodePer_Balance + 均衡档次: 性价比比较高 + KSYVideoEncodePer_Balance - KSYMediaInfo.h + KSYTypeDef.h - //apple_ref/c/econst/MEDIAINFO_CODEC_MPEG4 - 视频编码格式MPEG4 - MEDIAINFO_CODEC_MPEG4 + //apple_ref/c/econst/KSYVideoEncodePer_HighPerformance + 高性能: 画面质量高 + KSYVideoEncodePer_HighPerformance - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_MJPEG - 视频编码格式MJPEG - MEDIAINFO_CODEC_MJPEG - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_JPEG2000 - 视频编码格式JPEG2000 - MEDIAINFO_CODEC_JPEG2000 - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_H264 - 视频编码格式H264 - MEDIAINFO_CODEC_H264 - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_HEVC - 视频编码格式HEVC - MEDIAINFO_CODEC_HEVC - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_VC1 - 视频编码格式VC1 - MEDIAINFO_CODEC_VC1 - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_ID_FIRST_AUDIO - 首个音频编码格式定义(不对应具体的编码格式) - MEDIAINFO_CODEC_ID_FIRST_AUDIO - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_AAC - 音频编码格式AAC - MEDIAINFO_CODEC_AAC - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_AC3 - 音频编码格式AC3 - MEDIAINFO_CODEC_AC3 - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_MP3 - 音频编码格式MP3 - MEDIAINFO_CODEC_MP3 - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_PCM - 音频编码格式PCM - MEDIAINFO_CODEC_PCM - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_DTS - 音频编码格式DTS - MEDIAINFO_CODEC_DTS - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_CODEC_NELLYMOSER - 音频编码格式NELLYMOSER - MEDIAINFO_CODEC_NELLYMOSER - - KSYMediaInfo.h + KSYTypeDef.h diff --git a/doc/docset/Contents/Resources/Tokens79.xml b/doc/docset/Contents/Resources/Tokens79.xml index aa17022..bf64d84 100644 --- a/doc/docset/Contents/Resources/Tokens79.xml +++ b/doc/docset/Contents/Resources/Tokens79.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/MEDIAINFO_MUX_TYPE - 封装格式 - KSYMediaInfo.h + //apple_ref/c/tdef/KSY_NETTRACKER_ACTION + 探测方式 + KSYNetTracker.h @@ -14,131 +14,21 @@ - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_UNKNOWN - 未知的文件封装格式 - MEDIAINFO_MUXTYPE_UNKNOWN + //apple_ref/c/econst/KSY_NETTRACKER_ACTION_MTR + mtr方式,探测链路上每个节点 + KSY_NETTRACKER_ACTION_MTR - KSYMediaInfo.h + KSYNetTracker.h - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MP2T - 封装格式为TS - MEDIAINFO_MUXTYPE_MP2T + //apple_ref/c/econst/KSY_NETTRACKER_ACTION_PING + ping方式,直接探测终点 + KSY_NETTRACKER_ACTION_PING - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MOV - 封装格式为MOV - MEDIAINFO_MUXTYPE_MOV - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_AVI - 封装格式为AVI - MEDIAINFO_MUXTYPE_AVI - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_FLV - 封装格式为FLV - MEDIAINFO_MUXTYPE_FLV - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MKV - 封装格式为MKV - MEDIAINFO_MUXTYPE_MKV - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_ASF - 封装格式为ASF - MEDIAINFO_MUXTYPE_ASF - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_RM - 封装格式为RM - MEDIAINFO_MUXTYPE_RM - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_WAV - 封装格式为WAV - MEDIAINFO_MUXTYPE_WAV - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_OGG - 封装格式为OGG - MEDIAINFO_MUXTYPE_OGG - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_APE - 封装格式为APE - MEDIAINFO_MUXTYPE_APE - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_RAWVIDEO - 封装格式为RAWVIDEO - MEDIAINFO_MUXTYPE_RAWVIDEO - - KSYMediaInfo.h - - - - - - //apple_ref/c/econst/MEDIAINFO_MUXTYPE_HLS - 封装格式为HLS - MEDIAINFO_MUXTYPE_HLS - - KSYMediaInfo.h + KSYNetTracker.h diff --git a/doc/docset/Contents/Resources/Tokens8.xml b/doc/docset/Contents/Resources/Tokens8.xml index 88c11d1..7ca7d8b 100644 --- a/doc/docset/Contents/Resources/Tokens8.xml +++ b/doc/docset/Contents/Resources/Tokens8.xml @@ -45,6 +45,29 @@ + + //apple_ref/occ/instm/KSYAudioMixer/setMixVolume:rightVolume:of: + 设置立体声混音音量(默认音量为1.0),如果设置的单声道输出,则使用leftVolume进行处理 + KSYAudioMixer.h + + - (BOOL)setMixVolume:(float)leftVolume rightVolume:(float)rightVolume of:(int)trackId + + + leftVolume + 左声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大) + + rightVolume + 右声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大) + + trackId + 设置对应track的 + + + NO为设置失败,如track不存在,或vol超出范围 + //api/name/setMixVolume:rightVolume:of: + + + //apple_ref/occ/instm/KSYAudioMixer/getMixVolume: 查询track的音量 @@ -63,6 +86,30 @@ + + //apple_ref/occ/instm/KSYAudioMixer/getMixVolume:rightVolume:of: + 查询track的音量, + KSYAudioMixer.h + + - (void)getMixVolume:(float *)leftVolume rightVolume:(float *)rightVolume of:(int)trackId + + + leftVolume + 左声道音量比例 + + rightVolume + 右音量比例 + + trackId + 设置对应track的 + + + 负数为查询失败,如track不存在 +* + //api/name/getMixVolume:rightVolume:of: + + + //apple_ref/occ/instm/KSYAudioMixer/setTrack:enable: 开启/关闭一路声音 diff --git a/doc/docset/Contents/Resources/Tokens80.xml b/doc/docset/Contents/Resources/Tokens80.xml index 50dffcb..730763e 100644 --- a/doc/docset/Contents/Resources/Tokens80.xml +++ b/doc/docset/Contents/Resources/Tokens80.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/MEDIAINFO_SAMPLE_FMT - 音频采样格式 + //apple_ref/c/tdef/MEDIAINFO_CODEC_ID + 音视频格式 KSYMediaInfo.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_UNKNOWN - 未知的音频采样格式 - MEDIAINFO_SAMPLE_FMT_UNKNOWN + //apple_ref/c/econst/MEDIAINFO_CODEC_ID_UNKNOWN + 未知的音视频编码格式 + MEDIAINFO_CODEC_ID_UNKNOWN KSYMediaInfo.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_U8 - 音频采样格式为unsigned 8 bits - MEDIAINFO_SAMPLE_FMT_U8 + //apple_ref/c/econst/MEDIAINFO_CODEC_MPEG2VIDEO + 视频编码格式MPEG2 + MEDIAINFO_CODEC_MPEG2VIDEO KSYMediaInfo.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S16 - 音频采样格式为signed 16 bits - MEDIAINFO_SAMPLE_FMT_S16 + //apple_ref/c/econst/MEDIAINFO_CODEC_MPEG4 + 视频编码格式MPEG4 + MEDIAINFO_CODEC_MPEG4 KSYMediaInfo.h @@ -44,9 +44,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S32 - 音频采样格式为signed 32 bits - MEDIAINFO_SAMPLE_FMT_S32 + //apple_ref/c/econst/MEDIAINFO_CODEC_MJPEG + 视频编码格式MJPEG + MEDIAINFO_CODEC_MJPEG KSYMediaInfo.h @@ -54,9 +54,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_FLT - 音频采样格式为float - MEDIAINFO_SAMPLE_FMT_FLT + //apple_ref/c/econst/MEDIAINFO_CODEC_JPEG2000 + 视频编码格式JPEG2000 + MEDIAINFO_CODEC_JPEG2000 KSYMediaInfo.h @@ -64,9 +64,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_DBL - 音频采样格式为double - MEDIAINFO_SAMPLE_FMT_DBL + //apple_ref/c/econst/MEDIAINFO_CODEC_H264 + 视频编码格式H264 + MEDIAINFO_CODEC_H264 KSYMediaInfo.h @@ -74,9 +74,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_U8P - 音频采样格式为unsigned 8 bits, planar - MEDIAINFO_SAMPLE_FMT_U8P + //apple_ref/c/econst/MEDIAINFO_CODEC_HEVC + 视频编码格式HEVC + MEDIAINFO_CODEC_HEVC KSYMediaInfo.h @@ -84,9 +84,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S16P - 音频采样格式为signed 16 bits, planar - MEDIAINFO_SAMPLE_FMT_S16P + //apple_ref/c/econst/MEDIAINFO_CODEC_VC1 + 视频编码格式VC1 + MEDIAINFO_CODEC_VC1 KSYMediaInfo.h @@ -94,9 +94,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S32P - 音频采样格式为signed 32 bits, planar - MEDIAINFO_SAMPLE_FMT_S32P + //apple_ref/c/econst/MEDIAINFO_CODEC_ID_FIRST_AUDIO + 首个音频编码格式定义(不对应具体的编码格式) + MEDIAINFO_CODEC_ID_FIRST_AUDIO KSYMediaInfo.h @@ -104,9 +104,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_FLTP - 音频采样格式为float, planar - MEDIAINFO_SAMPLE_FMT_FLTP + //apple_ref/c/econst/MEDIAINFO_CODEC_AAC + 音频编码格式AAC + MEDIAINFO_CODEC_AAC KSYMediaInfo.h @@ -114,9 +114,9 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_DBLP - 音频采样格式为double, planar - MEDIAINFO_SAMPLE_FMT_DBLP + //apple_ref/c/econst/MEDIAINFO_CODEC_AC3 + 音频编码格式AC3 + MEDIAINFO_CODEC_AC3 KSYMediaInfo.h @@ -124,9 +124,39 @@ - //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_NB - 音频采样格式为Number of sample formats - MEDIAINFO_SAMPLE_FMT_NB + //apple_ref/c/econst/MEDIAINFO_CODEC_MP3 + 音频编码格式MP3 + MEDIAINFO_CODEC_MP3 + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_CODEC_PCM + 音频编码格式PCM + MEDIAINFO_CODEC_PCM + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_CODEC_DTS + 音频编码格式DTS + MEDIAINFO_CODEC_DTS + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_CODEC_NELLYMOSER + 音频编码格式NELLYMOSER + MEDIAINFO_CODEC_NELLYMOSER KSYMediaInfo.h diff --git a/doc/docset/Contents/Resources/Tokens81.xml b/doc/docset/Contents/Resources/Tokens81.xml index 6f1d7a5..524bee5 100644 --- a/doc/docset/Contents/Resources/Tokens81.xml +++ b/doc/docset/Contents/Resources/Tokens81.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/MPMovieAudioPan - 立体声平衡 - KSYMoviePlayerDefines.h + //apple_ref/c/tdef/MEDIAINFO_MUX_TYPE + 封装格式 + KSYMediaInfo.h @@ -14,31 +14,131 @@ - //apple_ref/c/econst/MPMovieAudioPan_Left - 完全左声道 - MPMovieAudioPan_Left + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_UNKNOWN + 未知的文件封装格式 + MEDIAINFO_MUXTYPE_UNKNOWN - KSYMoviePlayerDefines.h + KSYMediaInfo.h - //apple_ref/c/econst/MPMovieAudioPan_Stereo - 左右声道平衡 - MPMovieAudioPan_Stereo + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MP2T + 封装格式为TS + MEDIAINFO_MUXTYPE_MP2T - KSYMoviePlayerDefines.h + KSYMediaInfo.h - //apple_ref/c/econst/MPMovieAudioPan_Right - 完全右声道 - MPMovieAudioPan_Right + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MOV + 封装格式为MOV + MEDIAINFO_MUXTYPE_MOV - KSYMoviePlayerDefines.h + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_AVI + 封装格式为AVI + MEDIAINFO_MUXTYPE_AVI + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_FLV + 封装格式为FLV + MEDIAINFO_MUXTYPE_FLV + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_MKV + 封装格式为MKV + MEDIAINFO_MUXTYPE_MKV + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_ASF + 封装格式为ASF + MEDIAINFO_MUXTYPE_ASF + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_RM + 封装格式为RM + MEDIAINFO_MUXTYPE_RM + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_WAV + 封装格式为WAV + MEDIAINFO_MUXTYPE_WAV + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_OGG + 封装格式为OGG + MEDIAINFO_MUXTYPE_OGG + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_APE + 封装格式为APE + MEDIAINFO_MUXTYPE_APE + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_RAWVIDEO + 封装格式为RAWVIDEO + MEDIAINFO_MUXTYPE_RAWVIDEO + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_MUXTYPE_HLS + 封装格式为HLS + MEDIAINFO_MUXTYPE_HLS + + KSYMediaInfo.h diff --git a/doc/docset/Contents/Resources/Tokens82.xml b/doc/docset/Contents/Resources/Tokens82.xml index 775350a..3b15c99 100644 --- a/doc/docset/Contents/Resources/Tokens82.xml +++ b/doc/docset/Contents/Resources/Tokens82.xml @@ -1,11 +1,11 @@ - + - //apple_ref/c/tdef/MPMovieMetaType - Meta类型 - KSYMoviePlayerDefines.h + //apple_ref/c/tdef/MEDIAINFO_SAMPLE_FMT + 音频采样格式 + KSYMediaInfo.h @@ -14,41 +14,121 @@ - //apple_ref/c/econst/MPMovieMetaType_Media - 当前播放文件的Meta - MPMovieMetaType_Media + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_UNKNOWN + 未知的音频采样格式 + MEDIAINFO_SAMPLE_FMT_UNKNOWN - KSYMoviePlayerDefines.h + KSYMediaInfo.h - //apple_ref/c/econst/MPMovieMetaType_Video - 当前播放的视频Meta - MPMovieMetaType_Video + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_U8 + 音频采样格式为unsigned 8 bits + MEDIAINFO_SAMPLE_FMT_U8 - KSYMoviePlayerDefines.h + KSYMediaInfo.h - //apple_ref/c/econst/MPMovieMetaType_Audio - 当前播放的音频Meta - MPMovieMetaType_Audio + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S16 + 音频采样格式为signed 16 bits + MEDIAINFO_SAMPLE_FMT_S16 - KSYMoviePlayerDefines.h + KSYMediaInfo.h - //apple_ref/c/econst/MPMovieMetaType_Subtitle - 当前播放的字幕Meta - MPMovieMetaType_Subtitle + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S32 + 音频采样格式为signed 32 bits + MEDIAINFO_SAMPLE_FMT_S32 - KSYMoviePlayerDefines.h + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_FLT + 音频采样格式为float + MEDIAINFO_SAMPLE_FMT_FLT + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_DBL + 音频采样格式为double + MEDIAINFO_SAMPLE_FMT_DBL + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_U8P + 音频采样格式为unsigned 8 bits, planar + MEDIAINFO_SAMPLE_FMT_U8P + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S16P + 音频采样格式为signed 16 bits, planar + MEDIAINFO_SAMPLE_FMT_S16P + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_S32P + 音频采样格式为signed 32 bits, planar + MEDIAINFO_SAMPLE_FMT_S32P + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_FLTP + 音频采样格式为float, planar + MEDIAINFO_SAMPLE_FMT_FLTP + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_DBLP + 音频采样格式为double, planar + MEDIAINFO_SAMPLE_FMT_DBLP + + KSYMediaInfo.h + + + + + + //apple_ref/c/econst/MEDIAINFO_SAMPLE_FMT_NB + 音频采样格式为Number of sample formats + MEDIAINFO_SAMPLE_FMT_NB + + KSYMediaInfo.h diff --git a/doc/docset/Contents/Resources/Tokens83.xml b/doc/docset/Contents/Resources/Tokens83.xml index 1cbba5c..4cfcb96 100644 --- a/doc/docset/Contents/Resources/Tokens83.xml +++ b/doc/docset/Contents/Resources/Tokens83.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/MPMovieReloadMode - reload模式 + //apple_ref/c/tdef/MPMovieAudioPan + 立体声平衡 KSYMoviePlayerDefines.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/MPMovieReloadMode_Fast - 加速播放模式 - MPMovieReloadMode_Fast + //apple_ref/c/econst/MPMovieAudioPan_Left + 完全左声道 + MPMovieAudioPan_Left KSYMoviePlayerDefines.h @@ -24,9 +24,19 @@ - //apple_ref/c/econst/MPMovieReloadMode_Accurate - 精确检测模式 - MPMovieReloadMode_Accurate + //apple_ref/c/econst/MPMovieAudioPan_Stereo + 左右声道平衡 + MPMovieAudioPan_Stereo + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieAudioPan_Right + 完全右声道 + MPMovieAudioPan_Right KSYMoviePlayerDefines.h diff --git a/doc/docset/Contents/Resources/Tokens84.xml b/doc/docset/Contents/Resources/Tokens84.xml index 94a151f..0266a0e 100644 --- a/doc/docset/Contents/Resources/Tokens84.xml +++ b/doc/docset/Contents/Resources/Tokens84.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/MPMovieStatus - status类型 + //apple_ref/c/tdef/MPMovieMetaType + Meta类型 KSYMoviePlayerDefines.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/MPMovieStatusVideoDecodeWrong - 视频解码出错 - MPMovieStatusVideoDecodeWrong + //apple_ref/c/econst/MPMovieMetaType_Media + 当前播放文件的Meta + MPMovieMetaType_Media KSYMoviePlayerDefines.h @@ -24,9 +24,9 @@ - //apple_ref/c/econst/MPMovieStatusAudioDecodeWrong - 音频解码出错 - MPMovieStatusAudioDecodeWrong + //apple_ref/c/econst/MPMovieMetaType_Video + 当前播放的视频Meta + MPMovieMetaType_Video KSYMoviePlayerDefines.h @@ -34,9 +34,9 @@ - //apple_ref/c/econst/MPMovieStatusHWCodecUsed - 使用硬件解码 - MPMovieStatusHWCodecUsed + //apple_ref/c/econst/MPMovieMetaType_Audio + 当前播放的音频Meta + MPMovieMetaType_Audio KSYMoviePlayerDefines.h @@ -44,19 +44,9 @@ - //apple_ref/c/econst/MPMovieStatusSWCodecUsed - 使用软件解码 - MPMovieStatusSWCodecUsed - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/MPMovieStatusDLCodecUsed - 使用AVSampleBufferDisplayLayer解码渲染 - MPMovieStatusDLCodecUsed + //apple_ref/c/econst/MPMovieMetaType_Subtitle + 当前播放的字幕Meta + MPMovieMetaType_Subtitle KSYMoviePlayerDefines.h diff --git a/doc/docset/Contents/Resources/Tokens85.xml b/doc/docset/Contents/Resources/Tokens85.xml index c1487e0..ccc9195 100644 --- a/doc/docset/Contents/Resources/Tokens85.xml +++ b/doc/docset/Contents/Resources/Tokens85.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/MPMovieVideoDecoderMode - 视频解码模式 + //apple_ref/c/tdef/MPMovieReloadMode + reload模式 KSYMoviePlayerDefines.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/MPMovieVideoDecoderMode_Software - 视频解码方式采用软解 - MPMovieVideoDecoderMode_Software + //apple_ref/c/econst/MPMovieReloadMode_Fast + 加速播放模式 + MPMovieReloadMode_Fast KSYMoviePlayerDefines.h @@ -24,29 +24,9 @@ - //apple_ref/c/econst/MPMovieVideoDecoderMode_Hardware - 视频解码方式采用硬解 - MPMovieVideoDecoderMode_Hardware - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/MPMovieVideoDecoderMode_AUTO - 自动选择解码方式,8.0以上的系统优先选择硬解 - MPMovieVideoDecoderMode_AUTO - - KSYMoviePlayerDefines.h - - - - - - //apple_ref/c/econst/MPMovieVideoDecoderMode_DisplayLayer - 使用系统接口进行解码和渲染,只适用于8.0及以上系统,低于8.0的系统自动使用软解 - MPMovieVideoDecoderMode_DisplayLayer + //apple_ref/c/econst/MPMovieReloadMode_Accurate + 精确检测模式 + MPMovieReloadMode_Accurate KSYMoviePlayerDefines.h diff --git a/doc/docset/Contents/Resources/Tokens86.xml b/doc/docset/Contents/Resources/Tokens86.xml index 30a1f3f..ee65e24 100644 --- a/doc/docset/Contents/Resources/Tokens86.xml +++ b/doc/docset/Contents/Resources/Tokens86.xml @@ -1,10 +1,10 @@ - + - //apple_ref/c/tdef/MPMovieVideoDeinterlaceMode - 视频反交错模式 + //apple_ref/c/tdef/MPMovieStatus + status类型 KSYMoviePlayerDefines.h @@ -14,9 +14,9 @@ - //apple_ref/c/econst/MPMovieVideoDeinterlaceMode_None - 关闭反交错 - MPMovieVideoDeinterlaceMode_None + //apple_ref/c/econst/MPMovieStatusVideoDecodeWrong + 视频解码出错 + MPMovieStatusVideoDecodeWrong KSYMoviePlayerDefines.h @@ -24,9 +24,39 @@ - //apple_ref/c/econst/MPMovieVideoDeinterlaceMode_Auto - 自动判断是否打开反交错 - MPMovieVideoDeinterlaceMode_Auto + //apple_ref/c/econst/MPMovieStatusAudioDecodeWrong + 音频解码出错 + MPMovieStatusAudioDecodeWrong + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieStatusHWCodecUsed + 使用硬件解码 + MPMovieStatusHWCodecUsed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieStatusSWCodecUsed + 使用软件解码 + MPMovieStatusSWCodecUsed + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieStatusDLCodecUsed + 使用AVSampleBufferDisplayLayer解码渲染 + MPMovieStatusDLCodecUsed KSYMoviePlayerDefines.h diff --git a/doc/docset/Contents/Resources/Tokens87.xml b/doc/docset/Contents/Resources/Tokens87.xml index 3fc40be..e8edfc0 100644 --- a/doc/docset/Contents/Resources/Tokens87.xml +++ b/doc/docset/Contents/Resources/Tokens87.xml @@ -1,8 +1,57 @@ - + + + //apple_ref/c/tdef/MPMovieVideoDecoderMode + 视频解码模式 + KSYMoviePlayerDefines.h + + + + + + + + //apple_ref/c/econst/MPMovieVideoDecoderMode_Software + 视频解码方式采用软解 + MPMovieVideoDecoderMode_Software + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieVideoDecoderMode_Hardware + 视频解码方式采用硬解 + MPMovieVideoDecoderMode_Hardware + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieVideoDecoderMode_AUTO + 自动选择解码方式,8.0以上的系统优先选择硬解 + MPMovieVideoDecoderMode_AUTO + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieVideoDecoderMode_DisplayLayer + 使用系统接口进行解码和渲染,只适用于8.0及以上系统,低于8.0的系统自动使用软解 + MPMovieVideoDecoderMode_DisplayLayer + + KSYMoviePlayerDefines.h + + + diff --git a/doc/docset/Contents/Resources/Tokens88.xml b/doc/docset/Contents/Resources/Tokens88.xml index 3fc40be..2ff6ac2 100644 --- a/doc/docset/Contents/Resources/Tokens88.xml +++ b/doc/docset/Contents/Resources/Tokens88.xml @@ -1,8 +1,37 @@ - + + + //apple_ref/c/tdef/MPMovieVideoDeinterlaceMode + 视频反交错模式 + KSYMoviePlayerDefines.h + + + + + + + + //apple_ref/c/econst/MPMovieVideoDeinterlaceMode_None + 关闭反交错 + MPMovieVideoDeinterlaceMode_None + + KSYMoviePlayerDefines.h + + + + + + //apple_ref/c/econst/MPMovieVideoDeinterlaceMode_Auto + 自动判断是否打开反交错 + MPMovieVideoDeinterlaceMode_Auto + + KSYMoviePlayerDefines.h + + + diff --git a/doc/docset/Contents/Resources/Tokens94.xml b/doc/docset/Contents/Resources/Tokens94.xml new file mode 100644 index 0000000..3fc40be --- /dev/null +++ b/doc/docset/Contents/Resources/Tokens94.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/doc/docset/Contents/Resources/Tokens95.xml b/doc/docset/Contents/Resources/Tokens95.xml new file mode 100644 index 0000000..3fc40be --- /dev/null +++ b/doc/docset/Contents/Resources/Tokens95.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/doc/docset/Contents/Resources/docSet.dsidx b/doc/docset/Contents/Resources/docSet.dsidx index c9454a9..99db3b5 100644 Binary files a/doc/docset/Contents/Resources/docSet.dsidx and b/doc/docset/Contents/Resources/docSet.dsidx differ diff --git a/doc/docset/Contents/Resources/docSet.dsidx-shm b/doc/docset/Contents/Resources/docSet.dsidx-shm index ac3fc62..88d1b32 100644 Binary files a/doc/docset/Contents/Resources/docSet.dsidx-shm and b/doc/docset/Contents/Resources/docSet.dsidx-shm differ diff --git a/doc/docset/Contents/Resources/docSet.dsidx-wal b/doc/docset/Contents/Resources/docSet.dsidx-wal index 11f39fe..0177d81 100644 Binary files a/doc/docset/Contents/Resources/docSet.dsidx-wal and b/doc/docset/Contents/Resources/docSet.dsidx-wal differ diff --git a/doc/docset/Contents/Resources/docSet.skidx b/doc/docset/Contents/Resources/docSet.skidx index 5efe96b..de3e0c1 100644 Binary files a/doc/docset/Contents/Resources/docSet.skidx and b/doc/docset/Contents/Resources/docSet.skidx differ diff --git a/doc/docset/Contents/Resources/docSet.toc b/doc/docset/Contents/Resources/docSet.toc index 3da3120..fddefed 100644 Binary files a/doc/docset/Contents/Resources/docSet.toc and b/doc/docset/Contents/Resources/docSet.toc differ diff --git a/doc/docset/Contents/Resources/docSet.tokencache b/doc/docset/Contents/Resources/docSet.tokencache index 39b1e49..e64b03a 100644 Binary files a/doc/docset/Contents/Resources/docSet.tokencache and b/doc/docset/Contents/Resources/docSet.tokencache differ diff --git a/doc/html/Classes/KSYAudioMixer.html b/doc/html/Classes/KSYAudioMixer.html index 4da9c32..ca32a2b 100644 --- a/doc/html/Classes/KSYAudioMixer.html +++ b/doc/html/Classes/KSYAudioMixer.html @@ -84,6 +84,8 @@

    + + @@ -92,6 +94,8 @@

    + + @@ -256,6 +260,80 @@

    Discussion

    +
    +

    Declared In

    +

    KSYAudioMixer.h

    +
    + + +
    +
    +
    + +

    – setMixVolume:rightVolume:of: +

    + +
    +
    + +
    + + +
    +

    设置立体声混音音量(默认音量为1.0),如果设置的单声道输出,则使用leftVolume进行处理

    +
    + + + +
    - (BOOL)setMixVolume:(float)leftVolume rightVolume:(float)rightVolume of:(int)trackId
    + + + +
    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    leftVolume

    左声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大)

    rightVolume

    右声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大)

    trackId

    设置对应track的

    +
    + + + +
    +

    Return Value

    +

    NO为设置失败,如track不存在,或vol超出范围

    +
    + + + + + +
    +

    Discussion

    +

    Warning: 设置放大的音量可能会出现爆音, 请注意 +*

    +
    + + + + + + +

    Declared In

    KSYAudioMixer.h

    @@ -315,6 +393,75 @@

    Return Value

    +
    +

    Declared In

    +

    KSYAudioMixer.h

    +
    + + +
    +
    +
    + +

    – getMixVolume:rightVolume:of: +

    + +
    +
    + +
    + + +
    +

    查询track的音量,

    +
    + + + +
    - (void)getMixVolume:(float *)leftVolume rightVolume:(float *)rightVolume of:(int)trackId
    + + + +
    +

    Parameters

    + + + + + + + + + + + + + + + + + +
    leftVolume

    左声道音量比例

    rightVolume

    右音量比例

    trackId

    设置对应track的

    +
    + + + +
    +

    Return Value

    +

    负数为查询失败,如track不存在 +*

    +
    + + + + + + + + + + +

    Declared In

    KSYAudioMixer.h

    diff --git a/doc/html/Classes/KSYClipWriter.html b/doc/html/Classes/KSYClipWriter.html index 85c3526..ad6e800 100644 --- a/doc/html/Classes/KSYClipWriter.html +++ b/doc/html/Classes/KSYClipWriter.html @@ -80,6 +80,8 @@

    + + @@ -932,6 +934,52 @@

      bWit +
    +

    Declared In

    +

    KSYClipWriter.h

    +
    + + +

    +
    +
    + +

      mp4FastStart +

    + +
    +
    + +
    + + +
    +

    mp4文件允许快速启动 (默认YES)

    +
    + + + +
    @property (nonatomic, assign) BOOL mp4FastStart
    + + + + + + + + + +
    +

    Discussion

    +

    mp4格式的文件中将moov等index信息放到文件开头

    Warning: 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项

    +
    + + + + + + +

    Declared In

    KSYClipWriter.h

    diff --git a/doc/html/Classes/KSYGPUBgpStreamerKit.html b/doc/html/Classes/KSYGPUBgpStreamerKit.html index a2ab6c3..ede2541 100644 --- a/doc/html/Classes/KSYGPUBgpStreamerKit.html +++ b/doc/html/Classes/KSYGPUBgpStreamerKit.html @@ -90,10 +90,6 @@

    - - - - @@ -351,98 +347,6 @@

    Discussion

    -
    -

    Declared In

    -

    KSYGPUBgpStreamerKit.h

    -
    - - -
    -
    -
    - -

      vPreviewMixer -

    - -
    -
    - -
    - - -
    -

    图像混合器 for 预览

    -
    - - - -
    @property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer
    - - - - - - - - - -
    -

    Discussion

    -

    将多图层的内容叠加

    -
    - - - - - - - -
    -

    Declared In

    -

    KSYGPUBgpStreamerKit.h

    -
    - - -
    -
    -
    - -

      vStreamMixer -

    - -
    -
    - -
    - - -
    -

    图像混合器 for 推流

    -
    - - - -
    @property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer
    - - - - - - - - - -
    -

    Discussion

    -

    将多图层的内容叠加

    -
    - - - - - - -

    Declared In

    KSYGPUBgpStreamerKit.h

    diff --git a/doc/html/Classes/KSYMvEffect.html b/doc/html/Classes/KSYMvEffect.html index d83e45f..264a96d 100644 --- a/doc/html/Classes/KSYMvEffect.html +++ b/doc/html/Classes/KSYMvEffect.html @@ -54,15 +54,19 @@

    + + + + + + - - - + @@ -120,8 +124,8 @@

    Overview

    +
    + +

    – closeMvFilter +

    + +
    +
    + +
    + + +
    +

    关闭mv filter

    +
    + + + +
    - (void)closeMvFilter
    diff --git a/doc/html/Classes/KSYShakeFilter.html b/doc/html/Classes/KSYShakeFilter.html new file mode 100644 index 0000000..f532f0a --- /dev/null +++ b/doc/html/Classes/KSYShakeFilter.html @@ -0,0 +1,200 @@ + + + + + + KSYShakeFilter Class Reference + + + + + + +
    +
    + +

    + KSYLive_iOS +

    + +

    + Kingsoft +

    + +
    +
    + + + +
    +
    +
    +
    +

    KSYShakeFilter Class Reference

    + + +
    + + + + + + + +
    Inherits fromKSYGPUFilter : GPUImageFilter
    Declared inKSYShakeFilter.h
    + + + + +
    + +

    Overview

    +

    KSYShakeFilter 画面抖动效果

    + +
      +
    • 类似抖音里放大抖动的效果
    • +
    + +
    + + + + + +
    + + + + + + +
    +
    + +

    – initWithType: +

    + +
    +
    + +
    + + +
    +

    创建抖动效果的滤镜

    +
    + + + +
    - (instancetype)initWithType:(KSYShakeType)type
    + + + +
    +

    Parameters

    + + + + + + + +
    type

    抖动效果的类型

    +
    + + + + + + + + + + + + + +
    +

    Declared In

    +

    KSYShakeFilter.h

    +
    + + +
    +
    +
    +
    + +
    + + + + + + +
    + + +
    +
    +
    + + + + diff --git a/doc/html/Classes/KSYStreamerBase.html b/doc/html/Classes/KSYStreamerBase.html index 43f6ea1..6d39cfc 100644 --- a/doc/html/Classes/KSYStreamerBase.html +++ b/doc/html/Classes/KSYStreamerBase.html @@ -68,6 +68,8 @@

    + + @@ -3327,6 +3329,52 @@

    See Also

    +
    +

    Declared In

    +

    KSYStreamerBase.h

    +
    + + +
    +
    +
    + +

      bypassMp4FastStart +

    + +
    +
    + +
    + + +
    +

    mp4文件允许快速启动 (默认NO)

    +
    + + + +
    @property (nonatomic, assign) BOOL bypassMp4FastStart
    + + + + + + + + + +
    +

    Discussion

    +

    mp4格式的文件中将moov等index信息放到文件开头

    开始录制前设置有效

    Warning: 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项

    +
    + + + + + + +

    Declared In

    KSYStreamerBase.h

    diff --git a/doc/html/Constants/KSYShakeType.html b/doc/html/Constants/KSYShakeType.html new file mode 100644 index 0000000..c7c6cd2 --- /dev/null +++ b/doc/html/Constants/KSYShakeType.html @@ -0,0 +1,175 @@ + + + + + + KSYShakeType Constants Reference + + + + + + +
    +
    + +

    + KSYLive_iOS +

    + +

    + Kingsoft +

    + +
    +
    + + + +
    +
    +
    +
    +

    KSYShakeType Constants Reference

    + + +
    + + + + +
    Declared inKSYShakeFilter.h
    + + + + + + + +

    KSYShakeType

    + + +
    +

    抖动类型

    +
    + + +
    + + +

    Definition

    + typedef NS_ENUM(NSInteger, KSYShakeType ) {
    + +    KSYShakeType_ZOOM = 0,
    + +    KSYShakeType_Color = 1,
    + + };
    + +
    + +
    +

    Constants

    +
    + +
    KSYShakeType_ZOOM
    +
    + + +

    放大抖动效果

    + + + + + + +

    + Declared In KSYShakeFilter.h. +

    + +
    + +
    KSYShakeType_Color
    +
    + + +

    彩色抖动效果

    + + + + + + +

    + Declared In KSYShakeFilter.h. +

    + +
    + +
    +
    + + + + + + + + +
    +

    Declared In

    +

    KSYShakeFilter.h

    +
    + + + + + +
    + + +
    +
    +
    + + + + diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index 8a37c95..419fb97 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -60,6 +60,8 @@

    Class Hierarchy

  • KSYGPUDnoiseFilter
  • +
  • KSYShakeFilter
  • + @@ -261,6 +263,8 @@

    Constant References

  • KSYRecordState
  • +
  • KSYShakeType
  • +
  • KSYStreamErrorCode
  • KSYStreamState
  • diff --git a/doc/html/index.html b/doc/html/index.html index 6d36961..7148b33 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -136,6 +136,8 @@

    Class References

  • KSYReachability
  • +
  • KSYShakeFilter
  • +
  • KSYSpecialEffects
  • KSYStreamerBase
  • @@ -203,6 +205,8 @@

    Constant References

  • KSYRecordState
  • +
  • KSYShakeType
  • +
  • KSYStreamErrorCode
  • KSYStreamState
  • diff --git a/libksygpulive.podspec b/libksygpulive.podspec index 109c34d..720c8e2 100644 --- a/libksygpulive.podspec +++ b/libksygpulive.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'libksygpulive' - s.version = '2.8.0' + s.version = '2.9.0' s.license = { :type => 'Proprietary', :text => <<-LICENSE diff --git a/prebuilt/include/KSYStreamer/KSYAudioMixer.h b/prebuilt/include/KSYStreamer/KSYAudioMixer.h index 754b3ee..c5b148f 100644 --- a/prebuilt/include/KSYStreamer/KSYAudioMixer.h +++ b/prebuilt/include/KSYStreamer/KSYAudioMixer.h @@ -38,6 +38,17 @@ - (BOOL) setMixVolume:(float) vol of:(int) trackId; +/** + @abstract 设置立体声混音音量(默认音量为1.0),如果设置的单声道输出,则使用leftVolume进行处理 + @param leftVolume 左声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大) + @param rightVolume 右声道音量比例(0.0~2.0) (<1.0 为缩小, > 1.0为放大) + @param trackId 设置对应track的 + @return NO为设置失败,如track不存在,或vol超出范围 + @warning 设置放大的音量可能会出现爆音, 请注意 + **/ +- (BOOL) setMixVolume:(float)leftVolume rightVolume:(float)rightVolume + of:(int)trackId; + /** @abstract 查询track的音量 @param trackId 设置对应track的 @@ -45,6 +56,16 @@ **/ - (float) getMixVolume:(int) trackId; +/** + @abstract 查询track的音量, + @param leftVolume 左声道音量比例 + @param rightVolume 右音量比例 + @param trackId 设置对应track的 + @return 负数为查询失败,如track不存在 + **/ +- (void) getMixVolume:(float *)leftVolume rightVolume:(float *)rightVolume + of:(int)trackId; + /** @abstract 开启/关闭一路声音 @param onOff 开关, 0号track默认开启 diff --git a/prebuilt/include/KSYStreamer/KSYClipWriter.h b/prebuilt/include/KSYStreamer/KSYClipWriter.h index 5100c02..65e587e 100644 --- a/prebuilt/include/KSYStreamer/KSYClipWriter.h +++ b/prebuilt/include/KSYStreamer/KSYClipWriter.h @@ -124,6 +124,13 @@ */ @property (nonatomic, assign) BOOL bWithAudio; +/** + @abstract mp4文件允许快速启动 (默认YES) + @discussion mp4格式的文件中将moov等index信息放到文件开头 + @warning 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项 + */ +@property (nonatomic, assign) BOOL mp4FastStart; + #pragma mark - Status Notification /** diff --git a/prebuilt/include/KSYStreamer/KSYMvEffect.h b/prebuilt/include/KSYStreamer/KSYMvEffect.h index 6b8a6ad..f0e3413 100644 --- a/prebuilt/include/KSYStreamer/KSYMvEffect.h +++ b/prebuilt/include/KSYStreamer/KSYMvEffect.h @@ -15,14 +15,15 @@ */ @interface KSYMvEffect : GPUImageFilter /** - @abstract 初始化并导入effectShader - @param NSString shader + 设置MV特效生成的时间 */ -- (id) initWithEffectShader:(NSString *)effectShader; +@property (nonatomic, assign) CGFloat timeInfo; /** - 关闭mv effect + @abstract 初始化并导入effectShader + @param shader字符串 片源着色器 + @param durTime MV特效持续时间 */ -- (void)closeMvEffect; +- (instancetype)initWithEffectShader:(NSString *)effectShader durationTime:(CGFloat)durTime; @end diff --git a/prebuilt/include/KSYStreamer/KSYMvFilter.h b/prebuilt/include/KSYStreamer/KSYMvFilter.h index cdd72ba..1835028 100644 --- a/prebuilt/include/KSYStreamer/KSYMvFilter.h +++ b/prebuilt/include/KSYStreamer/KSYMvFilter.h @@ -14,9 +14,6 @@ */ @interface KSYMvFilter : GPUImageFilterGroup - -@property (nonatomic, retain) GPUImageMovie *MvScreenSource; - /** 单个mp4 filter @@ -27,13 +24,23 @@ - (id)initWithPath:(NSURL *)mp4URL shouldRepeat:(BOOL)bRepeat; /** - 关闭mv filter + mv 播放暂停 */ -- (void)closeMvFilter; +-(void)MvPause; + +/** + mv 播放暂停恢复 + */ +-(void)MvResume; /** - @abstract mv播放结束回调函数 + 关闭mv filter */ -@property(nonatomic, copy) void(^mvPlayEndCallback)(); +- (void)closeMvFilter; + +///** +// @abstract mv播放结束回调函数 +// */ +//@property(nonatomic, copy) void(^mvPlayEndCallback)(); @end diff --git a/prebuilt/include/KSYStreamer/KSYShakeFilter.h b/prebuilt/include/KSYStreamer/KSYShakeFilter.h new file mode 100644 index 0000000..9afad81 --- /dev/null +++ b/prebuilt/include/KSYStreamer/KSYShakeFilter.h @@ -0,0 +1,32 @@ +// +// KSYMvEffect.h +// +// Created by gene on 16/8/17. +// Copyright © 2016年 Cell Phone. All rights reserved. +// + +#import +#import "KSYGPUFilter.h" + +/// 抖动类型 +typedef NS_ENUM(NSInteger, KSYShakeType) { + /// 放大抖动效果 + KSYShakeType_ZOOM = 0, + /// 彩色抖动效果 + KSYShakeType_Color = 1, +}; + +/** KSYShakeFilter 画面抖动效果 + + * 类似抖音里放大抖动的效果 + + */ +@interface KSYShakeFilter : KSYGPUFilter + +/** + @abstract 创建抖动效果的滤镜 + @param type 抖动效果的类型 + */ +- (instancetype)initWithType:(KSYShakeType) type; + +@end diff --git a/prebuilt/include/KSYStreamer/KSYStreamerBase.h b/prebuilt/include/KSYStreamer/KSYStreamerBase.h index 9d139f1..1c3f5ae 100644 --- a/prebuilt/include/KSYStreamer/KSYStreamerBase.h +++ b/prebuilt/include/KSYStreamer/KSYStreamerBase.h @@ -475,6 +475,14 @@ FOUNDATION_EXPORT NSString *const KSYNetStateEventNotification NS_AVAILABLE_IOS( */ @property (nonatomic, readonly) NSURL* bypassRecordURL; +/** + @abstract mp4文件允许快速启动 (默认NO) + @discussion mp4格式的文件中将moov等index信息放到文件开头 + @discussion 开始录制前设置有效 + @warning 启用此开关会在结束是对文件进行处理, 如果要长时间录制,请关闭本选项 + */ +@property (nonatomic, assign) BOOL bypassMp4FastStart; + /** @abstract 启动旁路录像 @param url 本地录像文件地址:/private/var/..../test.mp4 diff --git a/prebuilt/include/KSYStreamer/libksygpufilter.h b/prebuilt/include/KSYStreamer/libksygpufilter.h index 11a52c5..68fad3b 100644 --- a/prebuilt/include/KSYStreamer/libksygpufilter.h +++ b/prebuilt/include/KSYStreamer/libksygpufilter.h @@ -19,6 +19,7 @@ #import "KSYBuildInSpecialEffects.h" #import "KSYMvEffect.h" #import "KSYMvFilter.h" +#import "KSYShakeFilter.h" -#define KSYGPUFILTER_VER 2.8.0 -#define KSYGPUFILTER_ID 9391fe57c987493149de976acc9ff73efd531627 +#define KSYGPUFILTER_VER 2.9.0 +#define KSYGPUFILTER_ID 1d449e38d24532e1cbb2d55bb786d5a4e92f4edd diff --git a/prebuilt/include/KSYStreamer/libksystreamerbase.h b/prebuilt/include/KSYStreamer/libksystreamerbase.h index ce8d495..e03e0d8 100644 --- a/prebuilt/include/KSYStreamer/libksystreamerbase.h +++ b/prebuilt/include/KSYStreamer/libksystreamerbase.h @@ -14,5 +14,5 @@ #import "KSYMessage.h" #import "KSYTranscoder.h" -#define KSYSTREAMERBASE_VER 2.8.0 -#define KSYSTREAMERBASE_ID 1f73cc7e841a5e732946a3f7588d067bdeb5eee6 +#define KSYSTREAMERBASE_VER 2.9.0 +#define KSYSTREAMERBASE_ID f8ba28f22fdb0fc7836e745ffabc8c30f1f74524 diff --git a/prebuilt/include/KSYStreamer/libksystreamerengine.h b/prebuilt/include/KSYStreamer/libksystreamerengine.h index 339c944..399020c 100644 --- a/prebuilt/include/KSYStreamer/libksystreamerengine.h +++ b/prebuilt/include/KSYStreamer/libksystreamerengine.h @@ -33,6 +33,6 @@ // utils #import "KSYWeakProxy.h" -#define KSYSTREAMERENGINE_VER 2.8.0 -#define KSYSTREAMERENGINE_ID d292a58f293fdc69ef9ab40f7457344494bdd687 +#define KSYSTREAMERENGINE_VER 2.9.0 +#define KSYSTREAMERENGINE_ID 60aa82bf864f3394a49566cf1863d282dd7abaae diff --git a/prebuilt/libs/libksybase.a b/prebuilt/libs/libksybase.a new file mode 100644 index 0000000..5452e88 Binary files /dev/null and b/prebuilt/libs/libksybase.a differ diff --git a/prebuilt/libs/libksygpufilter.a b/prebuilt/libs/libksygpufilter.a new file mode 100644 index 0000000..87c8e26 Binary files /dev/null and b/prebuilt/libs/libksygpufilter.a differ diff --git a/prebuilt/libs/libksymediacodec.a b/prebuilt/libs/libksymediacodec.a new file mode 100644 index 0000000..2bf2beb Binary files /dev/null and b/prebuilt/libs/libksymediacodec.a differ diff --git a/prebuilt/libs/libksymediacore_dec.a b/prebuilt/libs/libksymediacore_dec.a new file mode 120000 index 0000000..d21b316 --- /dev/null +++ b/prebuilt/libs/libksymediacore_dec.a @@ -0,0 +1 @@ +libksymediacore_dec_lite.a \ No newline at end of file diff --git a/prebuilt/libs/libksymediacore_dec_lite.a b/prebuilt/libs/libksymediacore_dec_lite.a new file mode 100644 index 0000000..534c7c7 Binary files /dev/null and b/prebuilt/libs/libksymediacore_dec_lite.a differ diff --git a/prebuilt/libs/libksymediacore_dec_vod.a b/prebuilt/libs/libksymediacore_dec_vod.a new file mode 100644 index 0000000..b6d74f2 Binary files /dev/null and b/prebuilt/libs/libksymediacore_dec_vod.a differ diff --git a/prebuilt/libs/libksymediacore_enc.a b/prebuilt/libs/libksymediacore_enc.a new file mode 120000 index 0000000..a9b82af --- /dev/null +++ b/prebuilt/libs/libksymediacore_enc.a @@ -0,0 +1 @@ +libksymediacore_enc_lite.a \ No newline at end of file diff --git a/prebuilt/libs/libksymediacore_enc_265.a b/prebuilt/libs/libksymediacore_enc_265.a new file mode 100644 index 0000000..3585eba Binary files /dev/null and b/prebuilt/libs/libksymediacore_enc_265.a differ diff --git a/prebuilt/libs/libksymediacore_enc_base.a b/prebuilt/libs/libksymediacore_enc_base.a new file mode 100644 index 0000000..c1d43ed Binary files /dev/null and b/prebuilt/libs/libksymediacore_enc_base.a differ diff --git a/prebuilt/libs/libksymediacore_enc_lite.a b/prebuilt/libs/libksymediacore_enc_lite.a new file mode 100644 index 0000000..4fefcec Binary files /dev/null and b/prebuilt/libs/libksymediacore_enc_lite.a differ diff --git a/prebuilt/libs/libksyplayer.a b/prebuilt/libs/libksyplayer.a new file mode 100644 index 0000000..65688bb Binary files /dev/null and b/prebuilt/libs/libksyplayer.a differ diff --git a/prebuilt/libs/libksystreamerbase.a b/prebuilt/libs/libksystreamerbase.a new file mode 100644 index 0000000..dd0b9cd Binary files /dev/null and b/prebuilt/libs/libksystreamerbase.a differ diff --git a/prebuilt/libs/libksystreamerengine.a b/prebuilt/libs/libksystreamerengine.a new file mode 100644 index 0000000..0418187 Binary files /dev/null and b/prebuilt/libs/libksystreamerengine.a differ diff --git a/prebuilt/libs/libksyyuv.a b/prebuilt/libs/libksyyuv.a new file mode 100644 index 0000000..0ab6b3c Binary files /dev/null and b/prebuilt/libs/libksyyuv.a differ diff --git a/source/KSYGPUBgpStreamerKit.h b/source/KSYGPUBgpStreamerKit.h index c8511cc..b11e278 100644 --- a/source/KSYGPUBgpStreamerKit.h +++ b/source/KSYGPUBgpStreamerKit.h @@ -42,18 +42,6 @@ */ @property (nonatomic, readonly) GPUImageOutput* filter; -/** - @abstract 图像混合器 for 预览 - @discussion 将多图层的内容叠加 - */ -@property (nonatomic, readonly) KSYGPUPicMixer *vPreviewMixer; - -/** - @abstract 图像混合器 for 推流 - @discussion 将多图层的内容叠加 - */ -@property (nonatomic, readonly) KSYGPUPicMixer *vStreamMixer; - /** @abstract 预览视图 @discussion 通过此指针可以对预览视图进行操作 diff --git a/source/KSYGPUBgpStreamerKit.m b/source/KSYGPUBgpStreamerKit.m index 4a1b557..8dbbb5c 100644 --- a/source/KSYGPUBgpStreamerKit.m +++ b/source/KSYGPUBgpStreamerKit.m @@ -80,7 +80,6 @@ - (instancetype) initInterrupt:(BOOL) bInter { _bgPic = nil; // 图层和音轨的初始化 - _cameraLayer = 0; _micTrack = 0; /////1. 数据来源 /////////// @@ -101,9 +100,6 @@ - (instancetype) initInterrupt:(BOOL) bInter { ///// 3.1 视频通路 /////////// // 核心部件:图像处理滤镜 _filter = [[KSYGPUDnoiseFilter alloc] init]; - // 核心部件:视频叠加混合 - _vPreviewMixer = [[KSYGPUPicMixer alloc] init]; - _vStreamMixer = [[KSYGPUPicMixer alloc] init]; // 组装视频通道 [self setupVideoPath]; @@ -134,14 +130,6 @@ - (instancetype) initInterrupt:(BOOL) bInter { }; NSNotificationCenter* dc = [NSNotificationCenter defaultCenter]; - [dc addObserver:self - selector:@selector(appBecomeActive) - name:UIApplicationDidBecomeActiveNotification - object:nil]; - [dc addObserver:self - selector:@selector(appEnterBackground) - name:UIApplicationDidEnterBackgroundNotification - object:nil]; [dc addObserver:self selector:@selector(onNetEvent) name:KSYNetStateEventNotification @@ -167,8 +155,6 @@ - (void) closeKit{ [_aCapDev stopCapture]; [_bgPic removeAllTargets]; [_filter removeAllTargets]; - [_vPreviewMixer removeAllTargets]; - [_vStreamMixer removeAllTargets]; } /** @@ -199,43 +185,9 @@ - (void) setupFilter:(GPUImageOutput *) filter { [_rotateFilter setInputRotation:_bgPicRotate atIndex:0]; [_rotateFilter forceProcessingAtSize:_previewDimension]; src = _rotateFilter; - // 组装图层 - _vPreviewMixer.masterLayer = _cameraLayer; - _vStreamMixer.masterLayer = _cameraLayer; - [self addPic:src ToMixerAt:_cameraLayer]; -} - -- (void) setupVMixer { - if (_vPreviewMixer.targets.count > 0 && _vPreviewTargets.count == 0) { - _vPreviewTargets = [_vPreviewMixer.targets copy]; - } - // 混合后的图像输出到预览和推流 - [_vPreviewMixer removeAllTargets]; - - if (![_vPreviewTargets containsObject:_preview]) { - [_vPreviewMixer addTarget:_preview]; - }else{ - for (id target in _vPreviewTargets) { - [_vPreviewMixer addTarget:target]; - } - } - _vPreviewTargets = nil; - [_vStreamMixer removeAllTargets]; - [_vStreamMixer addTarget:_gpuToStr]; -} - -// 添加图层到 vMixer 中 -- (void) addPic:(GPUImageOutput*)pic ToMixerAt: (NSInteger)idx{ - if (pic == nil){ - return; - } - [pic removeAllTargets]; - KSYGPUPicMixer * vMixer[2] = {_vPreviewMixer, _vStreamMixer}; - for (int i = 0; i<2; ++i) { - [vMixer[i] clearPicOfLayer:idx]; - [pic addTarget:vMixer[i] atTextureLocation:idx]; - } + [src addTarget:_preview]; + [src addTarget:_gpuToStr]; } // 组装视频通道 @@ -243,7 +195,6 @@ - (void) setupVideoPath { weakObj(self); // 前处理 和 图像 mixer [self setupFilter:_filter]; - [self setupVMixer]; // GPU 上的数据导出到streamer _gpuToStr.videoProcessingCallback = ^(CVPixelBufferRef pixelBuffer, CMTime timeInfo){ @@ -371,7 +322,6 @@ - (BOOL) startVideoCap{ [self updateStrDimension]; // 连接 [self setupFilter:_filter]; - [self setupVMixer]; // 开始预览 [_bgPic processImage]; [_quitLock unlock]; @@ -426,24 +376,6 @@ - (void) stopPreview { }); } -/** 进入后台 */ -- (void) appEnterBackground { - if (_vPreviewMixer.targets.count > 0){ - _vPreviewTargets = [_vPreviewMixer.targets copy]; - } - // 进入后台时, 将预览从图像混合器中脱离, 避免后台OpenGL渲染崩溃 - [_vPreviewMixer removeAllTargets]; - if (_streamerBase.bypassRecordState == KSYRecordStateRecording ) { - [_streamerBase stopBypassRecord]; - } -} - -/** 回到前台 */ -- (void) appBecomeActive{ - // 回到前台, 重新连接预览 - [self setupVMixer]; - [_aCapDev resumeCapture]; -} #pragma mark - try reconnect - (void) onStreamState : (KSYStreamState) stat { if (stat == KSYStreamStateError){