Start a new topic

Open ARWorld within existing application

Open ARWorld within existing application

1 person has this problem


Hi,

I want to open wikitude's world.html within my application and not launching separate html on top of my app.

Currently it works like following line for me

WikitudePlugin.loadARchitectWorld("assets/www/default/ARworld/index.html");

How would I be able to open the ARworld within my current html page?

Thanks,

Nisha

1 person likes this

Hello Nisha,

The only way you can do this is by loading your current html page with the WikitudePlugin and implement the AR-Experience there.

Hope that helps,
Christian
 

Hi Christian,

Is it possible to control size of the camera view opened in ar world?

I don't want to open it in full screen..

Thanks,

Nisha

1 person likes this

Hi there!

The size of the AR-view is static and set inside the native code of the plugin.
Compare

(this.cordova.getActivity()).addContentView( this.architectView, new ViewGroup.LayoutParams
( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT ) );

inside the Android Code of the WikitudePlugin, by default it is fullscreen (MATCH_PARENT) - Not sure why you don't want it to be fullscreen but feel free to play around with it but notice that possible issues caused by this cannot be handled by the Wikitude SDK/Plugin support.

Kind regards,
Andreas
Login or Signup to post a comment