Questions tagged [background-music]
200 questions
0
votes
1 answer
AVAudioPlayer behaviour handling issue
I have been trying to learn AVAudioPlayer and it's behaviour.
So to start with I had written
AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:soundFileURL error:nil];
player.numberOfLoops = -1;
[player play];
It did worked well…

Sagrian
- 1,048
- 2
- 11
- 29
0
votes
2 answers
How to shut down the music in background mode on IOS program?
I make a iOS program to use the AVAudioPlayer to play music on the background. But I don't know how to shut down the music after a certain time.
I try to use the UILocalNotification to stop music in the method:
- (void)application:(UIApplication…

yikyCai
- 21
- 3
0
votes
2 answers
MPMoviePlayerViewController, playing video's sound in background
I'm playing the video stream with MPMoviePlayerViewController.
In my app's info.plist I have set UIBackgroundModes to audio.
When I press home button while playing video playback is paused, after going back to application playback continues…

albicelestial
- 145
- 2
- 12
0
votes
1 answer
No idea on how to update widget from service
I've been trying to make a widget to my music app.
The app has a service that handles the mediaplayer so that i can "minimize" the app and yet continue listening to music.
I know that i need to update the widget from the service, but all the…

Pontus Endlessmind Holmberg
- 161
- 1
- 12
0
votes
1 answer
c# SoundPlayer playlist loop
Maybe I have a simple question, but I am little bit confused from MSDN. I want to use something to play music. I know it may sound easy.
private void playMusic(string path) {
using (SoundPlayer player = new SoundPlayer(path)) {
…

wolen
- 705
- 2
- 8
- 21
0
votes
1 answer
Music doesn't play in .swf locally or online, but plays when viewed via Flash®
I used the following script (AS3) I found online to play the music in my flash. I don't know actionscript.
//imports the necessary as events
import flash.events.Event
import flash.events.MouseEvent;
var isPlaying:Boolean = new Boolean();
var…

DriftingSteps
- 526
- 1
- 7
- 23
0
votes
2 answers
How to create a background music?
I need to run a background music in WP7 Silverlight application. I need it to keep playing when navigating between pages.
Also I don't want it to stop when another sound effect is played.

Hamzeh Soboh
- 7,572
- 5
- 43
- 54
0
votes
1 answer
Misunderstanding on Cocos2D: Layers, static variables and Model View Controller. Can those coexist?
sorry if the question is too dull but I have been trying to understand as much as possible from Itterheim's book book's code example and can't figure out how this works.
In my "HelloWorldLayer.m" I create an instance of a class named "MusicLayer"…

mm24
- 9,280
- 12
- 75
- 170
-1
votes
1 answer
Stop the music in another class?
I'm very new and don't know how to stop my Music in another class. My idea was that I push one button and the music should stop.
public class Musik {
public static synchronized void music(String song) {
final String songname= song;
…
-1
votes
1 answer
QML no audio from sound effect unless background music playing
I am running a QML app using Qt 5.14.2 and notice that my sound effects will not play (generate sound) unless I also have background music playing. I have confirmed with console logging no errors, valid audio file, etc. (11 kbps, 16-bit PCM, 1…

TSG
- 4,242
- 9
- 61
- 121
-1
votes
1 answer
How to stop playing background music on fragmentActivity
I have a Mainactivity extends fragmentActivity (not sure if relevant) and it plays a background music fine. I want the music to stop when you leave the activity. I minimized the codes below. I am getting a nullpoint exception on the onPause()…

Mark Ligot
- 67
- 7
-1
votes
2 answers
swift - bgMusic - fatal error: unexpectedly found nil while unwrapping an Optional value
I've found a bug on my app but only when the app runs on a device, if the app runs using the simulator no error is generated.
I've located the error down to the background music script, the output error is fatal error: unexpectedly found nil while…

Rich Townsend
- 571
- 1
- 5
- 21
-1
votes
4 answers
Giving background music to a webpage
var musicsrc="jyothir2.mp3";
if (navigator.appName=="Microsoft Internet Explorer")
document.write('')
else
document.write('
-1
votes
1 answer
Background music in windows phone 8 SDK [C#]
i am developing an app , and i need to put a song that plays when the app starts
Am using Visual Studio 2012 for Windows Phone 8
How i can do that?

GabourX
- 283
- 2
- 5
- 14
-1
votes
1 answer
Pause and resume background music, while other playing in between
My scene has a background music played, when paused another music stars, but when resumed again I would like to finish the previous background music where it was left off.
As I understand, dension enables only 1 background music to be loaded at a…

Jake B.
- 435
- 3
- 13