I'm using JW Player v8.10.3 and I want to disable fast forwarding in Chrome, Firefox, IE11, Microsoft Edge and Safari. The code below works in Chrome and Firefox.
To reproduce the issue, on Microsoft Edge/IE11/Safari, click on a future time at least a couple of times. Then click on a time even further into the future. The video will jump to the time that was clicked on a couple of times.
Has anyone run into this issue or has any ideas on how to solve this issue?
var seeking = false;
var maxPlayPosition = 0;
jwplayer().on('time', function (event) {
if (!seeking) {
maxPlayPosition = Math.max(event.position, maxPlayPosition);
}
}).on('seek', function (event) {
seeking = true;
}).on('seeked', function (event) {
var pos = jwplayer().getPosition();
if (pos > maxPlayPosition) {
jwplayer().seek(maxPlayPosition);
}
seeking = false;
});