All Questions
Tagged with audio-player objective-c
29
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 ...
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 ...
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 ...
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: [...
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 ...
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 ...
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 ...
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 ...
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
{
...
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 ...
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 ...
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 = ...
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 ...
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, ...
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 ...