about summary refs log tree commit diff
path: root/app/views/media/player.html.haml
blob: ea868b3f627c416cb05cae511c52810d9d45708f (plain) (blame)
1
2
%video{ poster: @media_attachment.file.url(:small), preload: 'auto', autoplay: 'autoplay', muted: 'muted', loop: 'loop', controls: 'controls', style: "width: #{@media_attachment.file.meta.dig('original', 'width')}px; height: #{@media_attachment.file.meta.dig('original', 'height')}px" }
  %source{ src: @media_attachment.file.url(:original), type: @media_attachment.file_content_type }