Open om-harry10 opened 4 years ago
@om-harry10 it is very bad form to direct message over 20 people when you want help. Please post your issue like everyone else, and someone might help in due course if and when they have time. Thanks.
@om-harry10 it is very bad form to direct message over 20 people when you want help. Please post your issue like everyone else, and someone might help in due course if and when they have time. Thanks.
@marnusw Sorry for any inconvenience . I have been looking for it's solution very desperately and from a long time. So, to get the solution quickly I mentioned you all. I hope you understand the situation. Thanks.
@om-harry10 I don't think this problem is related to recyclerlistview. You can wrap your VideoPlayer component around a HOC, whenever your video comes into viewport it should resume the video and whenever it goes out of viewport you can pause the video.
There are multiple libraries that support this functionality. (https://github.com/yamill/react-native-inviewport)
@om-harry10 I don't think this problem is related to recyclerlistview. You can wrap your VideoPlayer component around a HOC, whenever your video comes into viewport it should resume the video and whenever it goes out of viewport you can pause the video.
There are multiple libraries that support this functionality. (https://github.com/yamill/react-native-inviewport)
@nimishsinghal What is HOC?
High order component (just a wrapper around your video component)
@om-harry10 I don't think this problem is related to recyclerlistview. You can wrap your VideoPlayer component around a HOC, whenever your video comes into viewport it should resume the video and whenever it goes out of viewport you can pause the video. There are multiple libraries that support this functionality. (https://github.com/yamill/react-native-inviewport)
@nimishsinghal What is HOC?
@nimishsinghal when I run InViewPort This error is shown: How to solve it?
I am implementing video playing app(like Instagram Reels or tik tok) using RecyclerListView in React-Native. In the development of app, I am facing the problem that all the videos in the list play simultaneously. I want to pause all other videos which are out of the screen and play only when scrolled to a particular video and when video is visible on screen.
Please tell me how to do it? I have been stuck at this problem from a long time and tried a lot of things but could not find solution for RecyclerListView.
Please answer ASAP as it's very urgent.
I have attached code for reference-
I have used react-native-video for playing video.
App.js
ViewVideo.js
@naqvitalha @radeno @muskeinsingh @siddhantsoni @manishPatwari @arunreddy10 @ananyachandra14 @rajatgupta26 @nimishsinghal @marnusw @inayat1 @wojtus7 @tafelito @swapnil1104 @isle-prashant @cmcaboy @adnaan1703 @AE0011