Changeset 2768:9309864ed407 for inc/core/class.dc.media.php
- Timestamp:
- 11/06/14 10:58:39 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.media.php
r2767 r2768 1062 1062 { 1063 1063 $audio = 1064 '<audio controls preload="auto">'. "\n".1065 '<source src="'.$url.'">' ."\n";1064 '<audio controls preload="auto">'. 1065 '<source src="'.$url.'">'; 1066 1066 1067 1067 if ($type == 'audio/mpeg3') { … … 1108 1108 '<param name="FlashVars" value="'.implode('&',$vars).'" />'. 1109 1109 __('Embedded Audio Player'). 1110 '</object>' ."\n";1110 '</object>'; 1111 1111 } 1112 1112 1113 1113 $audio .= 1114 '</audio>' ."\n";1114 '</audio>'; 1115 1115 1116 1116 return $audio; … … 1129 1129 { 1130 1130 $video = ''; 1131 1132 // Cope with width and height, if given 1133 $width = 400; 1134 $height = 300; 1135 if (is_array($args)) { 1136 if (!empty($args['width']) && $args['width']) { 1137 $width = (int) $args['width']; 1138 } 1139 if (!empty($args['height']) && $args['height']) { 1140 $height = (int) $args['height']; 1141 } 1142 } 1143 1131 1144 if ($type != 'video/x-flv') { 1132 1145 $video = 1133 '<video controls preload="auto" >'."\n".1134 '<source src="'.$url.'">' ."\n";1146 '<video controls preload="auto"'.($width ? ' width="'.$width.'"' : '').($height ? ' height="'.$height.'"' : '').'>'. 1147 '<source src="'.$url.'">'; 1135 1148 } 1136 1149 … … 1179 1192 '<param name="FlashVars" value="'.implode('&',$vars).'" />'. 1180 1193 __('Embedded Video Player'). 1181 '</object>' ."\n";1194 '</object>'; 1182 1195 } 1183 1196 1184 1197 if ($type != 'video/x-flv') { 1185 1198 $video .= 1186 '</video>' ."\n";1199 '</video>'; 1187 1200 } 1188 1201
Note: See TracChangeset
for help on using the changeset viewer.