Closed HieuNguyen414 closed 1 year ago
its not clear where you're printing this "run <x>"
, so not sure what you're actually printing here.
however you should know that set-interval does does not guarantee that your callback will be called exactly after the given time. They tend to drift a little depending on how occupied the main thread is. Here's a stackoverflow discussion about it. You'd have to either increase sampling rate OR decrease accuracy in UI.
This library is only responsible for giving you an elapsed time. Other time-keeping tasks are up to the consumer
https://lonelycpp.github.io/react-native-youtube-iframe/elapsed-time I run app in emulator and tracking elapsed time in setinterval and video emit more than 1s (1,2s), what's wrong ` useEffect(() => {
}, [stateVideo]);
`
screenshot![image](https://user-images.githubusercontent.com/32530751/196132328-2475e89a-add3-4c63-9678-a74a0fdbd17c.png)