Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: playback toggling in the audio video player

Ilian Sapundshievdf02e7caedd2
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index c4dcb31e1..ddee0e1c6 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -236,8 +236,8 @@ class EntryContainer extends React.Component<Props, State> {
// 'window.dispatchEvent(new Event("resume"));'
// );
// } else
- if (this.fileViewer) {
- this.fileViewer.dispatchEvent(new Event('resume'));
+ if (this.fileViewer && this.fileViewer.contentWindow) {
+ this.fileViewer.contentWindow.togglePlay();
}
});
// if (AppConfig.isElectron) {