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

@@ -433,6 +433,11 @@ class File extends Managed_DataObject
return File_thumbnail::getKV('file_id', $this->id);
}
public function getPath()
{
return self::path($this->filename);
}
/**
* Blow the cache of notices that link to this URL
*