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
Post a Comment