UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
Support of looping events (EndLoop, StartLoop)
When a MediaPlayer is set to Loop, an event when the media ends (or starts) playing would be very useful.
We are trying to port our project from Unity's VideoPlayer to AVProVideo. Some features are missing though, in particular events when a looping video ends (or starts), which is supported by the loopPointReached of Unity's VideoPlayer : https://docs.unity3d.com/ScriptReference/Video.VideoPlayer-loopPointReached.html
I have found these comments in Events.cs of AVPro 2.1.4 :
// TODO:
//StartLoop, // Triggered when the video starts and is in loop mode
//EndLoop, // Triggered when the video ends and is in loop mode
However, as I haven't seen any tracked issue related to this, I'm submitting this issue to share our needs 😛
+1 this would be very useful
Yes this would be helpful. I have a case where I need to perform an action at the end of a looping video so these events would be very convenient.
+1