Closed tomtichy closed 11 years ago
Hi, I think it would be useful to provide something like my_video.type in template tag. It would containt youtube, vimeo etc. Because I need to do something like this:
my_video.type
youtube
vimeo
{% video item.video as my_video %} <iframe width="500" height="281" frameborder="0" allowfullscreen webkitAllowFullScreen mozallowfullscreen allowFullScreen {% if my_video.type == "youtube" %} src="{{ my_video.url }}?rel=0" {% elif my_video.type == "vimeo" %} src="{{ my_video.url }}?byline=0&portrait=0&color=ff0179&autoplay=1" {% endif %} ></iframe> {% endvideo %}
Hi, I think it would be useful to provide something like
my_video.type
in template tag. It would containtyoutube
,vimeo
etc. Because I need to do something like this: