Skip to content

Commit 4cd3a3b

Browse files
committed
Avoid nextAudio.load()
This function resets the audio properties, in particular the speed. See there: rajgoel#148 (comment)
1 parent 7e918ea commit 4cd3a3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

audio-slideshow/plugin.js

+3
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ const initAudioSlideshow = function(Reveal){
389389
document.dispatchEvent( evt );
390390

391391
if ( timer ) { clearTimeout( timer ); timer = null; }
392+
return;
393+
// Do not execute following. See there:
394+
// https://github.com/rajgoel/reveal.js-plugins/pull/148#issuecomment-1464891048
392395
// preload next audio element so that it is available after slide change
393396
var indices = Reveal.getIndices();
394397
var nextId = "audioplayer-" + indices.h + '.' + indices.v;

0 commit comments

Comments
 (0)