Angular 19 video from assets folder

Discussão em 'Angular' iniciado por user3103982, Fevereiro 16, 2025.

  1. user3103982

    user3103982 Guest

    I am creating an Angular 19 app. This is my stackblitz link.

    This is my video tag in index.html

    <video controls width="600" height="300" id="myVideo">
    <source src="/assets/DIA.mp4" type="video/mp4" />
    </video>


    The video is not loading. I have assets in my angular.json

    "assets": [
    {
    "glob": "**/*",
    "input": "public"
    }
    ],


    and the MP4 file is not found in media folder either, when I tested it in my local with Visual Studio 2022. I have tried to reference it from src folder and it is not working either. Is it possible to show video in angular project?

    Thanks in advance

    Continue reading...

Compartilhe esta Página