Clarify comment

This commit is contained in:
Max Goodhart
2020-11-11 22:58:58 -08:00
parent 4648a07e15
commit d30fc8e4d7

View File

@@ -101,7 +101,7 @@ export default class StreamWindow extends EventEmitter {
offscreenView: (context, event) => {
const { view } = context
view.setBounds({ x: 0, y: 0, width, height })
// It appears necessary to initialize the browser view by adding it to a window and setting bounds. Otherwise, some streaming sites like Periscope will not load their videos due to the Page Visibility API being hidden.
// It appears necessary to initialize the browser view by adding it to a window and setting bounds. Otherwise, some streaming sites like Periscope will not load their videos due to RAFs not firing.
win.removeBrowserView(view)
offscreenWin.addBrowserView(view)
},