jundo12
05-08-2014, 09:26 PM
1) Script Title:
HTML5 background audio player
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex11/html5audioplayer.htm
3) Describe problem:
i just need it to play the sound file once without having to manually turn it off. no looping. how do i do that?
jscheuer1
05-09-2014, 02:20 AM
First thing I would try is, using a text only editor like NotePad, setting loop false in the bgaudioplayer.js file:
/* HTML5 background audio player
* Created: Jan 31st, 2012 by DynamicDrive.com. This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
jQuery.noConflict()
var bgaudioplayer = (function($){
var audio5support = !!document.createElement('audio').canPlayType
var d_setting = {autoplay:true, loop:false, persistTimeLine:false, volume:0.5, volumelevels:10}
function bgaudioplayer(setting){
var s = $.extend({}, d_setting, setting)
var persistTimeLine = s.persist . . .
The browser cache may need to be cleared and/or the page refreshed to see changes.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Just as a side note, several devices - like most if not all handhelds, will not allow auto play, I'm not sure how this script will act in those.
jundo12
05-09-2014, 04:27 AM
thanks! yep that does the trick. i completely forgot about the .js file. doh. i keep checking the main script on the html page.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.