ipod

On iPhone: Find out what song is currently playing? (in the iPod music player) [duplicate]

僤鯓⒐⒋嵵緔 提交于 2019-11-26 19:16:29
问题 This question already has answers here : iPhone sdk - accessing current song information through an app (2 answers) Closed 11 months ago . Apple released access to the iPod Library in the iPhone SDK 3.0 and I'm wondering if it's now possible to understand which song is currently playing? Title, Artist, Album suffices. Example: User opens an app and the app can know which song is playing in the background. Has anyone had any experience with this? Thanks a bunch! 回答1: MPMediaItem * song = [

Extract iPod Library raw PCM samples and play with sound effects

梦想的初衷 提交于 2019-11-26 19:16:13
问题 I am trying to extract raw PCM samples from an MP3 in the iPod Library so that I can play the song and manipulate the pitch, tempo, and apply sound effects (such as filters). I have already gone down the route of AVPlayer and AVAudioPlayer which both do not allow very much control over the playback at all. The code below is as far as I have gotten with this. I am at a point now where I do not know what to do with the CMSampleBufferRef's in my while loop because I do not know which framework

Drawing waveform with AVAssetReader

心已入冬 提交于 2019-11-26 17:59:49
I reading song from iPod library using assetUrl (in code it named audioUrl) I can play it many ways, I can cut it, I can make some precessing with this but... I really don't understand what I gonna do with this CMSampleBufferRef to get data for drawing waveform! I need info about peak values, how I can get it this (maybe another) way? AVAssetTrack * songTrack = [audioUrl.tracks objectAtIndex:0]; AVAssetReaderTrackOutput * output = [[AVAssetReaderTrackOutput alloc] initWithTrack:songTrack outputSettings:nil]; [reader addOutput:output]; [output release]; NSMutableData * fullSongData = [

How to enable iPod controls in the background to control non-iPod music in iOS 4?

大兔子大兔子 提交于 2019-11-26 12:24:35
问题 A good example of what I\'m trying to accomplish is implemented in the latest version of the Spotify iPhone application for (Pandora seems to have the same feature) . When Spotify is in the background, double tapping opens the \"multi-task dock\", where the ipod controls (play/pause, forward etc) allow to control the music playback of Spotify (not the ipod application). Also, when the iphone/ipod touch is locked, double tapping displays similar playback controls. If you don\'t know what I

How to play a song from the itunes library in iphone

我只是一个虾纸丫 提交于 2019-11-26 12:12:22
问题 Hi i need to play a song from the itunes library. I had gone through the Apples ipod Library Access Guide and got the code. MPMediaQuery *everything = [[MPMediaQuery alloc] init]; NSLog(@\"Logging items from a generic query...\"); NSArray *itemsFromGenericQuery = [everything items]; MPMediaItem *song; for (song in itemsFromGenericQuery) { NSString *songTitle = [song valueForProperty: MPMediaItemPropertyTitle]; NSLog (@\"%@\", songTitle); } //assign a playback queue containing all media items

Application crashed while importing songs from Ipod library in iPhone for iOs 5.0

一世执手 提交于 2019-11-26 08:19:32
问题 Hello i am using below framworks, #import <MediaPlayer/MediaPlayer.h> #import <AudioToolbox/AudioToolbox.h> #import <AVFoundation/AVFoundation.h> In one of button event i have implemented below code to open Library. MPMediaPickerController *mediaPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; mediaPicker.delegate = self; mediaPicker.allowsPickingMultipleItems = YES; // this is the default [self presentModalViewController:mediaPicker animated:YES]; [mediaPicker

Lock-down iPhone/iPod/iPad so it can only run one app

筅森魡賤 提交于 2019-11-26 00:45:49
问题 We\'d like to \'lock-down\' an iPhone/iPod/iPad so that the user can only run one app (we\'ve developed this app internally). I\'m guessing we\'d be looking at jailbreaking, and then replacing (?) the default Springboard app. Can we do this? If so, how? EDIT: iOS 7 now includes an \'App Lock\' payload as part of the device configuration profile. From the Apple docs: \"By installing an app lock payload, the device is locked to a single application until the payload is removed. The home button