Dynamically Loaded Movie Texture material won't play

I am Creating dynamically GameObjects in Unity3D and at the same time dynamically set the objects texture. I have no problem if the mainTexture is an image. I just used the WWW class and load (file//: + path) and it textures the objects. Same is the process with a video asset but it wont play and only display black texture. I tried loading first .mp4 format and so I found out that Unity converts Import video to .ogg so I converted the video to .ogg but the situation is still the same.

I don’t know what is wrong? Please tell me.

Below is my script snippet

 string url = @"file://C:/Users/PCNAME/Desktop/sample/3d/sample.ogg";

// Use this for initialization
void Start () {

    //Creation of GameObjects
    WWW www = new WWW(url);

    GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
    plane.transform.position = new Vector3(0, 0, 0);
    plane.transform.rotation = new Quaternion(0, 0, 0, 0);

    plane.renderer.material.mainTexture = www.movie;
    // GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
   // cube.transform.position = new Vector3(0, 0.5F, 0);

    GameObject quad = GameObject.CreatePrimitive(PrimitiveType.Quad);
    quad.transform.position = new Vector3(0, 0, 0);
    quad.transform.rotation = new Quaternion(0, 0, 0 ,0);
    quad.renderer.material.mainTexture = www.movie;



The documentation shows the correct way to load and play movie textures. You’re not yielding.