1

I would like to embed Vimeo video to my website and I'd love to use some of options, that Vimeo provides, like color, autoplay etc.

Is there any chance to do it with django-embed-video?

4

1 回答 1

2

对的,这是可能的。但是您必须构建自己的 HTML。只需使用您选择的选项从 Vimeo 页面复制 HTML 并将视频 URL 替换为{{ my_video.url }}. 所以它看起来像这样:

{% video item.video as my_video %}
  <iframe 
    src="{{ my_video.url }}?byline=0&amp;portrait=0&amp;color=ff0179&amp;autoplay=1" 
    width="500" height="281" frameborder="0" 
    webkitAllowFullScreen mozallowfullscreen allowFullScreen>
  </iframe>
{% endvideo %}
于 2013-08-19T09:44:03.327 回答