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