How to play mp3 speaker BB Storm?

I'm playing an mp3 on the storm.  I read through known (see thread below), I have to come sound in the headphones, but I'm still not able to get sound from the speaker of the device.

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=12344&query.ID=89...

The thread that the above indicates that the solution is to change the AudioPathControl after the media are started.  I put tracing instructions in the code and AudioPathControl.getAudioPath () == before AudioPathControl.AUDIO_PATH_HANDSFREE and after I start the media.

Here is the code that I use - help is appreciated

public void tileFlip () {}
try {}

tileFlipPlayer.start ();
AudioPathControl apc;

Check [] c = tileFlipPlayer.getControls ();
for (int i = c.length - 1; i > = 0; i--) {}
If (this [i] instanceof AudioPathControl)
APC = c (AudioPathControl) [i];

break;

} / / end for

If (apc! = null) {}
apc.setAudioPath (AudioPathControl.AUDIO_PATH_HANDSFREE);

}
catch (Exception e) {}
System.out.println ("ERR:" + try ());
}
}

I use 4.7.0.76 on BB 9530.

I used the Fund Manager to do an update and 4.7.0.76 is the version that was on the phone when finished.  I know there are versions later, but if most of the phones do not have this version - then my sounds will not play.

I did my prefetch when I booted the player - I don't understand this part of the code, because it was not relevant to the discussion.

BTW - person knows if there are release dates to a later version of the operating system - one that will have the correct features for players?  If I can hold off the release soon.

At the end of the day - he was not changing the audio track that does work, but the volume (as suggested in another thread).  It's REALLY STUPID to have to lose resources system on a thread just to play the sound.

class SoundThread extends Thread {}
a private player = null;
private VolumeControl vc = null;
Private boolean evenLoops = false;
Private final int VOLUME_LEVEL = 30;
   
public SoundThread() {}
       
}
{} public void setPlayer (player p)
Player = p;
VC = (VolumeControl) player.getControl ("VolumeControl");
vc.setLevel (VOLUME_LEVEL);
}
  
private void toggleVolumeLevel() {}
If (player! = null & vc! = null) {}
         
If {(evenLoops)
evenLoops = false;
vc.setLevel (VOLUME_LEVEL);
}
else {}
evenLoops = true;
vc.setLevel (VOLUME_LEVEL - 1);
}
System.out.println ("Volume is"+ vc.getLevel () ");
}
}
   
public void run() {}
try {}
While (true) {}
toggleVolumeLevel();
Thread.Sleep (50);
}
}
catch (Exception e) {}
}
}
}

Tags: BlackBerry Developers

