rssTea icon indicating copy to clipboard operation
rssTea copied to clipboard

feature request

Open hooperman67 opened this issue 1 year ago • 2 comments

loving your work... I think it would be great if you could close the podcast when finished listening or moving to another page.

hooperman67 avatar Jul 14 '24 17:07 hooperman67

People prefer podcasts playing in the background so I won't change the default. However if you want to implement this in your forked repo just add this code to base.html

<script>
document.addEventListener('visibilitychange', function() {
    if (document.hidden) {
        let audios = document.querySelectorAll('audio');
        audios.forEach(function(audio) {
            audio.pause();
        });
    }
});
</script>

avadhesh18 avatar Jul 23 '24 15:07 avadhesh18

Thanks much appreciated

hooperman67 avatar Jul 25 '24 18:07 hooperman67