Skip to content

Commit d704152

Browse files
dsward2dsward2
dsward2
authored and
dsward2
committed
In index.html JavaScript function backButtonClicked(), a call to seekToEndForAudioElement() was disabled by commenting it out. This should reduce the interruption of audio during web page navigation.
seekToEndForAudioElement() can still be invoked by clicking on a Listen button.
1 parent 9605140 commit d704152

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

Diff for: LocalRadio/Web/index.html

+1-28
Original file line numberDiff line numberDiff line change
@@ -415,40 +415,13 @@
415415
{
416416
console.log("backButtonClicked");
417417

418-
/*
419-
var audioPlayer = document.getElementById("audio_element");
420-
var audioSrc = audioPlayer.src;
421-
if (audioPlayer !== null)
422-
{
423-
if (audioPlayer.paused == false)
424-
{
425-
audioPlayer.autoplay=true;
426-
}
427-
}
428-
*/
429-
430-
431418
var iframe = document.getElementById("top_iframe");
432419
iframe.contentWindow.history.back();
433420

434-
435-
/*
436-
var audioPlayer2 = document.getElementById("audio_element");
437-
if (audioPlayer2 !== null)
438-
{
439-
//audioPlayer2.src = audioSrc;
440-
if (audioPlayer2.paused == false)
441-
{
442-
audioPlayer2.autoplay=true;
443-
audioPlayer2.play();
444-
}
445-
}
446-
*/
447-
448421
var audioPlayer = document.getElementById("audio_element");
449422
if (audioPlayer !== null)
450423
{
451-
seekToEndForAudioElement(audioPlayer);
424+
//seekToEndForAudioElement(audioPlayer);
452425
audioPlayer.play();
453426
}
454427
}

0 commit comments

Comments
 (0)