I have screen that plays video. the video plays but there no option to return back when the video finishes playing. I want
to create a button to go back and other 2 button for another purpose or an actionbar with three items. please explain in details
to create a button to go back and other 2 button for another purpose or an actionbar with three items. please explain in details
def playingv(self):
print(theoption3)
if theoption3 == str('imperative sentences to passive voice',).strip("()"):
video= VideoPlayer()
self.add_widget(video)
video.source='can.mp4'
video.state='play'
video.allow_fullscreen
video.fullscreen=True
video.options={'eos':'loop'}
elif theoption3 == str('would you mind',).strip("()"):
video= VideoPlayer()
self.add_widget(video)
video.source='adjectives.mp4'
video.state='play'
video.allow_fullscreen=True
video.fullscreen=True
video.options={'eos':'loop'}I am trying to add actionbar but does not show<Playvideo>:
name:"video"
id:video
FloatLayout:
ActionBar:
pos_hint:{'top':1}
ActionView:
use_separator:True
ActionPrevious:
title:' Go Back'
on_press:
app.root.current="home_screen"
with_previous:False
ActionGroup:
mode:'spinner'
text:'Menu'
ActionButton:
text:'play video 2'
ActionButton
text:'read text file'
ActionButton
text:'Go Back'
VideoPlayer:
id:'v'
source:
pos_hint:{'top':1}
state:'play'class Playvideo(Screen):
pass
