Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
1 answer
310 views

Playing sound when receiving notification worked in dev but not in production

i wanted to play a sound when i receive a specific notification no matter whether silent mode is turned on or not. I get it working in dev mode with the AVFoundation framework. So in the AppDelegate ...
Chronisch's user avatar
  • 125
0 votes
1 answer
360 views

How to play a wav file placed in Documents directory in OSX using objective c

I have been trying to play an audio file but unable to succeed. SoundFilePath: /Users/admin/Library/Containers/com.abc.myApp/Data/Documents/MyAudioSample1.wav NSSound: NSSound *sound = [[NSSound ...
Swati's user avatar
  • 2,878
0 votes
1 answer
594 views

StreamingKit repeats song ios

I have a trouble with playing queue of local (saved on device) song. I'm using this cocoapod - https://github.com/tumtumtum/StreamingKit. My first item in queue starts to play one more time after its ...
Alex Crow's user avatar
  • 439
0 votes
1 answer
144 views

MPMediaQuery songsQuery always return nil

Sample code is expected to play a song available from the iPhone library: MPMusicPlayerController *myPlayer = [MPMusicPlayerController applicationMusicPlayer]; [myPlayer setQueueWithQuery: [...
stephane's user avatar
  • 172
0 votes
2 answers
185 views

didSelectRowAtIndexPath gets called but not prepareForSegue

This only happens when I've run the app fresh for the first time, and even then, when I try to recreate to debug, most of the time it works correctly. I select the song at the indexPath.row, and ...
SRMR's user avatar
  • 3,124
1 vote
0 answers
76 views

Spotify SDK iOS: While Playing Music in background application will be crashed after few second

I am playing Spotify music in background mode. It works fine. But after few seconds application will be crashed. I had tried to found solution but still i could not found any Proper Solution. Please ...
Parthpatel1105's user avatar
1 vote
1 answer
324 views

Audio player works in simulator but not on iOS device

I have the following code initializing: NSString *path = [NSString stringWithFormat:@"%@/test.mp3", [[NSBundle mainBundle] resourcePath]]; NSURL *soundUrl = [NSURL fileURLWithPath:path]; _audioPlayer ...
Kyle Griffith's user avatar
1 vote
0 answers
1k views

Audio streaming library for iOS

I'm working on audio streaming from URLs, so currently I'm just playing audio via AVAudioPlayer but now I want to show it visually too. I searched on CocoaControls but couldn't find any good library ...
Hyder's user avatar
  • 1,173
0 votes
1 answer
370 views

presentMediaPlayerControllerWithURL dismissing immediately without playing the audio

I'm creating a watch application which records an audio and play that audio. The recorded audio is saved in the Apps Groups and I used the following code for playing the audio. - (void)playAudio { ...
Vishnu Kumar. S's user avatar
1 vote
0 answers
82 views

Display SHARE and LIKE button on lock screen

I have a music application for iOS and I managed to run my app in background and display all the information on lock screen, Now I want to display share and like button same as Apple Music player on ...
Niloufar's user avatar
  • 532
1 vote
0 answers
76 views

Indexlist in uitableView not working

I am making a contacts app in which i am fetching the abaddressbook in the uitableview . I am doing this by taking Person (NSObject class). Now i need to implement a indexlist which takes me to the ...
ios's user avatar
  • 975
0 votes
1 answer
148 views

How do you dynamically add new instruments to AUGraph

I am currently making a music app where you can add new instruments as tracks to the music sequnce. Here's what I have for when a new track has been added: MusicPlayerStop(_musicPlayer); status = ...
ipalibowhyte's user avatar
  • 1,563
0 votes
1 answer
191 views

My music player is stop play music when i load my application

I am doing alarm based application in which my application is being prevent from deep sleep and fire local notification when time is comes up.For Prevent deep sleep i am using the ...
Chirag Shah's user avatar
  • 3,056
2 votes
1 answer
894 views

MPNowPlayingInfoCenter always in "playing" state when playing audio through

We develop a cross platform multimedia player. It uses OpenAL for playing audio. On iOS we want to use functionality of the MPNowPlayingInfoCenter and Remote Control Events. Setting current position, ...
bartl's user avatar
  • 392
1 vote
2 answers
3k views

iOS - How to make a UISlider into a "Scrubber / Seekbar" for video playback?

I have an instance of AVAudioPlayer that plays a local audio file from disk. The playback progress is reflected with a UIProgressView. I'm trying to replace that with a UISlider. To accomplish the ...
Alex Stone's user avatar
  • 47.2k

15 30 50 per page