HLS audio component autoplay props sets to always true #1049
Unanswered
TanjimAnim
asked this question in
Q&A
Replies: 1 comment 2 replies
|
I think this is expected, not a bug, because React transforms props to attributes (strings) of custom elements. all our media elements also have a React import which should solve this issue. try importing the React component with |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
So I have been using the library in my NextJS 14 app. When I pass the autoplay props to the hls-video component, which is a conditional props in the component, it is always set to true whether I pass it or not. Even if the default props is set to false.
So, for workaround what I have done is to render the hls-video conditionally, like this
Which neither looks pretty nor the react way to do it. So, I guess I am doing something wrong here, or this is a bug.
All reactions