Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant destroy UnityStreamingMovieTexture or tell it to play a different video #2

Open
nsmith1024 opened this issue Jan 22, 2017 · 0 comments

Comments

@nsmith1024
Copy link

nsmith1024 commented Jan 22, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant