Skip to content

How can I create quality controls option for my project if it's HLS, or else just attach mp4 video and play? #734

Answered by realamirhe
huy232 asked this question in Q&A
Discussion options

You must be logged in to vote
  • The usePlyr hook is from our alpha release 4.0.0-alpha.1
  • In case you don't want to use forwardRef just pass the ref with a different name simply as props e.g. plyrRef, that should completely work :).

Here is the same component we have in our readme + new alpha release integration + type removed
https://codesandbox.io/s/silent-hooks-tpsbe?file=/src/HLS-javascript.jsx

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@huy232
Comment options

@realamirhe
Comment options

@huy232
Comment options

@realamirhe
Comment options

Answer selected by chintan9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants