adrenak / GPUVideoPlayer

Fast video playback on Unity using GPU Decoding
MIT License
128 stars 29 forks source link

How to make GPUVideoplayer play in loop? #15

Open tedyage opened 4 years ago

tedyage commented 4 years ago

Hi! I used your GPUVideoplayer in my unity project, and I want to make it play in loop automatically. But I can't find out how to make it. I have tried to call the load and play function at the reaching of the end point of the player, to reload the url and replay the video, but it didn't work quite well as I expected, Could you please help me with this problem?

tedyage commented 4 years ago

Ah yes, I forgot to tell you that I tried to call the SeekbyRatio or SeekbyPosition function at the reaching of the end point, but it couldn't seek back to the beginning of the video and some error logged out.