swift-toolkit icon indicating copy to clipboard operation
swift-toolkit copied to clipboard

Does TestApp have an example of working with audiobooks?

Open maxklochkov97 opened this issue 2 years ago • 4 comments

I was able to figure out how to work with EPUB file format, but unfortunately did not understand how to work with audiobooks.

Please advise how to implement this, if it is already there. If possible, it would be cool to add this example to the TestApp

maxklochkov97 avatar Apr 21 '23 13:04 maxklochkov97

I started working on a basic implementation in the Test App: https://github.com/readium/swift-toolkit/pull/290

The relevant parts for you is in this commit: https://github.com/readium/swift-toolkit/pull/290/commits/9562e1b0c66424f82439b11da61da94626addbb7

Note that you will need to use _AudioNavigator instead of AudioNavigator, as the Audio navigator is still experimental in the develop branch.

mickael-menu avatar Apr 21 '23 17:04 mickael-menu

Thank you for such a prompt reply!

maxklochkov97 avatar Apr 22 '23 08:04 maxklochkov97

Hey @mickael-menu! Am pulling the repo to tinker around with the TestApp, and wasn't able to build. Was tracing the issue and seems to be down to all the audio-related dependencies missing.

Any guidance? I followed the noob instructions in https://github.com/readium/swift-toolkit/tree/develop/TestApp#building-the-test-app

In the meantime, I should be able to get it working by deleting the audiobook code off. But would love to use if working.

Thanks so much and also thanks for the easy-to-read commit in #290!!

Screenshot 2024-03-16 at 8 04 05 AM

heytonytan avatar Mar 16 '24 15:03 heytonytan

Which branch and which make command did you use to build the project?

mickael-menu avatar Mar 16 '24 15:03 mickael-menu