Hey just wondered if someon can help, Im playing videos in GUILabel using this code:
var m : MovieTexture;
public var VideoCall : String;
var Main_Camera : Camera;
var Map_Camera : Camera;
var Video_Camera : Camera;
function OnGUI () {
GUI.Label (Rect (400,100,450,150),m);
Main_Camera.enabled = false;
Map_Camera.enabled = false;
Video_Camera.enabled = true;
RequireComponent(AudioSource);
audio.clip = m.audioClip;
audio.maxVolume = 25;
audio.minVolume = 20;
audio.volume = 20;
m.Play();
Invoke("LoadNewLevel", audio.clip.length);
}
So the video plays for the length of the sound then the camera is changed.
The problem is im using the same code for 3 of my videos and on the 3rd video at completely different points the sound disapears.
and for a video i have which appears on a collision there is no sound at all.
Anyone have any ideas?
Any help would be brilliant.
i have a similar issue in the video previewer, if i loop the video after 2 loops the sound disapears.