Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

ePub 3.0 media overlays can be played and example updated to demonstrate #23

Merged
merged 33 commits into from
Jan 11, 2016

Conversation

kjantzer
Copy link
Member

Closes #11

Please test the functionality and let me know if changes are needed. I figure there will be more features added as we think of them, but this if a start at basic audio synced epubs

audio-player mov

This is in preparation of syncing narrated audio
Copy | Play | Highlight | Share
FolioReaderAudioPlayer needs adjusting to work with these nested elements. It currently expects a flat list of <par> elements
Used to convert duration clock times in media overlay smil files
- Audio can be heard even if the lock/vibrate toggle is on
- Added `isPlaying` method
- Fixed the sync timer so that it works even when a webview is being scrolled
Once the user begins to scroll, synced audio will not auto-scroll until the user hasn't scrolled for 2 seconds.
- Both "share" and "audio" icons appear on right side of nav bar (when applicable)
- Clicking "audio" icon opens a new "player controls" view which borrows its styling from the fonts menu view
- Audio playback rate can be changed
- Audio play icon and menu action only appear if the epub supports playback
- Added a new config called `allowSharing`; if set to false, copying and sharing of the epub is disabled (may be desired when working with copyrighted content)
Returns the `fullHref` without the file name
By default that is. It can be overridden by the user with the config
New UIColor extensions added to support this.
Forgot in previous commit
ePub 3 audio syncing is in a stable and working order. It's been tested on multiple epub files. Improvements will be needed for more complex (nested) smil files.
This includes audio eBooks too
@hebertialmeida hebertialmeida added this to the ePub 3 milestone Jan 11, 2016
@hebertialmeida hebertialmeida self-assigned this Jan 11, 2016
@hebertialmeida
Copy link
Member

I got some errors while building the project.

screen shot 2016-01-11 at 18 02 38

I guess that it's some epub files that are linked to the project.

screen shot 2016-01-11 at 18 04 45

@kjantzer
Copy link
Member Author

Ah, yes. My bad – those were some internal company epubs I was testing. I will remove the reference

@kjantzer
Copy link
Member Author

@hebertialmeida Try it now

@hebertialmeida
Copy link
Member

Thanks!

hebertialmeida added a commit that referenced this pull request Jan 11, 2016
ePub 3.0 media overlays can be played and example updated to demonstrate
@hebertialmeida hebertialmeida merged commit 44e571d into FolioReader:master Jan 11, 2016
@kjantzer kjantzer deleted the feature/11-media-overlays branch January 11, 2016 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants