mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[ticket/16863] Support playing video attachments
PHPBB3-16863
This commit is contained in:
parent
54ce9704fd
commit
52d5309bfb
1 changed files with 8 additions and 4 deletions
|
@ -32,7 +32,9 @@
|
||||||
{% if _file.S_AUDIO_FILE %}
|
{% if _file.S_AUDIO_FILE %}
|
||||||
<dl class="file">
|
<dl class="file">
|
||||||
<dt class="c-file-header">
|
<dt class="c-file-header">
|
||||||
<audio src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}" class="c-file-audio-controls" controls="controls" preload="metadata"></audio>
|
<audio class="c-file-audio-controls" controls="controls" preload="metadata">
|
||||||
|
<source class="c-file-audio-source" src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}">
|
||||||
|
</audio>
|
||||||
</dt>
|
</dt>
|
||||||
{% if _file.COMMENT %}
|
{% if _file.COMMENT %}
|
||||||
<dd class="c-file-comment">{{ _file.COMMENT }}</dd>
|
<dd class="c-file-comment">{{ _file.COMMENT }}</dd>
|
||||||
|
@ -41,7 +43,7 @@
|
||||||
{% if _file.UPLOAD_ICON %}
|
{% if _file.UPLOAD_ICON %}
|
||||||
<span class="o-icon c-file-icon">{{ _file.UPLOAD_ICON }}</span>
|
<span class="o-icon c-file-icon">{{ _file.UPLOAD_ICON }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="c-file-actions-link postlink" href="{{ _file.U_DOWNLOAD_LINK }}">{{ _file.DOWNLOAD_NAME }}</a>
|
<a class="c-file-actions-link postlink" href="{{ _file.U_DOWNLOAD_LINK }}" download>{{ _file.DOWNLOAD_NAME }}</a>
|
||||||
<span class="c-file-actions-meta">({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</span>
|
<span class="c-file-actions-meta">({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</span>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -50,7 +52,9 @@
|
||||||
{% if _file.S_VIDEO_FILE %}
|
{% if _file.S_VIDEO_FILE %}
|
||||||
<dl class="file">
|
<dl class="file">
|
||||||
<dt class="c-file-header">
|
<dt class="c-file-header">
|
||||||
<video src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}" class="c-file-video-controls" controls="controls" preload="metadata"></video>
|
<video class="c-file-video-controls" controls="controls" preload="metadata">
|
||||||
|
<source class="c-file-video-source" src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}">
|
||||||
|
</video>
|
||||||
</dt>
|
</dt>
|
||||||
{% if _file.COMMENT %}
|
{% if _file.COMMENT %}
|
||||||
<dd class="c-file-comment">{{ _file.COMMENT }}</dd>
|
<dd class="c-file-comment">{{ _file.COMMENT }}</dd>
|
||||||
|
@ -59,7 +63,7 @@
|
||||||
{% if _file.UPLOAD_ICON %}
|
{% if _file.UPLOAD_ICON %}
|
||||||
<span class="o-icon c-file-icon">{{ _file.UPLOAD_ICON }}</span>
|
<span class="o-icon c-file-icon">{{ _file.UPLOAD_ICON }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a class="c-file-actions-link postlink" href="{{ _file.U_DOWNLOAD_LINK }}">{{ _file.DOWNLOAD_NAME }}</a>
|
<a class="c-file-actions-link postlink" href="{{ _file.U_DOWNLOAD_LINK }}" download>{{ _file.DOWNLOAD_NAME }}</a>
|
||||||
<span class="c-file-actions-meta">({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</span>
|
<span class="c-file-actions-meta">({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</span>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
Loading…
Add table
Reference in a new issue