2017 © Pedro Peláez
 

symfony-bundle multimedia-analyzer-bundle

A bundle for Symfony2/3 that analyzes multimedia file duration using GetID3

image

vkr/multimedia-analyzer-bundle

A bundle for Symfony2/3 that analyzes multimedia file duration using GetID3

  • Tuesday, May 9, 2017
  • by wladislavk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Overview

This is a very simple bundle that currently does just one thing - gets the length of a video or audio file in seconds. It has a dependency on VKRSettingsBundle and it also depends on an object-oriented version of GetID3 library. The dependency on GetID3 is my fork of phansys/getid3 that is compatible with PHP 7., (*1)

Installation

Nothing to install except for standard Symfony bundle installation procedure., (*2)

Usage

There is just a single public method that needs to be called as follows:, (*3)

$analyzer = $this->get('vkr_multimedia_analyzer.multimedia_duration_analyzer');
$file = new Symfony\Component\HttpFoundation\File('/path/to/file');
try {
    $length = $analyzer->getFileDuration($file);
} catch (MultimediaAnalyzerException $e) {
    // handle exception
}

If the file is not a multimedia file, 0 will be returned., (*4)

You may also use VKRSettingsBundle in this manner:, (*5)

$maximumLengthSetting = 'maximum_length';
$length = $analyzer->getFileDuration($file, $maximumLengthSetting);

Here, if the file duration is longer than maximum, MultimediaAnalyzerException will be thrown., (*6)

The Versions

09/05 2017

dev-master

9999999-dev https://github.com/wladislavk/MultimediaAnalyzerBundle

A bundle for Symfony2/3 that analyzes multimedia file duration using GetID3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladislav Kryshtanovskiy

symfony2 symfony3 audio video multimedia getid3

09/05 2017

1.0.0

1.0.0.0 https://github.com/wladislavk/MultimediaAnalyzerBundle

A bundle for Symfony2/3 that analyzes multimedia file duration using GetID3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vladislav Kryshtanovskiy

symfony2 symfony3 audio video multimedia getid3