mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-24 01:00:13 +01:00
fixed window size issue
This commit is contained in:
@@ -1 +1 @@
|
|||||||
3
|
7
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
from omxplayer.player import OMXPlayer
|
from omxplayer.player import OMXPlayer
|
||||||
import data_centre
|
import data_centre
|
||||||
|
if data_centre.DEV_MODE == 'ON':
|
||||||
|
screen_size = '250,350,800,800'
|
||||||
|
else:
|
||||||
|
screen_size = '45,15,970,760' #'--blank'
|
||||||
|
|
||||||
class video_player:
|
class video_player:
|
||||||
def __init__(self, root, name):
|
def __init__(self, root, name):
|
||||||
@@ -14,7 +18,7 @@ class video_player:
|
|||||||
self.end = -1
|
self.end = -1
|
||||||
self.length = 0
|
self.length = 0
|
||||||
self.location = ''
|
self.location = ''
|
||||||
self.arguments = ['--no-osd'] #'{}'.format(screen_size),
|
self.arguments = ['--no-osd', '--win', screen_size]
|
||||||
|
|
||||||
def load(self):
|
def load(self):
|
||||||
self.get_context_for_player()
|
self.get_context_for_player()
|
||||||
|
|||||||
Reference in New Issue
Block a user