No sound from bb::multimedia:MediaPlayer

If I use the following

  musicPlayer = new bb::multimedia::MediaPlayer(this);
  MediaError::Type anError = musicPlayer->setSourceUrl(QUrl("asset:///sounds/music/sample.mp3"));
  if (anError == bb::multimedia::MediaError::None)
      musicPlayer->play();

There is no sound coming out. I've linked libraries.

Documentation:

Permissions: Applications that call this class should be the play_audio, the access_shared permission.

If I add play_audio to the bar-descriptor - there is an error that play_audio is not recognized.

No idea why there is no sound coming out?

This library must be sufficient to make work of Beta 3 and following (there are more limitations in the beta 2 release).

For your problem 'no sound', I guess you could miss one of the things below (can you double check the following things...)

  1. No logs errors or traces are produced which contains more details. Note that by default, nothing appears on the console in Beta 3. More information about registration or tracing display can be found here: http://devblog.blackberry.com/2012/10/blackberry-10-sdk-console-logging/
  2. Play/pause state is changing in fact (from distribute the signals of the MediaPlayer object)
  3. If you read a file packaged in the 'active' folder, the absolute path, you set the input energy is something like the following (using the traces of the program):

    /Accounts/1000/appdtata/[UniqueFolderForYourApp]/app/native/assets/sample.MP3

  4. The device is actually correct and audio plays through other applications (for example, the browser or application previewer of default media, through as part of the call)
  5. The volume of the device is actually maximum. In other words, use the UP/DOWN buttons on the device itself and play other media files through the browser or other
  6. Try to play something "folders" instead using the authorization of "access_shared" (as explained above)
  7. The file you are trying to play is actually correct (plays through other players) and is one of the supported formats
    https://developer.BlackBerry.com/DevZone/develop/supported_media/bb_media_support_at_a_glance.html

Hope this helps and let us know how it goes.

See you soon,.

Rashid

Tags: BlackBerry Developers

