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
|
|
@ -83,12 +83,10 @@ class Video extends Audio
|
|||
if ($format instanceof ProgressableInterface) {
|
||||
$filters = clone $this->filters;
|
||||
$duration = 0;
|
||||
/*
|
||||
check the filters of the video,
|
||||
and if the video has the ClipFilter than:
|
||||
take the new video duration and send to the
|
||||
FFMpeg\Format\ProgressListener\AbstractProgressListener class
|
||||
*/
|
||||
|
||||
// check the filters of the video, and if the video has the ClipFilter then
|
||||
// take the new video duration and send to the
|
||||
// FFMpeg\Format\ProgressListener\AbstractProgressListener class
|
||||
foreach ($filters as $filter) {
|
||||
if($filter instanceof ClipFilter){
|
||||
$duration = $filter->getDuration()->toSeconds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue