Closed Catopillar closed 4 years ago
I was able to work around this issue by replacing MatVideoComponent with "any"
@ViewChild('video', { static: false }) matVideo: any;
@Catopillar any
definitely works just to get it to compile, but it'd be nice if we could specify the data type. I'm having the same issue; only difference is that mine is in a lazy-loaded module rather than AppModule.
I am also having same issue.
Same problem here...
same issue...
This is fixed in version 2.8.0.
Use:
import { MatVideoComponent } from 'mat-video/lib/video.component';
Closing.
PLEASE FILL THIS OUT IF YOU WANT HELP WITH AN ISSUE!
Bug, feature request, or proposal:
mat-video/app/video/video.component does not seem to be loading.
What is the current behavior?
I get the above error whenever I try to run.
What is the expected behavior?
I need to be able to listen to events on the mat video player and seek.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-mkrj9r
package.json
app.module.ts
video-player.component.ts
video-player.component.html
<mat-video #video src="{{ video.Source }}"></mat-video>
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Tried Angular 7 and 8 and had same issue
Is there anything else I should know?
I am pretty new to angular so I apologize if I have missed something obvious. I followed your installation instructions with no issue. I can play video and change source correctly. I am only having issues with MatVideoComponent.