• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

CocoaでAVFoundationを使うサンプル


Commit MetaInfo

Revisiónafed508d2d5ca9cadc815c9047b099dc0dd3bff4 (tree)
Tiempo2012-06-12 21:47:56
AutorHori <masaki@MBP....>
CommiterHori

Log Message

600がいいと聞いて

Cambiar Resumen

Diferencia incremental

--- a/testAVFoundation/HMDocument.m
+++ b/testAVFoundation/HMDocument.m
@@ -191,7 +191,7 @@
191191 forKeyPath:@"rate"
192192 options:0
193193 context:_player];
194- self.timeObserver = [_player addPeriodicTimeObserverForInterval:CMTimeMake(4, 100)
194+ self.timeObserver = [_player addPeriodicTimeObserverForInterval:CMTimeMake(24, 600)
195195 queue:dispatch_get_main_queue()
196196 usingBlock:
197197 ^(CMTime time) {
@@ -286,9 +286,9 @@
286286 }
287287 - (IBAction)changeCurrentTime:(id)sender
288288 {
289- CMTime halfSeconds = CMTimeMake(5, 10);
290- CGFloat timeValue = [sender doubleValue] * 1000.0;
291- CMTime time = CMTimeMake(timeValue, 1000);
289+ CMTime halfSeconds = CMTimeMake(300, 600);
290+ CGFloat timeValue = [sender doubleValue] * 600;
291+ CMTime time = CMTimeMake(timeValue, 600);
292292 [_item seekToTime:time toleranceBefore:halfSeconds toleranceAfter:halfSeconds];
293293 }
294294 - (IBAction)volumeUp:(id)sender