Video Thumbnail automatic generator for Asset Library
This is important update for my previous video thumbnail generator codes at http://netindonesia.net/blogs/pdanan/archive/2011/04/05/create-automatic-video-thumbnail-in-asset-library.aspx .
The update is in update event parts that is using properties.AfterProperties[oitem.Fields["Preview Image URL"].InternalName] … and delete SPListitem.update().. cause we don’t need this anymore if using AfterProperties.
Reason for that is because we can’t update current item in itemUpdated Event , instead use AfterProperties.
Here is the completed source projects (sorry for the ugly code, at least it works for me ) : VideoThumbGenerator.zip .
I use FFMPEG for thumbnail generator cause it’s good and free, but you can adjust with your own generator.