HTML5 Audio > always on the loop mode

I use this code to play sounds on the playbook (SDK 2.0) Simulator

var paintAudio = new sound ("arpa3.mp3");

paintAudio.play ();

The audio plays but in loop mode (automatically starts playing again when it ends).

Do you know how to work around this behavior?

In addition, when I play a sound, while another sound was playing, the first sound stops. Is possible to run a sound at the same time?

Thank you.

the audio element has a property of 'loop' which you can go from true to false:

paintAudio.loop = false;

I know that when you set a

Regarding your second question concerning synchronization, you run your content on a Simulator or a live device?  The Simulator is not able to reproduce the behavior of multi-thread of the live PlayBook device - if you get a stop event and start others.

See you soon,.

Adam

Tags: BlackBerry Developers

Similar Questions

  • Reading secured with HTML5 Audio audio stream

    Hello

    Is it possible to read the stream protected with the HTML5 Audio tag? The stream that I play is protected by password

    (Basic HTTP authentication), how can I suppy credentials? Thanks in advance.

    Best regards

    I solved the problem of providing credentials as parameters: http://aaaa.bbbb.com:8117 / stream? user = adriana & pass = lima

  • Audio quality for the HTML5 Canvas mode problems

    Try out HTML5 Canvas of Flash CC mode 2014 and hit just in some problems of breath with audio export.

    Each audio file, I gave it, Flash has converted into MP3 with a loud click at the end that does not appear in the original.

    HTML canvas view, it seems, there is no option to change the default setting for audio compression. The only way to export MP3s as nothing more than 16 kbps mono is to manually change compression on each file. I forgot something?

    Well, I found out at least what was causing the loud CLICK at the end of the generated MP3s. turns the importer Flash CC for WAV files is a bit dark to distinguish between metadata and audio data. Re-record my WAV files without metadata fixed the problem of rattling.

  • How can I stop the pre-loading of HTML5 audio files?

    When I open a page that contains the audio tags for HTML5, it automatically downloads the files. I have never use the audio player in the browser and download for offline listening instead. How can I stop these files for the browser to download play since I have to download a second time to my game in offline mode?

    You can set the pref media.windows - media - foundation.enabled to false on the topic: config page to disable the HTML5 media player built-in.

  • Satellite A200 - no audio device after the awakening of the mode 'sleep' or 'putting into hibernation'

    I own a Satellite A200 laptop computer with Windows Vista.

    Sometimes when I put my laptop in 'stand by' mode or 'Hibernate', he wakes up with no audio device. (Error - no installed audio device). The problem is solved by restarting my computer, or by placing it in the back to 'stand by' and turning it back on.

    I reinstalled my OS using the recovery cd - and the exsists yet problem.
    (Version 1.30, Audio bios driver ver. 6.0.1.5374)

    Is this a known problem or is it just my computer? I'm afraid that it is a hardware problem. (The laptop is less then 1 month).

    Thanks (and sorry for my "rusty" English :-()

    Tomer

    Hi guys

    Can you please check this Microsoft article? Maybe this will help.

    http://support.Microsoft.com/kb/929685/en-us

    By the way: is your A200 with or without built-in webcam?

  • What is: IDT PC AUDIO - SHANGHAI DEVELOPMENT CENTER? I get this request to declare a 'mistake' and always send the request to the 'centre '.

    In the middle of something on the internet an error request. I get this request of the 'centre' above to respond to the request to report this error

    I always send the request for postponement of this 'error '.  It does not resemble the normal application I use to get from Windows Update.

    IDT stands for "Integrated Device Technology" and is probably the company providing your audio device driver.  Something wrong with the driver or the audio material.  If this happened to me, I would remove the device in Device Manager and reboot to allow the relocation of the unit.  I would also visit the web site of the manufacturer of the PC and download the latest driver for the audio device.  Usually, IDT provides drivers for OEMs and provides no support for the end user.  This can be quite useful: http://www.idt.com/products/audio-products/audio-driver-support-for-users-faq

  • My computer is stuck in the loop "Update Configuration". Boots only in safe mode.

    My computer is stuck in the loop "Update Configuration". Boots only in safe mode. I tried to do a system restore, but an error message appears that says:

    To perform an offline system restore, you must specify which Windows installation you want to restore. For example, if the installation is in "C:\Windows:" should be restored, enter the following command: rstrui.exe/OFFLINE:C\Windows

    I typed in the "run" command, and it didn't work either. VIsta came installed on the computer, so I don't have a disc to insert and reboot with. Help, please!
    Thanks, Ben

    OK, I found how to fix this problem.

    Go to this site download and buy the repair for Vista disc. Burn it to a disc.
    This link will guide you in burning instructions
    http://NeoSmart.NET/wiki/display/G/Burning+ISO+images+with+ImgBurn
    Start your computer with the disk and follow the instructions
    http://NeoSmart.NET/wiki/display/G/Burning+ISO+images+with+ImgBurn
  • BB10 - Audio/video in HTML5 - reading file from the file system

    Hello.

    I tried to read a file from the file system on the BB10 Dev Alpha, using the HTML5 video + HTML5 Audio implementation, but it seems to not work for me with the following source code:

    var audio = document.createElement('audio');
    audio.src="/accounts/1000/shared/music/testfile.wav";
    audio.controls = true;
    
    var video = document.createElement('video');
    video.src="/accounts/1000/shared/videos/testfile.avi";
    video.controls = true;
    

    Referring to the HTML5 Audio API documentation and Video of HTML5 , I used the example presented here source code, but I still get the following error message:

    Anyone now how to get it working or if it is not yet implemented in the BB10 WebWorks API/framework?

    Well, I believe that what could be the problem.  In order to access to the / shared the location of the folder, your application should allow the permission to do so.  This can be done by adding the following to your config.xml file:

    
        access_shared
    
    

    Next, you need to whitelist the way file:/// by adding an element to access.  I remember that's how its done:

    
    

    Note You can whitelist all areas using the following:

    
    

    Hope that helps.

  • Try to pass the audio to headset mode. Seems to only allow the speakerphone mode.

    In windows xp, I could choose headphones or speakers in the audio settings.

    This has greatly improved the sound when listening with headphones. It makes the sound more "centered" If you wear headphones.

    In windows 7, the only option that that I seem to have is 'speakers '.

    Anyone know how to recover the headset mode?

    Hi K1DBLITZ,

    To set up Headphone virtualization

    1. Open Audio devices and sound themes by clicking Start , clicking on Control Panel, hardware and sound , and then clicking sound.

    2. click on the tab improvements and then click Headphone Virtualization.

    For more information, see the article mentioned below. This article is for windows vista, but also applies to Windows 7.

    Get high definition sound and music from your computer

    http://Windows.Microsoft.com/en-us/Windows-Vista/get-high-definition-sound-and-music-from-your-computer

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to make the loop audio clips in the first or elsewhere

    HOW CAN I DO AUDIO LOOPING CLIPS IN THE FIRST OR ELSEWHERE?

    None of these answers are correct.

    My brother found this thread, looking for help and left in frustration, asking for the answer instead.

    Kevin Monahan response is only semi-finished.

    Here's the full answer:

    Looping a video or audio clip on the timeline, right-click and select 'nest...".

    Name the nest, what you please.

    Now, double-click on nested clip you just created. This allows to enter the nested sequence.

    NOW you can select the clip, copy and Paste several times. (Just keep hitting CTRL V, and the read head automatically moves forward to place the next clip.)

    Return to the main sequence.

    Now you can use the selection tool to extend this nest as much or as little as you like.

    It is a far superior method, because a nested sequence is a SINGLE ELEMENT that can be resized, given effects, moved, lengthened and shortened very easily.

  • Where is the HTML5 Audio Player version DWCS6 Cloud?

    I just joined version subscription of the cloud and re-installed DWCS6 from here and do not see the new updates on what I read.  As the HTML5 Audio Player, I read on.  Where is the devil?  Thank you!  Up to this that I'm not sold on this cloud thing and terrible support, I got on the phone with Adobe.

    Who does # version and build you have?

    I'm on the CS6 worm 12.1 build 5949.

    Go to insert | The media.  HTML5 Audio is ranked 3rd under video HTML5 and edge animate Composition.

    PS. I have a very good experience with the software of my cloud.  If I have questions/problems, I go to the user forums.  I'm just too little patience for telephone support.  Well I him have not used it myself, I understand that online chat is very useful for some things.

    Nancy O.

  • HTML5 animation always appears on the other contained

    I've created an animation on board animate and imported into Captivate 8. I tried to put on a blade of mater and directly on a slide in the Filmstrip. It always jumps on top of the other content of the slide when I saw in a browser, even if it is on the bottom of the stacking order in the layers on a slide in the Filmstrip. If I place it on a slide master, the same problem occurs, even though I have the "Master drag objects On Top" unchecked.

    Why? Is there any solution for this?

    This has always been the case for all animations, they are on top of the stack (ditto for the interactions of training). Sorry, it's the 'design', I can't offer you a work around.

    As for edge to animate, you can use transparency to at least have the transparent background.

  • Firefox does not play HTML5 audio

    My Firefox installation (v33) does not play HTML5 audio.
    I am referring to audio tracks (MP3) you can listen to on your personal Google Reader. The stream does not start, there is no time of the track being filled.

    -Youtube HTML5 player works great both for Audio and video
    -J' tried Incognito mode (without cache and cookies)
    -Tried restarting without Add - ons (I use Adblock and other stuff)
    -Tried to restore Firefox.

    None of these permits.

    -V38 IE11 and Chrome, the browser listen very well
    -A clean Firefox (on my virtual machine, for example) very well disseminate

    Any tips?

    EDIT: SEW I'm touched by it? https://Bugzilla.Mozilla.org/show_bug.cgi?id=911837

    You can file a bug in the Mozilla bug tracking system: https://bugzilla.mozilla.org/ (see: https://developer.mozilla.org/docs/Mo.../Bug_writing_guidelines)

  • Servo motor gets stuck in the loop

    My project is to control two motors from the pedals with LabVIEW in combination with UMI-7774 and PCI 7350.

    I use a traditional format of State Machine to simultaneously control two motors according to the absolute position mode.

    In one of the first States, both motors are wound manually by using the speed mode (to make a desired voltage).

    In a later State, the motors are wound to a position specified by the user when you press a foot switch. When you press the other pedal, they are then held in the previous "original" position

    After the first "Tension" indicate when the winding engine and the course due to the pedals is running, the program gets stuck in the State of wind.

    Although drivers are told to go to a specific position, they never move and that's why the program is unable to move to the next State.

    I've attached a screenshot of the winding State where the program is stuck (the engines are not mobile, so when the final position is to compare it with the desired position, the loop continues to go).

    Help, please.

    CAT

    I solved the problem.

    States "Wind engine left" and "Right wind engine" speed has been put back to zero. When the program moves toward States of wind/flow, the speed is always zero (the engines cannot move).

    I simply set the speed value desired in each of the States LBL/RBL (that allowed the engine to get to the position of desire).

    Thanks for all the help,

    Catherine

  • What is the difference between the USB modes and when to use them?

    Hi everyone, I am a new user of Clip 8 GB and have read some documents here.  I am now totally confused as to what are the 3 modes various usb and when to use them.  I only move & paste books audio mp3 to my clip at the moment, but hope to soon try to download from the internet libraries.  I left my USB for auto detects and had no problem to upgrade to the new firmware, or to see one of my books.  I tried the other two modes and sees again all 3 of my books.  I don't want to complicate, while I suggest you to use it for everything?  Or is it possible?  I want to download mp3 from sites books and burn them on cd as a backup, so it doesn't go away in 2 weeks time.  This way I can put it on the clip when I'm done with my course books.  Is it possible, or can you only download directly on your clip?   Thanks from a newbie.   Aliza

    Three modes are MSC, PSG and Autodetect, sometimes called AutodeFect.  But you probably know the names.

    MSC, aka UMS, treats the Clip as a flash drive when it is connected to a computer.  Drag and drop.

    PSG is Microsoft to 'manage' your 'rights '.  Transferred files can be limited to a number of ways and can 'end', then you will need to reauthorize them.

    I suspect that the books of the library must be transferred in MTP mode, so that you can only "check them out" for a limited period of time.  If so, burn them on a CD do you no good, as they will always expire.

    I've never had a need to MTP mode, but I can at some time try an audiobook from my library of the city, in which case I'll need to.

    Theoretically, they work together very well.  You can see all files when using the clamp.  The computer can see files transferred in MTP mode when connected to the MTP and MSC transferred only when connected to the CSM.  AutoDetect, who knows the devil.  I would like to avoid it like the plague.

    As for use, I suggest using MSC for everything, unless it won't work, what try DPW.

Maybe you are looking for

  • Pairing Bluetooth headset with Apple Watch 2 series?

    Hoping that someone here has some good ideas, so I can avoid having to go through the centre commercial/Apple Store! Bought a watch series 2 the day of the launch, immediately tried to pair with the bluetooth headphoens I got (AvierBTE somethings). N

  • How to migrate notes to OneNote notes of Apple?

    I want to transfer all my books and pages and the notes from OneNote into Notes of Apple. Is it possible while keeping separate individual notes? Copy one by one is not an option, I pointed out more than a hundred. I tried to export to docx, doc, pdf

  • Final cut pro - add 1 photo 5GBs?

    I know this must sound crazy, as it does not make much sense to me. I'm finishing a project with about 5 GB of disk space on my computer.  I add a simple image to sit in the left corner of my video (which lasts 8 minutes).  Whenever I have add the ph

  • Why all of a sudden I am getting error Adobe flash crash without any difficulty

    When I go to gunblast.com and try to watch videos and I get crash error messages I have the latest version of Adobe flash and yet still message error, use the Explorer and it works very well, I've been with you for over five years and it is a real pr

  • Cannot not average or do a right click on Favorites to open in a new tab

    I can no more middle-click a bookmark in the bookmarks menu to open in a new tab. No matter if I have left, middle or right click, it is considered to be a left click and open in my currently open tab.PS I do this using Firefox 23, but goes the same