locus sonus > audio in art





locus sonus > Help Media video

Last changed: 2009/02/07 18:27

 

{tags:Help, Syntax, Lionwiki}

VIDEO embed with QT

To embed/play a mov file

One way could be to put only the url, and the wiki will play the file in a new window.

Example:

http://www.incident.net/video/mov/generique.mov

Here is the HTML embed example :



 ^html^
<embed src="yourfile.mov" autoplay=false loop=false volume=100 
controller=true width="320" height="255" type="video/quicktime" />
</embed />
^/html^ 



To embed/play a mp4 file

One way could be to put only the url, and the wiki will play the file in a new window.

Example:

http://nujus.net/~locusonus/dropbox/videos/2007_symp4_perf_tanaka.mp4

Here is the HTML embed example :



:

 ^html^
<embed src="yourfile.mp4" autoplay=false loop=false volume=100 
controller=true width="480" height="370" type="video/quicktime" />
</embed />
^/html^ 



For admin only

Another way is to put some strings in index.php for automatic recognition of mov and mp4 files. Like this : (not tested)

 $CON = preg_replace('#h(ttps?://[0-9a-zA-Z\.\&\#\:/~\-_%=?]*\.(mov))#i', '
<embed src="xx" autoplay=false loop=false volume=100 controller=true width="320" height="255" 
type="video/quicktime" /></embed />', $CON);
$CON = preg_replace('#h(ttps?://[0-9a-zA-Z\.\&\#\:/~\-_%=?]*\.(mp4))#i', '
<embed src="xx" autoplay=false loop=false volume=100 controller=true width="480" height="370" 
type="video/quicktime" /></embed />', $CON); 





VIDEO embed (YouTube, DailyMotion, etc.)

YouTube example



 ^html^
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/Rj57-Do-O1Q&hl=cs&fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/Rj57-Do-O1Q&hl=cs&fs=1" 
type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" 
width="425" height="344">
</embed>
</object>
^/html^ 

altern dimensions : width="217" height="177" / width="520" height="403"



DailyMotion example



 ^html^
<object width="520" height="432">
<param name="movie" value="http://www.dailymotion.com/swf/k3zHNh3czgpKF11HlE"></param>
<param name="allowfullscreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.dailymotion.com/swf/k3zHNh3czgpKF11HlE" 
type="application/x-shockwave-flash" width="520" height="432" 
allowfullscreen="true" allowScriptAccess="always">
</embed>
</object>
^/html^ 

altern dimensions : width="480" height="285"



For admin only

Another way is to put some strings in index.php for automatic recognition of YouTube and DailyMotion files with wiki codes. Like this : (not tested)

 $CON = preg_replace('#\[\=(.*)\]#Ui', '<div><object width="520" height="403">
<param name="movie" value="http://www.youtube.com/v/"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/" type="application/x-shockwave-flash" 
wmode="transparent" width="520" height="403"></embed></object></div><br />', 
$CON); // films YOUTUBE
$CON = preg_replace('#\[\+(.*)\]#Ui', '<object width="520" height="432">
<param name="movie" value="http://www.dailymotion.com/swf/"></param>
<param name="allowfullscreen" value="true"></param>
<embed src="http://www.dailymotion.com/swf/" type="application/x-shockwave-flash" 
width="520" height="432" allowfullscreen="true"></embed></object><br />', 
$CON); // films DAILYMOTION