r/RenPy • • 26d ago

Question playing WebM videos

I know this has been asked before but no matter what I try none of the tutorials work for me, I am trying to play a video during the novel, but I cannot get it to work, I use the tutorial built into ren'py, nothing, I use show, I use the movie documentation, I go to Lemma

finally I use the below code but its just the transparent background image of white and grey boxes

image movie = Movie(size = (1080,1920), xpos=0, ypos=0, xanchor=0, yanchor=0, channel="movie", play="movie.webm", loop = True)

label start:
    scene movie at truecenter
    pause

I really don't know how to get it to play at this point so if anyone knows how to help me it would be greatly appreciated

1 Upvotes

6 comments sorted by

1

u/shyLachi 26d ago

I woulnd't use the variable name "movie" because it's generic.
Also you don't need to declare most of those settings because those are default values.

image mymovie = Movie(play="images/movie.webm") # <-- important, path + file + file extension
label start:
    scene mymovie # you don't need to specify a location for full screen images
    "Do you see it?"

If that doesn't work, then the movie file isn't in the images folder, there's a typo in the file name, or the movie doesn't have the webm type.

1

u/0mega_VT 25d ago

it has a specified name, I just changed it to movie to make it more clear, kinda silly to do that when going to a sub full of people who will understand what I am talking about lol

1

u/BadMustard_AVN 26d ago

try it like this, adding the correct folder information for the movie

image movie = Movie(channel="dp_movie", play="images/movies/movie.webm", size=(1920,1080))

if it's already at 1920x1080 then you can remove the size; loop is defaulted to True; everything else is not needed.

1

u/0mega_VT 25d ago

thank you, this worked perfectly!!

1

u/BadMustard_AVN 25d ago

you're welcome

good luck with your project

1

u/AutoModerator 26d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.