question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
born2netcommented, Oct 9, 2020

workaround (ugly) is: vi ./node_modules/@videogular/ngx-videogular/core/lib/directives/vg-media/vg-media.directive.d.ts change vgMedia: IMediaElement; > vgMedia: any;

0reactions
Dadabhaucommented, Jul 13, 2021

It’s working. Thank You

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found