ALTabletService¶
NAOqi Core - Overview | API
What it does¶
ALTabletService allows tablet operations. It can be used to:
- load web application, show a web page,
- play videos, show an image,
- manage the tablet itself (wifi, brightness).
Warning
Tablet screen density may vary without notice. This has an impact on browser display resolution.
Make sure your application remains compatible: create and use responsive content!
For further details, see: Browser display resolution troubleshooting.
ALTabletService is also a signal bridge between the web application running on tablet browser and NAOqi.
Getting started¶
In Choregraphe, try to use the boxes available in the Multimedia > Tablet box library.
For further details, see: Default Box libraries.
How to¶
To ... | Use ... |
---|---|
Display the html content of your behavior | ALTabletService::loadApplication |
Display a web page | ALTabletService::showWebview |
Execute javascript in a web page | ALTabletService::executeJS |
Play a video | ALTabletService::playVideo |
Display an image | ALTabletService::showImage |
Get the touch coordinates | ALTabletService::onTouchDown |
Troubleshooting¶
My content is not responsive, and is badly displayed on screen.
In order to be compatible with any current and future screen density and browser display resolution, you should do your best to create or select responsive content.
However, if it is note possible, you could solve density issue on one specific robot by adding this line in the head section of your content:
<meta name="viewport" content="width=1280, user-scalable=no" />
It will fix the resolution of the webpage to 1280px (current native resolution).