This commit is contained in:
yumoqing 2019-12-23 19:34:40 +08:00
parent 624c237b53
commit 89e84240e0
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,12 @@
from jnius import autoclass
def startService(className):
# service = autoclass('your.service.name.ClassName')
service = autoclass(className)
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
service.start(mActivity)
def stopService(className):
service = autoclass(className)
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
service.stop(mActivity)

View File

@ -32,7 +32,9 @@ class VPlayer(FloatLayout):
stoped_play = BooleanProperty(False)
paused_play = BooleanProperty(False)
def __init__(self,vfile=None,loop=False,
def __init__(self,vfile=None,
playlist=None,
loop=False,
openfile_img=None,
exit_img = None,
pause_img = None,