You are here

brightcove-video-player.html.twig in Brightcove Video Connect 8

brightcove-video-player.html.twig Default theme implementation to display Brightcove video player.

This template is used when dispalying the Brightcove video player.

Available variables:

  • video_id
  • account
  • player
  • embed
  • data-usage

File

templates/brightcove-video-player.html.twig
View source
  1. {#
  2. /**
  3. * @file brightcove-video-player.html.twig
  4. * Default theme implementation to display Brightcove video player.
  5. *
  6. * This template is used when dispalying the Brightcove video player.
  7. *
  8. * Available variables:
  9. * - video_id
  10. * - account
  11. * - player
  12. * - embed
  13. * - data-usage
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <video
  19. data-video-id="{{- video_id -}}"
  20. data-account="{{- account -}}"
  21. data-player="{{- player -}}"
  22. data-embed="{{- embed -}}"
  23. data-usage="{{- data_usage -}}"
  24. {% if height != null %}
  25. height="{{ height }}"
  26. {% endif %}
  27. {% if width != null %}
  28. width="{{ width }}"
  29. {% endif %}
  30. class="video-js" controls
  31. >
  32. </video>
  33. <script src="//players.brightcove.net/{{- account -}}/{{- player -}}_{{- embed -}}/index.min.js"></script>