Changeset 86

Show
Ignore:
Timestamp:
04/08/07 19:17:14 (2 years ago)
Author:
timhawes
Message:

-update for mediagallery plugin: fixes problems with streaming, update to work with FMP 3.6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mediagallery/READ_ME.TXT

    r58 r86  
    2626                        $filetitle = urlencode(stripslashes($file->title)); 
    2727                        $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                                                 
     333. To use FlashMediaPlayer the default handler for inline .mp3 files in blog posts as well, delete the case "audio/mp3" block of code  
     34in 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\" 
    2940                                                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\" />"; 
    3142                                        break; 
    3243 
     
    4152   .JPG, .PNG, .GIF (common image formats) 
    42534. 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 (required Flash 9
     545. 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
    4455 
    45566. To use .flv in a blog/forum post (assuming you have completed the optional configuration above), just select a .flv from the 
     
    5768http://www.rivavx.com/index.php?encoder&L=3 
    5869http://ffmpeg.mplayerhq.hu/ 
     70Online converter: http://www.zamzar.com 
    5971 
    6072(use google - there are lots more out there...) 
     
    6577History 
    6678------------------------------------------------------------------------------------------------------ 
     79v0.3 - April, 2007 
     80Updated to support for FlashMediaPlayer v3.6 
     81Added (optional) handling of inline mp3 playback 
     82Dropped php-pseudo streaming (casued too many issues - like locking up the UI) 
     83 
    6784v0.2 - Feb 28, 2007 
    6885Fix to better handle non-playable files 
  • mediagallery/get_playlist.php

    r55 r86  
    6060 
    6161                            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                                                                 
    6365                            } else { 
    6466                                                                $media_html .="<location>{$filepath}</location>"; 
  • mediagallery/lib.php

    r58 r86  
    2525        <script type="text/javascript" src="{$CFG->wwwroot}mod/mediagallery/ufo.js"></script> 
    2626<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" }; 
    2828        UFO.create(FO, "player"); 
    2929</script>