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

Retain last valid video frame whilst buffering up a new video

Open VOX-Neil opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Apologies if this is already do-able although I can't find a solution.

I am playing a video on a playlist player from an external url and then buffering another to play straight after. Sometimes it's not clear which video will be buffered next and so I'd like to retain the last frame of the previous video whilst the new video is being buffered. Currently I get a null texture as there isn't a valid texture while the new video is loading and therefore a blank screen which isn't ideal.

Describe the solution you'd like One way I've managed to do this is simply to cache the previous valid texture and use that if HasValidTexture() is null. I'm also doing the same with _flipY to ensure the correct vertical rotation. However, I'm not sure if this is the best solution or if it will work in all situations yet.

Ideally, an option on the playlist player or media player to retain the last frame would be great.

VOX-Neil avatar Oct 19 '21 19:10 VOX-Neil

Which platform(s) are you looking to support?

kahnivore avatar Oct 20 '21 10:10 kahnivore

Initially PC/UWP/Mac and then following up with iOS and Android

VOX-Neil avatar Oct 20 '21 11:10 VOX-Neil

duplicate of #621

Chris-RH avatar Jul 05 '23 13:07 Chris-RH