Log in or register to post comments

How to insert more video?

April 22, 2013 - 2:55am #1

Hi, i need to know how to insert more video in VideoPlayback app. There is a guide?

I make new target and import xml in project but i don't know how to manage other video.

thanks

How to insert more video?

April 22, 2013 - 8:56am #6

can you search for autoplay?

 

N

How to insert more video?

April 22, 2013 - 7:13am #5

ok i resolve all.

the code that i attach is ok!!!

but if now i want to play automatic?

How to insert more video?

April 22, 2013 - 6:28am #4

but when i point the new target the app crash.

 

You need to debug it through xcode to try to find out what is going on in more detail, and then when you have some idea you can post to this forum and maybe somebody will be able to help you.

It is also worth searching the forums for NUM_VIDEO_TARGETS

e.g.   https://developer.vuforia.com/forum/ios/add-more-video-vuforia-videoplayback

 

N

 

 

How to insert more video?

April 22, 2013 - 5:37am #3

Hi, thanks.

I can change the two original video.

I need to insert another one.

i read also another post and make this change:

in EAGLView.h

 

   #define NUM_VIDEO_TARGETS 10

 

in VideoPlaybackAppDelegate.mm

 

    [qUtils addTargetName:@"Stones & Chips" atPath:@"test.xml"];

 

in VideoPlaybackAppDelegate.mm

 

        switch (i) {

            case 0:

                filename = @"aaa.m4v";

                break;

            case 1:

                filename = @"bbb.m4v";

                break;

              |

            case 8:

                filename = @"iii.m4v";

                break;

            default:

                filename = @"jjj.m4v";

                break;

        }

 

in EAGLView.mm

 

    const char* textureFilenames[] = {

        "icon_play.png",

        "icon_loading.png",

        "icon_error.png",

        "aaa.png",

            |

        "jjj.png"

    };

    

    enum tagObjectIndex {

        OBJECT_PLAY_ICON,

        OBJECT_BUSY_ICON,

        OBJECT_ERROR_ICON,

        OBJECT_KEYFRAME_1,

                      |

        OBJECT_KEYFRAME_10,

    };

 

in EAGLView.mm

 

        // VideoPlayerHelper to use for current target

        int playerIndex = 0;    // aaa

        if (strcmp(trackable->getName(), "bbb") == 0)

        {

            playerIndex = 1;

        }

|

        if (strcmp(trackable->getName(), "jjj") == 0)

        {

            playerIndex = 9;

        }

 

 

but when i point the new target the app crash.

How to insert more video?

April 22, 2013 - 4:05am #2

There is no step by step guide, but you have the source, so you need to go through this and understand how it works.

If you want to change the videos, look for where VuforiaSizzleReel_1 is used and work your way through about how to change it.

If you want to increase the number of simultaneous targets then search xcode for HINT_MAX_SIMULTANEOUS_IMAGE_TARGETS

 

HTH

N

 

Log in or register to post comments