Dotclear


Ignore:
Timestamp:
11/06/14 09:55:37 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

HTML5 audio and video basic support (further improvements should coming next)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r2764 r2767  
    645645     $lst .= ($act != '' ? '<li class="media-action">&nbsp;'.$act.'</li>' : ''); 
    646646 
    647      if ($f->type == 'audio/mpeg3') { 
    648           $lst .= '<li>'.dcMedia::mp3player($f->file_url,$core->adminurl->get("admin.home",array('pf' => 'player_mp3.swf'))).'</li>'; 
     647     // Show player if relevant 
     648     $file_type = explode('/',$f->type); 
     649     if ($file_type[0] == 'audio') 
     650     { 
     651          $lst .= '<li>'.dcMedia::audioPlayer($f->type,$f->file_url,$core->adminurl->get("admin.home",array('pf' => 'player_mp3.swf'))).'</li>'; 
    649652     } 
    650653 
Note: See TracChangeset for help on using the changeset viewer.

Sites map