Changeset 86
- Timestamp:
- 04/08/07 19:17:14 (2 years ago)
- Files:
-
- mediagallery/READ_ME.TXT (modified) (4 diffs)
- mediagallery/get_playlist.php (modified) (1 diff)
- mediagallery/lib.php (modified) (1 diff)
- mediagallery/not_found.flv (deleted)
- mediagallery/stream.flv.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mediagallery/READ_ME.TXT
r58 r86 26 26 $filetitle = urlencode(stripslashes($file->title)); 27 27 $run_result .= " 28 <embed src=\"" . $CFG->wwwroot . "mod/mediagallery/mediaplayer.swf\" width=\"480\" height=\"380\" allowfullscreen=\"true\" 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=" . $filepath . "&enablejs=true&autoplay=true&overstretch=false&displayheight=360\" />"; 31 break; 32 33 3. To use FlashMediaPlayer the default handler for inline .mp3 files in blog posts as well, delete the case "audio/mp3" block of code 34 in units/files/files_links_make.php and replace it with: 35 36 case "audio/mp3": 37 $filetitle = urlencode(stripslashes($file->title)); 38 $run_result .= " 39 <embed src=\"" . $CFG->wwwroot . "mod/mediagallery/mediaplayer.swf\" width=\"480\" height=\"80\" allowfullscreen=\"true\" 29 40 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\" />";41 flashvars=\"file=" . $filepath . "&enablejs=true&autostart=true&overstretch=false&displayheight=60&showeq=true\" />"; 31 42 break; 32 43 … … 41 52 .JPG, .PNG, .GIF (common image formats) 42 53 4. The Flash Media player should appear in that folder now as the default handler/player for the files. 43 5. Click on a file name to play it. You can use the "full screen" button to go to true full screen (require d Flash 9)54 5. Click on a file name to play it. You can use the "full screen" button to go to true full screen (requires Flash 9.028 player) 44 55 45 56 6. To use .flv in a blog/forum post (assuming you have completed the optional configuration above), just select a .flv from the … … 57 68 http://www.rivavx.com/index.php?encoder&L=3 58 69 http://ffmpeg.mplayerhq.hu/ 70 Online converter: http://www.zamzar.com 59 71 60 72 (use google - there are lots more out there...) … … 65 77 History 66 78 ------------------------------------------------------------------------------------------------------ 79 v0.3 - April, 2007 80 Updated to support for FlashMediaPlayer v3.6 81 Added (optional) handling of inline mp3 playback 82 Dropped php-pseudo streaming (casued too many issues - like locking up the UI) 83 67 84 v0.2 - Feb 28, 2007 68 85 Fix to better handle non-playable files mediagallery/get_playlist.php
r55 r86 60 60 61 61 if (substr_count($file->originalname, ".flv") > 0){ 62 $media_html .="<location>{$CFG->wwwroot}mod/mediagallery/stream.flv.php?ident={$file->ident}</location>"; 62 //$media_html .="<location>{$CFG->wwwroot}mod/mediagallery/stream.flv.php?ident={$file->ident}</location>"; 63 $media_html .="<location>{$filepath}</location>"; 64 63 65 } else { 64 66 $media_html .="<location>{$filepath}</location>"; mediagallery/lib.php
r58 r86 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:"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" };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}&autostart=false&overstretch=false&displayheight=360" }; 28 28 UFO.create(FO, "player"); 29 29 </script>
