Open charlestyra89 opened 1 year ago
Hello. When you open the book, the server starts and each time on a new port (the first time - 4040, the second time - 4041, etc.). You can try commenting out this line https://github.com/Mantano/iridium/blob/60ce92a78255fa630f83069ede6d08475098aa1e/components/server/lib/src/blocs/server/server_bloc.dart#L86
Hi @charlestyra89 and @vitaliynester, I haven't seen your posts. On Android, you can avoid starting an HTTP server by replacing true
by false
in EpubController, here.
If you are working with a fork, it's easy for you to give it a try.
But if you are using the "Reader Widget", there is currently no matching option. This would be a nice addition. I'll implement that quickly.
EDIT: I tested, and in the current version, setting false
doesn't work. I need to investigate further since it definitely worked. It has been broken at some point.
Created #89
In the demo app, if I close and reopen a downloaded book (or other downloaded book) six times, the app crashes and shows a screen indicating err: unsafe port for port 4045. In the logs I see "Uncaught ReferenceError: readium is not defined" as well as "1.ui identical 28 lines" Thanks for any help you can provide!