You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May I suggest this logic and the addition of a $.fn.supportsAutoPlay function?
This is an example of detecting autoPlay, not sure how foolproof it is?
fairly psuedo-code not tested... sorry~
$.fn.videoBG.supportsAutoPlay=function(){varAUTOPLAY=false;try{varvideo=newVideo();video.autoplay=true;video.volume=0;// this will only be triggered if autoplay works$(video).on('play',function(){AUTOPLAY=true;});}catch(e){returnfalse}returnAUTOPLAY});}
The text was updated successfully, but these errors were encountered:
May I suggest this logic and the addition of a
$.fn.supportsAutoPlay
function?This is an example of detecting autoPlay, not sure how foolproof it is?
fairly psuedo-code not tested... sorry~
The text was updated successfully, but these errors were encountered: