Talk:Flash Movies: Difference between revisions

From Embryology
No edit summary
No edit summary
Line 1: Line 1:


===Configuration parameters===
<!-- Explain the purpose of each configuration parameter provided to Template:Extension -->
Upload an FLV file called Demo, and embed it like this:
<flowplayer height="480" width="640" autoplay="true">Demo.flv</flowplayer>
Here are some common configuration items:
*''configFileName''  An external javascript configuration file.
*''videoFile''      The video file to be loaded by the player. You can specify an absolute URL here or a relative one (relative to the embedding HTML file). See the baseURL below. Alternatively you can use a playList.
*''baseURL'' Where to load the video files from. This is appended in front of the value of videoFile value. If not specified, the file is loaded from the same directory as the HTML file.
*''autoPlay'' [true || false] Whether the player starts playback immediately when it's loaded into the browser. default: true
*''autoBuffering'' Whether to start loading the video stream into buffer memory immediately. Only meaningful if autoPlay is set to false default: true.
*''usePlayOverlay'' [true || false] Show the play button image at the start of the playlist? default: true
*''splashImageFile'' Useful if 'autoPlay' is set to false and you want to show a welcome image before the video is played. Must be JPG format. note: value is relative to the HTML page.
*''initialScale''
Initial video scaling. This can be then changed by the user through the menu. Available options are:
    ''fit'': Fit to window by preserving the aspect ratios encoded in the FLV metadata. This is the default setting.
    ''half'': Half size (preserves aspect ratios)
    ''orig'': Use the dimensions encoded in FLV. If the video is too big for the available space the video is scaled as if using the 'fit' option.
    ''scale'': Scale the video to fill all available space for the video. Ignores the dimensions in metadata.
*''videoHeight'' The height to be allocated for the video display. By default Flowplayer uses the maximium height available.
*''useNativeFullScreen'' [true || false] Should the Flash 9 native full screen mode be used? (default: true).
*''fullScreenScriptURL'' The URL pointing to a sctipt that opens the player full screen. If this is not configured explicitly, the default script, http://flowplayer.org/video/x_xx/fullscreen.js, is used. NOTE: Only used when useNativeFullScreen is not set to false.
*''bufferLength'' The size of the buffer in seconds when streaming FLV. Playback starts only after the buffer is full. The value should always be less than the duration of the video. (default: 10)
*''startingBufferLength'' The video buffer length (seconds) to be used to kick off the playback. This is used in the beginning of the playback and every time after the player has ran out of buffer memory.
*''useSmoothing'' [true || false] Whether to use antialiasing when the video is scaled. default: true
*''videoLink'' A link to the video file that is shown when "Embed" is selected in the menu. Option, defaults to the url specified in videoFile or playList.
*''emailPostUrl'' The URL used when posting the email data to the server.
*''emailVideoLink'' The value of videoLink variable posted as part of the email data.
*''emailDefaultMessage'' The default message text used as part of the email data. All occurrences of [video_link] tag in the message are replaced with the value of emailVideoLink.
==Links==
* http://www.mediawiki.org/wiki/Extension:FLVPlayer
* http://www.mediawiki.org/wiki/Extension:FLVPlayer
* http://en.wikipedia.org/wiki/Flash_Video
* http://en.wikipedia.org/wiki/Flash_Video

Revision as of 22:45, 7 October 2009

Configuration parameters

Upload an FLV file called Demo, and embed it like this: <flowplayer height="480" width="640" autoplay="true">Demo.flv</flowplayer>

Here are some common configuration items:

  • configFileName An external javascript configuration file.
  • videoFile The video file to be loaded by the player. You can specify an absolute URL here or a relative one (relative to the embedding HTML file). See the baseURL below. Alternatively you can use a playList.
  • baseURL Where to load the video files from. This is appended in front of the value of videoFile value. If not specified, the file is loaded from the same directory as the HTML file.
  • autoPlay [true || false] Whether the player starts playback immediately when it's loaded into the browser. default: true
  • autoBuffering Whether to start loading the video stream into buffer memory immediately. Only meaningful if autoPlay is set to false default: true.
  • usePlayOverlay [true || false] Show the play button image at the start of the playlist? default: true
  • splashImageFile Useful if 'autoPlay' is set to false and you want to show a welcome image before the video is played. Must be JPG format. note: value is relative to the HTML page.
  • initialScale

Initial video scaling. This can be then changed by the user through the menu. Available options are:

   fit: Fit to window by preserving the aspect ratios encoded in the FLV metadata. This is the default setting.
   half: Half size (preserves aspect ratios)
   orig: Use the dimensions encoded in FLV. If the video is too big for the available space the video is scaled as if using the 'fit' option.
   scale: Scale the video to fill all available space for the video. Ignores the dimensions in metadata.


  • videoHeight The height to be allocated for the video display. By default Flowplayer uses the maximium height available.
  • useNativeFullScreen [true || false] Should the Flash 9 native full screen mode be used? (default: true).
  • fullScreenScriptURL The URL pointing to a sctipt that opens the player full screen. If this is not configured explicitly, the default script, http://flowplayer.org/video/x_xx/fullscreen.js, is used. NOTE: Only used when useNativeFullScreen is not set to false.
  • bufferLength The size of the buffer in seconds when streaming FLV. Playback starts only after the buffer is full. The value should always be less than the duration of the video. (default: 10)
  • startingBufferLength The video buffer length (seconds) to be used to kick off the playback. This is used in the beginning of the playback and every time after the player has ran out of buffer memory.
  • useSmoothing [true || false] Whether to use antialiasing when the video is scaled. default: true
  • videoLink A link to the video file that is shown when "Embed" is selected in the menu. Option, defaults to the url specified in videoFile or playList.
  • emailPostUrl The URL used when posting the email data to the server.
  • emailVideoLink The value of videoLink variable posted as part of the email data.
  • emailDefaultMessage The default message text used as part of the email data. All occurrences of [video_link] tag in the message are replaced with the value of emailVideoLink.

Links