MediaFile thumbnail event hooks + VideoThumbnails plugin

The exception thrown from MediaFile will be caught and simply result in
no thumbnail at all right now. In the future we might use a catch-all
and have a "cannot generate preview"-icon or something.

VideoThumbnails requires php5-ffmpeg and php5-gd.
This commit is contained in:
Mikael Nordfeldth
2014-04-16 19:14:26 +02:00
parent 00aa3fa734
commit 06d4cecf7f
7 changed files with 197 additions and 32 deletions

View File

@@ -84,6 +84,8 @@ class File_thumbnail extends Managed_DataObject
/**
* Save a thumbnail record for the referenced file record.
*
* FIXME: Add error handling
*
* @param int $file_id
* @param string $url
* @param int $width