2006-10-24から1日間の記事一覧

QTKitの関数(5)

・QuickTime Kit Framework のリファレンス http://developer.apple.com/documentation/QuickTime/Reference/QTCocoaObjCKit/index.html・参考サイト ココアはやっぱり!

QTKitの関数(4)

・動画のフォーマットを変換する (IBAction)export:(id)sender { // セーブパネルを開く NSSavePanel* savePanel = [NSSavePanel savePanel]; int result = [savePanel runModalForDirectory:nil file:nil]; if (result == NSOKButton) { QTMovie* movie = […

QTKitの関数(3)

・ネットワーク上のファイルを動画を再生する (IBAction)openURL:(id)sender { // URLを取得する NSString* URLString = [urlTextField stringValue]; NSURL* URL = [NSURL URLWithString:URLString]; // QTMovieを作る QTMovie* movie = [QTMovie movieWith…

QTKitの関数(2)

・ファイルを開く(NSOpenPanel使用) (IBAction)open:(id)sender { // オープンパネルを開く NSOpenPanel* openPanel = [NSOpenPanel openPanel]; int result = [openPanel runModalForDirectory:nil file:nil types:nil]; if (result == NSOKButton) { // …

QTKitの関数(1)

・動画・音声などの情報取得生成 QTMovie* movie = [[QTMovie alloc] initWithURL:url error:nil];再生時間の取得。 QTTime time = [movie duration]; int duration = time.timeValue / time.timeScale; // 秒への変換ファイルサイズの取得。 NSNumber* num …