Questions tagged [background-music]
200 questions
38
votes
7 answers
Android background music service
I am developing an entertainment app in android. I want to play background music, and I want to use service for that. App have 3 activities and music must be played across all activities. Also, when activity is paused, music must PAUSE and stopped…

Rohit
- 2,538
- 6
- 28
- 41
32
votes
6 answers
Playing BG Music Across Activities in Android
Hello! First time to ask a question here at stackoverflow. Exciting! Haha.
We're developing an Android game and we play some background music for our intro (we have an Intro Activity) but we want it to continue playing to the next Activity, and…

jhie
- 641
- 2
- 6
- 12
22
votes
11 answers
Web Usability - Background Music
I personally loathe background music on a website. My client has opposite feelings on the subject. I added music because the customer is always right, though I'd like to revisit the subject with them.
Almost everyone would agree that it is annoying…

DavGarcia
- 18,540
- 14
- 58
- 96
13
votes
1 answer
How do you check if music is playing by using a broadcast receiver?
I would like to prevent some of my code from executing only when music or videos are currently playing. How would I accomplish this using a broadcast receiver?

Emad-ud-deen
- 4,734
- 21
- 87
- 152
12
votes
2 answers
How do I make my App run an NSTimer in the background?
I'm making a benchmark App for test purposes ONLY. I am not intending this to go to the App Store.
What I need is my NSTimer to continue running on the background using a UIBackgroundTaskIdentifier, save data to a Core Data db and finally push the…

LilDwarf
- 543
- 1
- 4
- 14
8
votes
3 answers
Play sound file when image is clicked
I am not a native HTML programmer, so please don't jump all over me about this simple question.
I have an image that, I am displaying using the following code:


Prajoth
- 900
- 3
- 12
- 26
7
votes
4 answers
background device music gets stopped as app starts ios
I am playing music in iphone and when I run my application it should not stop background device music and should stop its own music instead background music is getting stop. I want to do same as candy crush app. What should I do to resolve this?…

Zalak Patel
- 1,937
- 3
- 26
- 44
6
votes
1 answer
How to play sound on two different DOSBoxes simultaneously?
I have created the game "Angry Birds" in assembly 8086. My main problem now is that I want to play the song of the game while the main loop is running. I've already written the code for the music. I thought about using multi-threading but found out…

Boomer
- 61
- 3
6
votes
1 answer
Swift - Detect music playing, whether it's Spotify or iTunes
I am currently using the following statement to detect music:
if MPMusicPlayerController.systemMusicPlayer().playbackState == .Playing {
print("There is music playing")
}
Great, however this will only work for iTunes player, and not music that…

zantuja
- 211
- 1
- 4
- 14
6
votes
1 answer
Is it possible to detect non-ipod music?
Is there any way to detect if music or media from another source other than the iPod app is playing?
I know that I can detect music playing from ipod with:
[[MPMusicPlayerController iPodMusicPlayer] playbackState] ==…

Krejko
- 901
- 1
- 9
- 23
5
votes
4 answers
how do I play mp3 file?
How can I write a script in ruby which plays mp3 file (background-music) when executed from command-line?
I tried this
run = "mplayer #{"/Users/bhushan/resume/m.mp3"} -ao sdl -vo x11 -framedrop -cache 16384 -cache-min 20/100"
system(run)
but it is…

Bhushan Lodha
- 6,824
- 7
- 62
- 100
5
votes
1 answer
Good background music for a software demo?
I remember seeing some software applications demos before where they don't have any narration but just a background music played (no words, just the acoustic)...but i was never able to know the name of them. Any suggestions? It was pretty fast…

James Gu
- 1,382
- 4
- 26
- 39
5
votes
2 answers
libGDX/Android: How to loop background music without the dreaded gap?
I'm using libGDX and face the problem that background music does not flawlessly loop on various Android devices (Nexus 7 running Lollipop for example). Whenever the track loops (i.e. jumps from the end to the start) a clearly noticeable gap is…

SePröbläm
- 5,142
- 6
- 31
- 45
4
votes
2 answers
How to get music to play in Delphi 7?
I need to get music to play in the background in the start of the program in the OnFormActivate event for my program. I have the song I want to use but I dont know what command Delphi needs to use in order to start playing that song.
Thanks for you…

Nyt Ryda
- 335
- 2
- 4
- 9
4
votes
2 answers
How to loop music in WP7 BGM?
private void button1_Click(object sender, RoutedEventArgs e)
{
MediaElement Lala =
((MediaElement)App.Current.Resources["backgroundMusic"]).Stop();
if (Lala == true)
{
…

lala
- 41
- 3