u-wave / react-vimeo

Vimeo player component for React.
https://u-wave.net/react-vimeo
MIT License
217 stars 64 forks source link

TypeError: _vimeoRefs_current_index.setCurrentTime is not a function #246

Closed Jairwin-L closed 11 months ago

Jairwin-L commented 1 year ago

repo code: https://github.com/Jairwin-L/next-demo/commit/c9cfa33a3fecb4731595d9fd844583c075d5e214#diff-18e0d4553c97cfc420e938ccafb4e3a688e782fa4512ba4ceae3e2a6f24c1987

goto-bus-stop commented 1 year ago

yeah in react the ref accesses the component instance, not the vimeo player. you can get the video player in the onReady callback. https://github.com/u-wave/react-vimeo/issues/221#issuecomment-1275762857