blob: 4b78ea559333b2247b9d800b5069b49c654cc28a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff --git a/vidify/player/vlc.py b/vidify/player/vlc.py
index a7c9ec0..cb50f89 100644
--- a/vidify/player/vlc.py
+++ b/vidify/player/vlc.py
@@ -75,9 +75,9 @@ class VLCPlayer(PlayerBase):
def start_video(self, media: str, is_playing: bool = True) -> None:
logging.info("Starting new video")
if CURRENT_PLATFORM in (Platform.LINUX, Platform.BSD):
- self._player.set_xwindow(self.winId())
+ self._player.set_xwindow(int(self.winId()))
elif CURRENT_PLATFORM == Platform.WINDOWS:
- self._player.set_hwnd(self.winId())
+ self._player.set_hwnd(int(self.winId()))
elif CURRENT_PLATFORM == Platform.MACOS:
self._player.set_nsobject(int(self.winId()))
|