Similar Questions

  • How to play MP3/MP4 player with external drive?

    Whenever I want to play an MP3 that is online, opens a new tab in Firefox and the MP3 plays inside Firefox. No matter what I do: I put in MP3 to play with Windows Media Player (or always ask) but Firefox ignore this parameter. Or with other mediaplayer, Firefox always keep to play it in the browser itself.
    I know it has something to with Quicktime cause when I uninstall that MP3 are open in the mediaplayer to my choice. But as soon when I installed Quicktime (or Quicktime Lite also), Firefox does not take account of my settings and only play it in the browser. I have Quicktime for my music and video editing software, otherwise I would not install it. With Quicktime Lite codec alone does the work, but also with the fact that Firefox doesn't play MP3 and MP4 files with my player of choice. It goes the same for MP4 files: no matter what I do, Firefox it plays in the browser itself, instead of the parameter in the Firefox Options to set my player of choice, I did.

    Hello meegja, enter about: config in the firefox address bar (confirm the message information where it appears) and search for the preference named media.windows - media - foundation.enabled. Double-click on it and change the false value - this will also disable the support of native html5 for mpeg formats incorporated into Web sites that...

  • How to play MP3s... not like you think

    Okay, so I had an audio program of the Bible, and I transfer MP3s to the phone and all that. The problem is the MP3s is not divided into chapters, as you would expect, but in the verses! This means that there are thousands of MP3s!

    So, the question is, is there a way to cause all the MP3s in any folder so that I don't have to play each one individually? I mean, it would simply be impossible.

    Thank you

    Starkman


  • How to play mp3 in the simulator of Tablet

    I want to integrate its App, the snippet of code as follows:

    Sound/speakers in the Simulator do not currently work.  We hope that in the next version of the SDK.  If it works as an AIR application, you are safe to assume that it will work on the device end probbly.

  • MP3s used to play in a new tab on middle mouse click. It now shows a save/open with dialog box. How to play n record mp3 if I want to?

    Previous links to files mp3 used to get opened and played in a new tab by pressing the click way/scroll button. Like played mp3 I had an option to record the audio. After a reinstall of my OS (currently on Win 7 Professional 32 bits) and Firefox 41.0.1, I'm not able to do the same. Middle mouse click now opens a new tab and a dialog box open with - or save - as. There is no automatic playback. I would like to have the old function of Firefox. I don't know if my OS has installed SP and I am not able to install OS updates at the moment. Are there settings to do or a particular version of firefox to install to get what I want? I'm just an average user with a bit of computer know how. Thanks in advance.

    Make sure that you have supported for Windows Media Foundation in your operating system.

    topic: config page:

  • How can I play MP3 links via Facebook messenger on my iPad mini

    How can I play MP3 link on my mini iPad Facebook messenger, I have the latest version of iOS

    Wgreigson wrote:

    How can I play MP3 link on my mini iPad Facebook messenger, I have the latest version of iOS

    ask facebook.,.

  • How to convert an mp3 file to a file rtext? Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    Can I use windows media player to play mp3 and have the recigition speech to convert to text?

    You can get on a conversion of 70% in reading a file in Windows Media Player using something like Dragon Naturally Speaking to convert. If you set the playback speed to slow in Windows Media Player to play > play speed, you will get a better result. The best option is to download the file to an audio transcription service, but which generally costs 0, 50-1, 00 per minute of audio.

  • MP3 not "playing on Simulator for storm 4.7. *

    Hello

    I have a problem where I like to read mp3 in the file system on Simulator.  I have traced the SD card in my pc file system. The code works for all simulators I've tested except models storm running 4.7. *.

    The SIM for 9500 5.0 running works well.  The code has also only a problem for all the ringtones I got from Crackberry ringtones, but it works on my own mp3s.

    I've narrowed the problem to player.start that throws IllegalStateException.  I checked my permissions are ok - IE.  the application has permissions to media.  I checked the files played on the BB Media Player.  the code is pretty generic - get the file connector, open the input stream and start the player.

    Someone sees this sort of thing on storm 4.7* simulators?

    More strange findings (error checking and various removed).  For specific MP3, on the storm 4.7. * simulators

    It works:

    Reader = javax.microedition.media.Manager.createPlayer (pathToFile);

    This is not:

    fconn = (FileConnection) Connector.open (pathToFile);

    ringToneInputStream = fconn.openInputStream ();

    Reader = javax.microedition.media.Manager.createPlayer (ringToneInputStream, "audio/mpeg" "");

  • Cannot download mp3, it play mp3 instead of downloading

    Cannot download mp3, it play mp3 instead of downloading.

    below is the link to test your

    FTP://www.AMTB.jp/MP3/02/02-040/

    previous version works perfectly, download smoothly.
    Appreciate back to previous versions.

    Thank you
    Ho

    Hello, CMC,

    Thanks for posting about Mozilla Support. We value and appreciate as a user.

    How do you normally download your use out there? You hold the key on the mp3 then save them? Or do you just rely on them?

    Thank you!

    Did you know that Mozilla Support is aided by volunteers? Be part of SUMO! http://MZL.la/OJtpch
    Make a donation of more than $30 and get a T-Shirt! https://donate.Mozilla.org/page/contribute/joinmozilla

  • No sound in windows media player (11.0.6002.18111) only trying to play mp3 files. No way of fixing/uninstallation or reinstallation. Need advice!

    I recently encountered a problem with Windows Media Player 11 (a specific version in the title of the topic) where no sound play atall when you try to play mp3 files. When trying to play a track of the progress indicator moves VERY slowly and jumps in a stuttering mode and no sound whatsoever is coming through the speakers. He is a recent problem.

    All audio files work on other audio programs like Real player, quick time e.t.c. and the sound comes from the computer normally. Only the sound that I have are with windows media player when you try to play mp3 files. Still fine read video files, wav files play fine. How boring is that he suddenly decided he likes are more mp3 files!

    More annoying, I stumbled upon the fact that I can't uninstall the reader as in Vista, it is part of the operating system literal, I can't download and install WMP install package from Microsoft because I tried and it tells me that I have a more recent version of Windows media player and therefore impossible to use the downloaded Setup program to install or repair windows media player. It is therefore impossible for me to get an installation package that is newer than the one on the computer, you would have thought that the downloadable installation on the microsoft Web site would be the more recent but no!

    I can't think of a way to solve this problem. For me it feels strongly a Codec issue to do with MP3 and WMP but I don't really know about Codecs enough to go on the setting of the specific Codec with the question, or even track down which codec it is perhaps whether she "is" a codec problem in the first place.

    I tried settings with the menu of options in WMP 11 troubleshooting unsuccessful (obviously), I also tried an audio tool / repair of breakdowns than microsfts audio troubleshooting prompted me to try, that of no problems with the actual audio devices on the system... I KNOW, his problem with WMP and mp3 files!

    So, to summarize, WMP doesn't read MP3 files, I can't run a repair tool that there is no 'installation' to WMP 11 package, it is not an uninstall utility is which means that I can't uninstall it to reinstall a new, I can't download the installation package and run it as apparently I have a more current version than is available on the microsoft Web site. Then what should I do?

    I need some advice on how to go about trying to solve this problem I've hit a bit of a brick wall...

    Any advice would be much appreciated!

    FIXED!

    randomly enough rate and bit depth format sample somehow has set high in the sound control panel, advanced driver.

    After hitting "restore defaults" it resets the depth of rate and little sample return at: 16 bit 44.1 khz

    The sound now plays perfectly.

    Weird it performs only mp3 files!

    Thanks for the help people, it seems that I ended up sorting out on my own though! Yay for me! haha

  • How to play music stored on my USB

    I downloaded music on a USB stick, but I can not play music. It shows all the music I have on this subject, but I click on the song and nothing happens, can someone help me please? Some of the songs are from my library (CD I ripped) othersare downloaded legally on the web. Thank you

    original title: how to play the music stored on my ubs

    USB? A stick, mp3 player?

    Including a (brand, name, model number?

    You try to play where - Windows Explorer? Elsewhere?

    But... have stupid question, you tried double clicking on a song to see if it works?

    See you soon,.

    Jerry

  • Can't hear playback of mp3 on the storm

    I use the following similar code in my application by one of the poster

    play a sound mp3 on the storm.  The app works very well in the Simulator.

    public void playClick( ) {
    
                try {
                    Class cl = Class.forName("net.berrysoft.dib.Dib");
                    InputStream is = cl.getResourceAsStream("/sounds/switch.mp3");
    
                    // Create an instance of the player from the InputStream
                    player = Manager.createPlayer( is, "audio/mpeg" );
                    player.realize();
    
                    volumeControl = getVolumeControl(player);
    
                    if (volumeControl != null)
                        volumeControl.setLevel(volume);
                    player.prefetch();
                    player.start();
                } catch (Exception e) {
                    System.out.println("ERR: " + e.toString());
                }
        }
    
        private VolumeControl getVolumeControl( Player p ) {
            return (VolumeControl)p.getControl( "VolumeControl" );
        }
    

    the problem is that I can't hear the sound when I plugin the atrium.

    Once I unplug I can't hear anything.

    The sound works on my Storm. I can listen to music with the media app.

    someone knows why?

    THX. I read your responses on the other thread.

    No wonder he has many updates. hehe

    I hope a release very soon because it's very annoying.

  • How to convert MP3 to WMA?

    How can I convert MP3 to WMA bur and play in my car stareo

    Are you sure you need to WMA?  Most car stereos can play MP3 but not WMA.

    In all cases, you can burn the files to an audio CD instead of data at all, so it will play in any CD player, car or other.

    Otherwise, if you need to convert and use data files, just do a quick search with your favorite search engine.  Although there is no converter integrated Windows, plenty of free software on the Internet to achieve.

    If it solves your problem, click on the link "Propose as answer" below and vote as useful by clicking on the green triangle for the lelft. Thank you!

  • Weird reading during the use of Stream.play ("mp3:file")

    Hello!

    I am trying to set up a selection side server for playback of mp3 files, if I fall into a weird behavior of the FMS.

    I use the last FMS 4.0.2

    Here's how I try to publish the stream (ActionScript on the server side):

    var s = Stream.get ("boo");

    If (s) {s.play ("mp3:rhcp", 0) ;}}

    Client side, I try to play using NetStream.play ("boo"). However, the sound quality that I get is really weird. The sound goes slower and faster and stops for a split second. He can play properly for a few seconds, but that's all. Sounds like a problem of decoder for me, or a bitrate conversion problem.

    When I play the stream with NetStream.play ("mp3:rhcp"), the reading goes well.

    I tried several MP3s with different flow rates, but they all have the same problem.

    It looks like a bug to me, so I'm expecting Adobe to comment on this one.

    Hello

    Please try the FMS 4.0.2

    It is a little strange to see the problem, but I would like to know your settings on the client side. What player flash you use (although I doubt that it is a question that your reading of the original file is ok), and what is the length of the buffer that you used? There are known issues with the length of the buffer to 0. Can you try and change the length of the buffer in some other values and see if that helped to get the best quality?

    Thank you!

  • How to play movies from memories in pictures for Mac?

    In iOS, there is a button to play movies, memories, but on my Mac, there is no such key.

    Memory starts to play, but is not full screen.

    How to play memory as I can on iOS?

    Also, memories can be shared from my Mac on shared albums and/or sync with my iOS devices?

    Thank you

    Hi Jerry,

    Thanks for posting your questions here in the Community Support from Apple. I see that you are curious about the visualization of your memories on your Mac. I'm happy to help answer your questions.

    It seems that it's not possible to watch movies from memory to a Mac. Take a look at the following information:

    Memory movies only work on your iPhone, iPad, iPod touch and Apple TV. You will see films of memory on your Mac.

    To answer your question on the sharing of memories, take a look at this information:

    Save and share your favorite memories

    You want to save a memory for later? Scroll down to the bottom of the screen and tap or click Add to favorite memories. You can find it in the album favorite memories from your Photos app. If you decide that you do not want to save a memory, tap or click on remove from favorite memories.

    When you add memory to your Favorites, preserve you and keep to go far when pictures creates new memories.

    You can also share your experiences with family and friends. On your iPhone, iPad or iPod touch, you can share movies of memory as you would share any other video. Read a movie memory, then tap to display the options for editing and sharing. Type and choose to share the movie via E-mail Messages, iCloud, sharing photos, Facebook, YouTube and more.

    On your Mac, you can share photos and videos that are contained in a memory. Click on to share through email, Messages, iCloud, photo sharing, Facebook and other.

    You want to make sure that you follow these steps for memories to be synchronized between your devices:

    Before you start

    Update your iPhone, iPad or iPod touch iOS 10 or later and your Mac for Sierra macOS or later.

    If you want to get the same memories on all your Apple devices:

    1. ICloud implemented on all your devices.
    2. Connect to iCloud with the same Apple ID on all your devices.
    3. Turn on iCloud photo library on all your devices you want to use with memories.
    4. Update your Apple TV (4th generation) tvOS 10 or later.

    Enjoy your memories in pictures - Apple Support

    See you soon!

