Log in or register to post comments

Overlay video over target image

April 24, 2012 - 3:11am #1

Hi Experts,

I have Dominoes as the reference and I'm able to play video in a VideoView in a separate activity. I am interested in showing this in a overlay view. Also, I would like to limit the bounds of the video view to the tracked image.

Please advice.

Best regards,
Lucky

Overlay video over target image

November 12, 2012 - 6:53am #14

Just to clarify a bit:

as ppreuss said, the video on texture only works on Android 4.0 (ICS) and above;

the reason for this is that on the Android side it requires the class SurfaceTexture and (on the OpenGL side) the GL_EXTERNAL_TEXTURE_OES extension;

theoretically, SurfaceTexture and GL_EXTERNAL_TEXTURE_OES have been introduced in Android 3.0 (Honeycomb), i.e. API level 11.

However, they practically work as of Android 4.0 (ICS), i.e. API level 14 and above.

So, for anything below ICS, the Video on texture will not work, as the APIs above is not available; in such a case, the VideoPlayback sample can still work in fullscreen mode, but not in textured mode.

 

 

Overlay video over target image

November 12, 2012 - 5:06am #13

What is the vuforia SDK you are talking about? I have imported the unity package..... and also the videoplayback package from asset store...what else is require? I am also getting the same error

Overlay video over target image

September 22, 2012 - 6:46pm #12

Is there a tutorial or guide for this? I find myself finding answeres in different threads.

Overlay video over target image

June 26, 2012 - 12:29pm #11

Hello,

Playing the video on texture is only available on Android 4.0 and later.

Thank you,

-Peter

Overlay video over target image

June 26, 2012 - 3:08am #10

Hey Peter,

Thanks for sharing the sample, I'm able to build it on 4.0. When running this on Android 2.3.3, the video runs in full screen mode. 

Please guide me on overlaying the video on the tracker image for Android 2.3.+ devices as well.

Best regards,

Lucky

Overlay video over target image

June 21, 2012 - 5:02pm #9

Hello,

You will need a device running Android ICS to see the video on target with our sample.

Thank you,

-Peter

Overlay video over target image

June 21, 2012 - 4:28pm #8

Work great. Can I play the video rigth in the image targe, where they are, not in Full screen, can I do that?

Overlay video over target image

June 21, 2012 - 3:35pm #7

Please also import the Vuforia SDK into your project that you have imported the Video tutorial into. This will correct the error and allow your application to run on your android device.

Thank you,

-PEter

Overlay video over target image

June 21, 2012 - 3:22pm #6

Unity error (Assets/Scripts/TrackableEventHandler.cs(23,38): error CS0246: The type or namespace name `ITrackableEventHandler' could not be found. Are you missing a using directive or an assembly reference?)

 

What should be?

Overlay video over target image

June 21, 2012 - 1:10pm #5

Hello. Please see the Unity sample in my post to see how to display a video on the target in Unity.

Thank you,

-Peter

Overlay video over target image

June 21, 2012 - 12:11pm #4

Cam you put pre recorded video in the image targer, or over a plane, im Unity Vuforia Android?

Overlay video over target image

June 20, 2012 - 5:02pm #3

We are pleased to announce the release of the Vuforia Video Playback sample app. This app is available for native Android and in Unity for iOS and Android. The Android sample app can be found here. The Unity sample for iOS and Android can be found here.

Re: Overlay video over target image

May 14, 2012 - 5:08am #2

Hi,

I'm still looking for an answer to this question. Please help.
I'm trying to do following:
public class OverlayVideoView {

private Activity home;
private View overlayView;
public OverlayVideoView(Activity home, View overlayView){
this.home = home;
this.overlayView = overlayView;

playVideo();
}

private void playVideo() {
VideoView videoHolder = new VideoView(home);

MarginLayoutParams mparam = new MarginLayoutParams(200, 200);
mparam.setMargins(200, 200, 0, 0);

LayoutParams params = new LayoutParams(mparam);
home.addContentView(videoHolder, params);

// videoHolder.setLayoutParams(params);
// videoHolder.requestLayout();

videoHolder.setZOrderMediaOverlay(true);
videoHolder.setZOrderOnTop(true);

Uri video = Uri.parse("android.resource://" + home.getPackageName() + "/"
+ R.raw.royalstag);

videoHolder.setVideoURI(video);
videoHolder.start();

}

This adds a VideoView to the OverlayView. However, I'm not able to make the VideoView move as the image moves in the camera screen.

Please advise.

Best regards,
L

Log in or register to post comments