LorenzCK / OnTopReplica

A real-time always-on-top “replica” of a window of your choice (on Windows).
Other
2.5k stars 277 forks source link

Video in OTR Freezes when switching away from the source window of the playing video. #154

Open mcolinp opened 8 months ago

mcolinp commented 8 months ago

I vaguely remember dealing with this once before, but I don't remember the fix. I primarily watch Youtube videos using Firefox. When using OTR, I typically use the "Region" option to remove unwanted ui elements around the video. Not sure if this contributes to the issue or not. I vaguely remember there potentially being something I needed to change with Firefox. I saw another issue with Chrome mentioning flags, but I'm not sure if that is the same with Firefox, and how to make and save the needed changes to get video working.

epiloso commented 6 months ago

This got me searching the same issue w/ Firefox... found this thread on Reddit about the "occlusion" setting but here is the TLDR... the tab still can't be minimized but the video won't freeze when the tab is behind another window.

Go to about:config in the browser address bar Search for dom.timeout.enable_budget_timer_throttling and set value to false Search for widget.windows.window_occlusion_tracking.enabled and set value to false Search for dom.min_background_timeout_value_without_budget_throttling and set value to 10

peterader commented 1 week ago

Just came across this having a similar issue in Chrome. When the replicated window went to background the video stopped playing and OTR went white. To fix this in Chrome: Enter this in the address bar: chrome://flags hit enter, then search calculate-native-win-occlusion. Change it to disabled and restart chrome.