cloudflare / stream-react

BSD 3-Clause "New" or "Revised" License
165 stars 29 forks source link

Ref doesn't work #89

Closed potyoma closed 11 months ago

potyoma commented 1 year ago

Hello Cloudflare team,

I've encountered a problem using this library. Ref's don't work as expected. It has value, but the properties are 0 and actions like pause or play don't affect the player. Here is a working demo. next 13.4.12 react 18.2 @cloudflare/stream-react 1.8

Could you please have a look into this issue?

potyoma commented 1 year ago

upd: found the issue. i was passing the url, not the Id (can't provide it in the demo) and with id works just fine. though the doc says that both should work.

third774 commented 11 months ago

Thanks for opening this issue! We've updated the docs to help clarify what value is expected.