UnityStreamingMovieTexture icon indicating copy to clipboard operation
UnityStreamingMovieTexture copied to clipboard

Cant destroy UnityStreamingMovieTexture or tell it to play a different video

Open nsmith1024 opened this issue 8 years ago • 0 comments

Hello,

I'm having great difficulty with WebGLStreamingVideoPlugin in Unity, because i would like it to stop playing the current video, and start playing a new one from a new URL.

There seems to be no way to tell it to play a new video, and also no way to destroy the current instance in order to create a new instance to play a new video.

If you create a new instance without destroying the first, you end up with TWO video streams. Even if you call Stop(), it stops playback, but still continues to stream the video data from the internet in the background. So if you create another instance you end up with TWO video streams from the internet. If you create a third you end up with three and so on.

It seems impossible to delete an instance of WebGLStreamingVideoPlugin, since the class is not derived from monoBehavouir so cant call Destroy() on it, and C# doesn't have a way to delete it either.

So the only resolution seems to be able to tell it to stop playing the current video, and start playing a new URL.

Is there a fix for this because as it stands i see no way to play more than a single video.

Thanks, have a nice day!

nsmith1024 avatar Jan 22 '17 00:01 nsmith1024