Questions tagged [background-music]

200 questions
1
vote
0 answers

How i can implement media player media session for lock screen?

I'm building a music app and i need to display control panel of my media player on lock screen. How i can do that? I'm already read about media session but idk how to correctly implement it. I need some example
1
vote
1 answer

Is there any way to Play music as background service in playbook?

I have made a music player for blackberry playbook and it is working fine .My problem is I want to play the music as a background service so that if user switches between other app . my music would play continuously .. thanks
1
vote
1 answer

how do i pause a sound / song using python?

I would like to pause the music / audio of chrome. for example when I receive a specific input the audio of a video stops and then restarts when it receives a specific input, what should I use?
1
vote
1 answer

how can I play a .wav file in an exported jar file?

I want to create a game and it should include music which is playing in the background. The music file is a .wav file in a Source Folder. How can I play music in an executable jar file with my code in the main method: public class PlayMusic { …
dantheman
  • 11
  • 1
1
vote
1 answer

Lazarus play music in loop

I've been working on a little tool the past few days and the functionality itself is fine. I wanted to make the tool a little nicer to work with (at least for me) and included a sound-file (called test.wav) which plays one of my favorite songs. The…
AlphaInc.
  • 73
  • 8
1
vote
0 answers

RN 0.63 How to resume music played in background by other app, after my app finishes playing own file

One of the functionality of my_app (React Native 0.63) is to "read some content" when on given screen. On focus there is a 'someTextToSpeech.mp3' file launched. Expect behaviour is: when user has any music on, played from other app in the background…
1
vote
1 answer

iPhone App kill my iphone music player?

As soon as I open app it kills my music player. I dont want user to feel such experience. Sometime user don't want to stop their music player while app browsing. For that purpose I will provide explicitly a button in my app which stop music…
Tariq
  • 9,861
  • 12
  • 62
  • 103
1
vote
1 answer

Change background music volume from activity to service

I'm new to android, and working on a project where I have to implement background music in our app. I've already implemented background music using service, the problem is: I don't know how to change the volume of the music dynamically using a…
1
vote
0 answers

avaudioplayer-two background music problem

I have two .xibs in my app. The first .xib contains a round rectangle button that opens second .xib. ViewDidLoad method of second .xib starts a background music(mp3 file) using AVAudioPlayer and then shows an animation by running a sequence of…
chits
  • 21
  • 4
1
vote
3 answers

How can I play music in background in Python on Windows?

I'm doing something like a vocal assistant in python. Through different modules, I managed to download a youtube video and convert it to mp3. Now I'd like to play it and being capable of pausing it and other actions. I tried with pygame but I…
Filippo
  • 107
  • 1
  • 2
  • 10
1
vote
2 answers

Stopping Background Music When App is destroyed

I am making an android game and I have a service that plays background music. I use two buttons to start and stop the music from the Title/Menu activity. The problem I am having is that if the music is left on when ever you receive a call or exit…
Manji
  • 137
  • 9
1
vote
3 answers

How to play background music in react native expo?

I really dont know how to play background music in react native expo .. I tried lot to add music .. since Im beginner I couldn't found please help me
Arun.k
  • 165
  • 1
  • 2
  • 11
1
vote
6 answers

Stopping BGSOUND element on IE?

I've added background music to a website i'm building (don't kill me). Whereas in IE the element is called BGSOUND, I tried to have a button to pause the music, the button removes the entire element and re-adds it, however turns out removing the…
Asaf
  • 8,106
  • 19
  • 66
  • 116
1
vote
3 answers

How do I play nsf music in C#? (making a game)

I'm making a game with some friends for our last highschool project . I'm having trouble finding out how to play the music I've written in c# and I'm turning here for answers. We're using Microsoft Visual studio 2010, and I've mainly been writing…
user699335
  • 11
  • 2
1
vote
2 answers

Background music stops playing after another sound effect

I'm making a pygame game and I'm trying to add background music. It all works until I click on the space button, which causes annother sound effect (shooting sound), but it stops the background music and I don't know why and how to fix…
Omer
  • 223
  • 1
  • 8