Comment fix, Video size calculation base on the new video duration and added case on the VideoProgressListenerTest test class.
This commit is contained in:
parent
53a978e021
commit
368c65a7d5
3 changed files with 25 additions and 11 deletions
|
|
@ -255,9 +255,8 @@ abstract class AbstractProgressListener extends EventEmitter implements Listener
|
|||
return;
|
||||
}
|
||||
|
||||
$this->totalSize = $format->get('size') / 1024;
|
||||
$this->duration = (int) $this->duration > 0 ? (int) $this->duration : $format->get('duration');
|
||||
|
||||
$this->duration = (int) $this->duration > 0 ? $this->duration : $format->get('duration');
|
||||
$this->totalSize = $format->get('size') / 1024 * ($this->duration / $format->get('duration'));
|
||||
$this->initialized = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue