Log in or register to post comments

How to autoplay video

July 17, 2013 - 5:15am #8

i have few changes like :


 private boolean         mShouldPlayImmediately      = true;

in VideoPlayerHelper.java


2: commentin for loop in VideoPlaybackRenderer.java


still not working ?


How to autoplay video

July 17, 2013 - 6:23am #7

Sorry, what is it that you are trying to achieve with those code changes ?

without context, it is hard to understand what is your specific issue...

How to autoplay video

July 17, 2013 - 6:28am #6

i want that video starts  playing automatically without need to press pay button as soon as target image gets detected


How to autoplay video

July 17, 2013 - 6:44am #5

Ok, so, first you need to understand how a custom action can be performed in response to the a target getting detected; this article explains how to achieve that by showing a simple example of displaying a message in response to a target detection event:


starting from the article above, in your case, instead of just showing a message on the screen,  you will simply need to trigger the playback of the video associated to that target.

Note: this is pure application logic, once you have familairized with the first part of the problem (as I explained above), then there is nothing specific to the Vuforia SDK for playing a video (note: the sample just uses the MediaPlayer class of the Android SDK; have a look at the VideoPlayerHelper class in particular).


How to autoplay video

July 17, 2013 - 7:13am #4

ok in my have have i to make chages in only in



also in VideoPlayback.cpp

How to autoplay video

July 18, 2013 - 3:27am #3

tried to do some customization in VideoPlayback.java stil not sucess .


Can u what exactly should i do ?


How to autoplay video

July 18, 2013 - 5:30am #2

Recommended Steps:

- first try to study and understand the current sample code (both the C++ code and the Java code), in all its major aspects: this article (which is available in our developer guide) can help you significantly with this task:


(see the sub-section "Sample Specific Notes" at the bottom of the page)

- then try to reuse the concepts and code snippet that are presented in the other article I was pointing you to:


The rest is about programming, we cannot write the application code for you.

Thanks for your understanding.


How to autoplay video

December 12, 2013 - 2:16am #1
Log in or register to post comments