如何使用外部网址将视频发送到我的应用程序angular 7

时间:2019-04-26 13:35:19

标签: html angular typescript

嗨,我使用的是角度7,我想放置一个包含视频的本地文件夹的URL,但是当我尝试这样做时,他无法读取视频

这是我的代码

import { Component, OnInit } from '@angular/core';
import { FuseTranslationLoaderService } from '@fuse/services/translation-loader.service';
import { locale as english } from 'app/pages/home/i18n/en';
import { locale as french } from 'app/pages/home/i18n/fr';
import { MatSnackBar } from '@angular/material';
import { VERSION } from '@angular/platform-browser';

@Component({
    selector: 'app-home',
    templateUrl: './home.component.html',
    styleUrls: ['./home.component.scss']
})
export class HomeComponent {

    isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);

    constructor(private _fuseTranslationLoaderService: FuseTranslationLoaderService, private snackBar: MatSnackBar) {
        this._fuseTranslationLoaderService.loadTranslations(english, french);
        if (this.isIEOrEdge) { this.snackBar.open('Utilisation requise de la version V65 de firefox', 'close', {}); }

    }
    version = VERSION.full;
    ngclass = 'mat-video-responsive';

    src = 'assets/Vidéo SNAP.mp4';
    width = 600;
    height = 337.5;
    autoplay = false;
    preload = true;
    loop = false;
    quality = true;
    download = true;
    fullscreen = true;
    keyboard = true;
    color = 'primary';
    spinner = 'spin';
    overlay = null;

}

我要使用以下网址:P:/ Com SNAP /VidéoSNAP VF.mp4

感谢您的回复

0 个答案:

没有答案