Video Asset URLs not rendering I'm trying to output the video files from within a block but get a Calling unknown method: craft\elements\db\AssetQuery::url() error when using the following:
{{ block.video.videoFileWebm.url }}

Assets in this volume have public URLs so I'm not sure why this isn't working.
FULL CODE
{% if block.video %}

                &lt;video {% if block.video.videoAutoplay %}autoplay{% endif %} {% if block.video.videoLoop %}loop{% endif %} 
                                                    
                    {% if block.video.videoThumbnail %}
                    {% set optimizedImages = block.video.videoThumbnail.one().imageVariants16by9 %}
                    poster=&quot;{{ optimizedImages.srcset() }}&quot;
                    {% endif %} muted&gt;

                    {% if block.video.videoFileWebm %}
                        &lt;source src=&quot;{{ block.video.videoFileWebm.url }}&quot; type=&quot;video/webm&quot;&gt;
                    {% endif %}
                    {% if block.video.videoFileOgg %}
                        &lt;source src=&quot;{{ block.video.videoFileOgg.url }}&quot; type=&quot;video/ogg&quot;&gt;
                    {% endif %}
                    {% if block.video.videoFileMp4 %}
                        &lt;source src=&quot;{{ block.video.videoFileMp4.url }}&quot; type=&quot;video/mp4&quot;&gt;
                    {% endif %}
                    
                    &lt;p&gt;This browser does not support the video element.&lt;/p&gt;
                &lt;/video&gt;

            {% endif %}
Asset fields return like an array so they can potentially have more than one item, you need to request the first item only with .one() (as opposed to requesting .all())
//First check if the asset field has more than zero items
{% if block.video.videoFileWebm|length %}
    // Retrieve the first and only item in the asset field
    &lt;source src=&quot;{{ block.video.videoFileWebm.one().url }}&quot; type=&quot;video/webm&quot;&gt;
{% endif %}

I would also set block.video to a variable to clean up the code a bit and maybe speed it up a little.