templates/website/includes/frame-play.html.twig line 1

Open in your IDE?
  1. {# HTML TEXT #}
  2. {% if library.type == enum('LibraryEnum::CONTENT_TEXT') %}
  3.     <div class="html-txt">
  4.         {{ library.text|raw }}
  5.     </div>
  6. {# EMBED #}
  7. {% elseif library.type == enum('LibraryEnum::CONTENT_EMBED') %}
  8.     <iframe src="{{ library.link }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
  9. {# GOOGLE DOCS #}
  10. {% elseif library.type == enum('LibraryEnum::CONTENT_FILES') %}
  11.     <iframe src="https://docs.google.com/viewer?url=https://{{ client.domainPrimary }}{{ path('getStremLibraryContent', { hash: encodeHex(library.id), timeHash: encodeHex("now"|date("Y-m-d H:i:s")) }) }}&amp;embedded=true" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
  12. {# EAD PLAYER #}
  13. {% elseif credentials and library.type in [
  14.     enum('LibraryEnum::CONTENT_AUDIO'),
  15.     enum('LibraryEnum::CONTENT_VIDEO_FILE'),
  16. ]%}
  17.     <iframe
  18.       src="https://player.vdocipher.com/v2/?otp={{ credentials.otp }}&playbackInfo={{ credentials.playbackInfo }}&primaryColor={{ getConfig('primary_color') }}"
  19.       frameborder="0"
  20.       allow="encrypted-media"
  21.       allowfullscreen
  22.     ></iframe>
  23. {# LIVE INTERNA #}
  24. {% elseif library.type == enum('LibraryEnum::CONTENT_LIVE') %}
  25.     <iframe id="{{ infoLive.embedId }}" src="{{ infoLive.url }}" width="1280" height="720" frameborder="0" scrolling="no"></iframe>
  26.     <script data-embedid="{{ infoLive.embedId }}" src="{{ cdnLivestream }}"></script>
  27. {# YOUTUBE | VIMEO #}
  28. {% else %}
  29.     {% set linkVimeo = getVimeoFormatIframe(library.link) %}
  30.     <iframe src="{{ linkVimeo is not empty ? linkVimeo : library.link }}{% if 'vimeo.com' in library.link or 'youtube.com' in library.link %}?autoplay=0&amp;rel=0&amp;controls=1&amp;showinfo=0&amp;portrait=0&amp;title=0&amp;byline=0&amp;color={{ getConfig('primary_color')|slice(1, 7) }}&amp;autohide=1{% endif %}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
  31. {% endif %}