You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: