aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/js/plyr.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 982023bb..782e6397 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1245,16 +1245,15 @@
targetTime = player.media.duration;
}
- // Set the current time
- if(player.type == "video" || player.type == "audio") {
- // Try/catch incase the media isn't set and we're calling seek() from source() and IE moans
- try {
- player.media.currentTime = targetTime.toFixed(1);
- }
- catch(e) {}
- }
+ // Set the current time
+ // Try/catch incase the media isn't set and we're calling seek() from source() and IE moans
+ try {
+ player.media.currentTime = targetTime.toFixed(1);
+ }
+ catch(e) {}
+
// YouTube
- else if(player.type == "youtube") {
+ if(player.type == "youtube") {
player.embed.seekTo(targetTime);
// Trigger timeupdate