我正在制作音乐应用程序,并希望能够从我的应用程序中与iPod同步.有没有人有任何使用python的经验,如果是这样你会推荐什么?
我有兴趣为iPhone制作应用程序.我想知道是否有可能制作应用程序,没有Xcode.唯一的原因是因为我的土都很穷,而且买不起苹果.
我真的宁愿不买Mac也只是为了做到这一点.我知道已经做出了努力使其成为可能,但很难说哪些(如果有的话)值得我花时间.
谢谢!
尝试以下代码:
// Per albums
MPMediaQuery *albumsQuery = [MPMediaQuery albumsQuery];
NSArray *collections = [albumsQuery collections];
for (MPMediaItemCollection *collection in collections)
{
NSDate *collectionReleaseDate = [collection valueForProperty: MPMediaItemPropertyReleaseDate];
NSLog(@"collection release date: %@", collectionReleaseDate);
MPMediaItem *representativeItem = [collection representativeItem];
NSDate *representativeItemReleaseDate = [representativeItem valueForProperty: MPMediaItemPropertyReleaseDate];
NSLog(@"representativeItem release date: %@", representativeItemReleaseDate);
}
// Just per item
MPMediaQuery *query = [[MPMediaQuery alloc] init];
NSArray *items = [query items];
for (MPMediaItem *item in items)
{
NSDate *date = [item valueForProperty: MPMediaItemPropertyReleaseDate];
NSLog(@"release date: %@", date);
} …Run Code Online (Sandbox Code Playgroud) 我尝试从iPod-Library导出音频文件.我想用这个iPod-Library文件创建一个新文件.在"AV基础编程指南"的"阅读和写作资产"一章中,有一个小例子.但是这段代码对我不起作用.发生了4个错误
Export Status 4 Error Domain=AVFoundationErrorDomain
Code=-11800 "The operation could not be completed"
UserInfo=0x1edfa0 {NSLocalizedFailureReason=An unknown error occurred (-12124),
NSUnderlyingError=0x1ebdc0 "The operation couldn’t be completed. (OSStatus error -12124.)",
NSLocalizedDescription=The operation could not be completed}
Run Code Online (Sandbox Code Playgroud)
我的代码
AVURLAsset *objAvUrlAsset = [[AVURLAsset alloc] initWithURL:[tempArray objectAtIndex:0] options:nil];
NSLog(@"%s objAvUrlAsset %@", __FUNCTION__, objAvUrlAsset);
NSArray *compatiblePresets = [AVAssetExportSession exportPresetsCompatibleWithAsset:objAvUrlAsset];
NSLog(@"%s compatiblePresets %@", __FUNCTION__, compatiblePresets);
if ([compatiblePresets containsObject:AVAssetExportPresetAppleM4A]) {
AVAssetExportSession *exportSession = [[AVAssetExportSession alloc]
initWithAsset:objAvUrlAsset presetName:AVAssetExportPresetAppleM4A];
NSString * exportPath = [NSString stringWithFormat:@"testTrack1.M4A"];
NSURL *exportURL = [NSURL fileURLWithPath:exportPath]; …Run Code Online (Sandbox Code Playgroud) 我试图通过iPhone的麦克风录制音频,同时播放iPod中的音乐.
录制和播放分开工作,但如果我尝试从iPod播放并同时录制录制停止.
顺便说一下,我实际上并没有录制音频来保存声音文件,而只是分析它.这是我的应用程序闪烁到您播放的音乐节拍.
Apple是否不允许同时录制和播放?
是否可以从我的应用程序中打开iPod应用程序?如果是这样,怎么样?我不想在应用程序中进行任何具体操作,我只是希望它像往常一样打开.什么是iPod应用程序URL?
我尝试编写Activator动作来改变当前的歌曲评级.我现在可以读取MPMediaItemPropertyRating属性并获得评级.但是我们如何从应用程序中更改它?
我刚刚ffmpeg使用这些说明完成了对debian wheezy的安装- http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide.现在我想编码一个视频来播放我的iPod classic.该视频具有以下信息:
$ mediainfo in.mp4
General
Complete name : in.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 1.21 GiB
Duration : 55mn 10s
Overall bit rate mode : Variable
Overall bit rate : 3 130 Kbps
Encoded date : UTC 2010-08-25 23:38:59
Tagged date : UTC 2010-08-25 23:38:59
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile …Run Code Online (Sandbox Code Playgroud) ipod ×10
iphone ×6
ios ×2
objective-c ×2
activator ×1
avfoundation ×1
colors ×1
ffmpeg ×1
ipod-touch ×1
m4a ×1
mpmediaitem ×1
python ×1
video ×1
xcode ×1