Log in or register to post comments

How to autoplay video

July 17, 2013 - 5:15am #1

i have few changes like :

1:

 private boolean         mShouldPlayImmediately      = true;

in VideoPlayerHelper.java

 

2: commentin for loop in VideoPlaybackRenderer.java

 

still not working ?

 

How to autoplay video

December 12, 2013 - 2:16am #8

How to autoplay video

July 18, 2013 - 5:30am #7

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:

https://developer.vuforia.com/resources/sample-apps/video-playback-sample-app

(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:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

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

Thanks for your understanding.

 

How to autoplay video

July 18, 2013 - 3:27am #6

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

 

Can u what exactly should i do ?

 

How to autoplay video

July 17, 2013 - 7:13am #5

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

VideoPlayerHelper.java

or

also in VideoPlayback.cpp

How to autoplay video

July 17, 2013 - 6:44am #4

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:

https://developer.vuforia.com/forum/faq/android-how-can-i-update-my-ui-response-tracking-events

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 - 6:28am #3

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:23am #2

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...

Log in or register to post comments