A web server is built in to the standard android player software. This web server can be accessed using a web browser on your local network.
The local web server provides several useful functions:
- Live logs — View local log entries as they occur in your web browser.
- Player state — Query local screen data via JSON API. Access GPS, Analytics and other data.
- Trigger — Trigger a configured API event action.
- Blobstore — View items stored on the local device.
- Reboot — Instructs a rooted device to reboot.
The internal web server is not started by default. To enable the internal web server, add the following into screen data.
localWebServerPort=9090
This starts the web server listening on port 9090. The following addresses will then become available:
http://[local-ip-address]:9090/log
Streams live log output.http://[local-ip-address]:9090/player-state
Displays current player state (screen data).http://[local-ip-address]:9090/blobstore/
Display contents of local blobstore with links to downloaded media.http://[local-ip-address]:9090/trigger?name=example
Triggers a configured event action.http://[local-ip-address]:9090/reboot
Reboots the device. (Rooted device and android-player-27.0.apk or later required).
The local-ip-address
can be found in the localAddress
field within screen data.
The internal web server is only available in android-player-21.0.apk and later.
Please note, GLPlayer includes a complete web based administration system that automatically runs on port 9097 and the localWebServerPort setting is ignored.
Comments
0 comments
Please sign in to leave a comment.