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

TypeScript error - "playerRef" is required prop #32

Open
Imagery-na opened this issue Oct 4, 2021 · 1 comment
Open

TypeScript error - "playerRef" is required prop #32

Imagery-na opened this issue Oct 4, 2021 · 1 comment

Comments

@Imagery-na
Copy link

I am getting the error Property playerRef is missing on type '{src: string; autoPlay: true; controls: true; width: string;} 'but is required in type' HlsPlayerProps'. Can you please make this props an optional parameter, as it is in the examples?

@markwny
Copy link

markwny commented Jul 9, 2022

I found that as well. I modified index.d.ts to make playerRef optional. After some time I ended up using directly hls.js instead.

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

2 participants