[Solved] Exception: Movie(channel='movie') doesn't work on mobile?

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
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

[Solved] Exception: Movie(channel='movie') doesn't work on mobile?

#1 Post by Nanahs »

This is what shows when I try to play my game on Android:
"Exception: Movie(channel='movie') doesn't work on mobile when config.hw_video is true."

This is my video code:

Code: Select all

image movie = Movie(size=(720, 1280))


screen showmovie:
    add Movie(size=(720, 1280))
    on "show" action Play("movie", "movie1.mkv", loop=True)
    on "hide" action Stop("movie")
I also tried "mp4", and got the same error.

I need the movie to be inside of a screen.

How can I solve that?

Thanks.
Last edited by Nanahs on Wed Jan 02, 2019 11:28 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Exception: Movie(channel='movie') doesn't work on mobile?

#2 Post by Imperf3kt »

On Android devices, movie objects can only be shown fullscreen.
See https://www.renpy.org/doc/html/android.html and https://www.renpy.org/doc/html/movie.html for more details.

I suggest using the python method.
$ renpy.movie_cutscene("movie1.mkv")
Unfortunately, this won't be able to be shown in a screen.

(the documentation suggests webm, but I just prefer mkv due to slightly larger compatibility), you could use either)

MP4 files are not supported and may not work (and if they do, it's purely coincidence and could break in future releases of renpy)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: Exception: Movie(channel='movie') doesn't work on mobile?

#3 Post by Nanahs »

Imperf3kt wrote: Thu Dec 27, 2018 4:49 am On Android devices, movie objects can only be shown fullscreen.
See https://www.renpy.org/doc/html/android.html and https://www.renpy.org/doc/html/movie.html for more details.

I suggest using the python method.
$ renpy.movie_cutscene("movie1.mkv")
Unfortunately, this won't be able to be shown in a screen.

(the documentation suggests webm, but I just prefer mkv due to slightly larger compatibility), you could use either)

MP4 files are not supported and may not work (and if they do, it's purely coincidence and could break in future releases of renpy)
That's ok. Thank you so much! I'll try it! :)

Post Reply

Who is online

Users browsing this forum: Google [Bot]