Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

GetvideoTag() not working. #57

Open
Shivampio opened this issue May 4, 2020 · 3 comments
Open

GetvideoTag() not working. #57

Shivampio opened this issue May 4, 2020 · 3 comments

Comments

@Shivampio
Copy link

AppComponent_Host.ngfactory.js? [sm]:1 ERROR TypeError: Cannot read property '__zone_symbol__addEventListener' of null

@honest-studio
Copy link

honest-studio commented May 6, 2020

Same error!!!
image

Angular CLI: 9.1.4
Node: 12.16.2
OS: win32 x64

Angular: 9.1.4
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.901.4
@angular-devkit/build-angular 0.901.4
@angular-devkit/build-optimizer 0.901.4
@angular-devkit/build-webpack 0.901.4
@angular-devkit/core 9.1.4
@angular-devkit/schematics 9.1.4
@angular/cdk 9.2.2
@angular/material 9.2.2
@ngtools/webpack 9.1.4
@schematics/angular 9.1.4
@schematics/update 0.901.4
rxjs 6.5.5
typescript 3.8.3
webpack 4.42.0

@jboz
Copy link

jboz commented May 8, 2020

I had this problem and I solved it using ngAfterViewInit like this :

@ViewChild('lessonVideo')
private matVideo: { getVideoTag: () => HTMLVideoElement };

[...]

ngAfterViewInit(): void {
  this.matVideo.getVideoTag().addEventListener('ended', () => this.store.dispatch(new ReadNextVideo()));
}

I can't import MatVideoComponent 😢 :

import { MatVideoComponent } from 'mat-video'; // <= Module '"node_modules/mat-video/mat-video"' has no exported member 'MatVideoComponent'.

so I describe it's interface :

{ getVideoTag: () => HTMLVideoElement }

And it's work ! 😄

@Shivampio
Copy link
Author

Thanks for your reply, i will try it definitely.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants