Changeset 55

Show
Ignore:
Timestamp:
02/27/07 02:25:10 (2 years ago)
Author:
timhawes
Message:

-mediagallery update: fixed instructions, added http streaming to .flv playback

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mediagallery/get_playlist.php

    r53 r55  
    4141                        $mimetype = mimeinfo('type',$file->originalname); 
    4242                                                $file_owner = user_info("name",$file->owner); 
     43                                                 
    4344     
    4445                        if (empty($file->title)) { 
     
    5253                                                        <title>$file->title</title> 
    5354                                                        <creator>{$file_owner}</creator> 
    54                                                         <location>$filepath</location> 
     55 
    5556END; 
    56                                                         if (substr_count($mimetype, "mp3") > 0){ 
    57                                                                 $media_html .="<image>{$CFG->wwwroot}mod/mediagallery/images/mp3.png</image>"; 
     57                            if (substr_count($mimetype, "mp3") > 0){ 
     58                                $media_html .="<image>{$CFG->wwwroot}mod/mediagallery/images/mp3.png</image>"; 
     59                            } 
     60 
     61                            if (substr_count($file->originalname, ".flv") > 0){ 
     62                                $media_html .="<location>{$CFG->wwwroot}mod/mediagallery/stream.flv.php?ident={$file->ident}</location>"; 
     63                            } else { 
     64                                                                $media_html .="<location>{$filepath}</location>"; 
    5865                                                        } 
    59                                                          
    60                                                          
    61                                                        $media_html .= <<< END 
    62                                                        </track> 
     66                             
     67                             
     68                            $media_html .= <<< END 
     69                            </track> 
    6370END; 
    6471