flashvideo

NP_FlashVideo

With this plugin you can post a Flash Video (flv) by using the tag <%flashvideo(yourvideo.flv)%>

The plugin requires the JW FLV MEDIA PLAYER (formerly FLASH VIDEO PLAYER) from Jeroen Wijering.

The player file mediaplayer.swf (formerly flvplayer.swf) must be in the directory /media of your blog.

New! May now use custom skins, freely downloadable from LongTail Video Skins

General Plugin info
Author: Kai Greve, mod by Rico Banaag
Current Version: v0.7
Download: NP_FlashVideo_v06.zip, NP_FlashVideo_v07.zip
Code: NP_FlashVideo_code
Demo: Old Bridge video, v0.7 Demo video
Forum Thread: Thread 11442

Installing

  1. Unzip the file and upload the contents to your plugin directory
  2. Install the plugin in the Plugin Manager
  3. Download the JW FLV MEDIA PLAYER and place the file mediaplayer.swf in the media/ directory of your blog. Version change: As of JW FLV MEDIA PLAYER v4.0, file is now just named player.swf. Just rename it as mediaplayer.swf before uploading.
  4. Add the filetype flv in the Global Settings under Allow File Types for Upload
  5. You have to change the Max. upload file size (bytes) in the Global Settings if you want to upload Flash videos with more than 1 MB (= 1048576 Bytes) size
  6. Upload the skins you want to use in the fvskins/ folder in the Nucleus plugins directory. Already included in the package are Kleur and Snel Skins from LongTail Video. Visit the site for more information about the skins.

Upgrading

Some hints:

  • Please make sure that you are using a the newest version of the JW FLV MEDIA PLAYER.
  • For version 0.5 of the plugin is FLASH VIDEO PLAYER 3.3 required.
  • Version 0.6 of the plugin is written for the JW FLV MEDIA PLAYER, but there is an option to switch back to older versions (that are using the filename flvplayer insted of mediaplayer), the only new feature is to support the changed filename of the player.
  • Version 0.7 is as of JW FLV MEDIA PLAYER v4.0, so just make sure player.swf is renamed mediaplayer.swf

How to use the plugin

Relative URLs

The easiest way to publish a flash video is to use the Media Manager from Nucleus:

  1. Upload your flash video in the same way like images
  2. When the message Text to display appears simply press OK.
  3. The result is a entry like <%media(filename.flv|)%>
  4. Change it to <%flashvideo(filename.flv)%>

The plugin automatically add the path to your member media directory.

Absolute URLs

With version 0.4 you can also use the absolute URL to the Flash video. The parameter must start with “http://”, for example:

<%flashvideo(http://yourdomain.com/videos/filename.flv)%>

You can use this feature to

  • link to a other directory than your media directory by specify the full URL
  • link to an external resource (make sure that you have the right to use this resource)

Available SkinVars and/or TemplateVars

  • <%flashvideo(filename.flv)%>
  • <%flashvideo(filename.flv|width|height)%>

Options

  • Filename of the flashvideo player: mediaplayer (default) or flvplayer
  • Width (default: 320)
  • Height (default: 240)
  • Use addtional settings to style your player (flashvars)? (yesno)(default:no)
  • Autostart video (yes/no) (default:no)
  • Repeat video (yes/no) (default:no)
  • Show the time display (yes/no) (default:no)
  • frontcolor (default: 0xE0E0E0)
  • backcolor (default: 0×000000)
  • lightcolor (default: 0xFF0000)
  • Search preview images in the media directory? (yes/no) (default:yes)
  • Use this skin (should be in the fvskins folder in plugins directory) (format: skinfile.swf) (default: blank)

Hint: The option Use addtional settings to style your player (flashvars)? must be enabled to use the options Autostart video, Repeat video, Show the time display, frontcolor, backcolor, lightcolor and custom skin.

Tips and Tricks

When the player isn’t started or is stopped it only shows a black screen with the message “click to play”. But you can also provide a still picture from the movie:

  • Make a screenshot in the size of the video and save it as a jpg picture
  • upload it to you media directory (where the flash video is stored)
  • give the picture the same name as the video only with .jpg at the end

Example:

  • 20060331-Your_Video.flv (the flash video)
  • 20060331-Your_Video.jpg (the screenshot)

(Tip from verbal jam)

Wishlist

Bugs

History

  • Version 0.1, released 2006-03-15
    • initial release
  • Version 0.2, released 2006-03-21
    • support for fancy urls
  • Version 0.3, released 2006-03-31
    • using authorid instead of blogid (bug removed)
    • parameters for individual width and height of the video added
  • Version 0.4, released 2006-06-11
    • allow absolute URLs (starting with http://)
  • Version 0.5, released 2007-02-07
    • additional parameters to style the player
    • automatic search for preview images (required for the new version of the fash video player)
    • (used version: FLASH VIDEO PLAYER 3.3)
  • Version 0.6, released 2008-02-14
    • new option to decide which filename is used for the player:
      • ‘mediaplayer’ for newer versions
      • ‘flvplayer’ for older versions
      • (tested with JW FLV MEDIA PLAYER 3.14)
  • Version 0.7, released 2008-07-28

Plugin Review

NP_FlashVideo version 0.5 works with Nucleus CMS version 3.31 - 2007-11-03 kg

 
flashvideo.txt · Last modified: 2009/06/10 00:55 by findingrico