5
私は.cafファイルを記録し、それをメールの添付ファイルとして送信して、自分のMacでピックアップしたいと思っています。問題は、カフェファイルが私のアプリの外でしか再生できない、私のアプリであることです。 .cafファイルを再生するために使用する必要がある設定ここで私のMacのQuicktimeは私の設定です。 iphoneのDocumentsディレクトリにオーディオファイルを保存します。AvAudioRecorder設定の設定ヘルプ
NSDictionary *settings =[NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt: kAudioFormatAppleLossless], AVFormatIDKey,
[NSNumber numberWithFloat: 44100.0], AVSampleRateKey,
[NSNumber numberWithInt: 2], AVNumberOfChannelsKey,
[NSNumber numberWithInt:128000], AVEncoderBitRateKey,
[NSNumber numberWithInt: AVAudioQualityMax], AVEncoderAudioQualityKey,
nil];
私は私がベース
NSString *documentsDirectory = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
NSString *filePath2 = [documentsDirectory stringByAppendingPathComponent:@"VoiceMail.caf"];
attachment1.FileData = [serv convertFileToB64String:filePath2 fileName:@"VoiceMail.caf"];
attachment1.FileName = @"VoiceMail.caf";
message.Attachments = [[NSMutableArray alloc] initWithObjects:attachment1, nil];
私はそれはまだ私はあなたが添付ファイルをメールにこの.cafファイルを添付しないかのコードを参照する必要が自分のアプリケーション – Radu
外に再生されない設定を試してみました。 –
私は外部のプラットフォームを使用して電子メールの添付ファイルを送信しています。私はコードを数秒で入れます。 – Radu