Skip to content

vue.js does not support the <video> ? #2876

@HuanMeng0

Description

@HuanMeng0

PHP framework : Lumen

If I write it , it will not load the video:

<div id="app">
    <div class="plyr">
        <video controls preload="none">
            <source :src="videourl" type="video/mp4">
        </video>
    </div>
</div>

If I do not use ": src", with the "src":

   <source src="@{{ videourl }}" type="video/mp4">

Console displays:
vuewarning.png

vue.js:1018 [Vue warn]: src="{{ videourl  }}": interpolation in "src" attribute will cause a 404 request. Use v-bind:src instead.

I should in the end how to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions