Untitled

 avatar
odi
plain_text
a year ago
251 B
1
Indexable
Never
const handleFullScreenToggle = async () => {
    if (videoRef.current) {
      try {
        await videoRef.current.presentFullscreenPlayer();
      } catch (error) {
        console.error('Error entering fullscreen mode:', error);
      }
    }
  };