avfoundation - How do I convert a CMTime to an NSValue in Swift? -


I was trying to speed up the use of Aviplayer's method and CMTimes NSValues ​​, which take the form of the addBoundaryTimeObserverForTimes input. In the end, I worked in wrapping the [nsetring valued adcmtim:] in the C function and called it fast, but is there a way to do it at a faster speed?

valueWithCMTime: is the SWIFT constructor for NSValue (CMTime) :) :

  Import CoreMedia import AVFoundation cmTime = CMTimeMake (10, 20) cmValue = NSValue (CMTime: cmTime)  

Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -