AVFoundation框架解析(十)—— AVFoundation的變化(二)

版本記錄

版本號 時間
V1.0 2017.09.01

前言

AVFoundation框架是ios中很重要的框架,所有與視頻音頻相關的軟硬件控制都在這個框架里面,接下來這幾篇就主要對這個框架進行介紹和講解。感興趣的可以看我上幾篇。
1. AVFoundation框架解析(一)—— 基本概覽
2. AVFoundation框架解析(二)—— 實現視頻預覽錄制保存到相冊
3. AVFoundation框架解析(三)—— 幾個關鍵問題之關于框架的深度概括
4. AVFoundation框架解析(四)—— 幾個關鍵問題之AVFoundation探索(一)
5. AVFoundation框架解析(五)—— 幾個關鍵問題之AVFoundation探索(二)
6. AVFoundation框架解析(六)—— 視頻音頻的合成(一)
7. AVFoundation框架解析(七)—— 視頻組合和音頻混合調試
8. AVFoundation框架解析(八)—— 優化用戶的播放體驗
9. AVFoundation框架解析(九)—— AVFoundation的變化(一)

AVFoundation的變化

我寫這篇文章的時候是2017-09-01,文檔中列出了AVFoundation框架的更新和改變,下面我就給大家列出來一下。


AVCaptureOutput.h

