Added some free codecs for media attachments

This commit is contained in:
Mikael Nordfeldth 2014-04-14 13:47:42 +02:00
parent a2a2105058
commit da06350a72

View File

@ -322,11 +322,14 @@ class Attachment extends AttachmentListItem
break; break;
case 'application/ogg': case 'application/ogg':
case 'audio/ogg':
case 'audio/x-speex': case 'audio/x-speex':
case 'video/mpeg': case 'video/mpeg':
case 'audio/mpeg': case 'audio/mpeg':
case 'video/mp4': case 'video/mp4':
case 'video/ogg':
case 'video/quicktime': case 'video/quicktime':
case 'video/webm':
$arr = array('type' => $this->attachment->mimetype, $arr = array('type' => $this->attachment->mimetype,
'data' => $this->attachment->url, 'data' => $this->attachment->url,
'width' => 320, 'width' => 320,