ngx-videogular
ngx-videogular copied to clipboard
Will not compile in strict mode
Description
Describe the issue or new feature.
Example code does not compile with strict mode enabled (the default in at least Angular 11 and above).
Expected Behavior
If this is an issue, document the expected behavior. If this is a feature, delete this block.
Should compile cleanly.
Actual Behavior
If this is an issue, describe the actual behavior. If this is a feature, delete this block.
The following error happens at compile time:
Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msPlayToDisabled, and 10 more.
Steps to Reproduce
Making elements of IMediaElement optional should fix issue.
Attachments
Try to include screenshots for bugs or design assets for enhancements
| Image Title |
|---|
| (https://media.giphy.com/media/143vPc6b08locw/giphy.gif) |
| Image description |
I run into the same issue today
I run into the same issue today
"dirty" fix:
[vgMedia]="$any(media)"