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
Github Copilot suggests adding some error logging:
exportfunctionTrainingVideo({ url }){consttimer=useStageTimer();constplayer=usePlayer();const[elapsedOnLoad,setElapsedOnLoad]=useState(null);const[playing,setPlaying]=useState(false);useEffect(()=>{console.log(`Playing video from: ${url}`);// test if autoplay will workconsttestAudio=newAudio("1sec_silence.mp3");constpromise=testAudio.play();if(promise!==undefined){promise.then(()=>{setPlaying(true);}).catch((error)=>{console.error("Autoplay failed:",error);});}},[url]);consthandleError=(error)=>{console.error("Error playing video:",error);};return(<div><ReactPlayerurl={url}playing={playing}onError={handleError}controls/><ButtononClick={()=>setPlaying(!playing)}>{playing ? "Pause" : "Play"}</Button></div>);}
What happened?
With embedded training video on prod (not on dev server)
Issue:
What browsers do you see the problem on?
What operating system do you see the problem on?
How did we discover the bug?
Priority
Blocking all data collection
The text was updated successfully, but these errors were encountered: