Chapter 7
[ 191 ]
In this case, you have to provide your own video player to be able to display any video to
most visitors. If you just uploaded an AVI or MPEG video to the website, you would have
to rely on your visitors having the correct browser sengs to be able to play the les.
Depending on the browser, the visitors may have to decide themselves what program to
use to display the video. It is also important to understand that most video programs you
use to create or edit your les use decoders (so called codecs). If the visitor of your website
is missing the decoder, he will not be able to see the video unl he has installed it. Most
visitors would not install anything and just leave your website.
To serve most browsers and visitors to your website, you should convert your videos to FLV
les and play them with a ash player. The only requirement that the visitor has to fulll to
see the video is the installed ash plugin—no decoders, no other special programs.
There are some free players such as neolao that can be found at flv-player.net. This
video player is free and customizable, but its integraon into a CMS Made Simple website
can be a bit dicult. Luckily, you have another excellent third-party module that is delivered
with the player neolao. The module in queson is calledplayer neolao. The module in queson is called The module in queson is called Play.
Aer installing the module from the Module Manager, you will nd its administraon areayou will nd its administraon area
in Content | Mulmedia Player. The video les for the module must be uploaded with File
Manager and should be available in the directory uploads. On the Records tab, you can, you canyou can
then assign and group uploaded videos to display them on the website. You can display
one le using Tag to insert in your content to insert in your content, as shown:
{Play record="1"}
You will nd this Smarty tag beside the name of the le in the admin area of the
Play module.
To display a list of les, you have to skip the parameter record from the above example and
just use the Smarty tag {Play}. You can also group your videos and display only videos that
are assigned to the same group as follows:
{Play group="myvideos"}
You can play only FLV les with this player. As explained, you have to convert your AVI les to
FLV. If FFmpeg is available on your host, then you can use extra features like video conversion
from AVI and also automacally created thumbnail pictures from videos. Please contact your
provider to gure out if you can use FFmpeg.
You can also create and upload your own thumbnails for each video. They should be
uploaded in the same folder as the video le. The name of the thumbnail le should
correspond to the name of the video le prexed by thumb_ and ending with .jpg. For
example, for the video le name video.flv, you can create and upload the thumbnail le
with the name thumb_video.jpg to the same folder. Alternavely, you can customize the
template of the neolao FLV player (Content | Mulmedia Player, tab Players) or create your
own customized template.
This material is copyright and is licensed for the sole use by Niels Vils on 17th August 2010
Thorsøhøjen 8, Silkeborg, 8600