Changeset 58
- Timestamp:
- 02/28/07 03:03:01 (2 years ago)
- Files:
-
- mediagallery/READ_ME.TXT (modified) (5 diffs)
- mediagallery/lib.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mediagallery/READ_ME.TXT
r54 r58 8 8 Read the insructions CAREFULLY to be sure this plugin works for you. 9 9 10 Installation 10 Installation (BASED ON ELGG 0.7) 11 11 ------------------------------------------------------------------------------------------------------ 12 12 1. Download this package, uncompress it. … … 15 15 4. Uncompress it, then copy the mediaplayer.swf file into your elgg/mod/mediagallery directory. 16 16 5. Edit the css file to match your site's style (optional) 17 6. Recommended (but not required) - add the following line of code after line 30 of your elgg/lib/filelib.php file... 17 18 Optional Aditional Configuration (recommended) 19 ------------------------------------------------------------------------------------------------------ 20 1. add the following line of code after line 30 of your elgg/lib/filelib.php file... 18 21 'flv' => array ('type'=>'video/x-flv', 'icon'=>'video.gif'), 22 2. add the following block of code to units/files/files_links_make.php, right after line 27. 23 It will enable handling of inserted .flv files to blog/forum posts 19 24 25 case "video/x-flv": 26 $filetitle = urlencode(stripslashes($file->title)); 27 $run_result .= " 28 <embed src=\"" . $CFG->wwwroot . "mod/mediagallery/mediaplayer.swf\" width=\"480\" height=\"380\" allowfullscreen=\"true\" 29 type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" 30 flashvars=\"file=" . $CFG->wwwroot . "mod/mediagallery/stream.flv.php?ident=" . $file->ident . "&enablejs=true&overstretch=false&displayheight=360\" />"; 31 break; 20 32 21 33 Use … … 30 42 4. The Flash Media player should appear in that folder now as the default handler/player for the files. 31 43 5. Click on a file name to play it. You can use the "full screen" button to go to true full screen (required Flash 9) 44 45 6. To use .flv in a blog/forum post (assuming you have completed the optional configuration above), just select a .flv from the 46 embed drop list and click add. This will insert code like this -> {{file:61}} into your posting text. When the posting is viewed, the 47 .flv will be played back via the plugin 48 32 49 33 50 To create .flv video you can check out the following options: … … 44 61 45 62 63 64 46 65 History 47 66 ------------------------------------------------------------------------------------------------------ 67 v0.2 - Feb 28, 2007 68 Fix to better handle non-playable files 69 Added php-pseudo streaming - buffer 5 sec of video then starts playing. Also provides bandwith throttling. 70 Added handler to embed .flv files into blog/forum posts (yeah!) 71 48 72 v0.1 - Feb 25, 2007 49 73 Basic functionality as a folder handler … … 52 76 To Do/Road Map 53 77 ------------------------------------------------------------------------------------------------------ 54 1. Add pseudo-streaming of .flv files. See these sites... 55 -http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two 56 -http://www.actkid.com/2005/11/03/stream-flv-with-php/ 57 -http://www.jeroenwijering.com/?thread=streaming_FLV_with_PHP 58 2. Add Flash Media Player as a handler for embeding flv and mp3 in blog/forum posts 78 -none at this time mediagallery/lib.php
r57 r58 25 25 <script type="text/javascript" src="{$CFG->wwwroot}mod/mediagallery/ufo.js"></script> 26 26 <script> 27 var FO = {movie:"{$CFG->wwwroot}mod/mediagallery/mediaplayer.swf",id:"mediaplayer",name:"mediaplayer",width:" 520",height:"460",majorversion:"8",build:"0",bgcolor:"#FFFFFF",allowfullscreen:"true",flashvars:"file={$CFG->wwwroot}mod/mediagallery/get_playlist.php?ident={$folder->ident}&enablejs=true&overstretch=false&displayheight=260" };27 var FO = {movie:"{$CFG->wwwroot}mod/mediagallery/mediaplayer.swf",id:"mediaplayer",name:"mediaplayer",width:"480",height:"560",majorversion:"8",build:"0",bgcolor:"#FFFFFF",allowfullscreen:"true",flashvars:"file={$CFG->wwwroot}mod/mediagallery/get_playlist.php?ident={$folder->ident}&enablejs=true&overstretch=false&displayheight=360" }; 28 28 UFO.create(FO, "player"); 29 29 </script>
