videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
672 stars 211 forks source link

on AOT getting an error of: 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msGraphicsTrustStatus, and 13 more. #911

Closed born2net closed 3 years ago

born2net commented 4 years ago
  <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
then3rdman commented 4 years ago

Also having this issue, the fact that this has no response since being posted over a month ago isnt promising for this project it would seem....

born2net commented 3 years ago

any fix for this? why isn't everyone seeing this issue? it's a show stopper :/ can't AOT

born2net commented 3 years ago

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

born2net commented 3 years ago

ya no news :/

anuj9196 commented 3 years ago

I'm also facing this issue

NumOne01 commented 3 years ago

same here

IxquitilisSaid commented 3 years ago

Duplicate of #904

Dadabhau commented 3 years ago

It's working. Thank You