Added AVCaptureAudioDataOutput
Added AVCaptureAudioDataOutput.audioSettings
Added AVCaptureAudioDataOutput.sampleBufferCallbackQueue
Added AVCaptureAudioDataOutput.sampleBufferDelegate
Added -[AVCaptureAudioDataOutput setSampleBufferDelegate:queue:]
Added AVCaptureAudioDataOutputSampleBufferDelegate
Added -[AVCaptureAudioDataOutputSampleBufferDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
Added AVCaptureAudioFileOutput
Added AVCaptureAudioFileOutput.audioSettings
Added +[AVCaptureAudioFileOutput availableOutputFileTypes]
Added AVCaptureAudioFileOutput.metadata
Added -[AVCaptureAudioFileOutput startRecordingToOutputFileURL:outputFileType:recordingDelegate:]
Added AVCaptureAudioPreviewOutput
Added AVCaptureAudioPreviewOutput.outputDeviceUniqueID
Added AVCaptureAudioPreviewOutput.volume
Added AVCaptureFileOutput
Added AVCaptureFileOutput.delegate
Added AVCaptureFileOutput.maxRecordedDuration
Added AVCaptureFileOutput.maxRecordedFileSize
Added AVCaptureFileOutput.minFreeDiskSpaceLimit
Added AVCaptureFileOutput.outputFileURL
Added -[AVCaptureFileOutput pauseRecording]
Added AVCaptureFileOutput.recordedDuration
Added AVCaptureFileOutput.recordedFileSize
Added AVCaptureFileOutput.recording
Added AVCaptureFileOutput.recordingPaused
Added -[AVCaptureFileOutput resumeRecording]
Added -[AVCaptureFileOutput startRecordingToOutputFileURL:recordingDelegate:]
Added -[AVCaptureFileOutput stopRecording]
Added AVCaptureFileOutputDelegate
Added -[AVCaptureFileOutputDelegate captureOutput:didOutputSampleBuffer:fromConnection:]
Added AVCaptureFileOutputRecordingDelegate
Added -[AVCaptureFileOutputRecordingDelegate captureOutput:didFinishRecordingToOutputFileAtURL:fromConnections:error:]
Added -[AVCaptureFileOutputRecordingDelegate captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:]
Added -[AVCaptureFileOutputRecordingDelegate captureOutput:didResumeRecordingToOutputFileAtURL:fromConnections:]
Added -[AVCaptureFileOutputRecordingDelegate captureOutput:didStartRecordingToOutputFileAtURL:fromConnections:]
Added -[AVCaptureFileOutputRecordingDelegate captureOutput:willFinishRecordingToOutputFileAtURL:fromConnections:error:]
Added AVCaptureMovieFileOutput
Added AVCaptureMovieFileOutput.metadata
Added AVCaptureMovieFileOutput.movieFragmentInterval
Added -[AVCaptureMovieFileOutput outputSettingsForConnection:]
Added -[AVCaptureMovieFileOutput setOutputSettings:forConnection:]
Added AVCaptureOutput
Added -[AVCaptureOutput connectionWithMediaType:]
Added AVCaptureOutput.connections
Added AVCaptureStillImageOutput
AddedAVCaptureStillImageOutput.availableImageDataCVPixelFormatTypes
Added AVCaptureStillImageOutput.availableImageDataCodecTypes
Added -[AVCaptureStillImageOutput captureStillImageAsynchronouslyFromConnection:completionHandler:]
Added +[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:]
Added AVCaptureStillImageOutput.outputSettings
Added AVCaptureVideoDataOutput
Added AVCaptureVideoDataOutput.alwaysDiscardsLateVideoFrames
Added AVCaptureVideoDataOutput.availableVideoCVPixelFormatTypes
Added AVCaptureVideoDataOutput.availableVideoCodecTypes
Added AVCaptureVideoDataOutput.sampleBufferCallbackQueue
Added AVCaptureVideoDataOutput.sampleBufferDelegate
Added -[AVCaptureVideoDataOutput setSampleBufferDelegate:queue:]
Added AVCaptureVideoDataOutput.videoSettings
Added AVCaptureVideoDataOutputSampleBufferDelegate
Added -[AVCaptureVideoDataOutputSampleBufferDelegate captureOutput:didDropSampleBuffer:fromConnection:]
Added -[AVCaptureVideoDataOutputSampleBufferDelegate captureOutput:didOutputSampleBuffer:fromConnection:]


AVCaptureSession.h

Added AVCaptureAudioChannel
Added AVCaptureAudioChannel.averagePowerLevel
Added AVCaptureAudioChannel.enabled
Added AVCaptureAudioChannel.peakHoldLevel
Added AVCaptureAudioChannel.volume
Added AVCaptureConnection
Added AVCaptureConnection.active
Added AVCaptureConnection.audioChannels
Added AVCaptureConnection.automaticallyAdjustsVideoMirroring
Added +[AVCaptureConnection connectionWithInputPort:videoPreviewLayer:]
Added +[AVCaptureConnection connectionWithInputPorts:output:]
Added AVCaptureConnection.enabled
Added -[AVCaptureConnection initWithInputPort:videoPreviewLayer:]
Added -[AVCaptureConnection initWithInputPorts:output:]
Added AVCaptureConnection.inputPorts
Added AVCaptureConnection.output
Added AVCaptureConnection.supportsVideoFieldMode
Added AVCaptureConnection.supportsVideoMinFrameDuration
Added AVCaptureConnection.supportsVideoMirroring
Added AVCaptureConnection.supportsVideoOrientation
Added AVCaptureConnection.videoFieldMode
Added AVCaptureConnection.videoMinFrameDuration
Added AVCaptureConnection.videoMirrored
Added AVCaptureConnection.videoOrientation
Added AVCaptureConnection.videoPreviewLayer
Added AVCaptureSession
Added -[AVCaptureSession addConnection:]
Added -[AVCaptureSession addInput:]
Added -[AVCaptureSession addInputWithNoConnections:]
Added -[AVCaptureSession addOutput:]
Added -[AVCaptureSession addOutputWithNoConnections:]
Added -[AVCaptureSession beginConfiguration]
Added -[AVCaptureSession canAddConnection:]
Added -[AVCaptureSession canAddInput:]
Added -[AVCaptureSession canAddOutput:]
Added -[AVCaptureSession canSetSessionPreset:]
Added -[AVCaptureSession commitConfiguration]
Added AVCaptureSession.inputs
Added AVCaptureSession.outputs
Added -[AVCaptureSession removeConnection:]
Added -[AVCaptureSession removeInput:]
Added -[AVCaptureSession removeOutput:]
Added AVCaptureSession.running
Added AVCaptureSession.sessionPreset
Added -[AVCaptureSession startRunning]
Added -[AVCaptureSession stopRunning]
Added AVCaptureSessionDidStartRunningNotification
Added AVCaptureSessionDidStopRunningNotification
Added AVCaptureSessionErrorKey
Added AVCaptureSessionPreset1280x720
Added AVCaptureSessionPreset320x240
Added AVCaptureSessionPreset352x288
Added AVCaptureSessionPreset640x480
Added AVCaptureSessionPreset960x540
Added AVCaptureSessionPresetHigh
Added AVCaptureSessionPresetLow
Added AVCaptureSessionPresetMedium
Added AVCaptureSessionPresetPhoto
Added AVCaptureSessionRuntimeErrorNotification
Added AVCaptureVideoOrientation
Added AVCaptureVideoOrientationLandscapeLeft
Added AVCaptureVideoOrientationLandscapeRight
Added AVCaptureVideoOrientationPortrait
Added AVCaptureVideoOrientationPortraitUpsideDown
Added AVVideoFieldMode
Added AVVideoFieldModeBoth
Added AVVideoFieldModeBottomOnly
Added AVVideoFieldModeDeinterlace
Added AVVideoFieldModeTopOnly


AVCaptureVideoPreviewLayer.h

Added AVCaptureVideoPreviewLayer
Added AVCaptureVideoPreviewLayer.connection
Added -[AVCaptureVideoPreviewLayer initWithSession:]
Added -[AVCaptureVideoPreviewLayer initWithSessionWithNoConnection:]
Added +[AVCaptureVideoPreviewLayer layerWithSession:]
Added +[AVCaptureVideoPreviewLayer layerWithSessionWithNoConnection:]
Added AVCaptureVideoPreviewLayer.session
Added -[AVCaptureVideoPreviewLayer setSessionWithNoConnection:]
Added AVCaptureVideoPreviewLayer.videoGravity


AVComposition.h

Added AVComposition
Added AVComposition.tracks
Added AVMutableComposition
Added -[AVMutableComposition addMutableTrackWithMediaType:preferredTrackID:]
Added +[AVMutableComposition composition]
Added -[AVMutableComposition insertEmptyTimeRange:]
Added -[AVMutableComposition insertTimeRange:ofAsset:atTime:error:]
Added -[AVMutableComposition mutableTrackCompatibleWithTrack:]
Added AVMutableComposition.naturalSize
Added -[AVMutableComposition removeTimeRange:]
Added -[AVMutableComposition removeTrack:]
Added -[AVMutableComposition scaleTimeRange:toDuration:]
Added AVMutableComposition.tracks
AddedAVMutableComposition(AVMutableCompositionCompositionLevelEditing)
Added AVMutableComposition(AVMutableCompositionTrackLevelEditing)


AVCompositionTrack.h

Added AVCompositionTrack
Added AVCompositionTrack.segments
Added AVMutableCompositionTrack
Added AVMutableCompositionTrack.extendedLanguageTag
Added -[AVMutableCompositionTrack insertEmptyTimeRange:]
Added -[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]
Added AVMutableCompositionTrack.languageCode
Added AVMutableCompositionTrack.naturalTimeScale
Added AVMutableCompositionTrack.preferredTransform
Added AVMutableCompositionTrack.preferredVolume
Added -[AVMutableCompositionTrack removeTimeRange:]
Added -[AVMutableCompositionTrack scaleTimeRange:toDuration:]
Added AVMutableCompositionTrack.segments
Added -[AVMutableCompositionTrack validateTrackSegments:error:]


AVCompositionTrackSegment.h

Added AVCompositionTrackSegment
Added +[AVCompositionTrackSegment compositionTrackSegmentWithTimeRange:]
Added +[AVCompositionTrackSegment compositionTrackSegmentWithURL:trackID:sourceTimeRange:targetTimeRange:]
Added AVCompositionTrackSegment.empty
Added -[AVCompositionTrackSegment initWithTimeRange:]
Added -[AVCompositionTrackSegment initWithURL:trackID:sourceTimeRange:targetTimeRange:]
Added AVCompositionTrackSegment.sourceTrackID
Added AVCompositionTrackSegment.sourceURL


AVError.h

Added AVErrorApplicationIsNotAuthorized
Added AVErrorCompositionTrackSegmentsNotContiguous
Added AVErrorContentIsNotAuthorized
Added AVErrorContentIsProtected
Added AVErrorDecodeFailed
Added AVErrorDecoderNotFound
Added AVErrorDeviceAlreadyUsedByAnotherSession
Added AVErrorDeviceInUseByAnotherApplication
Added AVErrorDeviceIsNotAvailableInBackground (no architecture available)
Added AVErrorDeviceKey
Added AVErrorDeviceLockedForConfigurationByAnotherProcess
Added AVErrorDeviceNotConnected
Added AVErrorDeviceWasDisconnected
Added AVErrorDiscontinuityFlagsKey
Added AVErrorDiskFull
Added AVErrorEncoderNotFound
Added AVErrorExportFailed
Added AVErrorFileAlreadyExists
Added AVErrorFileFailedToParse
Added AVErrorFileFormatNotRecognized
Added AVErrorFileSizeKey
Added AVErrorInvalidCompositionTrackSegmentDuration
Added AVErrorInvalidCompositionTrackSegmentSourceDuration
Added AVErrorInvalidCompositionTrackSegmentSourceStartTime
Added AVErrorInvalidSourceMedia
Added AVErrorMaximumDurationReached
Added AVErrorMaximumFileSizeReached
Added AVErrorMaximumNumberOfSamplesForFileFormatReached
Added AVErrorMaximumStillImageCaptureRequestsExceeded
Added AVErrorMediaChanged
Added AVErrorMediaDiscontinuity
Added AVErrorMediaServicesWereReset (no architecture available)
Added AVErrorMediaSubTypeKey
Added AVErrorMediaTypeKey
Added AVErrorNoDataCaptured
Added AVErrorNoImageAtTime
Added AVErrorOperationNotSupportedForAsset
Added AVErrorOutOfMemory
Added AVErrorPIDKey
Added AVErrorRecordingSuccessfullyFinishedKey
Added AVErrorSessionConfigurationChanged
Added AVErrorSessionNotRunning
Added AVErrorSessionWasInterrupted (no architecture available)
Added AVErrorTimeKey
Added AVErrorUnknown
Added AVFoundationErrorDomain


AVMediaFormat.h

Added AVFileTypeAIFC
Added AVFileTypeAIFF
Added AVFileTypeAMR
Added AVFileTypeAppleM4A
Added AVFileTypeAppleM4V
Added AVFileTypeCoreAudioFormat
Added AVFileTypeMPEG4
Added AVFileTypeQuickTimeMovie
Added AVFileTypeWAVE
Added AVMediaCharacteristicAudible
Added AVMediaCharacteristicFrameBased
Added AVMediaCharacteristicLegible
Added AVMediaCharacteristicVisual
Added AVMediaTypeAudio
Added AVMediaTypeClosedCaption
Added AVMediaTypeMuxed
Added AVMediaTypeSubtitle
Added AVMediaTypeText
Added AVMediaTypeTimecode
Added AVMediaTypeTimedMetadata
Added AVMediaTypeVideo

后記

未完,待續~~~

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 228,119評論 6 531
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 98,382評論 3 415
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 176,038評論 0 373
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 62,853評論 1 309
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 71,616評論 6 408
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,112評論 1 323
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,192評論 3 441
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,355評論 0 288
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 48,869評論 1 334
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 40,727評論 3 354
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 42,928評論 1 369
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,467評論 5 358
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,165評論 3 347
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 34,570評論 0 26
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 35,813評論 1 282
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 51,585評論 3 390
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 47,892評論 2 372

推薦閱讀更多精彩內容