0
我得到了我QTMovieView
當前時間,像這樣:在毫秒QTTime工作
QTTime time = self.movieView.movie.currentTime;
,然後把它放到SMPTE形式
NSString *SMPTE_string;
int days, hour, minute, second, frame;
long long result;
result = time.timeValue/time.timeScale; // second
frame = (time.timeValue % time.timeScale)/100;
second = result % 60;
result = result/60; // minute
minute = result % 60;
result = result/60; // hour
hour = result % 24;
days = result;
SMPTE_string = [NSString stringWithFormat:@"%02d:%02d:%02d:%02d", hour, minute, second, frame]; // hh:mm:ss:ff
但我不想把它結束與幀號碼。我希望它以毫秒爲單位結束(HH:MM:ss.mil)
非常好,感謝計算毫秒! – vqdave 2013-05-06 00:48:09
感謝它的正常工作... – Jaiswal 2013-10-29 09:18:37