//FlashVideo by Mark //Use like so // [[FlashVideo?file=filename]] //SETTINGS $width=300; $height=240; $autoPlay="false"; $autoRewind="false"; //END SETTINGS $output = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'.$width.'" height="'.height.'" id="FLVPlayer"> <param name="movie" value="FLVPlayer_Progressive.swf" /> <param name="salign" value="lt" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName='.$file.'&autoPlay='.$autoPlay.'&autoRewind='.$autoRewind.'" /> <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName='.$file.'&autoPlay='.$autoPlay.'&autoRewind='.$autoRewind.'" quality="high" scale="noscale" width="'.$width.'" height="'.$height.'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>'; return $output;
Here is a snippet as asked!
This has NOT BEEN TESTED!!!!!!!
Hope this works!
//FlashVideo by Mark & Bugaev //Usage: [[FlashVideo?file=filename]] //You can store .flv files in the separate folder like 'assets/flash/video' (to specify the folder use $videoPath) //You have to put flash-video-player files (FLVPlayer_Progressive.swf and Clear_Skin_2.swf) in the MODx root folder //SETTINGS $width=300; $height=240; $autoPlay="false"; $autoRewind="true"; $videoPath="assets/flash/video"; //END SETTINGS $output = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'.$width.'" height="'.$height.'" id="FLVPlayer"> <param name="movie" value="FLVPlayer_Progressive.swf" /> <param name="salign" value="lt" /> <param name="quality" value="high" /> <param name="scale" value="noscale" /> <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName='.$videoPath.'/'.$file.'&autoPlay='.$autoPlay.'&autoRewind='.$autoRewind.'" /> <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName='.$videoPath.'/'.$file.'&autoPlay='.$autoPlay.'&autoRewind='.$autoRewind.'" quality="high" scale="noscale" width="'.$width.'" height="'.$height.'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>'; return $output;
I’m just eternally curious, and it seems curious indeed that it would be so limited.Because you put the skin in the same folder as the default skin you chose earlier, you don’t need to modify the path at all.
//FlashVideo by Mark & Bugaev edit a little bit by Alfabeta_Tr //Usage: [[FlashVideo?file=filename]] //You can store .flv files in the separate folder like 'assets/flash/video' (to specify the folder use $videoPath) //You have to put flash-video-player files (FLVPlayer_Progressive.swf and Clear_Skin_2.swf) in the MODx root folder // usage [[FlashVideo?file=http://www.videospark.com/flash_4.swf&widht=500&height=300]] //SETTINGS $autoPlay="false"; $autoRewind="true"; $videoPath="assets/flash/video"; //END SETTINGS $output = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=flash_4 WIDTH='. $widht .' HEIGHT=' . $height . '> <PARAM NAME=movie VALUE="'. $file . '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="'. $file . '" quality=high wmode=transparent bgcolor=#FFFFFF WIDTH='. $widht .' HEIGHT=' . $height . ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT>'; return $output;
.