Log in or register to post comments

Video Playback

February 13, 2013 - 8:02am #1

 

I am trying to use the Vuforia Video Playback sample app as the starting point for a university project. What I want to do is develop a small iOS based app that will recognise a target, that I define, and play a video of my choice over the target as per the sample app. I am brand new to Vuforia so I would really appreciate some help and guidance by way of a simple explanation of the following:

  1. Having created my own target dataset using the target manager and downloaded the .xml and .dat files, where do I have to update the sample app code in order for my target to be used rather than the Stones&Chips example?

  2. Once I have my target integrated, what sample app code do I need to modify to invoke my own video (either streamed from the web or stored locally on the iPhone) when my target is detected? As I said, I’m very new to this environment and find I learn best by examples so any help and guidance would be much appreciated…

Video Playback

February 26, 2013 - 1:46am #6

Hi Adam,

The first thing to do is check  NUM_VIDEO_TARGETS as there has to be a reason why it is dropping through the case statement.  If you can discover this then you can get to the root of the problem.

The other thing you can do is to check the dataset i.e. that the images are unique.  You could try this in the standard Image Targets app and check the teapot colours - this will be far quicker than doing it within the Video Playback sample.

Once you are sure about the dataset and everything else, the next thing is to trace it through the debugger and find out exactly why - there has to be a simple explanation.

HTH

N

 

Video Playback

February 25, 2013 - 9:31am #5

 

Hi NalinS , 

 

I recently followed the advice that you gave me and managed to create my own targets and download 2 markers within one XML file and DAT file. I then edited the Video Playback sample file by altering the line below: 

 

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

 

Once i had completed this i then tried to change the Media files by editing the line of code below: 

       switch (i) {

 

            case 0:

                filename = @"The Hobbit.mov";

                break;

            default:

                filename = @"VuforiaSizzleReel_2.m4v";

                break;

        }

After doing this, the app ran fine but when i hovered my phone over the markers it only presented "The Hobbit.mov" on both markers. Just wondering where im going wrong, as i would like each marker to show a different video. 

 

Hope this makes sense 

 

Thanks 

Adam 

Video Playback

February 18, 2013 - 1:15am #4

No problem - good luck with your development

Video Playback

February 15, 2013 - 1:44pm #3

HI NalinS

Thankyou very much for the help, if you dont mind i may have a few more questions to ask in the near future.

 Thanks Adam 

Video Playback

February 13, 2013 - 9:54am #2

Hi Harrisa504

Check out this thread as we had another new developer wanting advice as to where to start:

https://developer.vuforia.com/forum/ios/new-vuforia-i-need-some-directions

Unfortunately there is no shortcut  ;)

Definitely worth going over the SDK docs and the dev guide:  

https://developer.vuforia.com/forum/ios/new-vuforia-i-need-some-directions

 

As for your specific questions:

1 If you do a search for "Stones" in XCode you will find the following line:

 

    // Provide a list of targets we're expecting - the first in the list is the default

 

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

Simply substitute for your own dataset and it ought to work.  Note you need to vccreate your device database online, upload images and download the dataset.

2 In XCode in the resources tab you will find VuforiaSizzleReel_1 and other files of this type.  Again, simply substitute these and change any references accordingly and it should be able to play your videos after you have included them as part of the bundle.  Playing videos online is a bit more complex as they will only play full-screen.  There is a way around this if you donwload remote videos to the Documents directory you may be able to get them to play on a texture.

 

HTH

N

 

 

Log in or register to post comments