Questions tagged [background-music]
200 questions
1
vote
1 answer
Trouble launching game and music (at the same time) when pressing 'run' on Eclipse
I have this code to play music (found online):
import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;
public class MusicBackground {
public static void main(String[] args) throws Exception {
URL url =…

Vico Lays
- 53
- 6
1
vote
0 answers
Background music not working when physicsWorld added
This is my code. The music is not playing for some reason and it started when I added my physicsWorld function. I already checked my sound mp3 file and it seems to be working. I even ran a previous version (same but without the physicsWorld stuff)…

AglaiaZ
- 31
- 6
1
vote
8 answers
Music Loop in Java
Good day!
I am doing a game and I want it to have a background sound. I created a class for it and I call it on my main. My code is as follows:
import sun.audio.*;
import java.io.*;
public class Sound {
public void music() {
…

newbie
- 14,582
- 31
- 104
- 146
1
vote
2 answers
ASP.Net Background Music
I have a website with a master page and I want to play an mp3 file in the background, in every page.
tried bgmusic but its not supported and so is embed.
Any Ideas?

Or Betzalel
- 2,427
- 11
- 47
- 70
1
vote
0 answers
Using Spotify with PageFragment
I'm trying to hook up Spotify with my Android app. I want to be able to hit a button and have the user be able to start playing from their library on the 4th tab of the TabLayout, and have the ability to swipe back and forth from one tab to another…

Kevin Kokomani
- 1,568
- 7
- 14
1
vote
1 answer
Can't play .mp3 audio file as Background music
I want to play my audio file as background music when my window opens in my Wpf project.I use MediaElement control. Like

Sara Murtuzayeva
- 60
- 1
- 6
1
vote
1 answer
How to stop music when user exits the app
I was reading many tips and answers to similar questions but can't get it done with my piece of code. The isse is that music is played in background even when you exit the app. Can you help me to fix this?
I have the button which clicked starts the…

Pawel
- 57
- 11
1
vote
1 answer
How to turn off music bgm(Background Music) from other java
I am making an app where bgm start from main page. But I couldn't find a way to turn it off when starts learning.
Can I remotely switch off bgm from different java file
This is my 1st java,mainmenu.class
public class mainmenu extends…

T-dean
- 11
- 6
1
vote
1 answer
Background Music Stop/Mute on iOS
I'm creating my first app. I have an app with music playing in the background with the following code:
var backgroundMusicPlayer = AVAudioPlayer()
override func viewDidLoad() {
super.viewDidLoad()
//background Music
func…

Arsene Survie
- 13
- 4
1
vote
1 answer
How to mute background music in html page
As per clients requirement, i have added a background music to webpage. I have set the music in loop mode to play it continuous. I have used tag to play the audio. The problem here is how to implement mute button so that client can mute…

IrfanRaza
- 3,030
- 17
- 64
- 89
1
vote
1 answer
Ticker doesn't work in background
I am working on background music, streaming music from website. I am trying to get info about music every 3 seconds from web, even when the app is closed. Everything is working except my ticker which is not working in background.
This is my…

Jacek Grzelaczyk
- 783
- 2
- 9
- 21
1
vote
1 answer
How to detect that music play in background
I want help in detecting if there is a music play in background on the phone or not because I play more than one music sequentially in my app but they are intersection
thank you

Andrew Emad
- 277
- 3
- 13
1
vote
1 answer
Should an App's background music have a thread of it's own?
I'm trying to build an app where a piece of Music is played whenever the onCreate() is called, and I want for this music to be played throughout the whole app ie across Activities. what I've done so far is to create a Thread,within the OnCreate(),…

RaedTabani
- 13
- 3
1
vote
0 answers
Background Music Stops after Call Interruption in iOS 8
thanks in advance.
I have to play music in background using AVAudioPlayer but my background music not working after call interruption. Please tell me any solution for that.
Thanks

Jignesh Patel
- 43
- 5
1
vote
1 answer
How can I continuously play background music while switching to different views using swift?
I'm pretty new to swift and coding in general. I'm making a game now and I've added some background music and that's all working fine. I even figured out how to have the music play continuously when switching to different views, but every time I go…

Casper
- 63
- 1
- 1
- 5