Handle web player

This commit is contained in:
jeffvli
2022-11-08 00:20:39 -08:00
parent e774cdf031
commit 587fa2422a
17 changed files with 835 additions and 276 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ mpv.on('status', (status: any) => {
});
// Automatically updates the play button when the player is playing
mpv.on('started', () => {
mpv.on('resumed', () => {
getMainWindow()?.webContents.send('renderer-player-play');
});
+3
View File
@@ -87,6 +87,9 @@ contextBridge.exposeInMainWorld('electron', {
SETTINGS_SET(data: { property: string; value: any }) {
ipcRenderer.send('settings-set', data);
},
removeAllListeners(value: string) {
ipcRenderer.removeAllListeners(value);
},
windowClose() {
ipcRenderer.send('window-close');
},