forked from GNUsocial/gnu-social
Added some free codecs for media attachments
This commit is contained in:
parent
a2a2105058
commit
da06350a72
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user