Video is not playing Audio

I have a Video with sound. I have attached it on a Cube to play before the Game starts.

however the audio is not playing only if i save it separately and drag it on to the cube. Than it is still out of sync.

here is the Code

function Start () {  
renderer.material.mainTexture.Play();
}

function Update(){
if(!renderer.material.mainTexture.isPlaying)
Application.LoadLevel("Scene_01_Gmaeplay");
}

Help needed Please

Also, what format will the Video need to be saved out. ex: mp4 or mov or ???

I think the following documentation page tells you pretty much everything you’ll need to know.

As Graham said read documentation before ask a question ^^

You can use my script to do that :

http://pastebin.com/rEAZ2LFq

Ok, I have figured out this problem that everyone is having.

its really simple.

render out your video with sound
make cube or plane
drag the movie onto the object with a new material assigned to it.
than grab your audio and also drag it onto the object.
In your inspector find “Audio Source” and just change the “Pan Level” to “0” and increase your priority Levels.
after you do all this the audio will match up the Video perfectly.

If you have any other question, please feel free to leave a Comment.

function Start () {  
renderer.material.mainTexture.Play();
}

function Update(){
if(!renderer.material.mainTexture.isPlaying)
Application.LoadLevel(1);
}

Code I used

You can add
[RequireComponent(typeof(AudioSource))]

before your C sharp class and it’ll tack on the audio with the video