Skip to content

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

@nsmith1024

Description

@nsmith1024

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions