如何在iPhone中使用MMS进行audio?
我在iPhone上做了关于MMS
,但是我没有在这方面find太多的信息,大部分的发现都与图像有关。 我想发送audio使用MMS
在iPhone
使用ios sdk
。是否有可能这样做?我有以下关于MMS
查询。
如何使用iOS SDK
识别iPhone
所有MMS
audio文件?
如何使用iOS SDK
在iPhone
播放MMS
文件?
有人能帮我辨认这些东西!
MMS
中的多媒体消息服务不适用于iOS开发人员。 只有messages.app可以发送MMS
,您不能从messages.app中访问任何数据,也不能发送MMS
。
iOS SDK提供了Message UI Framework ,允许您发送电子邮件和短信。 但SMS
只限于SMS
。
更新:iOS 7现在支持附件。
- (void)sendAudioFile:(NSURL)audioFilePath { if ([MFMessageComposeViewController canSendAttachments] && [MFMessageComposeViewController canSendText] && [MFMessageComposeViewController isSupportedAttachmentUTI:@"com.apple.coreaudio-format"]) //.caf files { NSLog(@"can send"); MFMessageComposeViewController *message = [[MFMessageComposeViewController alloc] init]; [message addAttachmentURL:audioFilePath withAlternateFilename:nil]; //.caf file message.messageComposeDelegate = self; [self presentViewController:message animated:YES completion:nil]; } else { NSLog(@"cannot send"); } }