Доброта голубя - не добродетель. Голубь не добродетельнее волка. Добродетель начинается только тогда, когда начинается усилие

Лев Николаевич Толстой

Против всего можно устоять, но не против доброты

Жан Жак Руссо

Пока люди любят, они прощают

Франсуа де Ларошфуко

Существуют два первоначала справедливости: никому не вредить и приносить пользу обществу

Марк Туллий Цицерон

Война не может быть справедливой, потому что воевать справедливо нельзя, даже если воюешь за справедливость

Тадеуш Котарбиньский

UPCOMING EVENTS

December 2025
S M T W T F S
30 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 1 2 3

 UPF Cегодня

 

 

UPF Joomla Tutorials

Video Plugin - Mgmedia

Videos, mgmediabot2 Plugin

http://www.needful.de/mgmediabot-demo

To get videos to play as on the UPF international site:
First prepare your video for web streaming (recommended Flash FLV format).
Upload your video onto your server via the media manager or FTP.
Use the mgmediabot2 plugin to show the video (explained below)

 

 

To play a Flash movie to play within an article use the following code below in your article:

 

Flashplayer


{mgmediatut}path=images/tutorials/194.flv|width=480|height=400|displayheight=360|
overstretch=false|title=test title|autoplay=false|image=images/tutorials/video194.jpg{/mgmediatut}

Note: this is one line
If the editor adds HTML code to your plugin line the video will NOT play! Make sure there is no html embedded in the plugin code.

Inserting the above into an article displays:

{mgmediabot2}path=images/tutorials/194.flv|width=480|height=400|displayheight=360|overstretch=false|title=test title|autoplay=false|image=images/tutorials/video194.jpg{/mgmediabot2}

 


The plugin code:

{mgmediatut} and {/mgmediatut} are the start and end tags of the plugin.

 

The plugin uses the pipe character “|” (usually above the enter key as “shift-\” in a qwerty keyboard) to separate parameters.

Parameters:
path: the path to your movie (can be offsite, eg http://www.somedomain/movie.flv)
width: width of player
height: height of player
displayheight: video play area within the player (extra space is devoted to the player controls), if displayheight is equal to the height, the play controls will be shown over the video.
overstretch: determines behavior of height/width proportions (I found false to be best)
title: title
autoplay: if true, video will play automatically, false will not play the video automatically
image: path to image which is shown before the video is played, otherwise will show black background with a play button

 

If displayheight = height

{mgmediatut}path=images/tutorials/194.flv|width=480|height=400|displayheight=400|
overstretch=false|title=test title|autoplay=false|image=images/tutorials/video194.jpg{/mgmediatut}


{mgmediabot2}path=images/tutorials/194.flv|width=480|height=400|displayheight=400|overstretch=false|title=test title|autoplay=false|image=images/tutorials/video194.jpg{/mgmediabot2}

 


 

Lighbox Option


Lightbox will “pop open” the video on the page in a transparent iframe(?). This affect makes the video appear to float on the page.

{mgmediatut}path=images/tutorials/194.flv|lightbox=true|lightboxcaption=Quest for Peace|
width=480|height=400|displayheight=400|overstretch=false|title=test title|
image=images/tutorials/video194.jpg|autoplay=true{/mgmediatut}


{mgmediabot2}path=images/tutorials/194.flv|lightbox=true|lightboxcaption=Quest for Peace|width=480|height=400|displayheight=400|overstretch=false|title=test title|autoplay=true{/mgmediabot2} (Click here)


Parameters (new):
lightbox: set to true for this effect (or any)
lightboxcaption: the text to click to open the video

Note: Parameter order does not matter.

To open with an image add the parameter ‘lightboxpreview’

{mgmediatut}path=images/tutorials/194.flv|lightbox=true|lightboxcaption=Quest for Peace|
title=Quest for Peace|width=480|height=400|displayheight=400|overstretch=false| image=images/tutorials/video194.jpg|autoplay=true|
lightboxpreview=images/tutorials/videovid-lightbox-sample.jpg{/mgmediatut}

{mgmediabot2}path=images/tutorials/194.flv|lightbox=true|lightboxcaption=Quest for Peace|title=Quest for Peace|width=480|height=400|displayheight=400|overstretch=false|autoplay=true|lightboxpreview=images/tutorials/videovid-lightbox-sample.jpg{/mgmediabot2}

Parameters (new):
lightboxpreview: path to image

 


Google and Youtube

 

Google video:

In the Google URL find the docid variable and use that number/text in the mgmediabot plugin as below

http://video.google.com/videoplay?docid=6634817287115134475&q=iphone
&total=32583&start=0&num=10&so=0&type=search&plindex=5

From this google video, docid=6634817287115134475

{mgmediabot2}type=googlevideo|docid=6634817287115134475{/mgmediabot2}

 

(Notice the changes to the parameters below)

Play in article
{mgmediatut}type=googlevideo|docid=6634817287115134475{/mgmediatut}

Lightbox
{mgmediatut}type=googlevideo|docid=6634817287115134475|lightbox=true|
lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|width=400|height=326{/mgmediatut}

Popup
{mgmediatut}type=googlevideo|docid=6634817287115134475|popup=true|
popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|width=400|height=326{/mgmediatut}

 

Youtube video:

For YouTube, in the URL look for the text after the “v” variable.

http://youtube.com/watch?v=m71zgjtBaag

For the above link, v=m71zgjtBaag

{mgmediabot2}type=youtube|youtubeid=m71zgjtBaag{/mgmediabot2}

 

(Notice the changes to the parameters below)

Play in article
{mgmediatut}type=youtube|youtubeid=m71zgjtBaag{/mgmediatut}

Lightbox
{mgmediatut}type=youtube|youtubeid=m71zgjtBaag|lightbox=true|lightboxcaption=My Video|
lightboxpreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediatut}

Popup
{mgmediatut}type=youtube|youtubeid=m71zgjtBaag|popup=true|popupcaption=My Video|
popuppreview=images/stories/myvideothumb.jpg|width=486|height=412{/mgmediatut}

 


Additional Player formats

 

WMV Player
{mgmediatut}path=images/stories/media/video1.wmv|width=300|height=300{/mgmediatut}
{mgmediatut}path=images/stories/media/video1.wmv|lightbox=true|lightboxcaption=My Video|
lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediatut}
{mgmediatut}path=images/stories/media/video1.wmv|popup=true|popupcaption=My Video|
popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediatut}

Quicktime Player
{mgmediatut}path=images/stories/media/video1.mov|width=300|height=300{/mgmediatut}
{mgmediatut}path=images/stories/media/video1.mov|lightbox=true|lightboxcaption=My Video|
lightboxpreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediatut}
{mgmediatut}path=images/stories/media/video1.mov|popup=true|popupcaption=My Video|
popuppreview=images/stories/myvideothumb.jpg|width=300|height=300{/mgmediatut}

MPEG Player
{mgmediatut}type=mpegfile|path=images/stories/media/video1.mpg|width=300|height=300{/mgmediatut}
{mgmediatut}type=mpegfile|path=images/stories/media/video1.mpg|
lightbox=true|lightboxcaption=My Video|lightboxpreview=images/stories/myvideothumb.jpg|
width=300|height=300{/mgmediatut}
{mgmediatut}type=mpegfile|path=images/stories/media/video1.mpg|
popup=true|popupcaption=My Video|popuppreview=images/stories/myvideothumb.jpg|
width=300|height=300{/mgmediatut}



More information can be found at:
http://www.needful.de/mgmediabot-demo/components/com_mgmedia2/templates/Templates-Readme.html