Search Unity

Video Triggering events at specific points in a video

Discussion in 'Audio & Video' started by ARideout, Sep 27, 2018.

  1. ARideout

    ARideout

    Joined:
    Sep 7, 2017
    Posts:
    7
    Hello,

    I was wondering if there might be a way to have a videoplayer trigger events or call functions at specific times during playback. Ultimately I would like to sync up various particle effects to very specific points in a video. So for example, I want to play a particle animation at exactly 1.34 seconds into the video. Though I would also like to be able to play and pause the video at any time, so I can't simply time events to the beginning of the scene.

    Is there a way to get callbacks or event triggers from a videoplayer at specific times? Would it be a better idea to use playables and timelines and try playing and pausing both the videoplayer and playableDirector and use their time attributes to sync them?

    Cheers
    Alex