7
如何計算AVAssetWriter進程的進度?所以,如果我有這樣的:如何跟蹤AVAssetWriter的寫作進度?
[assetWriterInput requestMediaDataWhenReadyOnQueue:queue usingBlock:^{
while (1){
if ([assetWriterInput isReadyForMoreMediaData]) {
CMSampleBufferRef sampleBuffer = [audioMixOutput copyNextSampleBuffer];
if (sampleBuffer) {
[assetWriterInput appendSampleBuffer:sampleBuffer];
CFRelease(sampleBuffer);
} else {
[assetWriterInput markAsFinished];
break;
}
}
}
}];
我能在循環過程中拉(或輪詢)要弄清楚有多少Y的X我已經完成了?
謝謝。