Event doesnt' wait for video to end Fix

Discussion in 'JS Plugin Releases (RMMV)' started by orcomarcio, Jul 19, 2016.

    Tags:
  1. orcomarcio

    orcomarcio Veteran Veteran

    Messages:
    97
    Likes Received:
    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: Jul 19, 2016
    #1
    Harken_W and Leon Kennedy like this.
  2. Leon Kennedy

    Leon Kennedy Restaff Novice Restaff

    Messages:
    613
    Likes Received:
    468
    Location:
    Chicago
    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.
     
    #2
  3. BigTaro

    BigTaro Villager Member

    Messages:
    12
    Likes Received:
    6
    First Language:
    English
    Awesome, thanks for the fix!
     
    #3
  4. Folkemon

    Folkemon Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    Italian
    Thank you so much for this!
     
    #4

Share This Page