Hi there,
I have an issue with the video player, when i press play it plays the sound but no video is shown.
It shows in the preview window but not on the raw image!
RenderTexture text;
public VideoPlayer player;
public RawImage image;
public AudioSource audioSource;
void Start()
{
text = new RenderTexture((int)player.clip.width, (int)player.clip.height, 0);
player.targetTexture = text;
player.renderMode = VideoRenderMode.RenderTexture;
image.texture = text;
Vector3 scale = image.transform.localScale;
image.transform.localScale = scale;
player.audioOutputMode = VideoAudioOutputMode.AudioSource;
player.SetTargetAudioSource(0, audioSource);
player.source = VideoSource.VideoClip;
player.Play();
}
This is what i am using to play the video.
Does anyone know why this is happening.