Maybe you are looking for

  • Satellite M50 CD/DVD burning problems

    I recently puirchased a Satellite M50 with the CD/DVD Multi-lecteur. Toshiba literature indicates that it can write both write - once and several CD and DVD - writing. While I can burn on CD - RW and DVD - RW (DVD + RW) I can't burn discs CD - R or D

  • notebook ENVY: ENVY will not power u

    my book of 5 months that just dies of the HP ENVY 15 - I brought twice at BEST BUY in the month of August and Christmas, he just died. no way to start it. Thinking it was a power surge or something "I brought at BEST BUY, but it was not the question.

  • Remove the admin account el capitan

    I want to delete a temporary admin account I created to solve a security issue on my main admin account. In short, I want to delete one of the two accounts of user admin my operating system is the latest version of El Capitan.

  • VI changes/projects

    for some, with a project as a dependency of vi. My question is that I to vi in the outbuildings of the EXAMPLE: myaccount and I opened, when the project is open, clicking in the dependencies section. If I make changes to the vi, does make changes to

  • Get the error code 0 x 80070070, "a snapshot cannot be created for the following reason. There is not enough space on the disk

    Original title: I get a "not enough space on the disk for the snapshot" msg... whart is a "cliché" how much space do I need? 1. on the drive, I'm backup? 2. the disk I'm backup to? I can't do a backup. the msg I get is: "Cannot create a shadow copy f