Hi guys i am trying to play vertical video on target.
// Get the video width and height
int videoWidth = mVideoPlayer.GetVideoWidth();
int videoHeight = mVideoPlayer.GetVideoHeight();
if (videoWidth > 0 && videoHeight > 0)
// Scale the video plane to match the video aspect ratio
float aspect = videoHeight / (float) videoWidth;
// Flip the plane as the video texture is mirrored on the horizontal
transform.localScale = new Vector3(-0.1f, 0.1f, 0.1f * aspect);
This is part of code to change. Anyone help me pls ?