From 1a588f71cf638a5c425759715d1c91501dff98e8 Mon Sep 17 00:00:00 2001 From: Charlie Ryan Date: Mon, 11 Dec 2017 13:25:41 -0800 Subject: [PATCH] fix: Seek to 0 if attempt is made to seek to negative value (#4799) Fixes #4501 --- src/js/player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/player.js b/src/js/player.js index c66487e76..ffdce6be0 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -1789,6 +1789,9 @@ class Player extends Component { */ currentTime(seconds) { if (typeof seconds !== 'undefined') { + if (seconds < 0) { + seconds = 0; + } this.techCall_('setCurrentTime', seconds); return; }