FAQ Database Discussion Community


xcode - MPNowPlayingInfoCenter info is not displayed on iOS 8

ios,xcode,mpmovieplayercontroller,lockscreen,music-player
I'm developing a music application, which should play music in the background. I use the MPMoviePlayerController to play the music. My code to initiate the MPMoviePlayerController: NSString* resourcePath = [[NSBundle mainBundle] resourcePath]; resourcePath = [resourcePath stringByAppendingString:@"/music.m4a"]; NSError* err; self.player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:resourcePath]]; if (err) { NSLog(@"ERROR: %@", err.localizedDescription);...

How to have current [indexPath.row +1]?

ios,streaming,avfoundation,spotify,music-player
I'm building a Spotify iOS SDK music client and am stuck at how to get it to play the next track. The SDK comes with a SPTAudioStreamingPlayer takes in the URI of a track. I have an array of Spotify SPTSavedTracks and would like to be able queue/skip to next...

How to check if new songs have been added: Android API 21 only

android,android-5.0-lollipop,android-4.4-kitkat,music-player
Reference: In PlayMusic app as soon as a song is added the library is automatically updated even when the app is running. How can the same be implemented for building a new music player app? I am using MediaStore.Audio.Media to get the initial list of all the songs. ...

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

ios,objective-c,iphone,music-player
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 mmpdeepsleeppreventer but it raise one problem in my application.When any one play music in music player and start...

How do I get music to persist as I navigate from view to view?

ios,iphone,swift,avaudioplayer,music-player
So, I have mastered the art of playing sounds/music using one view in iOS, but I am now trying to make a more robust app for an musical artist. Thus far, it involves segues from a "menu" ViewController to his Bio, Show Times, and "Listening Room" etc. Thus far, I...

Soundcloud js api. Can't stop playing

javascript,soundcloud,music-player
I'm developing app to play soundcloud traks. I'm using ttwmusicplayer and want to bind soundcloud actions on it's play/pause. So, I'm doing it like this: $("#mainPlayer .jp-play") .off("click") .on("click", function(){ $("#mainPlayer .jp-play").css('display','none'); $("#mainPlayer .jp-pause").css('display','block'); SC.stream('/tracks/208818225', function(sound){ sound.play(); }); }); $("#mainPlayer .jp-pause") .off("click") .on("click", function(){ alert('IT WORKS'); $("#mainPlayer .jp-play").css('display','block'); $("#mainPlayer...

Android MediaPlayer pause() stops the player and start again

android,android-studio,android-mediaplayer,music-player
I need to play audio in an Android application so I used MediaPlayer. I created 2 buttons: Play and Pause but after I paused a song and want to resume it, the song starts again instead of resuming from where I left. I wrote this code: public MediaPlayer mediaPlayer =...

ttwMusicPlayer action on play button

jquery,music-player
I'm using ttwMusicPlayer on my site. It's usage is pretty simple. <div id='mainPlayer'></div> in html and in js $('#mainPlayer').ttwMusicPlayer(myPlaylist, { autoPlay:false, description:description, jPlayer:{ swfPath:'path where jPlayer.swf is' //You need to override the default swf path any time the directory structure changes } }); It's easy, I have now good looking...