DS Loader provides a platform for loading software. Usually this will be a digital signage player but can potentially be anything.
Custom players for the Android platform must implement the following methods:
void start(Context context)
void setLoaderData(Map<String, String> data)
The Context
is an Activity
or a DreamService
. The custom player must call setContentView(View v)
in the Context
to draw to the screen.
The method setLoaderData()<String, String> data)
receives data and commands from the loader e.g. URL to download sequence data, etc.
The loader control communications is designed to instigate secondary communications mechanisms such as JSON data transfer over HTTP. The virtual persistent UDP connection enables the server to instantly send messages to DS Loader and (indirectly) to player software at any time.
To add additional software to the list of players in the interface the following data must be added to a cloud config.
player_android_0=custom-player-0.3.jar,com.example.player.CustomPlayer
custom-player-0.3
. When selected, the server will instruct DS Loader to download custom-player-0.3.jar
and call start()
in the class with the name com.example.player.CustomPlayer
.
Comments
0 comments
Please sign in to leave a comment.