audio source speeding up video

I am calling a video with an audio source, when the audio is turned off the video plays perfectly. When the audio plays, it speeds up as if it were on fast forward (video as well as audio). It is the same pitch, so it is not sped up, really, just on fast forward. Any ideas why this might happen and how to correct it?
Here is the code I am using to call it-

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
[RequireComponent (typeof(AudioSource))]

public class playVideo : MonoBehaviour {

public MovieTexture movie;
public AudioSource audio;
public bool playVid = false;

void Start () 
{
	{
					GetComponent<RawImage> ().texture = movie as MovieTexture;
					audio = GetComponent<AudioSource> ();
					audio.clip = movie.audioClip;
	}



}

void Update()
{
			if (playVid == true) {

					movie.Play ();
					audio.Play ();  
			} else {
					movie.Pause ();
					audio.Pause ();
			}
	
	
}


public void playIt()
		{
			playVid=!playVid;


		}

}

Many thanks!

Firstly you should get MovieTexture movie like this

movie = GetComponent<RawImage> ().texture as MovieTexture;

then your problem :
you are calling Play() again and again thats why it is happening, you should instead do like this

void Update()
{

if (playVid == true) {
if(!movie.isPlaying){
movie.Play ();
audio.Play ();  
}
} else {
movie.Pause ();
audio.Pause ();
}

}

Hope your problem is Fixed :slight_smile: