on AOT getting an error of: 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msGraphicsTrustStatus, and 13 more.
See original GitHub issue <video [vgMedia]="media" #media id="singleVideo" preload="auto" >
<source src="{{m_playResource}}" type="video/mp4">
</video>
and when doing release via AOT getting an error of:
ERROR in src/app/containers/resources/resource-props/resource-props.component.html:75:28 - error TS2740: Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msGraphicsTrustStatus, and 13 more.
75 <video [vgMedia]="media" [crossOrigin]="'anonymous'" #media id="singleVideo" preload="auto" crossorigin>
~~~~~~~~~~~~~~~~~
src/app/containers/resources/resource-props/resource-props.component.ts:19:18
any ideas?
$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 10.0.5
Node: 10.15.0
OS: win32 x64
Angular: 10.0.8
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Ivy Workspace: Yes
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1000.5
@angular-devkit/build-angular 0.1000.5
@angular-devkit/build-optimizer 0.1000.5
@angular-devkit/build-webpack 0.1000.5
@angular-devkit/core 8.3.29
@angular-devkit/schematics 8.3.29
@angular/cdk 10.1.2
@angular/cli 10.0.5
@angular/flex-layout 10.0.0-beta.32
@angular/google-maps 9.2.4
@angular/http 7.2.16
@angular/material 10.1.2
@angular/material-moment-adapter 10.1.2
@angular/pwa 0.803.29
@ngtools/webpack 10.0.5
@schematics/angular 8.3.29
@schematics/update 0.1000.5
rxjs 6.6.2
typescript 3.9.7
webpack 4.43.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Videogular videogular2 Issues - Giters
on AOT getting an error of: 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msGraphicsTrustStatus, and 13 more. Closed 2 years ago 8 ...
Read more >ngx-videogular - Github Plus
The following error happens at compile time: Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
workaround (ugly) is: vi ./node_modules/@videogular/ngx-videogular/core/lib/directives/vg-media/vg-media.directive.d.ts change vgMedia: IMediaElement; > vgMedia: any;
It’s working. Thank You