1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16863] Support playing video attachments

Correctly implement audio and video HTML5 tags (there is only one source)

PHPBB3-16863
This commit is contained in:
3D-I
2021-08-30 22:58:06 +02:00
parent 52c8de0bd7
commit e6e7f5afe3
3 changed files with 5 additions and 17 deletions

View File

@@ -253,7 +253,7 @@ class attachment extends controller
// Content-type header
$response->headers->set('Content-Type', $attachment['mimetype']);
// Display images in browser and force download for other file types
// Display file types in browser and force download for others
if (strpos($attachment['mimetype'], 'image') !== false
|| strpos($attachment['mimetype'], 'audio') !== false
|| strpos($attachment['mimetype'], 'video') !== false