Displaying video

Hello Experts,

We have added a video on the product but it is not displaying on the live page. How can the issue be fixed

{% assign featured_image = product.selected_or_first_available_variant.featured_image | default: product.featured_image %}

  

    {% for image in product.images %}
      - {% if image.alt contains 'youtube' or image.alt contains 'vimeo' %}
            {% assign src=image.alt | split: 'src="' %}
            {% assign src=src[1] | split: '"' | first %}

            {% if src contains '?' %}
              {% assign src=src | append: '&autoplay=1' %}
            {% else %}
              {% assign src=src | append: '?autoplay=1' %}
            {% endif %}

          

            

              
                  {{ image.alt }}
              
            

          

            {% if forloop.length == 1 and settings.thumbnail_position == "no-thumbnails" %}
            
            {% endif %}
          {% else %}
          
            

              
            

          
          {% endif %}
      
    {% endfor %}
  

Thank you for your help