MHP play sound, background sound problem

Hi all,
In my mhp app, I need to preview a ringtone, so I use
player = javax.media.Manager.createPlayer(loc);
player.start();
sound played successfully, however, after finish, the background TV sound also gone.. I call player.stop(),also does not work.... any one knows why?
thanks
Aimar
Edited by: AimarAimar on Sep 10, 2009 4:41 AM

Hi,
It seems like the software platform you are using does not manage the presentation resources, in particular between JMF-created audio player and ServiceMediaHandler instance.
Try to stop and start the ServiceMediaHandler (it is also an Player), returned from ServiceContext (ServiceContentHandler[] ServiceContext.getServiceContentHandlers()))
Cheers.
J.W.

Similar Messages

  • Play sound clip as background music while other animation continues? (InDesignCS5)

    BACKGROUND: I'm creating an invitaion with simple animation in InDesignCS5 that will be exported as a swf and html file to be played on the web.
    I've inserted an MP3 file that "plays on page load."  I've got several other items (text) animated that also "plays on page load" but the timing panel has them in a certain order. I've placed the MP3 file on the top of the timing list, as I want it to start first.
    PROBLEM: The sound clip plays all the way through before allowing the other animations to start.
    I tried to group the sound clip with other animations in timing panel (using "play together"), but that ruins the order for everything else.
    I tried to "Loop" the sound to see what happens, and on the second time it plays, the rest of the animation occurs... just like I wanted.....But not until it starts to loop the sound, which I don't want to do.
    Any suggestions for having the sound play as background music to my entire swf file?

    Hello there,
    in order for a sound to play together with other animations you need to put the sound on top of the sequence AND group all animations together with the sound. You can then add delays to the animations if you want them to display in a sequence and not at the same time. If you need more than a single sequence (eg. two audio files speaking in the same slide) you can then add another separate group of audio+animations.
    L.

  • HP G56 intermitte​nt sound problem - e.g you tube/MP3 files play for 10 seconds then stop.

    HP G56 intermittent sound problem - e.g you tube/MP3 files play for 10 seconds then stop.  I have made sure that the latest sound driver is installed and this makes no difference. The laptop is new so there is no other software on it other than the pre-installed stuff operating on windows 7.  In sound options all looks well and the device is said to be working properly.  Even the sound test in device manager sometimes works and sometimes doesnt. 

    karl6792 wrote:
    HP G56 intermittent sound problem - e.g you tube/MP3 files play for 10 seconds then stop.  I have made sure that the latest sound driver is installed and this makes no difference. The laptop is new so there is no other software on it other than the pre-installed stuff operating on windows 7.  In sound options all looks well and the device is said to be working properly.  Even the sound test in device manager sometimes works and sometimes doesnt. 

  • Sound Problems Playing Video's in iTunes

    When i play videos (either ripped or bought from the iTunes store) in iTunes the sound is all broken up and clipped. However they play fine on the Vieo iPod my PC is sync'd to and, critically, iTunes audio files play fine on both PC and iPod. Any ideas? Settings for sound seem fine. I've even upgraded the memory on my Vaio to 1Gbyte in case it was that but nope

    Should have said if I start quicktime seperately from iTunes and play a video stream from its website the sound is fine, however, if I open an Mpeg4 iTunes video file the sound problem occurs just like when i play a video in iTunes from the store or an Mpeg4 file from the hard drive that I've bought from the store or ripped from DVD

  • Please.. need help!! Problem with playing sounds

    Hello, any help at all greatly appreciated.
    I need a dead-certain way of playing sounds with my java application.
    Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds.
    I need a way of accessing the windows sound API from inside my java app.
    Anyone have any ideas??????

    Hello, any help at all greatly appreciated.
    I need a dead-certain way of playing sounds with my java application.
    Java media player doesn't seem to be working with sound files with a duration of longer than 30 seconds.
    I need a way of accessing the windows sound API from inside my java app.
    Anyone have any ideas??????

  • How do you open/play a .wav file (music file) without play sound file .vi

    I am having big problems to create a music background for my project. I am newbie using labview and maybe my questions is not so dificult to solve (I hope so)
    I was using play sound file vi but the problem is that I dont want the music file start automatically. I wanna control the start time using a button. I tried include a sound output stop but when the app start and I add more wav files in my vi, the sound file start, then stop abruptally because the stop vi and the everything is normal. I would like to eliminate that error.
    Someone have any idea, maybe using open file or another way. 
    Thanks in advance
    I add a screenshot of my vi and also the vi in this post
    Attachments:
    test sound.vi ‏11 KB

    I leave an example that can provide, use it in your program
    Atom
    Certified LabVIEW Associate Developer
    Attachments:
    playsound.zip ‏58 KB

  • Inspire 5.1 P5800 Sound problem...

    Hello Everyone
    I have a Sound problem with my 5.1 speaker system. When I turn it on,(playing music or not)I hear a terrible loud/high background noise, like a constant interferance. It's a very unpleasant sound. The noise come from all satelites speaker(Speacially the center speaker.)
    I'm sure that all conections is ok.
    Please help me to solve this problem.
    PD.: If it's help I have a Compaq Presario SR602LS Desktop PC.

    1 Identify which component causes it; plug headphones to your computer to see if that has noise, try all three connections. Then, connect all speaker inputs to a different source, like a mp3-player.
    2 If both are noise-free, it has to be some kind of interference. The cables to the satellites are coaxial so they are not likely to be the cause, but the 3,5mm jacks to the sub might be. To find out if they are, try moving your sub around your room to see if the noise changes (both decrease or increase).
    3 If the problem cannot be traced to either or 2, it might be a groundloop: that the signal fed from, for instance, your computer, to the ground connection of your electricity-plug is picked up by your speaker set. To check this, try connecting your set to a different electrical group or at least a different plug.
    In case 1: if it's the pc, try grounding it if it's not already. If it's the speakerset it will not be so easy to solve.
    In case 2: see if you can connect the sub to your pc using coaxial wires (or perhaps even optical, I am not familiar with the set), you might need some 3,5mm-to-RCA-plugs for that, or if you can somehow shield the inputcables by wrapping it in aluminum-foil or anything.

  • ITunes sound problems

    I've recently been experiencing problems with the sound output in iTunes. My songs do play, but there's a distracting steady "wooshing" sound in the background, similar to the sound that speakers at a high volume make when they are playing dead air.
    **My other programs (WinAmp, Windows Media Player) are working fine**
    I'm having an even bigger issue with Quicktime, which makes loud crackling and popping sounds everytime I try playing sound or video in it. I have a Creative SoundBlaster Audigy 2 sound card. I have no idea how I might fix this issue in iTunes, and I've tried changing the audio settings in Quicktime, with no luck. Can anyone help me? Thanks.
    - Dan

    I too have a SB Audigy 2 and have experienced difficulties. I tried contacting Apple, explaining my exact problem and all the things I had tried... They responded by sending me a cookie-cutter response:
    Dear Customer,
    Thank you for contacting the iTunes Music Store.
    Audio files purchased through the iTunes Music Store are >available in the
    MPEG-4 protected AAC audio format. These files are encoded >at 128 kilobits per second (kbit/s). There are no other >codecs or bit rates available from the iTunes Music Store.
    You cannot convert protected AAC files to other formats, >including MP3.
    Needless to say, Apple won't read support e-mails thus there is NO point contacting them. Tomorrow I'm going to phone Apple and play music LOUD down the line until they fix it, see if that gets them moving.

  • 6533 Sound problem

    I have just installed a 6533 m/b with SiS651 chipset. Realtek AC'97 Audio and drivers are installed with no conflicts. This has been reinstalled from both CD and web site several times. Multi media indicates that Audio for Realtek AC'97 s installed but under the Audio tab only Wave devices for modem and a game compatable device are installed. The volume button is inactive. The soundmanager icon is installed but I am unable to activate either sound manager or volume control. I have run through the troubleshooter but have been unable to correct the problem. All audio programmes start but do not play sounds. I can play CD's so the speakers are operating and connected correctly. The only error indication I get is when trying to play a .wav file on sound recorder, when it tells me 'Another application is playing audio. etc' I have checked the running programmes and can not detect any other sound programmes running. Can anyone assist?

    Hi Bowser,
    Did you install any other apps for sound playback in your windows? Me for example, has several, i.e., WMP 9 Full, Winamp 3, RealPlayer 1, Quicktime 5.5. It may not be IRQs conflicts but it may turns out to be background active sound playback programs fighting for a place to playback your media with your current activited apps.
    Another way is to see which is your default player, to do this, click on start button> run> type in "dxdiag" and enter> under sound, do all the neccessary tests and see what version of directX you are on and which is your default app and codecs.
    All the Best... :D!!!

  • MSI GT660 Sound Problem (Win 7)

    Hey guys, i recently decided to reformat my MSI GT660, so obviously something i have not installed correctly has caused this problem. I'm just not sure what. The sound works, it's just as i'm playing music in the background every now and then, it'll sound distorted and messed up for a few seconds, then go back to normal.
    It keeps doing this, and it's really annoying. I tried reinstalling the Realtek HD audio driver, but no luck. Any ideas?

    Quote from: Bas on 12-October-11, 00:39:47
    The sound is MP3? Internet?
    Played with what player?
    What do you do in the foreground?
    100% CPU load can cause such too.
    Your information is waaaaay to little to even start guessing.
    Hmm yeah, guess i wasn't really thinking. Right, it's played using Spotify, i just tested with Winamp though and the same problem is there. So it's all kinds of sounds really. I don't think it's 100% CPU load cause i checked the core history and none hit 100%, also i'm only browsing the internet when this happens. So to answer the question of what i'm doing, not much really just opening new windows etc.
    It never used to do this before i reformatted it, and it's only just started now. I don't think i noticed any sound problems when i was playing a game earlier though... i'll have to check that one out.

  • My ipad mini speakes crackile when they play sounds

    I just got on my ipad and played some music. The voices in the song are clear but they music in the background is horrible. Whats wrong?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased.
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
    If the above doesn't work,Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • Help with playing sound in applications

    im new to java and i was practicing playing sound in a swing application but the problem is that when i press the play button no sound is played...here is my code
    import javax.swing.*;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.io.File;
    public class JukeBox extends JFrame {
        private JLabel label;
        private JPanel panel, buttonPanel;
        private JComboBox playList;
        private JButton play, stop;
        private URL url1, url2, url3, url4, url5, url6;
        private AudioClip[] musicList;
        private AudioClip current ;
        public JukeBox() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(500, 120);
            setLocation(50, 50);
            setTitle("JAVA JukeBox");
            url1 = url2 = url3 = url4 = url5 = url6 = null;
            current = null;
            try {
                url1 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\bottle-open.wav");
                url2 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\BP2.mp3");
                url3 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\fhm.aiff");
                url4 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\jungle.rmf");
                url5 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\spacemusic.au");
                url6 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\trippygaia.mid");
            } catch (MalformedURLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);
            label = new JLabel("JAVA JukeBox", JLabel.CENTER);
            String[] musicList = {"select a track..."
                    , "bottle open"
                    , "bitch please II"
                    , "flutte, harmonica, mambo"
                    , "jungle"
                    , "spacemusic"
                    , "trippygaia"};
            playList = new JComboBox(musicList);
            playList.addActionListener(new ListListener());
            play = new JButton("Play");
            play.setActionCommand("play");
            play.addActionListener(new ButtonListener());
            stop = new JButton("Stop");
            stop.addActionListener(new ButtonListener());
            buttonPanel = new JPanel();
            buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
            buttonPanel.add(play);
            buttonPanel.add(stop);
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.add(label);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(playList);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(buttonPanel);
            getContentPane().add(panel);
        private class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if(current != null){
                    current.stop();
                if(e.getActionCommand().equalsIgnoreCase("play")){
                    if(current != null){
                        current.play();
        private class ListListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if (current != null) {
                    current.stop();
                current = musicList[playList.getSelectedIndex()];
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            JukeBox jb = new JukeBox();
            jb.setVisible(true);
            jb.setResizable(false);
    }can u please tell me whats wrong with my code coz i cant hear no sound when i press the play button and can u please tell me why i cant simply put the file name in the URL instead of the complete path although the files are in the same directory of the source code and can i play mp3 using this little program ???
    plz help...im a newbie so plz explain as much as u can...

    After
    musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);initialise the variable current with
    current = musicList[1];or similar because the AudioClip current always == null in your code so your listener blocks don`t execute.
    regards

  • Desperately need some help!! iTunes/Quicktime/iChat/Sound problems....

    So, yesterday, I was online, on google video, and when I pressed play on the video, there was no sound, but the video worked...the same was true on every video site i checked. My computer volume was at max, and I even tested the speakers to make sure they were on, and they indeed were.
    I thought that was odd...but then the problems really started.....
    After that, I clicked on my iChat icon. It bounced once, and did not open. The same thing happened when I clicked on iTunes. 1 bounce, and then nothing. I checked to make sure all of my iTunes mp3 files were on my computer....they indeed are all still here, bit nothing I can do opens iTunes. I've run disc utilities, and disc repair...according to that, everything is peachy-keen on my computer.....but iChat and iTunes STILL will not open, and there is still no sound on anything.
    Now, i'm leaning towards the archive and install option....or even just backing up what I want to save, wiping the drive, and starting from scratch.....but i'd really like to not have that happen.
    (and, as a side question, if all I want to save are images, several documents, and many mp3 files, would everything be okay if I just backed them up on an external drive, and then loaded them back on to my computer after reinstalling OS X?)
    Sorry about the length of this, but I am at my wit's end, and I have no idea what to do.

    by third-party, do you mean things I installed that are not manufactured by mac? If that is the case, I have microsoft office, Smart Music, Flip4mac, and Senuti.
    I got rid of Flip4Mac to see if that affected my sound problems, but it did not. So, as of now, my problem remains the same...

  • Help! My phone will not play sound when an app is open?!

    Seemingly out of the blue, my iPhone stopped playing sound through the external speaker. This began about a month or two ago and I have been unable to fix the problem. The sound will play through the external speaker until I open another app (safari, camera, etc.). The sound used to work through headphones until this morning. Now the sound won't work... At all! I brought my phone to an apple store a week ago and the first guy checked my phone with a flashlight and told me first that there didn't seem to be any water damage. Then, some other technician helped me. He opened iTunes and miraculously, the song played! I couldn't believe it was magically working. He explained that it looked like my dock connector was looking a little eroded and that is why the sound doesn't work. He said he could try to brush it out and that should fix the problem. Tried my phone later... Volume doesn't work anymore! The dock connector works fine otherwise, I am still able to charge my phone. My phone will not play music via bluetooth speaker. I talked to multiple people on the phone who all seem to think it's a software problem... I am really not understanding what is going on with my phone! I have googled this problem many times in the last few months and most people say that it turned out to be a software issue. I have checked both water indicators (in the dock connector and the headphone plug, right?) with a flashlight and I don't see any red... Any insight or ways to fix this would be very appreciated! The whole thing makes no sense to me.

    Are you using an APple charger or a thrid-party one?  I ask because if you are using a third party charger, it may not be wired properly and it may be telling your iPhone that the cable connected is also an audio interface so your iPhone may be sending the audio signals through the cable to the charger.  I have a charger in my truck that also doubles as an FM transmitter so I can play my iPhone audio through the truck radio.  Your charger may be doing something similar, especially if it is not an Apple charger.

  • How do I tell Apple to fix their software like apps that play sound even though the sound is turned off and not being able to disable features you hate like game center

    Apple is suppose to be the pinnacle of usability and, yet, I want to throw my new IPhone 4s as far as I can and watch is smash into a million pieces on concrete. Seriously, I've already got three things that irritate the **** out of me. First, there are Apple apps that insist on playing sound even though the sound is turned off. If I flick a switch to turn the sound off, I want the sound off!!!! Second, if I do not want a totally unnecessary feature like Game Center, I should be able to disable it. I completed most of the Angry Bird levels with 2 or 3 stars and now I have to start over from square one. Maybe, this happened when I upgraded to the 4s but it sure seemed to happen when I joined Game Center. Tomorrow, I am going to reset my 4s to factory defaults to try to get rid of my Game Center account. I don't want Game Center! I do need Game Center! I hate Game Center! Finally, I had an alarm go off to wake me up and there was a Snooze button but no button to turn the alarm off. I flicked the slider to access the main screen expecting to see something to turn the alarm off but there was nothing. The alarm just kept alarming. I had to warm boot my IPhone to shut the alarm off! Really, Apple!!!!

    The sound is turned off. Only, some Apple apps like YouTube and Siri make sound when the sound is turned off. It is very embarrassing when this happens at work. My question was how do I tell Apple to fix this?
    Turning off game center does not work. The games just prompt me to sign in when they are started.I have tried everything I can find online to stop this behavior. It is annoying and should not happen. My question was how do I tell Apple to fix this?
    The alarm went off. There was a green thing that looked like a button but pressing it did nothing. There was a red button that said snooze. I did not want to snooze. I wanted to turn the alarm off. I slid the bar to unlock the phone and there were no running apps with a button to press. The alarm just keep running. I have not had this problem since it first occurred. The alarm now shuts off when I just unlock the phone. It may have happened because I had another alarm app running. The two may have interfered with each other. I would like to tell Apple about it.
    It also annoys me that the button that closes apps leaves the phone app running. If I press on a number at 6:00 AM to get information about who called me, the phone automatically dials the person back and my natural reaction is to press on the button to close the phone app but the phone keeps dialing this person at 6:00 AM. It is a bad design. I would like to tell Apple about it.
    Finally, I looked all over Apple's site to try to find someplace I could send them a polite message to let them know that I was not happy with these "features" but could not find anything. It is extremely frustrating to have issues with a product and not being able to tell the manufacturer about it. So, you grow up!.
    When trying to fix the Game Center issue, I saw a link someone posted to report issues with the IPad to Apple. The answer I am looking for is where is the link to report issues with the IPhone.

Maybe you are looking for