UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

Support of looping events (EndLoop, StartLoop)

Open midiphony opened this issue 3 years ago • 6 comments

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 😛

midiphony avatar Jun 29 '21 16:06 midiphony

+1 this would be very useful

visjack avatar Dec 30 '22 21:12 visjack

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.

mikedreambooth avatar Mar 06 '23 14:03 mikedreambooth

+1

pilzinho avatar Aug 10 '23 08:08 pilzinho