mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Nicer transitions. Closes #518
This commit is contained in:
@@ -607,7 +607,14 @@ var Player = {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (Player.player.getVideoUrl().indexOf(id) > -1) {
|
if (Player.player.getVideoUrl().indexOf(id) > -1) {
|
||||||
|
if (
|
||||||
|
!(
|
||||||
|
seekTo - 5 < Player.player.getCurrentTime() &&
|
||||||
|
seekTo + 5 > Player.player.getCurrentTime()
|
||||||
|
)
|
||||||
|
) {
|
||||||
Player.player.seekTo(seekTo);
|
Player.player.seekTo(seekTo);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Player.player.loadVideoById({
|
Player.player.loadVideoById({
|
||||||
videoId: id,
|
videoId: id,
|
||||||
|
|||||||
Reference in New Issue
Block a user