How to use a RawImage with Simple MovieTextures for Unity WebGL

Hello

In my project i’m using a RawImage to play videos with the asset “Simple MovieTextures for Unity WebGL” (WebGLMovieTextures) on GUI.

The problem is: On MovieTexture the old WebPlayer works well, but on WebGLMovieTextures in RawImage i get only audio.

Can you help me with this issue. Or show me how to use in a RawImage?

I tried both ways, this:

movie = new WebGLMovieTexture("StreamingAssets/videos/video_name.mp4");
GetComponent<RawImage> ().material = new Material (Shader.Find("Diffuse"));
GetComponent<RawImage> ().material.mainTexture = movie;
movie.Play ();

and this:

movie = new WebGLMovieTexture("StreamingAssets/videos/video_name.mp4");
   GetComponent<RawImage> ().texture = movie;
    movie.Play ();

with no success…

You have not explained the way you fixed this well enough

In the answer you posted regarding your question, it says:
WebGLMovieTextureUpdate(m_Instance, m_Texture.GetNativeTextureID());
To
WebGLMovieTextureUpdate(m_Instance, m_Texture.GetNativeTexturePtr().ToInt32());

why did you input a 32 int in the corrected line? why did you change ID to Ptr()?