Event doesnt' wait for video to end Fix

orcomarcio

Veteran
Veteran
Joined
Nov 26, 2015
Messages
97
Reaction score
19
First Language
Italian
I don't know if someone already solved it but I just made this to solve the bug. 


Apparently the code after launching the video keep asking the Graphics class if the video is playing and if not it means it ended, but it doesnt take count of the fact that webm and mp4 are compressed and it takes more than a cycle for the video to start.


This caused to code to think the video ended but he didn't even started yet.


View attachment WaitForVideoEndFix.js
 
Last edited by a moderator:

Leon Kennedy

Restaff Novice
Restaff
Joined
Aug 14, 2016
Messages
613
Reaction score
469
First Language
english
Primarily Uses
RMMV
respect for making this, but i had always just put a wait event for the same length as a video and never had any problems with other events happening in that time. i suppose this is a easier work around for that.
 

BigTaro

Villager
Member
Joined
Dec 22, 2012
Messages
12
Reaction score
6
First Language
English
Primarily Uses
Awesome, thanks for the fix!
 

Folkemon

Warper
Member
Joined
Oct 25, 2016
Messages
1
Reaction score
0
First Language
Italian
Primarily Uses
Thank you so much for this!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Who loves the Final Fantasy series?~
Weather and time system twin release. Now with weather icons and possibility to add them in your custom clock!
Kingdom Under Fire: The Crusaders is finally being ported to PC. I loved playing that game on the original Xbox.
A friend told me to stop making nomnom or gulping noise when eating or drinking. Plot twist of my life. I thought people can't hear that!

Forum statistics

Threads
94,411
Messages
920,758
Members
124,207
Latest member
AshleyBrowney
Top