Both player will playback if set html5 autoplay to be true when using flash to html5 fallback
By : mohammad
Date : March 29 2020, 07:55 AM
help you fix your problem Excuse my previous answer. I have, however, found you an alternate solution. We need to check whether flash is available, correct? If that's the case, this link might prove useful.
|
HTML5 Audio Player - Autoplay Next Class Instance
By : Ajmal Babu
Date : March 29 2020, 07:55 AM
To fix the issue you can do It seems to be a bug in the lib (or a not documented feature). it works only if the audiobuttons are direct siblings (prove in line 190 in jquery.ubaplayer.js) code :
var $next = $tgt.next().length ? $tgt.next() : $(defaults.audioButtonClass).eq(0);
// a other unrelated bug in the same line is ... $(defaults.audioButtonClass) should be $("." + defaults.audioButtonClass) or so
<div class="controls"> <!-- THIS IS NOW AN DIV NOT UL-->
<!-- NO LI'S since the links have to be direkt siblings-->
<a class="audioButton" href="mp3/dontthinktwice.mp3">
Don't Think Twice (Bob Dylan)</a>
<a class="audioButton" href="mp3/livingforthecity.mp3">
Living for the City (Stevie Wonder)</a>
</div>
var $next = $tgt.parent().next().length>0 && $tgt.parent().next().children().length>0?$tgt.parent().next().children().eq(0):$("."+defaults.audioButtonClass).eq(0);
// Code could/should be cleaned up a bit
jQuery("#ubaPlayer").ubaPlayer({
codecs: [{name:"MP3", codec: 'audio/mpeg;'}],
autoPlay:$(".audioButton").eq(0)
});
|
Autoplay an audio with HTML5 embed tag while the player is invisible
By : joel nkoa
Date : March 29 2020, 07:55 AM
help you fix your problem I want to autoplay a MP3 audio file and I don't want the player to be visible. , Alternatively you can try the basic thing to get your need, code :
<audio autoplay loop>
<source src="johann_sebastian_bach_air.mp3">
</audio>
|
"Autoplay" HTML5 audio player on mobile browsers
By : كوران فاضل
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further This question has been answered in other places before. Regarding Apple devices specifically:
|
Activate Autoplay based on allow="autoplay" attribute in iframe - Google Autoplay Policy
By : plain0x
Date : March 29 2020, 07:55 AM
may help you . It can not been done. You need to use a promises to check if the auto play succeeded. I used googles way of doing it. Hope it will saves some time to someone :)
|