Log in or register to post comments

Video PlayBack sdk 5-0-5 Question

November 26, 2015 - 5:16am #1
Video playback sdk 5, se puede leer 400 targets con 1 video para cada targets y cual es el precio o se cobra por targets leidos.
formas de ver los videos de forma online o integrados en la app de estas dos formas se puede integrar en ios y android?

Video PlayBack sdk 5-0-5 Question

November 30, 2015 - 6:48am #5

show achieved six targets, but managed to add more and someone managed to read more than 6 targes play back video.

   if (imageTarget.getName().equals("dove"))            

            	currentTarget = VideoPlayback.DOVE;
            else if (imageTarget.getName().equals("shell"))
               currentTarget = VideoPlayback.SHELL;
            else if (imageTarget.getName().equals("start"))
            	currentTarget = VideoPlayback.START;
            else if (imageTarget.getName().equals("playboy"))
            	currentTarget = VideoPlayback.PLAYBOY;
            else if (imageTarget.getName().equals("mustang"))
            	currentTarget = VideoPlayback.MUSTANG;                                                                                                              else
                currentTarget = VideoPlayback.LINUX; 

 

 

thanks.

Video PlayBack sdk 5-0-5 Question

November 26, 2015 - 1:17pm #4

Make the following changes to display a third video, the problem is that the third video Reconce me and I want to try to add more than 4 views and be increasing this but is not displayed correctly.

 

VideoPlayback.java

// Movie for the Targets:
    public static final int NUM_TARGETS = 3;
    public static final int DOMINO = 0;
    public static final int TELEPIZZA = 1;
    public static final int MACDONALCS =2;
        mMovieName[DOMINO] = "VideoPlayback/VuforiaSizzleReel_1.m4v";
        mMovieName[TELEPIZZA] = "VideoPlayback/VuforiaSizzleReel_2.m4v";
        mMovieName[MACDONALCS] = "VideoPlayback/Leandrosedisfrazadeprincesa.mp4";

 

VideoPlaybackRender.java

keyframeQuadAspectRatio[VideoPlayback.DOMINO] = (float) mTextures
            .get(0).mHeight / (float) mTextures.get(0).mWidth;
        
        keyframeQuadAspectRatio[VideoPlayback.TELEPIZZA] = (float) mTextures.get(1).mHeight
            / (float) mTextures.get(1).mWidth;
        
       keyframeQuadAspectRatio[VideoPlayback.MACDONALCS] = (float) mTextures.get(2).mHeight
                / (float) mTextures.get(2).mWidth;
if (imageTarget.getName().compareTo("domino") == 0)            
            	currentTarget = VideoPlayback.DOMINO;
            else if (imageTarget.getName().compareTo("telepizza") == 1)
               currentTarget = VideoPlayback.TELEPIZZA;
			else
                currentTarget = VideoPlayback.MACDONALCS;

 

