Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
dhygns's avatar
dhygns
Honored Guest
6 years ago

VideoPlayer has problem in Unity

whenever i try to play videoPlayer, it's shown as black texture with audio. 
and also sometimes, A videoPlayer shows the other videoPlayer's clip frozen.
Do you guys have any idea?

i simply coded like this : 
```
videoPlayer.clip = Resources.Load(path) as VideoClip
videoPlayer.Prepare();
videoPlayer.prepareCompleted += (player) => {
    player.targetTexture = new RenderTexture((int)player.width, (int)player.height, 0);
    player.Play();
}

```
Pretty surely, I'm using the targetTexture for rendering in the other script.
it works well in editor, but if i build into Oculus Quest, it doesn't work.

plz help me :neutral:
No RepliesBe the first to reply