Audio HTML5 Autoplay WebWorks or play on click
It is specific for the BB - works great on the PB.
How do you get the HTML5 Audio tag to work in an app with the AutoPlay option webworks?
Ex: The Audio clip CBC modified via javascript, then I load then audioElement.play () - this does not work, you must bind the click of another link or button audioElement.play (), and then click NEW...
Any ideas?
function playSongNow (currentID) {}
var support = document.createElement ('audio');
audioElement.setAttribute ("autoplay", "true");
audioElement.setAttribute (' preload ',' true' ");
audioElement.setAttribute ('src', 'http://' + sessionStorage.url + ':' + sessionStorage.port + ' / rest/stream.view? u =' + sessionStorage.user + '& p =' + sessionStorage.pass + '& v = 1.6.0 & c = BerrySonic & id =' + currentID);
audioElement.load ();
audioElement.addEventListener ("canplaythrough", function() {}
audioElement.play ();
$(".duration_span").html (audioElement.duration);
$(« . Filename span") .html (audioElement.src);
(}, true);
{$('.play').click (function ()}
audioElement.play ();
});
{$('.pause').click (function ()}
audioElement.pause ();
});
{$('.volumeMax').click (function ()}
audioElement.volume = 1;
});
{$('.volumestop').click (function ()}
audioElement.volume = 0;
});
{$('.stop').click (function ()}
audioElement.pause ();
audioElement.currentTime = 0;
});
{$('.playatTime').click (function ()}
audioElement.currentTime = 35; Try to jump so used 35
audioElement.play ();
});
}
This has worked for me since
function playSongNow(currentID) { $('#song-loader').show(); var audioElement = document.createElement('audio'); audioElement.src='http://' + sessionStorage.url + ':' + sessionStorage.port + '/rest/stream.view?u=' + sessionStorage.user + '&p=' + sessionStorage.pass + '&v=1.6.0&c=BerrySonic&id=' + currentID; audioElement.load(); audioElement.addEventListener('ended', function() { //alert('ended'); }); audioElement.addEventListener('canplay', function() { audioElement.play(); $('#song-loader').hide(); $('.play-pause').attr('id', 'pause-song'); }); }
For some reason any canplaythrough on the BB just doesn't work. Basically here I click a song and it works.
Tags: BlackBerry Developers
Similar Questions
-
The use of blackberry.audio.Player to play back audio in app WebWorks
I'm playing some audio when the user clicks a button in my app WebWorks...
function playAudio() {}
var playerInstance = new blackberry.audio.Player("audio/blah.aac");
playerInstance.play ();
}
It does not work. I tried all kinds of combinations and the only time where I can't not run is if I leave the audio clip of my project and put it on the card as follows:
function playAudio() {}
var playerInstance = new blackberry.audio.Player("file:///SDCard/blah.aac");
playerInstance.play ();
}
How can I play audio that is integrated with my WebWorks app?
Thank you
OK fixed! I would have had a better look at the forum first: o
It works for me now:
function playAudio (src) {}
var fn = "local: audio / / / /" + src;
try {}
var playerInstance = new blackberry.audio.Player (fn, "audio/x-aac", true);
playerInstance.play ();
} catch (err) {}
txt = "Error reading audio\n\n" + fn + "\n\n";
txt += "Error:" + err.message + "\n\n";
txt += "Click OK to continue.\n\n";
Alert (txt);
} -
I have software version 9.3.1 on my iPhone 6 Plus. As of today, none of my audio books in iBooks will play. Could someone please advise how this can be solved?
What happens when you try to play (y yo get error messages?), and what did you see if that fixes it for example that you have:
-tried to close the iBooks application via the taskbar of the phone
-do a soft-reset/reboot the phone
-deleted and synchronized their return from your computer's iTunes library (if you don't have them on your computer then file > devices > transfer purchases before deleting). Or you could, purchases on the iTunes store (and are still in the store and you have not reached the country since their purchase) be able to re-download them via the tab purchased in the iBooks app.
-
How to make a Player audio html5 can be used since a .psd
Let's say I have a .psd of an audio player model. How can I do that in something I can use as a Player audio html5 that I can put in my site?
Tutorials, videos, tips, links to all sites welcome!
My advice would be to dissect an existing audio player to see how its code. For example, the Wimpy Player skins are created with a LOT of CSS code and only has very few images. For reference, look at online skin clothing Wimpy and this link: http://webdesign.tutsplus.com/tutorials/create-a-customized-html5-audio-player--webdesign-7081
Nancy O.
-
Audio CD does not automatically play when the CD is inserted
I have my settings set to read a CD automatically when the CD is inserted. I insert an audio CD, and nothing happens. No music.
Hello
Welcome to Windows Vista community responses.
(1) made audio CD playback with Windows Media Player or any other third party software?
(2) have you been able to use this feature before? If so what are the recent changes on the computer?
Windows does not read the CD-Roma automatically if you only use the real-mode CD-ROM drivers. Protected mode drivers are called to play CD-ROMs automatically when you insert them into your CD-ROM drive.
To manually change your auto CD play settings in Windows Vista
1. open the control panel by going to the start menu.
2. double-click on the default programs icon.
Now choose the third setting down. Change AutoPlay settings.
4. now you can choose which action to perform with which program.
5. press on the drop-down menu to make your choice.Response please back and let us know if this helped with your question or let us know if you need more assistance.
Kind regards
Anthony
Microsoft technical support
Visit our Microsoft answers feedback Forum and let us know what you think. -
The Sims 3 Audio and other games not playing Audio
Hello I downloaded the Sims 3 game eagames.com on Sundaynight, first of all, it took a lot of time. Well, I played it yesterday until about 23:00, then I turned off my computer, I stopped it, I go to play the sims 3 and my audio does not work so I'll and see if it works in secoundlife come to find out, seems not works perfectly on my laptop, I don't know what the topic please help.
Hello
Check if there are all the settings in the game for the audio.
Because the sound on your laptop works very well, then, there seems to be a problem with the game, I suggest to uninstall the game and reinstall it on the system and check if the problem is resolved.
For further assistance, I suggest you to post your query on the Sims forums. Click on the link below.
Thanks and regards.
Thahaseena M
Microsoft Answers Support Engineer.
Visit our Microsoft answers feedback Forum and let us know what you think. -
My computer has more audio and it won't play the DVD or audio CD.
As noted in the suubject line, my computer has more audi and it won't play the DVD or audio CD. It's a hp Pavilion dv6 - 6 c 15nr Entertainment PC. I have not had a year yet.
Click on the link below. Enter your product number as that indicated on the Service tag on the bottom of the laptop (can be under the battery). You can also get the product number by pressing Fn + ESC key. After you enter the PN, click Next, then choose the software & Drivers.On the next page use the menu drop down to select your (probably Windows 7 64-bit) operating system. A list will fill with the drivers. Download & save the last Audio driver.
http://h10025.www1.HP.com/ewfrf/wc/siteHome?cc=us&LC=en
Go into the Control Panel, programs & features - software uninstall IDT. Reboot the laptop and install using the downloaded file.
```````````````````````````````````````
If still no sound, try a hard reset, works sometimes. Disconnect all external devices first.
battery and power cord 1 / removal
2 - Press the power button for 30 seconds
3 reinstall only the power cord for the first start.
4. turn on
-
Audio but not voice when playing movies
Have audio but not Windows 7 64 voice all the flavors
Audio, but no voice Windows 7 64 flavorsInstalled all Windows 7 64 bit OEM & retail Home Premium then Pro & finally ultimate everything brought no voice but background sound. I didn't know until I loaded all my apps and cela took hours to get everything loaded. I decided to watch a movie, background sound played, but the actors had no say in the matter? I installed FFDShow, VLC, Windows 7 codecs and DivX which did not provide the voice. 90% of YouTube, had no voice as well. I tried the latest drivers for the graphics & audio chipset and all the updates of windows without success.
1 CPU E6600, Asus w/G41 chipset Realtek audio material. No voices, background sound worked. Plugged a Geforce 8600GT voice worked, and then plugged a 8400GS speechless?
2 CPU E8400, Zotac GeForce 9300 chipset, Realtek audio. Voice worked but after a reboot without voice.
3 material i7 CPU, Geforce GT240, Gigabyte P55 chipset. No problems with the audio or voice
I discovered that material of 1st and 2nd built worked without problems if I install Win 7 32 bit (without any additional codecs). I wanted to run OS 64-bit on 1 & 2, given that the two processors are 64-bit supported! I hope that someone here knows what I can do to run the voice...
Wallace
Control Panel-sound-manage audio devices-reading-restore default (there may be an Advanced tab or you may need to right click and select properties then restore) can't remember but its right there for you. fixed mine 100%
-
Video tag in HTML5 and Webworks.
Hello
I am trying to build a webworks application that supports video playback to the MP4 format (possibly with a fallback to FLV). The video tag works in the emulator of waving (on chrome).
On the device (the two BB10 Z - Dev B and Alpha Q BB10) video display appears, and playback video, the video disappears. The audio continues the game, but there is no video is visible. When you press the previous button in the action bar, sometimes the video reappears and plays well.
The video disappears again when restarting in the search at the beginning of the video.
This does not seem to be linked to any specific video, as I have tried videos hosted on several different servers.
The simpler version of the code looks like this:
video var = document.createElement ('video');
Video.SRC = "http://video-js.zencoder.com/oceans-clip.mp4";Video.Controls = true;
$(PageRoot).find("#maincontent").append (video);
Help, please.
Is there another / the best way to reach the video playback?
Thank you
WebWorks dev.
Hey anzor_b,
Thanks for your reply. The works of url for me in chrome, just checked.
in any case, I understood the question using web Inspector. The video tries to go full screen when played and hides behind the page. I put it to play online to now use "webkit-playsinline" on the video tag.
I think it's just a few CSS (I suspect the z-index of the bb to the screen), but I'll get to it later.
Thanks again,
webworksdev.
-
I was sent AIFF audio files. How to play on windows 7 media player
When I received these AIFF music files, I searched on the net and he told me that they would not play on Windows 7 Media Player. They will not!
How can I make them work. Help please!Thanks in advance!GregHello
Codecs: Frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/codecs-frequently-asked-questionsAll you need is good Codec
Check here:
Plug-ins for Windows Media Player
http://www.Microsoft.com/windows/windowsmedia/player/plugins.aspx-------------------------------------------------------------
If 64 bits and you need codec.
Read this 1st and go that route, or use the one below. (Vista or Windows 7)
http://www.Vistax64.com/sound-audio/152850-Vista-codec-pack-32bit-64bit-Media-Player-codecs.html
--------------------------------------------------------------------
If 64-bit - can run WMP in 32 or 64 bit mode.
Or try these: download - SAVE - go to the place where your put them RIGHT CLICK – RUN AS ADMIN.
For 32-bit use these - OR the 32 bit ones listed above which I prefer.
K - Lite Codec Pack 10.0.0 (or newer)
http://www.codecguide.com/Use them for 64-bit:
K - Lite Codec Pack (64-bit) 10.0.0 (or newer)
http://www.codecguide.com/K - Lite now includes BOTH 32 and 64 bits in a single download installable.
Also look for updates, September 6, 2013, was K-Lite Codec Pack 10.0.3
Download and install it after the main program.-------------------------------------------------------------
You know that you use WMP 32 or 64
Change, modify or value 64-bit Windows Media Player 11 (WMP11) in Windows Vista x 64 as default (or WMP12 - Windows7)
http://www.mydigitallife.info/2007/01/19/switch-change-or-set-64-bit-Windows-Media-Player-11-WMP11-in-Windows-Vista-x64-as-default/-------------------------------------------------------------
And you can use it when necessary because no codex is usually required.
VideoLAN - VLC media player
http://www.videolan.org/I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
While playing the slide with audio, if the customer has hit a tab with audio interaction, two sounds play together, which is not a good customer experience.
How to avoid what is happening? Placing a marker can help, but cannot solve the problem when the compliant/no intentional user, press tab.
Better, if the presenter can triggle tab automatically at some point, or click interaction, no game bar function.
Hi Louie,
My sincere apologies for not being able to help on your previous question.
Now, that the Interactions are concerned, they were initially designed to be placed as standalone content on the slide.
Also if you try to resize your interaction and place it on the slide as well as other content/objects released published will always give a priority to the Interaction that it deemed to be a specific slide of Interaction.
In the previous project, you shared, you try to time the Interaction with PowerPoint animations and wanted it to appear later on the set of slides, rather than on the start. But, as explained above, presenter honored not this setting in your project, because he in fact has considered a slide of interaction and display interaction since the beginning of the slide room itself.
Also the number listed in this thread is concerned, there is no direct way to do it but I would like to suggest something that might help.
If you want to keep the interaction on your slide and other content, Interaction will be available at the beginning of the slide. Surely there is no way that delaying his appearance, but you can still use animation related to Interaction in another goal. Within your presentation-> playback option settings, you can enable the feature of 'Pause after each animation' (see screenshot below). It will essentially help you achieve the function of auto-faisant a break from your animations, using your narration would automatically stop, just before you claim in your narrative and inform the learner to click on the different tabs of the Interaction. All you have to do is your narration and animation correctly so that the slide play does not break too many times in the time interval. Hope you find the idea of what I'm trying to say.
Please mark this answer as being correct, if you find it useful. We would certainly look at such scenarios to be achievable directly at the request of our updates and later version.
Thank you
Zeeshan Hussain
Adobe Presenter Engineering Team
-
How can I remove the audio when there is no cutting to click on?
I did several films, however, the latter has a problem. He didn't there is audio that plays at the end of my movie, but no visible cutting (video or audio) for me, right click and delete. It's as if the element is missing, but audio plays for five or six seconds, not related to any video. I can't highlight the audio delete (there is no image showing same) and I cannot reduce the volume level here either. I think that there is a bug in the last update of the components of Prime Minister. Any ideas? Or I have to start all over in the creation of my film?
todde
Thanks for the reply with screenshot.
On your screen, you are in the quick workspace. Please go to the Expert workspace where you can get a better view of what's going on
and therefore have more control.
It expanded to display the titles and their content will be a definite advantage.
We will follow to your results.
RTA
-
If for some reason, while I was working on my project, suddenly the audio playing back fine stopped playing sound back.
After trying to solve this problem (reset the caches, import audio, restart the computer) I'm here asking for help.
After an hour of banging my head and google search, I noticed that the clips suddenly not work had a different color to them.
On the left is the clips on the right and work no job clips.
Could be the problem?Thank you.
Data sheet:
CS 6
MacBook Pro
10.8.4 OSX
8 GB ram
The audio files are .wav.
Hello
Thanks for posting on the forums. Please right click on audio clips that do not have sound and go to option channels Audio and in the channels of the Source tab select left and right respectively in the drop-down list. This issue may arise if you there is "none" option selected in the source of the string tab. Please update if this solves your problem or not.
Thank you
Vinay
-
How can I get video and audio to download instead of play automatically?
Many sites Web gives you the possibility to download the audio or video file or streaming it. When I click on the download on a given Web site option, another tab opens and begins to read the file without downloading it. I don't want to live the content now, that's why I'm downloading. I always have to switch to Chrome for no streaming.
Thank you. It worked!
-
It shows only the first audio file. All other browsers show all audio files...?
The file is played for me, so it is possible that you need to re-code the ogg files to make them compatible with Firefox.
I can play with MPlayer and VLC on Linux, but not with the audio player in Firefox.
Maybe you are looking for
-
Geolocation API works with sandboxed iframes or provide an error
The navigator.geolocation.watchPosition function call does not work with sandboxed iframes where allow-same-origin is not specified (so the iframe counts as a unique and anonymous origin). I assumed that in so doing the iframe in sandbox inherits is
-
Can I connect my direct of the G20-110 to my amp?
Hi people, Anyone know if I can connect my direct of the G20-110 to my amp?
-
HP 820 / 840 G3: Driver ID of the material VID_8087 &; PID_0A2B
Hello I have installed a G3 820 and 840 via SCCM Tasksequence including driver package form here http://ftp.hp.com/pub/caps-softpaq/cmit/HP_Driverpack_Matrix_x64.html , SP 75204 All the drivers are correct except the hardware ID VID_8087 & PID_0A2B (
-
I am currently living in the United States, but often travel in Europe (particularly UK/Ireland). I noticed there are differences between the LTE 4 G covered between the pure and the Style bands. The band most commonly used in Europe seems to be band
-
is w *. chat123.us a legitimte tech support site
Is w *. chat123.us a Web site legitimate technical support remote access to my computer?