How to connect two different branches of code tone one widget.

Is there any way to connect the two pieces of code together so that when the widget is clicked, it plays the video widget and when the video widget is done, open the level? Thanks!

How are you playing the vid?

I don’t know if this exactly answers your question but i’m playing the video through a widget and a Media Player.

Just add the code to start media player playback (play) on button click. The delegate will fire once the player gets to the end of the movie.