Make MPV use drm video output

This commit is contained in:
Aleksander Gustaw Wasaznik 2016-09-13 20:57:45 +02:00
parent a8ce8246b9
commit 7b85d39629

View File

@ -8,13 +8,14 @@ class MPV(next_MPV):
self.default_argv += (
[ '--keep-open'
, '--force-window'
, '--vo drm'
])
super().__init__(debug=True)
def play(self, url):
self.command("loadfile", url)
self.set_property("pause", False)
@staticmethod
def fetchTitle(url):
return ydl.extract_info(url, download=False).get('title')