View Single Post
Old 12-30-2021, 08:08 AM   #7
OShead
Junior Member
OShead began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No, calibre's UI cannot be accessed from book JS for obvious security reasons.
I tried various methods, but they came back with what looked like a wrapped version of the page with starting like this... {"version":1,"tree":{"n":"

Code:
          audioPlayer.addEventListener("ended", function(e){
            console.log("audio ended");
            //window.open('part021.html', '_self');
            //window.location.replace("part02.html");
            //window.location.assign("part02.html");
            //location.replace("part021.html");
            //location.href = "part021.html";
          });
Do you know of anyway around this?

Just for context, they are short one minute long language lessons with text and sometimes I like to listen in background while doing something else like make dinner and etc... So I'd just like for it to play through the book, page after page, without user interaction.
OShead is offline   Reply With Quote