devcshort / react-hls

Simple React component for playing hls/rtmp live streams.
https://www.npmjs.com/package/react-hls-player
MIT License
118 stars 48 forks source link

Playerref result show undefined #28

Open Junaid-Amjad opened 3 years ago

Junaid-Amjad commented 3 years ago

Hi, i tried the playerref in my application. but it display undefined in the console. I tried this example. Am i missing something? Thanks in advance.

devcshort commented 3 years ago

Thanks for bringing this to my attention. I'll need to take a look and test it out. It should be working. Is it possible you're trying to use the ref before it has been assigned?

Junaid-Amjad commented 3 years ago

I don't think so. I used the exact example as shown here.

hoangvu12 commented 2 years ago

yea for some reason playerRef return null all the time...