Start a new topic

Open Link in Browser (solved)

Open Link in Browser (solved)


Hey!

I posted about my problems on testing a world with a slideshow and video. Now i have to finish the world in any way..

So i would like to link to youtube and a website. But youtube always opens in the wikitude browser. When i go back the world is closed.

How can i open a link in the browser/youtube-app?


            onClick : function( drawable, model_part ) {
                switch(model_part)
                {

                    case 'Video':
                        window.location = "https://www.youtube.com/watch?v=_U_n7HMLsp0";
                        break;
                }
            }

 

hey, thanks!

I read the docs.. but i don't get it. I am not so familiar with the JS-Syntax.

Is there an example somewhere?
 

EDIT: Ok, its simpler than i thought :)
AR.context.openInBrowser("https://www.youtube.com/watch?v=xyz");

Please use AR.context.openInBrowser for that purpouse (compare documentation).

Best regards
Login or Signup to post a comment