Forum Discussion
dhygns
6 years agoHonored Guest
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:
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 1 year ago
- 10 months ago