playMaker

Author Topic: Video (Movie?) Player Control[SOLVED]  (Read 1022 times)

glmercer

  • Playmaker Newbie
  • *
  • Posts: 1
Video (Movie?) Player Control[SOLVED]
« on: May 20, 2018, 08:42:55 PM »
Hey all, first post. Thanks for being gentle on me.

Is there a way for Playmaker to get when a Video Player video has ended? I have a weird little thing that needs a couple videos to play in sequence, and while I could make a massive 12 hour video file all run together, that seems like a lot to leave running in memory.

Essentially what I'd like is, have a video play -> Get Video End -> Start Next Video. There's almost definitely something simple I'm missing, I'm sure.

If I'm not explaining well enough or if there's further questions, let me know. Thanks!
« Last Edit: May 21, 2018, 06:48:32 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Video (Movie?) Player Control
« Reply #1 on: May 21, 2018, 06:47:46 AM »
Hi,

 yes, you need to use the action VideoPlayerLoopPointReachedEvent, if you are not looping, this will mean video ended.

https://docs.unity3d.com/ScriptReference/Video.VideoPlayer-loopPointReached.html

Bye,

 Jean