vendor/teltek/pumukit-paella-player-bundle/Resources/views/PaellaPlayer/player.html.twig line 1

Open in your IDE?
  1. {% extends '@PumukitPaellaPlayer/PaellaPlayer/index.html.twig' %}
  2. {% block stylesheets %}
  3.     {{ parent() }}
  4.     {% if custom_css_url is defined and custom_css_url %}
  5.         <link rel="stylesheet" href="{{ custom_css_url }}" type="text/css" media="screen">
  6.     {% endif %}
  7. {% endblock %}
  8. {% block javascripts %}
  9.   {{ parent() }}
  10.     <script>
  11.         function resizeFrame(elem) {
  12.             var width = $(elem).width();
  13.             var height = width / 16 * 9;
  14.             $(elem).height(height);
  15.         }
  16.         $(window).resize(function () {
  17.             resizeFrame($('#player-container'));
  18.         });
  19.         $(window).on("load", function() {
  20.             resizeFrame($('#player-container'));
  21.         });
  22.     </script>
  23. {% endblock %}
  24. {% block body_base %}
  25.     <div id="player-container"></div>
  26.     <script>
  27.         {% include('@PumukitPaellaPlayer/PaellaPlayer/multistream.js.twig') %}
  28.     </script>
  29. {% endblock %}