read the audio data during the click on

Hello

Thanks for the support.

We can play audio or sounds on click of a button. I have my audio file in the my project folder, so I use this file I have to use the getResourceasStream() function. I tried with blackberry strom but his does not work.

can someone help me please?

Hi Garima,

Yes you can, implement fieldChanged method of the button like this

Initialize the front player as ButtonField as:

A player = Player.getResourceasStream (...);

                        InputStream is getClass().getResourceAsStream("yourFile.wav");            Player player = Manager.createPlayer(is,"audio/x-wav");           player.prefetch();
ButtonField testButton = new ButtonField("Click Me");    testButton.setChangeListener(new FieldChangeListener()     {        public void fieldChanged(Field field, int context)         {             player.start();        }    });


Tags: BlackBerry Developers

Similar Questions

  • Why did only youtube videos work - the rest just read audio data?

    Version
    15.0

    Flash Player Version 11.4.402.265

    I have a strange request - it revolves around videos.

    Recently, the following problem occurred:

    YouTube videos will play fine, the audio and video are in sync.

    However, all the videos that aren't on youtube read audio only. This means that Web sites like liveleak (which use JW player), 4OD, ITV player and Vimeo (which use the moogaloop reader) read the audio only. In addition, the videos embedded on websites do the same.

    To try to solve the problem, I have:

    -Uninstalled and reinstalled flash drive
    -Uninstalled and reinstalled firefox
    -Right-click and disabled hardware acceleration

    You guys and girls what do you think might be the root of my problem. Audio plays well but liveleak shows a blank white box and vimeo shows just the 'snapshot' photo that appears to announce each video before clicking to read.

    What do you think is in place?

    Updated graphics card drivers to update - everything is dandy

  • How to use several adf 12 shape and insert the form data in to table during the click on "submit" button

    How to use several adf 12 shape and insert the form data in to table during the click on "submit" button. Can we use several form from adf or not?

    Make sure that you dragged the VO based EO.

    Also make sure that the VO attributes based EO Updatable property.

    The query according to VO is used only to add LOV to the column of the original VO ModelId.

    See you soon

    AJ

  • Error when you try to play audio files: Windows Media Player has encountered a problem reading the file. for further assistance, click web help

    8007007E tips

    There is also another number which is C00D11B1, but both have to do with the lock of the music in windows media player, the message said:-"Windows media player has encountered a problem reading the file; for help click web help. ""- and that of all, but when ' web help ' click on the show numbers that are 8007007E and C00D11B1 and average music, not Windows media player, y at - it someone with the same problem that has been able to solve? Thank you, let me know, if you don't mind, thank you again.

    I suggest re-download you WMP 11 from the following link and install it on top of the current installation:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=1d224714-e238-4E45-8668-5166114010ca

    Who help me?

    If this isn't the case, please report the file type (extension) of the file you are trying to play. For instructions on how to make Windows Explorer shows the file types, see this link:

    http://www.windowsreference.com/Windows-XP/how-to-view-all-file-extensions-in-Windows-XP

  • Satellite M30X: reader will not read the DVD-R data but plays movies in DVD-R and CD

    I have a Toshiba M30X with combi DVD/CDRW drive.
    I have accumulated 12 GB of digital photo I wanted to erase but do not want the number of CDs that can be the so I bought an external DVD LITEON EZ - DUB and made 3 DVD - R burner of plenty of JPEG.
    However, when I put the DVD in the drive of Toshiba combi, it clicks for a moment or two, but when I click on the combi drive in my computer, the folder is empty and it is said there are 0 bytes.
    CD of still works, audio and data, DVD movies fine, reading DVD-R on my Pioneer DVD recorder (for TV - looks like a video/nothing to do with PC) plays very well, but he won't recognise DVD - r with data (JPEG or MP3) on them.

    It makes no difference what software was used (Nero 6.6) and LITEON EZDUB and it's okay if the discs are completed, a single session, multi session or what - it will not play any of them.
    However, these discs work perfectly in my old office to 7 years with a Sony DVD/CDRW combination of 4 years.
    I'm puzzled.
    I don't particularly want to reinstall windows, in the case where it does not recognize the recovery DVDs and I remember Microsoft a Note having activated by phone with a code that is different every time you ask him to generate a.
    It's a bit of pain that I wanted to make my pictures with me in my laptop bag.
    I won't be carting around an external DVD burner just to read the DVD.
    I've updated the firmware for SD - R 2512.
    He had no other effect freeze on a black screen on restart - I had to hold down the switch 15 minutes in this State.
    The laptop is 1 year and 26 days if that counts for anything.

    Anyone have any ideas? Or can I just put up with him.

    Hello

    Well, I can only make suggestions.
    You are able to place files many MP3 and Jpeg on DVD.
    This is perhaps a reason why Explorer cannot handle the DVD.

    Try to burn the DVD with photo JEPG, but do not have the full DVD with these files.
    You must leave a free space on the media. Maybe it helps.

    But it's very strange for me and it's just a suggestion. I've never tired it and don't know if it helps.
    I had a similar problem on my laptop but I solved using compatible media. Some readers prefer different media for different types of files.

  • Menu main movie Audio playback during the film

    Hi all

    Good evening

    I'm watching the X - men First Class movie, I bought a long time ago. Unfortunately, once that I touched READING the menu main iTunes film starts but continuous loop during the movie main menu theme music makes it impossible to hear the audio and enjoy the movie.

    I tried several options, nothing seems to work. Its as if he has 2 windows, 1 of the main menu and the 2nd movie, but I cannot close the main menu without closing the film.

    Any help would be appreciated.

    Kind regards

    No worries found a solution, I just selected the film only in my iTunes list, has not noticed it before. Just goes to the film without having to go through iTunes extra version.

  • Get a fixed image and audio while playing a movie in Windows Media Player, also get the message: "network is too busy to read the file to its original quality.

    Original title: Windows Media Player

    When I go to play a movie using windows MediaPlayer all I get is an imagwe again with audio and this message 'network is too busy to read the file to its original quality. Also, all my other media playing programs read the video but are rather "lag". I think the problem is that I already used a program to download torrents called 'BitTorent' and maybe this has used up all my bandwidth or processing speed? Not really sure but would really like it if I could still use WMP and I'm looking for resolution to my problem?

    Thank you

    Hi Jeremy,.

    It seems that you have problems with playback of video files in Windows Media Player.

    1. what operating system do you use?
    2. this happens with all the videos?

    If you use Windows 7, here are a few troubleshooting steps that you can try.

    Method 1: Try to run the troubleshooting Windows Media Player settings Troubleshooter:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 2: If the problem persists, try to disable and enable Media Player and check.

    Step 1: turn off Windows Media Player:
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find multimedia and uncheck Windows Media Player.
    d. restart the computer.
     
    Step 2: Enable the Windows Media Player:
    a. go initially and in search type 'Turn Windows has or not'.
    b. click on "Turn Windows features on or off".
    c. find the multimedia functions and place a check mark in front of the Windows Media Player.
    d. restart the computer.

    For more information, see the article:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

    Method 3: Try to re register the wmp.dll file and check if it helps.

    a. log on as an administrator.
    b. click Start, type cmd in the text box Search , right-click on cmd.exe, click run as administratorand then click continue.
    c. at the command prompt, type regsvr32 wmp.dll, and then click OK.

    I hope this helps!

  • Unable to read the security descriptors data stream

    Whenever I start my computer runs CHKDSK - it says checking file system on E: and then he said that it should be checked for consistency. It works until stage 3 when he says 'impossible to read the security descriptors data stream' how to fix this?

    I tried chkdsk e:/r and it runs before step 3 when I get the "unable to read the security descriptors data stream" and it goes no further.

    I also tried fsutil dirty query e:- but it says something about a parameter incorrect and not if the volume is dirty or clean.

    Then I tried chkdsk e:/f/x - that always gives me the same mistake about it being an incorrect setting.

    As far as I know there is absolutely nothing on E:, I didn't even know that there was an additional drive. Right now I have it turned off so that I can use my computer. It seems to work fine without it. I read an article that said that if I can't fix e: with chkdsk which I have to do a low-level format of the reader? What's my next step? And I can do without the XP disc?

    The syntax

    fsutil dirty query e:

    is correct (except, of course, you try to use from the Recovery Console, where the fsutil command is not available).  Are you logged on as a user with administrative rights when you use fsutil?

    Similarly, the switches /f and/x are not available for chkdsk in the Recovery Console.

    See Recovery Console controls.

    Click on desktop then right-click on E: drive icon and select Properties.  What is indicated for:

    • File system
    • Space used
    • Free space
    • Capacity

    Now double click the icon for E: are shown files?  If not, click Tools > Folder Options > view and select the radio button "Show hidden files and folders" and uncheck "Hide protected files (recommended) operating system.  Now that you see all the files?

    Everything you read 'low level of shaped' is nonsense.  Any modern PC drive cannot be low level formatted by end users.  You can read this, but there is really no necessary even to "zero fill" your drive E: http://seagate.custkb.com/seagate/crm/selfservice/search.jsp?DocId=203931 (I have not checked to see if the WD tools rescuer has similar characteristics to SeaTools for DOS).

    If you are convinced that there is nothing of value on E (for example, installation of backup or restore), you can either format by right-clicking on the drive icon in my computer and selecting "format" or you can start disk management as described previously and use either in electronic format or delete the partition completely.  If you delete the partition, space becomes "unallocated".

    Because I guess C is your system drive (where Windows is), you may be able to use the diskpart tool to extend the partition F to use the unallocated space left if you decide to remove E well it's much easier (and safer) to do with disk management third-party tools such as Easeus Partition Manager free : http://www.partition-tool.com/personal.htm

  • My BDDVDRW drive will recognize is no longer read the audio CD, but both DVD and BD

    I have a HP pavilion dv6 under Windows Home Premium with a HP BDDVDRW CT40N. I have never had any problems with the optical drive. About 2 weeks ago, I started ripping of audio CD on my hard drive using Windows Media Player. I pulled about 15 CD over the 2 weeks. Then all of a sudden the drive read audio CD - I put a CD in and nothing, even after hours. If I click on the player it ejects and answers please drive inset.

    So I thought it was the CD and inserted other CD, even the ones I had just ripped - nothing. But it reads the DVD fine; I just saved a DVD with it.

    The machine is about 5 years old, but it works well, so I thought maybe it was the reader. I have another computer; It only a little more than a year, with a HL-DT-ST BDDVDRW CT40N and running Windows 10. I started to rip from CD with this computer also with Windows Media Player. Guess what - same thing.  I was able to extract only 3 CD before he showed the same symptoms: can't see CD; no problem with DVD.

    Finally, I went to my wife's computer, a different HP running Windows 7 with a DVD - RW disc. This time, think of some sort of virus or malware may be responsible, I made sure that there was no Internet (not ethernet WiFi or Bluetooth). I ripped a CD and then the same thing.

    All three computers has failed using different CD - it wasn't the same CD that was torn apart last before failure.

    I doubt very much that three different computers with different symptoms of operation and different readers might undergo the same material unusual problem in few days after execution of the software even on different CDs. There must be something about the use of this extraction software (Windows media player) or disk characteristics of driver that blocks the CD (apparently after extraction).

    I'm only moderately tech savvy, but successfully, sometimes after a considerable effort, more than anything I tried. I have had no success with this (towards even a problems prior restore point) and am at a total loss.

    Help, please.

    While they inspected, CD is not detected by the computer. You can do the following steps the solved the problem.

    1. Scan of the SFC
    • Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
    sfc/scannow

    2. run the disk check in Windows 7

    • Open the Start Menu and click on the button of the computer on the dark right side.
    • Right-click the hard disk you want to check, and then click Properties.

    3. click on the Tools tab and click the check now under error checking.

    4. you will now see this window. Follow the steps below for what you want to do.

    5. to only scan the disk for errors

    Note: This will give you just a report if there are drive errors or not and will not attempt to correct.

    • Let off both boxes, and then click the Start button. (see screenshot below step 4)

    6. only scan and try bad sectors recovery

    Note: this analysis tries to find and repair errors on the hard drive itself, physical and it may take much longer to complete.

    • Uncheck the automatically fix file system errors . (see screenshot below step 4)
    • Select the search for and attempt recovery of bad sectors .

    7. only scan and trying to automatically fix errors

    Note: This will automatically attempt to repair problems with the files and folders that the scan detects.

    • Check the automatically fix file system errors . (see screenshot below step 4)
    • Uncheck the search for and attempt recovery of bad sectors .

    8. to analyze automatically try to fix the errors and bad sectors recovery

    Note: This will scan for file errors and physical errors (steps 6 and 7). It will attempt to repair problems with the files and folders and retrieve physical errors.

    • Check the automatically fix file system errors . (see screenshot below step 4)
    • Select the search for and attempt recovery of bad sectors .

    9. Click on the Start button and is not 10 or 11 below depending on the whether the drive is currently in use or not. (see screenshot below step 4)

    10 if the selected hard drive is not in use, you will then see to check the startup disc check the disc now.

    • When the analysis is complete, you will then see

    results. Click close.
  • Click OK. (see screenshot below step 3)
  • Stop, you're done.
  • 11. If the selected hard drive is in use, then click on the schedule the disk check button. (see screenshot below)

    Note: If the hard disk that you selected in step 2 is in use (for example, the C: drive or the partition that contains Windows 7), you will be prompted to reschedule the disk check for the next time you restart your computer.

    • Restart the computer.
    • At startup, you have only 10 seconds to press any key to cancel the check disk of measures 7 or 8. (see screenshot below)

    • Once the scan is complete you will see a report similar to this below briefly until the computer restarts automatically.

    If the problem persists, you can run repair for Windows 7.

    Brand of kindly as answer if that answers your query. Let us know how it goes.

    Thank you.

  • selection of the first column of the clicked row data

    All,

    Ive a report with a custom template and I want to return / select the first value in the column of the clicked folder, how can I get this data by using javascript code in DA or jquery?

    I did some research but couldn't do something similar.

    Classic report

    Apex 4.2

    Scott,

    I used the expression below, but it works only when the column ID/first appears, but if you set a column to not show IE uncheck the show of the column attribute, then it cannot read this value.

    $(this.triggeringElement) .find ('td:first').text())

    is there a way to always get that ID/first column when figure is not on the report?

    concerning

  • When I click on any message to read the color is orange. I want to change it. How?

    In Mail, when I click on any message to read the background color is orange. How can I change the color?

     > Preferences > General

  • How to read the counter NI9411 using C API data?

    I use the API C of NOR-DAQmx to read the data of a cDAQ-9188

    I am able to read analog voltages and entered digital fine (NI9201 and NI375).

    Problems with counters (frequency of measure) (NI9411).

    I just get error "all or part of your samples are not yet acquired" after the timeout.

    My pseudo-source:

    DAQmxCreateTask ("", & taskHandle);
    DAQmxCreateCIFreqChan (taskHandle, "cDAQ9188-189E9F4Mod1/ctr0","", 1, 1000, DAQmx_Val_Hz, DAQmx_Val_Rising, DAQmx_Val_LowFreq1Ctr, 0.1, 1, NULL "");
    DAQmxCfgSampClkTiming (taskHandle, "pfi0", 5.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 5);
    DAQmxStartTask (taskHandle);
    DAQmxReadCounterU32 (taskHandle, 5, 10.0, (uInt32 *) data, 5, & read, NULL);

    My device and any other names are correct?

    Thank you.

    Have you compared it against examples of api C?  I think that you have the option to install the examples when you install the daqmx drivers.

    If you have done this, and it looks the same then I would say you should try Troubleshooting If you produce any data at all.

    -Bear

  • How to read the Serial Arduino data using labview VISA?

    Hi =). Im a beginner work reading data series from an arduino but im facing... Lets do it step by step

    I built a voltage divider circuit which gives from output
    from 0 to 5V. The output of this circuit is sent to a 0 analog input pin
    of a Committee of Arduino Duemilanove.

    (1) Firstly, I connected the cable to connect to my laptop USB the Arduino.

    (2) I went to start-> control
    Control Panel-> system-> hardware-> Device Manager. Check the Ports (COM
    & LPT). In my laptop I can see USB Serial Port (COM4). Now I know only in
    LabVIEW that I must read the data series COM 4.

    (3) to the side of the arduino, here's the code to read changes in voltage
    entered to analog pin 0. The last line of 'delay' determines the sampling
    Rate of how we want to taste the output of the voltage divider:

    int potPin = 0;    Select the input pin for the output of the voltage divider
    int val = 0;       variable to store the value from the probe

    void setup()
    {
    Serial.begin(9600) (9600);    Opens the serial port, establishes the rate of 9600 bps data
    }

    void loop() {}
    Val = analogRead (potPin); read the value of the voltage divider
    Serial.println (Val);
    Delay (10);
    }

    I slightly modified the basis series reading writing VI... I have
    attached the block schema used with comments. Basically, I tried to read
    data series, divide by 1023 and multiply by 5 to graphic voltage
    variations of the voltage divider circuit.  But Im not getting
    the correct voltage output values. The value of the tension just keeps go
    0 and coming again, as shown in the photo.

    Could you guys please guide me on what went wrong?

    Thank you!

    -you read the data, even if there is no data on the port. If 0 bytes are read => «»

    -in the case of false, you resources VISA wired for the output of channel tunnel?

    -There is no close VISA at the end of the VI resources

    -you're not a loop this VI reading bytes

    I added an addaption of your VI that you should give a try maybe

  • irig106 data Plugin to read the file extension .ch10

    Hi forum,

    I'm reading the IRIG106 (.) Ch10) using use IRIG106 use http://www.ni.com/example/31585/en/

    Can someone help me how to read a file using this use in LabVIEW or tiara.

    I tried to use this use to read IRIG106 (file .ch10 Extn) in LabVIEW but LV is getting crashed without reason!

    Thanks in advance.

    Hi all

    Changes to the use of IRIG_106 to read these new data files have been posted on the www.ni.com/dataplugins site today.

    http://www.NI.com/example/31585/en/

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • I'm reading the data (speed rate and flow) of a table and it plot in a graph.

    I'm reading the data (speed rate and flow) of a table and it plot in a graph. I need to draw two values of l/min (speed) to the same speed. How can I do using a loop for?

    There is no need actually to use a loop FOR this. And using a graphic waveform isn't the type of field for this, for a waveform you a (Start), the dT T0 (greatness not) and table D (Data), this isn't what you want unless you know precisely the measure will take place according to an orderly disposal, you'd want a xy chart so that you can trace the measures where they occur in the axes X and Y of preference.

