Video plugin provides the ability for users to publish videos along with their status. Video plugin allows users to upload videos in any web supported formats. These uploaded videos can be played in any format or transcoded to other formats such as FLV using FFMPEG. It also provides support for creating video thumbnails.

Supported formats

  • mov, mp4, 3gp, 3g2, mpg, mpeg (Quicktime Player)
  • divx (Divx Player)
  • rm (Real Player)
  • flv, f4v (SWFTools module)
  • swf (Adobe Flash Player)
  • dir, dcr (Adobe Shockwave Player)
  • wmv, asf, avi (Windows Media Player)
  • ogg theora (Cortado Java Applet)

Note: You need to install SWFTools for the FLV videos. Make sure that you have installed a FLV media player for SWFTools as well. Read through Installing SWF Tools.

Theme functions

theme_fbsmp_video_attachment($file, $thumbnail_url = '', $title = '', $description = '', $settings = array())
Themes a given video file to embed in the status.
 * @param $file
 *   The video file object.
 * @param $thumbnail_url
 *   The URL of the selected video thumbnail.
 * @param $title
 *   The title of the video.
 * @param $description
 *   The description of the video.
 * @param $settings
 * (optional) An array which can have one or more of following keys:
 *   - player_width
 *       The width of the video player
 *   - player_height
 *       The height of the video player
 *   - autoplay
 *       A boolean representing whether to play video on page load.