search

Home  >  Q&A  >  body text

objective-c - CMTime

仅有的幸福仅有的幸福2832 days ago709

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:23:08

    CMTime CMTimeMake (
       int64_t value,
       int32_t timescale
    );
    

    CMTime is specially used to represent movie time.
    CMTime(a,b) a represents the current frame, b represents the frame rate, how many frames per second.
    CMTime(60,30) This represents a video with 30 frames per second, and 60 frames are played, which is at 2 seconds.
    CMTime(30,15) This represents a video with 15 frames per second. After playing 30 frames, it is still at 2 seconds.


    reply
    0
  • Cancelreply