¡@

Home 

2014/10/15 ¤U¤È 10:08:40

iphone Programming Glossary: exportsession

iPhone:Programmatically compressing recorded video to share?

http://stackoverflow.com/questions/5687341/iphoneprogrammatically-compressing-recorded-video-to-share

nil NSArray compatiblePresets AVAssetExportSession exportPresetsCompatibleWithAsset theAsset AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset theAsset presetName AVAssetExportPresetLowQuality exportSession setOutputURL NSURL.. exportSession AVAssetExportSession alloc initWithAsset theAsset presetName AVAssetExportPresetLowQuality exportSession setOutputURL NSURL URLWithString videoURL exportSession setOutputFileType AVFileTypeQuickTimeMovie exportSession exportAsynchronouslyWithCompletionHandler.. theAsset presetName AVAssetExportPresetLowQuality exportSession setOutputURL NSURL URLWithString videoURL exportSession setOutputFileType AVFileTypeQuickTimeMovie exportSession exportAsynchronouslyWithCompletionHandler ^ switch exportSession..

Application crashed while importing songs from Ipod library in Iphone for iOs 5.0

http://stackoverflow.com/questions/8077725/application-crashed-while-importing-songs-from-ipod-library-in-iphone-for-ios-5

AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset.. formatID audioDesc mFormatID exportAudioMix.inputParameters NSArray arrayWithObject exportAudioMixInputParameters exportSession.audioMix exportAudioMix NSString fileType nil NSString ex nil switch formatID case kAudioFormatLinearPCM UInt32 flags audioDesc.. @ assetURL absoluteString AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset..

MOV to Mp4 video conversion iPhone Programmatically

http://stackoverflow.com/questions/8474517/mov-to-mp4-video-conversion-iphone-programmatically

avAsset if compatiblePresets containsObject AVAssetExportPresetLowQuality AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset avAsset presetName AVAssetExportPresetLowQuality exportSession.outputURL NSURL.. exportSession AVAssetExportSession alloc initWithAsset avAsset presetName AVAssetExportPresetLowQuality exportSession.outputURL NSURL fileURLWithPath videoPath exportSession.outputFileType AVFileTypeMPEG4 CMTime start CMTimeMakeWithSeconds.. avAsset presetName AVAssetExportPresetLowQuality exportSession.outputURL NSURL fileURLWithPath videoPath exportSession.outputFileType AVFileTypeMPEG4 CMTime start CMTimeMakeWithSeconds 1.0 600 CMTime duration CMTimeMakeWithSeconds 3.0 600..