textpattern
 contentpresentationadminview site
diagnosticspreferencessite adminlogspluginsimport

bas Flvplayer

This plugin is an integration of the Flash Video Player written by Jeroen Wijering.
You can stream video files in flv-format.

Writing this plugin causes some work for me, but the most credits belong to Jeroen Wijering!
Make sure to visit his website jeroenwijering.com, if you like the bas_flvplayer.

NOTE: The flvplayer is licensed under Creative Commons.org BY NC SA.
So if you want to use this plugin for commercial use, contact Jeroen Wijering!

flv Encoder

This plugin plays only flv-videos, so you have to transform your videos to .flv.

There is an free encoder at rivavx.com

Installation

Since you can read this help, you have installed the plugin to txp.
Fine, do you activate it, too?

Now you need the flash player, it’s included in bas_flvplayer.zip
Upload the flvplayer.swf via the txp file stytem.
If you have an .flv-video to play, you are ready.

bas Flvplayer- Install advanded prefs

Located under the extensions-tab there is an advanced install script.
This advanced install adds some plugin prefs to the textpattern prefs db.

Once you installed them, you can edit this plugin prefs under the advanced preferences tab of textpattern.
The saved prefs are used as default, which can be overwritten by atributes given within <bas_flvplayer />

Of course there is also an script, that removes the plugins prefs from txp db.

Usage

The fastes way to use bas_flvplayer is to store the flvplayer.swf and the videos in the txp field system.
Place the bas_flvplayer tag in an article, form or page.

<bas_flvplayer video='4' />

This will play the video with file id 4. Plugins will output this xhtml:


<object type="application/x-shockwave-flash" data="http://samisdat.dev/file_download/3?file=http://samisdat.dev/file_download/4&autoStart=false" width="320" height="240">
<param name="movie" value="http://samisdat.dev/file_download/3?file=http://samisdat.dev/file_download/4&autoStart=false" />
<param name="wmode" value="transparent" />
</object>

Use with custom field

You can use bas_flvplayer in combination with custom-fields.
Go to your advanced preferences tab and name one custom field to video.

Place <bas_flvplayer /> into article or in article’s form and refer the video by using the custom-field video.
Only if a video is defined in the custom field, the plugin will display the player.

If you want to videoblog, the best way might be to use custom field and place <bas_flvplayer /> into articles form.

Attributes

bas_flvplayer excepts some atrributes, default values are given in [def value]

player [flvplayer.swf]

Define the flash player.
Some examples of possible values for player:

  • <txp:bas_emff player='4'/> Will use txp file system, in this case the file with id 4.
  • <txp:bas_emff player='flvplayer.swf'/> Will use txp file system, in this case the file named emff_inx.swf.
  • <txp:bas_emff player='flash/flvplayer.swf'/> If you don’t want to use the txp file system, give to path and file.

video

Define a file to play.
Some examples of possible values for video:

  • <txp:bas_emff video='5'/> Will use txp file system, in this case the file with id 5.
  • <txp:bas_emff video='some_video.flv'/> Will use txp file system, in this case the file named some_video.flv.
  • <txp:bas_emff video='video/some_video.flv.mp3'/> If you don’t want to use the txp file system, give to path and file.

width [110] & height [34_]

What should i say, width defines the width and height defines the height.

autostart [false]

An “nomen est omen”-attribute.

<txp:bas_flvplayer video='4' autostart='1' />

Start playing after the flash is loaded.

debug [false]

The plugin should return nothing, if an error occurs.
To solve problems, use

<txp:bas_flvplayer debug='1' />

This will display some informations, that might be usefull to solve problems with bas_emff.

Licence

The plugin bas_flvplayer are licensed under the GPL.
You can read this license in the file gpl.txt included in bas_emff.zip and online at
http://www.gnu.org/licenses/gpl.html

The flvplayer is licensed under creative commoms:
http://creativecommons.org/licenses/by-nc-sa/2.5/

REMEMBER:
The flvplayer and bas_flvplayer are to use within licence conditions,
but video files can be protected by copyright!
Any attempt to play video-files, you don

Textpattern · 4.0.4