Maybe you are looking for

  • Personal applications

    Is there anyway to create an app just for yourself without publishing it to iTunes?  I have a few apps I would like to create, but I have no interest in selling - I just want to create these utilities for me. Thanks in advance.

  • Contact for Continua Bluetooth Manager for Windows window

    Hi allCould someone kindly provide information on "continued Bluetooth Manager for Windows? The original Web page is about Alliance health continued: http://www.continuaalliance.com/certified-products/Continua-Bluetooth-Manager-for-Windows-manufactur

  • video problem

    I can't see some videos. the funny thing is that I could see them yesterday on the same web page, butI had audio, the screen appears in green. I updated the computer yesterday and it worked, but still the same problem

  • WMF.exe - Systemfehler / rtl120.bpl

    Nach dem Start der remark WMF.exe - Systemfehler Green DAS kann nicht gestartet werden proramm da die Datei "rtl120.bpl" fehlt Installieren Sie das Programm Rubis, um das problem zu beheben. Da gleichzeitig die von nicht mehr original green PowerPoin

  • Z90D7 Bios locked out

    Z90D7 Bios locked ort I have a new Thin Client Z90D7 that took its Bios password locked out. We tried the default password: Fireport This does not work for us. Does anyone know what should be the Bios password? The unlock key is: C2BAC631 Thanks for