Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Changes from NOOK Client #438

Open
wants to merge 320 commits into
base: master
Choose a base branch
from
Open

Merge Changes from NOOK Client #438

wants to merge 320 commits into from

Conversation

ZakHsieh
Copy link

These are changes from NOOK client for ePub3 reader.

BNCloud Build User and others added 30 commits May 31, 2017 05:27
…6 Plus/iPad Pro 12.9 media queries"

This reverts commit af07072.
…ew and index when PAGINATION_CHANGED/FXL_VIEW_RESIZED
build and others added 20 commits December 4, 2017 04:28
…oid client

The reason is Chrome mobile would disable setInterval/setTimeout inside
event handler, then cause iBooks audio would never been playback after
user taps on iBooks element
@@ -1,3 +1,3 @@
[submodule "readium-cfi-js"]
path = readium-cfi-js
url = https://github.com/readium/readium-cfi-js.git
url = http://stash.barnesandnoble.com/scm/ios/clients-ios-externals-readium-cfi-js.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submodule references pointing to private vendor instances should definitely not be merged into the open-source GitHub-hosted codebase ;)

grgit.push(tags:true)
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very specific to barnesandnoble.com, and it is Android-related, right? (not generic readium-shared-js code)

position: absolute;
top: 50%;
right: 5%;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this CSS is app-specific, not in the scope of readium-shared-js.

cd "${pwd}"

echo "###########################################"
echo "###########################################"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was part of the BN native app, not meant to be in readium-shared-js

eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"

exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These Gradle files should not be part of this PR, I think (vendor-specific com.nook.core.readium, for example)

}
node.clipEnd = node.MAX;
node.clipEnd = node.clipBegin + 0.1;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. due to this code change, if clipBegin == clipEnd then the audio player will probably misbehave, right?
  2. what is the rationale for this change? Before the change, setting clipEnd to MAX (when clipEnd <= clipBegin ... granted, that's a weird edge-case) informs the audio player keep playback until the natural end of the audio file. With the change, the audio player will play 0.1 seconds of content?

@@ -603,7 +633,7 @@ define(['jquery'],function($) {
}

var MAX_SEEK_RETRIES = 10;
var _seekedEvent1 = _iOS ? "canplaythrough" : "seeked"; //"progress"
var _seekedEvent1 = "seeked";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reminds me of this bug report (Android Chromium webview breaking changes):
readium/readium-js-viewer#681

...I really hope that one day no audio-related code tweaks are needed for modern iOS (thank you BN for the PR, it looks like based on your experience the "seeked" event now works), but on Android the practical reality is that Readium must support older version (e.g. KitKat 4.4) where some tweaks are still required :(

@@ -1214,7 +1214,7 @@ var CfiNavigationLogic = function (options) {
if (!firstPartial) firstPartial = item;

if (visible == 100) return item;
}
} else return item;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for this change? This seems to run counter to finding the first visible Media Overlays element. Without this code change, this is equivalent to continue (with respect to the enclosing loop), but with the change the first non-visible MO element will be found!


if (!spineItem.media_overlay_id && mediaOverlay.smil_models.length === 0) {
if ($body.length > 0) {
Helpers.addTapEventHandler($body[0], tapEmitter);
}
return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution. Touch handling improvements in the Media Overlay implementation are welcome indeed.

@@ -0,0 +1,3 @@
[submodule "src/fabric"]
path = src/fabric
url = https://github.com/kangax/fabric.js.git
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

html2canvas seems to be referencing a submodule (kangax/fabric) that does not exist in this source tree. Is that intentional? Or should the external_modules folder be entirely deleted from this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants