我是Objective-C编程的新手。我将CMTimeRange从一个视图发送到另一个视图,但在另一个视图中,我需要在CMTime格式的CMTimeRange中启动时间。有人知道我怎么在第一眼看到时间范围吗?
CMTimeRange timeRange = CMTimeRangeMake(startTime, realPlayer.currentTime);提前谢谢。
发布于 2014-03-14 19:22:23
typedef struct{
CMTime start; /*! @field start The start time of the time range. */
CMTime duration; /*! @field duration The duration of the time range. */
} CMTimeRange;因此,您可以使用CMTimeGetSeconds(timeRange.start)获取开始时间。
https://stackoverflow.com/questions/22399451
复制相似问题