Video only playing on pause

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
neometalero
Regular
Posts: 181
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Video only playing on pause

#1 Post by neometalero » Tue Aug 09, 2022 9:10 am

I have this video I want to show as a background scene or as an image. But I have the problem that it only plays with the game on pause. When I want text to be shown the video disapears.

Code: Select all


image videoTest01= Movie (size = (1920,1080), channel="movie",play="videos/TestEnd.ogv",loop=True)
label myLabel:
	show videoTest01
   	pause
Any idea how to fix this so I can show text over the video like a regular image or background?
Image
Working on My Dream Sport Dating Simulator right now
https://store.steampowered.com/app/1521 ... Simulator/

User avatar
m_from_space
Veteran
Posts: 302
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Video only playing on pause

#2 Post by m_from_space » Tue Aug 09, 2022 9:37 am

I don't get it. Presenting a movie like this doesn't pause (or disappear) when I show dialogue. Or what do you mean by text? By the way "channel" defaults to "movie" and "loop" defaults to True, so you don't have to specify it.

Code: Select all

image videoTest01 = Movie(play="videos/TestEnd.ogv")

label start:
	show videoTest01
   	pause
   	"Hello."
   	"Hi, the movie is still playing at this point, no problem on my part."
   	pause 3.0
   	"Still playing..."

User avatar
neometalero
Regular
Posts: 181
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Re: Video only playing on pause

#3 Post by neometalero » Tue Aug 09, 2022 10:43 am

m_from_space wrote:
Tue Aug 09, 2022 9:37 am
I don't get it. Presenting a movie like this doesn't pause (or disappear) when I show dialogue. Or what do you mean by text? By the way "channel" defaults to "movie" and "loop" defaults to True, so you don't have to specify it.

Code: Select all

image videoTest01 = Movie(play="videos/TestEnd.ogv")

label start:
	show videoTest01
   	pause
   	"Hello."
   	"Hi, the movie is still playing at this point, no problem on my part."
   	pause 3.0
   	"Still playing..."
That code gave me the same result. The movie shows only if I put pause , otherwise when showing dialog it turns black
Image
Working on My Dream Sport Dating Simulator right now
https://store.steampowered.com/app/1521 ... Simulator/

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Video only playing on pause

#4 Post by Alex » Tue Aug 09, 2022 12:54 pm

neometalero wrote:
Tue Aug 09, 2022 10:43 am
...
That code gave me the same result. The movie shows only if I put pause , otherwise when showing dialog it turns black
Try to use starship launching video from tutorial game and if it will work then issue is in your video.

User avatar
neometalero
Regular
Posts: 181
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Re: Video only playing on pause

#5 Post by neometalero » Tue Aug 09, 2022 2:57 pm

Alex wrote:
Tue Aug 09, 2022 12:54 pm
neometalero wrote:
Tue Aug 09, 2022 10:43 am
...
That code gave me the same result. The movie shows only if I put pause , otherwise when showing dialog it turns black
Try to use starship launching video from tutorial game and if it will work then issue is in your video.
Can you share me a link to that video? tks
Image
Working on My Dream Sport Dating Simulator right now
https://store.steampowered.com/app/1521 ... Simulator/

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Video only playing on pause

#6 Post by Alex » Tue Aug 09, 2022 4:32 pm

neometalero wrote:
Tue Aug 09, 2022 2:57 pm
Can you share me a link to that video? tks
It should be in *folder with renpy.exe (launcher)*/tutorial/game/oa4_launch.webm

User avatar
neometalero
Regular
Posts: 181
Joined: Sun Oct 23, 2016 3:51 am
Completed: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Projects: My Dream Sport Dating Simulator, Attack Helicopter Dating Simulator
Deviantart: neometalero
Contact:

Re: Video only playing on pause

#7 Post by neometalero » Tue Aug 09, 2022 4:49 pm

Alex wrote:
Tue Aug 09, 2022 4:32 pm
neometalero wrote:
Tue Aug 09, 2022 2:57 pm
Can you share me a link to that video? tks
It should be in *folder with renpy.exe (launcher)*/tutorial/game/oa4_launch.webm
That video worked fine. I managed to solve the problem with the other one (it was a stupid thing, of course) but now I have a problem where the game just freezes after a few seconds play (that don't happen with the rocket video, so I will try on that format). Thx a lot for the help!
Image
Working on My Dream Sport Dating Simulator right now
https://store.steampowered.com/app/1521 ... Simulator/

Post Reply

Who is online

Users browsing this forum: Bing [Bot]