2006-10-24から1日間の記事一覧
・QuickTime Kit Framework のリファレンス http://developer.apple.com/documentation/QuickTime/Reference/QTCocoaObjCKit/index.html・参考サイト ココアはやっぱり!
・動画のフォーマットを変換する (IBAction)export:(id)sender { // セーブパネルを開く NSSavePanel* savePanel = [NSSavePanel savePanel]; int result = [savePanel runModalForDirectory:nil file:nil]; if (result == NSOKButton) { QTMovie* movie = […
・ネットワーク上のファイルを動画を再生する (IBAction)openURL:(id)sender { // URLを取得する NSString* URLString = [urlTextField stringValue]; NSURL* URL = [NSURL URLWithString:URLString]; // QTMovieを作る QTMovie* movie = [QTMovie movieWith…
・ファイルを開く(NSOpenPanel使用) (IBAction)open:(id)sender { // オープンパネルを開く NSOpenPanel* openPanel = [NSOpenPanel openPanel]; int result = [openPanel runModalForDirectory:nil file:nil types:nil]; if (result == NSOKButton) { // …
・動画・音声などの情報取得生成 QTMovie* movie = [[QTMovie alloc] initWithURL:url error:nil];再生時間の取得。 QTTime time = [movie duration]; int duration = time.timeValue / time.timeScale; // 秒への変換ファイルサイズの取得。 NSNumber* num …