How to get url from product media object VideoSourceDrop

Highlighted
Shopify Partner
1 0 1

Hi, 

 

I am trying to get a URL from the videoSourceDrop but not succussed. for example 

{% for media in product.media %}
   {% if media.media_type=='video' %}
    {{ media.sources }} # returns VideoSourceDrop
    {{ media.sources.url }} # return null
{%endif %}
{% endfor %}

Can you please help me to get url. 

 

Thanks in advance!

1 Like
Highlighted
Tourist
4 0 0

for anyone who is looking at this its because shopify has made video exclusive for PLUS plans only.

0 Likes