RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
235 stars 28 forks source link

FinishedPlaying () //custom event trigger #495

Closed DanielTocik closed 3 years ago

DanielTocik commented 3 years ago

Hi there, RenderHeads.

May I ask you for your help, please? It might help others as well! I wonder if it is possible to set up a custom event trigger like this:

Event trigger

...so when my main video reaches the end or ''FinishedPlaying'', another function gets automatically called. I feel like it should be a fairly short and easy C# script. Probably something close to your example script from AVpro's documentation:

5641F4DC-B08B-4F9D-BD85-E67D8AAD3EEC

Any suggestions will be highly appreciated! :)

Thanks Dan

AndrewRH commented 3 years ago

Yes, it's almost exactly like that 👍 For an example perhaps look at the included script SimpleController.cs - you'll see how it sets up the event listener and handler.

Thanks,

Ste-RH commented 3 years ago

@DanielTocik Are you happy with this answer? Can we close this issue?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.