By rassall_jubair
on Wed, 06/20/2012 - 17:07
Dear All,
I trying to find the way to call video function from native(JNI). I already implemented the video using android SDK API demo in imagetarget example. If I press menu(i.e auto focus), the video play using media player. But now I want when the marker detect video should auto play. My coding is here to play the video from menu:
imagetargets.java:
public boolean onOptionsItemSelected(MenuItem item)
{
if(item.getTitle().equals("Toggle flash"))
{
Intent intent = new Intent(this,MediaPlayerDemo_Video.class);
intent.putExtra(MEDIA, LOCAL_VIDEO);
startActivity(intent);
}
Now how I call this intent function from native(imagetargets.cpp) so that marker detect and play the video.
Please help me ...
Regards
Rassall
Re: How to call from native to play the video clips..
Re: How to call from native to play the video clips..
Re: How to call from native to play the video clips..
How to call from native to play the video clips..
I used the similar method in VirtualButtons, i would like to play a video when the user press the virtual button, but it doesn't work in this scenario. Below is my code:
VirtualButtons.cpp
How to call from native to play the video clips..
Check same question here:
https://developer.vuforia.com/forum/android/adding-virtual-buttons-videoplayback
Re: How to call from native to play the video clips..