私は私のQTMovieView
ような現在の時間を取得します:
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)