cladera / videojs-offset

VideoJS plugin for play a segment of a video.
MIT License
64 stars 43 forks source link

Video auto play when moving seek bar to start time #69

Open ducto opened 3 years ago

ducto commented 3 years ago

Description

When trying to move video's current position to start time, the video is auto play even thought it is paused

Steps to reproduce

  1. Play then pause the video
  2. Move the video seek bar 's current position to left most or set video's current Time through function

Results

Expected

Video's current time is at 0 and does not start playing

Actual

Video's current time is at 0 and start playing

Error output

If there are any errors at all, please include them here.

Additional Information

In function onPlayerTimeUpdate I found these logic

if (curr < 0) { this.currentTime(0); this.play(); }

It should just set the currentTIme to 0 without play

versions

videojs

what version of videojs does this occur with?

browsers

what browser are affected?

OSes

what platforms (operating systems and devices) are affected?

plugins

are any videojs plugins being used on the page? If so, please list them below.