Jun-17-2024, 06:32 PM
(This post was last modified: Jun-17-2024, 07:00 PM by deanhystad.)
I am trying to play video, the video is playing on the background only and no window is shown. this the function that plays the video in a class.
class Firstwindow(Screen): def on_pre_enter(self,*args): video= VideoPlayer(source ='react.mp4') video.state ='play' video.allow_fullscreen=True return videokv file
<Firstwindow>: canvas: Rectangle: source:"down.jpg" size: self.size name: "home_screen" id: home_screen Button: id: b1 text: 'Beginner' color:"purple" pos:130,300 size_hint:(0.5,0.1) on_release: app.root.current="w_screen" root.manager.transition.direction= "right" Button: id: b2 text:" Inermediate" color:"purple" pos:130,230 size_hint:(0.5,0.1) on_release: app.root.current="menu_screen" root.manager.transition.direction= "right" Button: id: b3 text:"Advanced" color:"purple" pos:130,160 size_hint:(0.5,0.1) on_release: app.root.current="ww" root.manager.transition.direction= "right"
deanhystad write Jun-17-2024, 07:00 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.