我使用的代码是 angular4,我想显示视频流宽度 videogular2 插件,但错误:
Template parse errors:Can't bind to 'vgHls' since it isn't a known property of 'video'.
应用程序组件.html
<vg-player>
<video #myMedia
[vgHls]="'http://static.videogular.com/assets/videos/videogular.m3u8'"
(onGetBitrates)="hlsBitrates = $event"
id="my-video"
type="video/mp4"
controls>
</video>
</vg-player>
Run Code Online (Sandbox Code Playgroud)
应用程序模块.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'app';
}
Run Code Online (Sandbox Code Playgroud)