Gallery:模块:flashvideo

来自站长百科
Sunzz1985讨论 | 贡献2008年6月11日 (三) 17:37的版本 (新页面: =FlashVideo Module= ==Description== Adds support for Flash Video (flv) files to be shown in an embedded player. ==Features== * No special player needed, browser just needs [http://www.a...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

FlashVideo Module

Description

Adds support for Flash Video (flv) files to be shown in an embedded player.

Features

  • No special player needed, browser just needs flash support.

Usage

  • Install and activate the module in site admin -> plugins

Parameters

For expert users: If you want to manipulate code to change the way the player is called, you can do it by editing the file classes/FlashVideoRenderer.class in the flashvideo module directory. Here is a complete list of all parameters:

flvUrl - full url to the flv
thumbUrl - full url to preview thumb
title
Width
Height
htmlDiv - containing/target div for resizing. allows for multiple instances on one page - default flashvideo
sb - short primary buffer default 10
lb - longer secondary buffer default 20
allowDl - allow download? true/false (shows/hides download button)
langDownload - tooltip Download
langLarge - tooltip Large
langNormal - tooltip Normal

Pitfalls

If video files with flv extension do not play in the embedded player, try swf files instead of flv.

In version 1.0.0, but not any more in 1.0.2, you might need to edit the movie size to the actual value instead of default 0 x 0 to have the embedding actually work. You have to go through every movie item manually. Thumbnails are not generated. On the other hand, if you use ffmpeg plugin, you can have thumbnails but propably not for flash-video. For other video formats shure, but then you don't have the handy embedded flash player.

Notes