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
I am attempting to detect when a video ends and trigger a specific behavior using a prop. However, the code I have doesn't seem to be working. Even the console log I added inside the function is not appearing. Can someone help me understand why?
Here's the code I am using:
useEffect(() => {
if (videoRef.current) {
console.log('Starting');
I am attempting to detect when a video ends and trigger a specific behavior using a prop. However, the code I have doesn't seem to be working. Even the console log I added inside the function is not appearing. Can someone help me understand why?
Here's the code I am using:
useEffect(() => {
if (videoRef.current) {
console.log('Starting');
}
}, []);
The text was updated successfully, but these errors were encountered: