"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Custom Video Playback: still sample video plays

So I'm using the VideoPlayback sample code and am trying to get a custom video to play when a Image Target is tracked. The target is tracked and a video is played on it, but unfortunately it isn't my custom video but one from the samples. What I did was the following: 

EAGLView.h:

#define NUM_VIDEO_TARGETS 3
#define NUM_AUGMENTATION_TEXTURES 6

 

EAGLView.mm

const char* textureFilenames[NUM_AUGMENTATION_TEXTURES] = {
        "icon_play.png",
        "icon_loading.png",
        "icon_error.png",
        "VuforiaSizzleReel_1.png",
        "VuforiaSizzleReel_2.png",
        "test.png"
    };

-(void)renderFrameQCAR {
[...]
int playerIndex = 0;    // stones
        
if (strcmp(imageTarget.getName(), "stones") == 0)
{
   playerIndex = 1;
}
else if (strcmp(imageTarget.getName(), "test") == 0)
{
   playerIndex = 2;
} [...]

 

VideoPlaybackAppDelegate.mm

- (void)applicationDidBecomeActive:(UIApplication *)application
{
    [...]
        NSString* filename;
        
        switch (i) {
            case 0:
                filename = @"VuforiaSizzleReel_1.m4v";
                break;
            case 2:
                filename = @"test.m4v";
            default:
                filename = @"VuforiaSizzleReel_2.m4v";
                break;
        }
}

Could anybody pls tell me what i am missing here?

Thanks in advance