User Code List
Quote Form
---Quote Form Ditto Call
------New Snippet
------New Snippet
---Quote Form with Attachment Morrissey
---Quote Form Report
---Quote Form Ditto Call
------New Snippet
------New Snippet
---Quote Form with Attachment Morrissey
---Quote Form Report
Ditto
---Ditto Summary - full content
---Ditto Summary Links Categories PHx
---Ditto Summary - full content
---Ditto Summary Links Categories PHx
Contact Form
---Contact Form with Attachment
---Contact Form eform
---Contact Form Report
---Contact Form Report CSS
---Contact Form with Attachment
---Contact Form Ditto
---Contact Form Report
---Contact Form Report CSS
New Snippet
Wayfinder
---Wayfinder with images
---CSS for Drop Down Menu on GPP
---Wayfinder with images
---CSS for Drop Down Menu on GPP
FAQ Accordian
---FAQ Accordian CSS
---FAQ Accordian Head
---FAQ Accordian Ditto Call
---FAQ Accordian Ditto Tpl
---FAQ Accordian CSS
---FAQ Accordian Head
---FAQ Accordian Ditto Call
---FAQ Accordian Ditto Tpl
MaxiGallery
---Slideshow
---Photo Gallery
---Slideshow
---Photo Gallery
PHX
---PHX - Hide Empty Variable
---PHX - Hide Empty Variable
Drop Down Menu
Tiny MCE
---Add Plugins - Not yet correct
---Add Templates
---Add Tables
---Add Templates
Maxigallery
---Maxigallery Thumbnails
---Maxigallery Thumbnails
Populate Pull Down
Video
---JWPlayer
index.php and index.html
---New Snippet
Format pub_date
---DateFormatter Snippet
---New Snippet
---DateFormatter Snippet
---New Snippet
Form - text in input field
Sidebar Content
---Template Variable
 
 
JWPlayer
 

<div class="video">

[[JWPlayer? &amp;src=[*videofile*] &amp;width=[*width*]&amp;height=[*height*]&amp;fullscreen=[*fullscreen*]&amp;stretching=uniform&amp;controlbar=over&amp;]]

</div>

Template Variables

videofile

controlbar input options: float||over||none

fullscreen input options: true||false

height type: number

width type: number

================

:: INSTALL

================

- Download the .zip at http://www.jeroenwijering.com/?item=JW_FLV_Player

- Unzip the file and rename it 'embed'

- Place /embed/ inside another directory entitled 'JWPlayer'

- Upload the JWPlayer directory to your assets/snippets/ directory

- Paste the text of this document in a snippet - entitled 'JWPlayer'

- Reccommended: Create a Templave Variable (TV) Called 'videosrc' and

Set the input type as 'file'

* I'm not packaging these files in the snippet download - because the player is

sometimes updated - and you probably want the newest one.

* Tested and written for JW FLV MEDIA PLAYER v. 4.0

================

:: USAGE

================

- Simple! Place the snippet call [[JWPlayer? &src=[*videosrc*]]] in your document.

- If you chose to create the TV above, use the call [[JWPlayer? &src=[*videosrc*]]]

and set the filename using the TV dialog in your document.

- If you choose to use paramaters, simply append them like so:

[[JWPlayer? &src=[*videosrc*]&parameter1=value1&parameter2=value2&]]

(kind-of like a URL line, but make sure there's a space between the ? and the &.)

- If you use the player more than once in a page with different sources, scrap the TV and do this:

[[JWPlayer? &src=path/to/file]]

================

:: AVAILABLE PARAMETERS

================

*- All of these parameters defaults are editable below

&width - width in px

&height - height in px

&logo - location of logo from MODx install root. (ex: assets/images/monkeys/logo.png )

&fullscreen - enables fullscreen function ( true | false )

&stretching - specifies stretch type (uniform | fill | exactfit | none )

-'uniform' plays the video and fills up the frame - using black bars to perserve aspect

-'fill' fills up the frame while maintaining aspect ratio - may result in clipping.

-'exactfit' stretches the movie to fit the frame - aspect ratio is out the window

-'none' doesn't stretch at all - just plays the video in it's original dimensions.

Clipping possible.

&controlbar - displays controlbar either as a floaty transparent thing, or the traditional

bottom ( float | over | none )

================

 
Sub-Article List