Flussonic Watcher documentation

Contents

The Demo App

The demo app gives usage examples for the most part of the functionality provided in FlussonicWatcherView and FlussonicThumbnailView components.

The demo app for Android is available at https://github.com/flussonic/flussonic-watcher-sdk-android/tree/master/example

The script build.gradle contains the parameters for connection to a test Watcher server with cameras:

buildConfigField "String", "SERVER", "\"https://cloud.vsaas.io\""
buildConfigField "String", "LOGIN", getCredentials("LOGIN", "\"demo\"")
buildConfigField "String", "PASSWORD", getCredentials("PASSWORD", "\"demo\"")

The package data.network contains the API for authorization and getting the list of cameras.

The packages presentation.camera and presentation.camera_list contain usage examples of FlussonicWatcherView and FlussonicThumbnailView components, wiht comments.

Pay special attention to the methods:

  • CameraActivity#setupWatcher (about setting up FlussonicWatcherView)

  • CameraActivity#onOptionsItemSelected (about the use of FlussonicWatcherView)

  • CameraViewHolder#bind.