Log in or register to post comments

Help Needed

April 9, 2013 - 11:08pm #1

Hi.. i customized  videoplayback sample app to my database and own videos and images.. Application is running well.. now what i want is when the video is playing on the texture if we tap means it will pause.. i don't want to pause the video instead of that i want to load url of that video in browser.  

 Intent viewIntent = new Intent(Intent.ACTION_VIEW,
                                         Uri.parse("www.google.com"));

 

i gave the above code in isplayedon texture function.. but my application is froce closing .. can anyone suggest me how to achieve this.. please provide details .. 

Help Needed

April 11, 2013 - 8:07am #10

Hi Ram95,

if I understand correctly, you want to open a web page, but also play the video in fullscreen at the same time ?

 

Help Needed

April 11, 2013 - 4:49am #9

hi, when it is double tapped the media control is goes to  system player control so how do we control that time  player again tapped once it goes to another URL

Help Needed

April 11, 2013 - 4:35am #8

Hi, this is already shown in the VideoPlayback sample, except that the sample plays the fullscreen video for an "on-double-tap" event (instead of the onSingleTap);

just check the code in VideoPlayback.java and you should be able to do that.

 

Help Needed

April 11, 2013 - 3:13am #7

Ya... its playing in full screen ... can i load url when video tapped in full screen mode?? if can how can i?

I tried calling onsingletapconfirmed().  But when i double tap it directly loads url.. not entering into fullscreen..pls suggest me.

Help Needed

April 11, 2013 - 2:37am #6

second help is it possible to play the video after removing the camera from recognized image ?

yes, if you don't need to render the video on texture (i.e. if you just play it fullscreen, after detecting it).

 

Help Needed

April 11, 2013 - 2:33am #5

Hi ... i need one more help from you.. if i single tap the video in fullscreen mode means my url has to load ... second help is it possible to play the video after removing the camera from recognized image ?

 

 please reply me ..

Help Needed

April 11, 2013 - 12:28am #4

you're welcome.

Help Needed

April 10, 2013 - 2:29am #3

Thanks a lot ... 

Help Needed

April 10, 2013 - 1:16am #2

Hi,

you need to correct the Uri from "www.google.com" to "http://www.google.com"  (the http:// part is fundamental)

Then, this is an example code to do that (in this case I trigger it from the onDoubleTap, but you can also put the code in your onSingleTap if you like):

 /** Handle the double tap */
            public boolean onDoubleTap(MotionEvent e)
            {
                // Do not react if the StartupScreen is being displayed:
                if (mStartScreenShowing)
                    return false;

                for (int i = 0; i < NUM_TARGETS; i++)
                {
                    // Verify that the tap happens inside the target:
                    if (isTapOnScreenInsideTarget(i, e.getX(), e.getY()))
                    {
                    	
                    	// pause all videos
                    	pauseAll(-1);
                    	
                    	
                    	Intent intent = new Intent(Intent.ACTION_VIEW, 
                                     Uri.parse("http://www.google.com"));
                    	startActivity(intent);

                        // Even though multiple videos can be loaded only one 
                        // can be playing at any point in time. This break 
                        // prevents that, say, overlapping videos trigger 
                        // simultaneously playback.
                        break;
                    }
                }

                return true;
            }

 

Log in or register to post comments