Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video loading error. core.mjs:7195 ERROR TypeError: Cannot read properties of undefined (reading 'nodeName') #149

Open
LetAmericaGreatAgain opened this issue Nov 19, 2024 · 0 comments

Comments

@LetAmericaGreatAgain
Copy link

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

image
image

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

No branches or pull requests

1 participant