You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
volumePanResponder and seekPanResponder never clear the interaction handle created when responder was granted. Any code in InteractionManager.runAfterInteractions is blocked after changing volume or seek bar.
PanResponder.create was called repeatedly(hundreds and hundreds times) while video was playing or when changing volume.
The main reason is that the PanResponder.create is not wrapped in useMemo, so they are re-created every time when the VideoPlayer is refreshed.
I noticed two issues in usePanResponders.tsx
InteractionManager.runAfterInteractions
is blocked after changing volume or seek bar.PanResponder.create
was called repeatedly(hundreds and hundreds times) while video was playing or when changing volume.The main reason is that the
PanResponder.create
is not wrapped inuseMemo
, so they are re-created every time when the VideoPlayer is refreshed.I created a patch file to resolve this for now. https://gist.github.com/Yupeng-li/78d04099f0ee20bbf164c6d7e99eb2df
The text was updated successfully, but these errors were encountered: