mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
port fix preview pdf in pdfjs
This commit is contained in:
@@ -89,6 +89,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
|
|||||||
const TYPE_AUDIO_MP3 = 'AUDIO_MP3';
|
const TYPE_AUDIO_MP3 = 'AUDIO_MP3';
|
||||||
const TYPE_IMAGE = 'IMAGE';
|
const TYPE_IMAGE = 'IMAGE';
|
||||||
const TYPE_NO_PLAYER = 'UNKNOWN';
|
const TYPE_NO_PLAYER = 'UNKNOWN';
|
||||||
|
const TYPE_PDF = 'PDF';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Technical datas types constants
|
* Technical datas types constants
|
||||||
@@ -407,6 +408,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
|
|||||||
{
|
{
|
||||||
static $types = [
|
static $types = [
|
||||||
'application/x-shockwave-flash' => self::TYPE_FLEXPAPER,
|
'application/x-shockwave-flash' => self::TYPE_FLEXPAPER,
|
||||||
|
'application/pdf' => self::TYPE_PDF,
|
||||||
'audio/mp3' => self::TYPE_AUDIO_MP3,
|
'audio/mp3' => self::TYPE_AUDIO_MP3,
|
||||||
'audio/mpeg' => self::TYPE_AUDIO_MP3,
|
'audio/mpeg' => self::TYPE_AUDIO_MP3,
|
||||||
'image/gif' => self::TYPE_IMAGE,
|
'image/gif' => self::TYPE_IMAGE,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
src="{{ url('alchemy_embed_view', {url: url|trim, autoplay: autoplay|default('false') }) }}"
|
src="{{ url('alchemy_embed_view', {url: url|trim, autoplay: autoplay|default('false') }) }}"
|
||||||
frameborder="0" allowfullscreen></iframe>
|
frameborder="0" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
{% elseif record_type == 'FLEXPAPER' %}
|
{% elseif record_type == 'FLEXPAPER' or record_type == 'PDF' %}
|
||||||
<div id="phraseanet-embed-frame" class="documentTips"
|
<div id="phraseanet-embed-frame" class="documentTips"
|
||||||
data-original-width="{{original_w}}"
|
data-original-width="{{original_w}}"
|
||||||
data-original-height="{{original_h}}"
|
data-original-height="{{original_h}}"
|
||||||
|
|||||||
Reference in New Issue
Block a user