#import <NvsStreamingContext.h>
◆ capturePictureArrived:
获取采集预览图像
请特别注意:这个函数被调用是在一个单独的线程,而不是在UI线程.使用请考虑线程安全的问题!!!
- 参数
-
- 自从
- 1.4.0
◆ capturePreviewAudioSampleArrived:
获取采集的音频数据回调接口,此接口在采集预览时便可以获取音频回调
- 参数
-
- 自从
- 3.11.0
◆ captureVideoFrameGrabbedArrived:
获取采集预览图像
请特别注意:这个函数被调用是在一个单独的线程,而不是在UI线程.使用请考虑线程安全的问题!!!
- 参数
-
- 自从
- 1.4.0
◆ didCaptureDeviceAutoFocusComplete:succeeded:
- (void) didCaptureDeviceAutoFocusComplete: |
|
(unsigned int) |
captureDeviceIndex |
succeeded: |
|
(BOOL) |
succeeded |
|
|
| |
|
optional |
采集设备自动对焦完成
- 参数
-
captureDeviceIndex | 设备索引 |
succeeded | 对焦是否完成 |
◆ didCaptureDeviceCapsReady:
- (void) didCaptureDeviceCapsReady: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureDeviceError:errorCode:
- (void) didCaptureDeviceError: |
|
(unsigned int) |
captureDeviceIndex |
errorCode: |
|
(int32_t) |
errorCode |
|
|
| |
|
optional |
采集设备错误
- 参数
-
captureDeviceIndex | 设备索引 |
errorCode | 错误码,请参见采集设备错误码 |
◆ didCaptureDevicePreviewResolutionReady:
- (void) didCaptureDevicePreviewResolutionReady: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureDevicePreviewStarted:
- (void) didCaptureDevicePreviewStarted: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureDeviceStopped:
- (void) didCaptureDeviceStopped: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureRecordingDurationUpdated:duration:
- (void) didCaptureRecordingDurationUpdated: |
|
(int) |
captureDeviceIndex |
duration: |
|
(int64_t) |
duration |
|
|
| |
|
optional |
录制时长通知
- 参数
-
captureDeviceIndex | 设备索引 |
duration | 已经录制的时长,单位是微秒 |
- 自从
- 1.17.0
◆ didCaptureRecordingError:
- (void) didCaptureRecordingError: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureRecordingFinished:
- (void) didCaptureRecordingFinished: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCaptureRecordingFirstVideoFrameReached:timeStamp:
- (void) didCaptureRecordingFirstVideoFrameReached: |
|
(unsigned int) |
captureDeviceIndex |
timeStamp: |
|
(int64_t) |
timestamp |
|
|
| |
|
optional |
◆ didCaptureRecordingStarted:
- (void) didCaptureRecordingStarted: |
|
(unsigned int) |
captureDeviceIndex |
|
|
optional |
◆ didCompileCompleted:isCanceled:
- (void) didCompileCompleted: |
|
(NvsTimeline *) |
timeline |
isCanceled: |
|
(BOOL) |
isCanceled |
|
|
| |
|
optional |
◆ didCompileCompleted:isHardwareEncoding:errorType:errorString:flags:
- (void) didCompileCompleted: |
|
(NvsTimeline *) |
timeline |
isHardwareEncoding: |
|
(BOOL) |
isHardwareEncoding |
errorType: |
|
(int) |
errorType |
errorString: |
|
(NSString *) |
errorString |
flags: |
|
(int) |
flags |
|
|
| |
|
optional |
时间线生成文件完成
- 参数
-
timeline | 时间线 |
isHardwareEncoder | 是否是硬件编码 |
errorType | 错误类型,请参见生成错误类型 |
stringInfo | 辅助的字符串信息 |
flags | 标志量 |
- 自从
- 2.22.0
◆ didCompileFailed:
◆ didCompileFinished:
◆ didCompileFloatProgress:progress:
- (void) didCompileFloatProgress: |
|
(NvsTimeline *) |
timeline |
progress: |
|
(float) |
progress |
|
|
| |
|
optional |
生成视频文件进度
- 参数
-
timeline | 时间线 |
progress | 浮点进度值 |
◆ didCompileProgress:progress:
- (void) didCompileProgress: |
|
(NvsTimeline *) |
timeline |
progress: |
|
(int) |
progress |
|
|
| |
|
optional |
◆ didCompileSliceCompleted:filePath:isVideo:index:
- (void) didCompileSliceCompleted: |
|
(NvsTimeline *) |
timeline |
filePath: |
|
(NSString *) |
filePath |
isVideo: |
|
(BOOL) |
isVideo |
index: |
|
(int) |
index |
|
|
| |
|
optional |
时间线生成切片文件完成
- 参数
-
timeline | 时间线 |
filePath | 文件路径 |
isVideo | 是否是视频 |
index | 文件序号 |
- 自从
- 3.13.0
◆ didFirstVideoFramePresented:
- (void) didFirstVideoFramePresented: |
|
(NvsTimeline *) |
timeline |
|
|
optional |
◆ didPlaybackDelayed:delayTime:isVideo:
- (void) didPlaybackDelayed: |
|
(NvsTimeline *) |
timeline |
delayTime: |
|
(int64_t) |
time |
isVideo: |
|
(bool) |
flag |
|
|
| |
|
optional |
时间线播放视频延迟
- 参数
-
timeline | 时间线 |
time | 延迟时间 |
flag | 是否是视频(true是视频,false是音频) |
- 自从
- 2.5.0
◆ didPlaybackEOF:
◆ didPlaybackPreloadingCompletion:
- (void) didPlaybackPreloadingCompletion: |
|
(NvsTimeline *) |
timeline |
|
|
optional |
◆ didPlaybackStopped:
◆ didPlaybackTimelinePosition:position:
- (void) didPlaybackTimelinePosition: |
|
(NvsTimeline *) |
timeline |
position: |
|
(int64_t) |
position |
|
|
| |
|
optional |
◆ didSeekingTimelinePosition:position:
- (void) didSeekingTimelinePosition: |
|
(NvsTimeline *) |
timeline |
position: |
|
(int64_t) |
position |
|
|
| |
|
optional |
◆ didStreamingEngineStateChanged:
◆ didTimestampOutOfRange:
- (void) didTimestampOutOfRange: |
|
(NvsTimeline *) |
timeline |
|
|
optional |
时间线越界(注:非必要情况请勿使用此回调接口)
- 参数
-
- 自从
- 1.2.0
◆ didVUMeterValue:leftValue:rightValue:timestamp:
- (void) didVUMeterValue: |
|
(NvsTimeline *) |
timeline |
leftValue: |
|
(float) |
left |
rightValue: |
|
(float) |
right |
timestamp: |
|
(int64_t) |
time |
|
|
| |
|
optional |
获取时间线音频输出的DB值回调接口
- 参数
-
timeline | 时间线 |
leftVUValue | 左声道DB值 |
rightVUValue | 右声道DB值 |
◆ onAudioSampleArrived:
获取采集的音频数据回调接口,此接口在录制的时候会触发回调
- 参数
-
- 自从
- 3.0.3
◆ onAudioSampleArrived:audioSample:
获取时间线音频输出的数据回调接口
- 参数
-
timeline | 时间线 |
audioSample | 音频数据 |
◆ onHardwareError:stringInfo:
硬件错误信息. 已废弃,使用onMediaError替代
- 参数
-
errorType | 硬件错误类型,请参见硬件错误类型 |
stringInfo | 辅助的字符串信息 |
- 弃用:
- 自从
- 1.16.0
◆ onMediaError:
◆ onPlaybackException:exceptionType:exceptionString:
时间线播放异常信息
- 参数
-
timeline | 时间线 |
exceptionType | 异常类型。请参见引擎播放异常类型 |
exceptionString | 异常信息描述 |
- 自从
- 3.0.0
该协议的文档由以下文件生成: