Open
Description
Description
Video loading error. core.mjs:7195 ERROR TypeError: Cannot read properties of undefined (reading 'nodeName')
- Angular version: 18.2.0
- Node.js version: v20.11.1
- npm version: 10.2.4
- chrome
Steps to Reproduce
<vg-player>
<video [vgMedia]="media_" #media id="singleVideo" preload="auto" controls>
<source src="http://static.videogular.com/assets/videos/videogular.mp4" type="video/mp4">
</video>
</vg-player>
@ViewChild('media', { static: false }) videoElement!: ElementRef<HTMLVideoElement>;
media_!: IMediaElement;
constructor() {
}
ngAfterViewInit() {
timer(0).subscribe(() => {
this.media_ = this.videoElement.nativeElement as unknown as IMediaElement;
});
// this.cdRef.detectChanges();
}
Attachments
Metadata
Metadata
Assignees
Labels
No labels