We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Execute something when video has ended

Home Forums Puzzles Execute something when video has ended

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #36394
    Joep Brinkman
    Customer

    Hi,

    I would really like to know if there’s a way to detect the end of a video with puzzles and act upon it. I know about the ‘is playing’ puzzle but that seems to keep in the playing state, even when the video has ended. Am i doing something wrong? I would like to keep away from the workaround of having a timer run in parallel.

    I am scaling a plane from 0 to 1, play a video on it, and then would like the plane to scale back when the video ends. I have a few video’s with different lengths that need to do this so having the ‘has ended’ trigger would be super useful.

    I hope you can help me out!

    Cheers,

    Joep

    #36406

    Hi,

    you can implement it with a small JavaScript snippet which you can put inside the exec script puzzle.

    Chief 3D Verger | LinkedIn | Twitter

    #36407
    Joep Brinkman
    Customer

    Thanks for the heads up Yuri, i was curious if there would be a puzzles-only solution, but I will tackle it this way then. :good:
    Really awesome support from you guys by the way, thanks!

    #36417
    Joep Brinkman
    Customer

    I’m really scratching my head on how to do this. Nothing i try seems to work as i hope. Could you help me out with a few simple pointers perhaps?

    Attachments:
    You must be logged in to view attached files.
    #36423
    Joep Brinkman
    Customer

    In the meantime I managed to solve this myself. I had to simplify things a bit in the end. If someone’s looking to do the same, I attached a screenshot of what works for me in the end. Also, tips of doing this more efficient/optimal are always welcome. :good:

    Attachments:
    You must be logged in to view attached files.
    #36428
    GLiFTeK
    Customer

    The serious of the issue lies in the practice of non-a-synchronous executing puzzles. I feel this it a practice that needs to be shown in the beginning steps of puzzle network creation.

    So many issues arise from non-use of it!

    Just as functions have control of WHEN they’re executed, just as PROCEDURES should be taught as to. :negative:

    #36435

    Sorry for not replying earlier. Thank you for posting your solution! :good:

    Chief 3D Verger | LinkedIn | Twitter

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.