mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-29 08:22:49 -05:00
Preload videos with full viewport size
Hopefully this will cause them to load with higher quality settings.
This commit is contained in:
@@ -34,16 +34,7 @@ export default class StreamWindow extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
const {
|
const { width, height, x, y, frameless, backgroundColor } = this.config
|
||||||
width,
|
|
||||||
height,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
frameless,
|
|
||||||
backgroundColor,
|
|
||||||
spaceWidth,
|
|
||||||
spaceHeight,
|
|
||||||
} = this.config
|
|
||||||
const win = new BrowserWindow({
|
const win = new BrowserWindow({
|
||||||
title: 'Streamwall',
|
title: 'Streamwall',
|
||||||
width,
|
width,
|
||||||
@@ -110,7 +101,7 @@ export default class StreamWindow extends EventEmitter {
|
|||||||
// 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 the Page Visibility API being hidden.
|
||||||
win.removeBrowserView(view)
|
win.removeBrowserView(view)
|
||||||
offscreenWin.addBrowserView(view)
|
offscreenWin.addBrowserView(view)
|
||||||
view.setBounds({ x: 0, y: 0, width: spaceWidth, height: spaceHeight })
|
view.setBounds({ x: 0, y: 0, width, height })
|
||||||
},
|
},
|
||||||
positionView: (context, event) => {
|
positionView: (context, event) => {
|
||||||
const { pos, view } = context
|
const { pos, view } = context
|
||||||
|
|||||||
Reference in New Issue
Block a user