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 += (
|
self.default_argv += (
|
||||||
[ '--keep-open'
|
[ '--keep-open'
|
||||||
, '--force-window'
|
, '--force-window'
|
||||||
|
, '--vo drm'
|
||||||
])
|
])
|
||||||
super().__init__(debug=True)
|
super().__init__(debug=True)
|
||||||
|
|
||||||
def play(self, url):
|
def play(self, url):
|
||||||
self.command("loadfile", url)
|
self.command("loadfile", url)
|
||||||
self.set_property("pause", False)
|
self.set_property("pause", False)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def fetchTitle(url):
|
def fetchTitle(url):
|
||||||
return ydl.extract_info(url, download=False).get('title')
|
return ydl.extract_info(url, download=False).get('title')
|
||||||
|
Loading…
Reference in New Issue
Block a user