if (imageTarget.getName().compareTo("domino") == 0)
                    GLES20.glVertexAttribPointer(videoPlaybackTexCoordHandle,
                        2, GLES20.GL_FLOAT, false, 0,
                        fillBuffer(videoQuadTextureCoordsTransformedStones));
                
                else if(imageTarget.getName().compareTo("telepizza") == 0)
                    GLES20.glVertexAttribPointer(videoPlaybackTexCoordHandle,
                            2, GLES20.GL_FLOAT, false, 0,
                            fillBuffer(videoQuadTextureCoordsTransformedStones));
                
                else
                    GLES20.glVertexAttribPointer(videoPlaybackTexCoordHandle,
                        2, GLES20.GL_FLOAT, false, 0,
                        fillBuffer(videoQuadTextureCoordsTransformedChips));

 

 

    if (target == VideoPlayback.DOMINO)
        {
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedStones[0],
                videoQuadTextureCoordsTransformedStones[1],
                videoQuadTextureCoords[0], videoQuadTextureCoords[1], mtx);
            videoQuadTextureCoordsTransformedStones[0] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedStones[1] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedStones[2],
                videoQuadTextureCoordsTransformedStones[3],
                videoQuadTextureCoords[2], videoQuadTextureCoords[3], mtx);
            videoQuadTextureCoordsTransformedStones[2] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedStones[3] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedStones[4],
                videoQuadTextureCoordsTransformedStones[5],
                videoQuadTextureCoords[4], videoQuadTextureCoords[5], mtx);
            videoQuadTextureCoordsTransformedStones[4] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedStones[5] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedStones[6],
                videoQuadTextureCoordsTransformedStones[7],
                videoQuadTextureCoords[6], videoQuadTextureCoords[7], mtx);
            videoQuadTextureCoordsTransformedStones[6] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedStones[7] = tempUVMultRes[1];
        } else if (target == VideoPlayback.TELEPIZZA)
        {
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedChips[0],
                videoQuadTextureCoordsTransformedChips[1],
                videoQuadTextureCoords[0], videoQuadTextureCoords[1], mtx);
            videoQuadTextureCoordsTransformedChips[0] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedChips[1] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedChips[2],
                videoQuadTextureCoordsTransformedChips[3],
                videoQuadTextureCoords[2], videoQuadTextureCoords[3], mtx);
            videoQuadTextureCoordsTransformedChips[2] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedChips[3] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedChips[4],
                videoQuadTextureCoordsTransformedChips[5],
                videoQuadTextureCoords[4], videoQuadTextureCoords[5], mtx);
            videoQuadTextureCoordsTransformedChips[4] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedChips[5] = tempUVMultRes[1];
            tempUVMultRes = uvMultMat4f(
                videoQuadTextureCoordsTransformedChips[6],
                videoQuadTextureCoordsTransformedChips[7],
                videoQuadTextureCoords[6], videoQuadTextureCoords[7], mtx);
            videoQuadTextureCoordsTransformedChips[6] = tempUVMultRes[0];
            videoQuadTextureCoordsTransformedChips[7] = tempUVMultRes[1];            
        }else if (target == VideoPlayback.MACDONALCS) 
        {
        	tempUVMultRes = uvMultMat4f(
                    videoQuadTextureCoordsTransformedChips[0],
                    videoQuadTextureCoordsTransformedChips[1],
                    videoQuadTextureCoords[0], videoQuadTextureCoords[1], mtx);
                videoQuadTextureCoordsTransformedChips[0] = tempUVMultRes[0];
                videoQuadTextureCoordsTransformedChips[1] = tempUVMultRes[1];
                tempUVMultRes = uvMultMat4f(
                    videoQuadTextureCoordsTransformedChips[2],
                    videoQuadTextureCoordsTransformedChips[3],
                    videoQuadTextureCoords[2], videoQuadTextureCoords[3], mtx);
                videoQuadTextureCoordsTransformedChips[2] = tempUVMultRes[0];
                videoQuadTextureCoordsTransformedChips[3] = tempUVMultRes[1];
                tempUVMultRes = uvMultMat4f(
                    videoQuadTextureCoordsTransformedChips[4],
                    videoQuadTextureCoordsTransformedChips[5],
                    videoQuadTextureCoords[4], videoQuadTextureCoords[5], mtx);
                videoQuadTextureCoordsTransformedChips[4] = tempUVMultRes[0];
                videoQuadTextureCoordsTransformedChips[5] = tempUVMultRes[1];
                tempUVMultRes = uvMultMat4f(
                    videoQuadTextureCoordsTransformedChips[6],
                    videoQuadTextureCoordsTransformedChips[7],
                    videoQuadTextureCoords[6], videoQuadTextureCoords[7], mtx);
                videoQuadTextureCoordsTransformedChips[6] = tempUVMultRes[0];
                videoQuadTextureCoordsTransformedChips[7] = tempUVMultRes[1];
		}

 

 

Video PlayBack sdk 5-0-5 Question

November 26, 2015 - 11:29am #3
Thank you,
and load 400 targets with video loaded in the app to be read, only what I have achieved and 3 can be performed with a larger amount, read 400 targets

Video PlayBack sdk 5-0-5 Question

November 26, 2015 - 10:33am #2
Log in or register to post comments