Community
Topic: Android SDK
change position Button in video player (SOLVED)
hello
how to change position Button in video player
Hi,
using the provided rendering in the tutorial, the button position is defined within the VideoMesh class in the DrawMesh method using the translateMatrix.
For example, if you want to place the button at the center of the marker, you can do this:
float [] translateMatrix = new float [16];you can change the various values to position the icon where you want it.
RenderUtils.matrix44Identity (translateMatrix);
// scales at bit
translateMatrix [0] = 0.67f;
translateMatrix [5] = 0.67f;
translateMatrix [10] = 1;
// translate a bit
translateMatrix [3] = 0.18f;
translateMatrix [7] = 0.0f;
translateMatrix [11] = -0.05f;
Best,