Similar Questions

  • No sound from Port Replicator NetDock after installing XP on Tecra 8200

    After a recent accident, I re-installed my 8200 using XP SP2. Now I have no sound from the Netdock. All other functions of the DS seem to be OK.
    I downloaded the latest drivers Yamaha for XP SP2, but still no sound.

    I get no option to change analog output on the control panel of Yamaha. Device Manager lists system Yamaha DS + XG Legacy Sound (WDM) and Yamaha DS - XG PCI Audio Codec (WDM) as well as other codecs, gane and multimedia control device port.

    I want to get her back through the Netdock.

    Thank you

    Pete

    [Edited by: admin August 10 05 19:30]

    Hello Pete

    One of my friends has a Tecra 8200 running Windows XP Home edition, but SP1and everything works correctly. I really don' t understand why the its doesn't work.

    Sorry, but this unit is not supported for Windows XP Home edition, and it is not easy to say why the Board its doesn't work properly. If all goes well, another forum user has more experience.

    Good luck!

  • No sound from speakers when watching videos on YouTube.

    Original title: speaker problem

    No sound from speakers while the suite tube you

    Hello

    ·         Is specific to the YouTube Web site?

    ·         You will remember to do recent changes on the computer before this problem?

    ·         Are you able to hear the sound of the computer normally?

    ·         What web browser do you use?

    Response with above information to better help you.

    If you use Internet Explorer, you can enable sound in Web pages and check if you can hear on you tube. Follow these steps:

    a. close all the open Internet Explorer window.

    b. open Internet Explorer. Go to Tools>Internet Options.

    c. switch to the tab 'Advanced'.

    d. scroll down to the 'multimedia' heading

    e. make sure that "play sounds in web pages" is checked. Click on 'ok '. Restart Internet Explorer. A test to see if the sound will now play.

    You can also check the playback settings.

    For your reference, take a look at the link:

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

  • No sound from speakers Windows 7

    I have recently reinstalled Windows 7 OS using factory reinstall to correct an error in root kept displayed on my pc.  Because reinstall I couldn't get any sound through the speakers.  I used the audio Troubleshooter who is unable to find a problem.  I also followed the basic steps suggested by microsoft for the problems of sound, but with no resolution of the issue.  Troubleshooting HP says all is functioning normally.  Speakers are plugged with volume turned up.  The multimedia player record volume, but there is no sound from the speakers.  I tried searching indicates driver, but all updates current. My sound card is RealTek High Definition Audio driver version 6.0.1.7687 RTKVHK64sys.  Is there a repair for Windows 7 disk?  Upgrade to Windows 10 will fix the problem?

    Hello

    Thanks for the reply.

    It can be at will or cannot be resolved after upgrade to windows 10.

    I suggest you disable improvements audio speaker and check if it helps:

    a. Open Sound by clicking on the Start button, then Control Panel. In the search box, type sound, and then click sound.

    b. on the playback tab, click speakers and then click Properties.

    c. click the enhancements tab, and then check Disable all improvements.

    You can also see the steps in the below link.

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    Thank you and best regards,

  • iOS 10 no sound from the speaker of the ear or EarPods

    After update of iOS 10 (in 6 s iPhone and 5s) I have a problem then to make or receive calls. Most of the time it is no sound from the speaker of the ear or EarPods and I have to press the speaker during calls to listening. To get back what I have my iPhone and open it again. This seems to happen after that I used once the EarPods.

    Be aware that I have consume EarPods in 90% of my calls and iOS 9 I had no problem at all.

    Hello Billy78GR,

    Thank you for using communities of Apple Support. It is my understanding that you met the receiver and headphone audio problems after update to iOS 10. I know that it is extremely important to be able to hear others during calls. I'm happy to help you to get this resolved with you.

    First of all, I recommend you restart. This can solve many unexpected behaviours. Follow the steps below to restart.

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    Restart your iPhone, iPad or iPod touch

    As you use the headphones on most of your calls, I recommend checking and removal of dust or debris from the helmet. If the problem persists, please refer to the additional steps in the link below.
    If you do not hear a person, a call or a voice message or if the sound is not clear on your iPhone

    Have a great day!

  • No sound from my Mac, all THE

    Hello

    Earlier today, I connect my Mac to listen to the music and the sound no longer works. I checked the system preferences and went to the sound option. I looked out, and the only thing available was my apple tv.

    As you can see, the mute box he checked and gray. I been to countless forums telling me that the red light in the headphone needs to be reset for the internal to appear again speaker. Well... There is no red light at first. I tried to reset the thing of LANDAU and he just a gray screen as a thing that is like the terminal because you can do almost anything on the mac from there. I didn't know where to go from there, because the only thing that told the forum is to listen to the startup sound and a few buttons. I don't hear the startup sound at all.

    I don't want to go antics with all that because I don't want to mess up anything else.

    While writing that gave me access to reuse my Soundbar and the volume changer, but the internal speakers still do not appear, and the mute button is still gray and ticked off. No sound from the computer. No matter what. I'll try to reset once more.

    -Kay

    Hi Kay, try this:

    1. Plug your headphones.
    2. Play sounds through them, then stop the track.
    3. Go to System Preferences > Sound
    4. Set on headphones, then remove the headphones.5
    5. Who should provide "internal speakers".
  • make a clicking sound from inside my Mac

    Just started today. Every few minutes I get a clicking sound from inside my iMac. It seems to work ok, however. Thought, it may be overheating and cleaned by vacuuming all the vents, but it did not help.

    Perhaps an early indication of a hard drive failing. Support everything up immediately (if you have not already) and get it checked with a free diagnosis in an Apple Center.

  • New iPhone SE no sound from the speaker of the brand

    I just bought a new iPhone SE and I'm getting no sound from the speaker. Does anyone have any ideas on a possible resolution?

    I restored from an iPhone 5 to the top, both phones are on the latest version of iOS.

    Once the synchronization is complete, I ejected the phone correctly. But there is no sound coming from the speaker:

    • Key "secret" in both positions, no sound from the speaker
    • The top volume, using the volume buttons and the sound, no sound from the speaker settings
    • Headset plugged in, sound comes from the helmet, remove them, the iPhone recognizes, but still no sound
    • I tried the music app, ringtone from another phone, videos, podcast app, no sound from the speaker
    • Past the phone power off & on again, no sound speaker
    • Reset iPhone (hold both buttons down for 10 seconds), no speaker sound
    • Reset iPhone settings, no speaker sound

    I begin to suspect it is a hardware problem, but as I am not near the Apple Store, I would try as much as I can before you go this route.

    Thank you

    Hello Andy,

    Thank you for using communities of Apple Support.

    I understand that you have restored your iPhone backup iPhone a precedent, and now there is no sound from the speaker.  Given the troubleshooting you have already done your next step is to restore the factory settings to see if the problem persists:

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod to factory settings

    If the problem persists, then please make an appointment with the Apple Store is close.

    http://www.Apple.com/retail/Geniusbar/

    Take care.

  • Laptop: cannot hear any sound from my computer

    My sound does not work in Windows 10. No sound at all from YouTube videos, music and media players, Windows system sounds, etc.

    The first step in troubleshooting I recommend is the easiest: restart your computer. Sometimes a single application can take control of your audio device and do not let all the other apps use, but you can release this control by restarting.

    Here are a few others not you can try:

    • Run the audio troubleshooting tool in Windows
    • Try to connect headphones or a pair of external speakers
    • Set the default audio device to make sure that your computer sends the audio output of the device
    • If your computer comes with 10 Windows installed, you can restore the driver of its origin in the HP Recovery Manager, or to update the driver through Device Manager
    • If you upgraded your computer to Windows 10, you can update the audio driver in Device Manager
    • Reset your laptop

    These solutions and much more are explained in detail in this document: laptops HP - no noise or distortion of the sound from the speakers.

  • Desktop PC: cannot hear any sound from my computer

    My sound does not work in Windows 10. No sound at all from YouTube videos, music and media players, Windows system sounds, etc.

    Have you tried a few different devices (headphones/speakers)? There could be a problem with the hardware with one of these devices. Also, keep in mind that most of the computers do not have built-in speakers, you don't need to have a connected device to hear anything.

    If you have already tried a few different pairs of headphones and speakers, the first step in troubleshooting I recommend is the easiest: restart your computer. Sometimes a single application can take control of your audio device and do not let all the other apps use, but you can release this control by restarting.

    Here are a few others not you can try:

    • Run the audio troubleshooting tool in Windows
    • Make sure that your device is connected to the appropriate port on the computer, and if you use powered make speakers you they are plugged into a working outlet
    • Set the default audio device to make sure that your computer sends the audio output of the device
    • If your computer comes with 10 Windows installed, you can restore the driver of its origin in the HP Recovery Manager, or to update the driver through Device Manager
    • If you upgraded your computer to Windows 10, you can update the audio driver in Device Manager

    These solutions and much more are explained in detail in this document: HP-no sound from the computer desktop.

  • Qosmio PX30T - no sound from speakers

    I just replaced a failing on my PX30T HARD drive and now I get no sound from the internal speakers. I used the media restore and also put all the patches and windows 8.1. Still no sound from the speakers, but the headphones work well.

    As a last resort, I started with an image of Ubuntu USB and also no sound. I think I might have loosened a wire when replacing the HARD drive, but I don't see how because there are no other wires in the region. Ideas?

    If the headset work correctly, the audio driver must be already installed and I don't think that a parameter must be checked and changed.

    Reach:
    Control Panel? sound? Recovery tab
    Here, you should see the speakers and speakers must be marked as default device.

    Make and check if the sound seems once again

  • 550-215na Pavilion: no sound from the rear audio input jack

    Hello

    I recently bought a new PC and I immediately ran into an audio problem that I can't understand. I get no sound at all from the rear audio input jack. I'm getting sound before making, and the plug rear mic works. When I plug something into the rear socket, a message appears grateful that there is something. When I checked the sound settings while it is plugged into the rear outlet, the equalizer is moving, which indicates that he gets his. But nothing comes out when I plug headphones or speakers in. I can exclude a fault with the speakers and the headphones, because they work very well to come forward. All the drivers are up to date.

    Any help would be greatly appreciated!

    Hi there @PrimoFigs,

    I hope you find your experience of positive Support Forum! It's a good place to find the help you need, other users, the HP experts and other members of the support staff. I understand that you get no sound from your speakers when connected to the rear audio ports. I'm happy to give you a helping hand with this.

    Have you tried to connect another device to this port, whether it of a different set of speakers or earphones, headphones just to test if one of them works?

    What it is connected to the front port at the same time? If so, then disconnect this device and try again the rear port and let me know if there is a change.

    Also try this: desktop HP-no sound on speakers (Windows 8).

    Please let me know if any of the work of tip for you suggestions and if we don't solve your problem, please mark this message as a solution. Bravo would be appreciated as well.

  • Satellite L650 no sound from speakers or phones

    I.ve just had my first problem with my Toshiba Satellite L650 - particularly serious, because I rely on it for all my music playback!

    Normally I can plug and on the headphone jack on my stereo, speakers cut out and I get HiFi glorious while it is inserted, and the speakers onboard bounce when I delete.
    Today, I have plugged as ususal and listened to a few songs.

    I unplugged (to move the laptop) and the internal speakers not to bounce.
    I reconnected the headphone jack and there was no sound from my stereo (finger test confirms the work of jack stereo).

    I checked all the app and the main volume - level in good health indicators were present.
    In the Device Manager, all reported correctly and counter activity took place during the test routines of the audio device for both speakers and headphones, but no real signal to the phone jack, or speakers.
    "Update drivers" who fired the message I; m to date.

    I uninstalled the drivers of "High definition Audio Device", and scanned for hardware changes after - drivers were automatically found and installed successfully, but still no sound.
    In desperation I dug an old USB-audio gadget, plugged and his fate that perfectly well by the USB port.

    Can anyone suggest what I can try to force an internal connection between Microsoft Sound Mapper (i.e. the string digital things that seems to work very well) and outputs real material?
    This machine is not an old duffer and this should not be the case!

    Thanks in advance!

    Hello

    Hmm, I doubt that the headphone is faulty because in this case, the internal speakers of the laptop computer s should work properly.

    Please go to Panel of-> sound-> the Read tab.
    The speakers as default device?

    In addition, please see the Audio Manager HD Realtek located on the control panel.
    On the right, you should see a few options (in my case, that they are marked with a folder icon). Check it!

  • Satellite P750 - no sound from headphones

    I have a pair of bose headphones but can't seem to get any sound out of it,
    I have a satellite p750

    need help

    and have you checked if your headset works with other devices?
    You hear the sound from the speakers for laptop?

    Please also check if the headset was connected to the decision-making right ;)

  • NO sound from speakers or headphones

    HP ENVY 15-3033cl laptop PC

    Windows 7 64 bit

    no error message, I was watching a movie when my laptop died. I plugged it into the power source and now there is no sound from speakers or headphones when I plug. I already went through the troubleshooting steps sound but it says there is no problem detected by the device. The computer is still failry new less than a year, but lies outside of the 90 day warranty. Help please.

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp56501-57000/sp56900.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you're done, shut down the laptop and perform a "Hard Reset" for your model, as described in the document of HP here.

    One when you're done, press next to the key ESC that you start the computer to launch the Start Menu, then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  'Speakers and headphones' left click once to highlight, and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

Maybe you are looking for

  • List of the APP catalog

    Hi guys,. Hoping you can help me out with a small project please? I'm wondering - is it possible to get a list of all the applications in the App Store? Or even a list in a particular genre? This information would be anywhere in public, if so could y

  • Portege R400 - tcpip.sys bluescreen error

    I have a new portege R400. Random and quite often while connected to the internet, my computer hangs on a blue screen that evokes a few problem with tcpip.sys. The unexpected dumps core, which takes all 4 seconds, not a lot of time to note the error:

  • Printer not printer RED

    L7555 - AIO-Vista home premium, no Magenta printing, you can test print head? I did everything else. Everything is authentic HP. print 20 copies large then began the vertical lines cleaned the print heads and Magenta went. has worked for a few copies

  • Missing dropdown Menu commands in Excel 2003

    Some of the drop-down list controls are missing on the menu bar.  For example, if I click on Format, row and column are missing.  I checked to see how the custom menu and toolbars are implemented in tools, customize, Options and find that there is a

  • HP dv 6: System Windows 10 loads very slowly

    Please help, my dv 6 4430 s computer hp probook, after upgrating on windows laptop, laptop starts very slowly, I installedall drivers, but the problem remains. I'll apreciate for any help