We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to play Youtube video when be isIntersecting.
is working in iOS Safari, Android Webview, but not working in iOS Webview. in iOS Webview, it seems to play and then immediately stop.
Has anyone experienced anything related?
code on Flutter Webview with React(18.1.9), react-youtube(10.0.0)
// YoutubePlayer.tsx const onIntersect = useCallback(async ([entry] /*, observer */) => { if (entry.isIntersecting) { youtubeRef?.current?.internalPlayer?.playVideo(); return; } youtubeRef?.current?.internalPlayer?.stopVideo(); }, []); // ... useEffect(() => { if (!opts || !onIntersect || !wrapperRef.current) { return; } const observer = new IntersectionObserver(onIntersect, { threshold: 0.5, }); observer.observe(wrapperRef.current); return () => observer.disconnect(); }, [opts, onIntersect]);
The text was updated successfully, but these errors were encountered:
Did you resolve this? I made to play them when mute is set to true but no way to play them unmuted ...
Sorry, something went wrong.
I guess you can't do this if rely to official documentation
No branches or pull requests
I want to play Youtube video when be isIntersecting.
is working in iOS Safari, Android Webview, but not working in iOS Webview.
in iOS Webview, it seems to play and then immediately stop.
Has anyone experienced anything related?
code on Flutter Webview with React(18.1.9), react-youtube(10.0.0)
The text was updated successfully, but these errors were encountered: