tdVideoPlugin - 0.1.4

Provides easy interface for flash video player to embed in symfony projects.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Dependencies Releases Changelog Contribute
Show source | Show as Markdown

tdVideoPlugin

The tdVideoPlugin is a symfony plugin providing easy interface for flash video player to embed in symfony projects. It is based on my sfVideoPlugin and is integrated into TD CMF.

This plugin is a part of TD CMF and is based on Doctrine ORM.

Installation

Install the plugin via the subversion repository:

$ svn co http://svn.symfony-project.com/plugins/tdVideoPlugin/trunk plugins/tdVideoPlugin

from the project root directory or by using the command:

$ ./symfony plugin:install tdVideoPlugin

Right after the installation of the plugin, you should update plugin assets:

$ ./symfony plugin:publish-assets

so that the default JS and CSS files of the plugin are accessible. Everything is done properly now.

Usage

  • Enable the tdSampleVideo module in your frontend application's config/settings.yml enabled_modules section:

    enabled_modules: [tdSampleVideo ]( ...,)
  • Fixtures are provided with the plugin and 3 flv files in the data/samples directory (thanks to media_college. Run following commands:

    $ ./symfony doctrine:build --all
    

    and

    $ ./symfony doctrine:data-load
    

    Now you have to create a directory for video uploads:

    $ mkdir web/uploads/td/video
    

    and make it writeable:

    $ chmod 777 web/uploads/td/video
    

    Now you have to copy those 3 sample flv files from tdVideoPlugin/data/samples to the video upload directory created above. Everything is ready to run the following URL in your browser:

    http://your-project/video
    
  • Enable the td_video admin generator in your backend application's config/settings.yml enabled_modules section:

    enabled_modules: [td_video ]( ...,)

Configuration

You can modify settings of the tdVideoPlugin in the config/tdVideoPluginConfiguration.class.php file:

  • td_video_upload_dir - upload dir of all video files

  • td_video_short_text_sign_count - character count of a short video descrtiption version

Documentation

The offcial documentation of the flowplayer can be found here.

Credits

Example flv files have been downloaded from media_college