Skip to content

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

Open
@LetAmericaGreatAgain

Description

@LetAmericaGreatAgain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions