File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
from hyperion .Hyperion import Hyperion
28
28
from misc import log
29
29
from misc import notify
30
+ X_SIZE = 300
31
+ Y_SIZE = 300
32
+ SLEEP_PER_FRAME = 30
30
33
31
34
class DisconnectedState :
32
35
'''
@@ -85,7 +88,7 @@ def __init__(self, settings):
85
88
86
89
# create the capture object
87
90
self .__capture = xbmc .RenderCapture ()
88
- self .__capture .capture (64 , 64 )
91
+ self .__capture .capture (X_SIZE , Y_SIZE )
89
92
90
93
def __del__ (self ):
91
94
'''Destructor
@@ -145,10 +148,10 @@ def execute(self):
145
148
if self .__useLegacyApi :
146
149
if self .__captureState != xbmc .CAPTURE_STATE_WORKING :
147
150
#the current capture is processed or it has failed, we request a new one
148
- self .__capture .capture (64 , 64 )
151
+ self .__capture .capture (X_SIZE , Y_SIZE )
149
152
150
153
#limit the maximum number of frames sent to hyperion
151
- xbmc .sleep (100 )
154
+ xbmc .sleep (SLEEP_PER_FRAME )
152
155
153
156
return self
154
157
You can’t perform that action at this time.
0 commit comments