Browse Source

Tweaked the OSX video player to do sample-accurate seeking

tags/2021-05-28
jules 8 years ago
parent
commit
cb14ab3891
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_video/native/juce_mac_Video.h

+ 3
- 1
modules/juce_video/native/juce_mac_Video.h View File

@@ -109,7 +109,9 @@ struct VideoComponent::Pimpl : public BaseClass
CMTime t = { (CMTimeValue) (100000.0 * newPosition),
(CMTimeScale) 100000, kCMTimeFlags_Valid };
[p seekToTime: t];
[p seekToTime: t
toleranceBefore: kCMTimeZero
toleranceAfter: kCMTimeZero];
}
}


Loading…
Cancel
Save