Make MPV use drm video output
This commit is contained in:
parent
a8ce8246b9
commit
7b85d39629
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user