ngx-videogular icon indicating copy to clipboard operation
ngx-videogular copied to clipboard

Will not compile in strict mode

Open mcalmus opened this issue 3 years ago • 3 comments

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

mcalmus avatar Apr 14 '22 15:04 mcalmus

I run into the same issue today

jansgescheit avatar May 31 '22 06:05 jansgescheit

I run into the same issue today

wanderdevof avatar Jun 06 '22 01:06 wanderdevof

"dirty" fix:

[vgMedia]="$any(media)"

WuglyakBolgoink avatar Nov 23 '22 12:11 WuglyakBolgoink