Android camera

-------- THIS FEATURE IS IN ACTIVE DEVELOPMENT AND NOT FINISHED. PLEASE CONTACT SUPPORT@EEN.COM IF YOU WANT TO USE THIS ---------

Installation guide

Importing dependencies into your project

Mobile SDK is built using the following frameworks: Retrofit, OkHttp, RxJava/RxAndroid, and Gson. In order to use SmartphoneCameraStreamerSDK you should import the following frameworks as well:

Importing SmartphoneCameraStreamerSDK into your project

1. Add smartphonecamerastreamer.aar file to your project (libs directory).

2. Add the next lines at the build.gradle file where you plan to use it:



3. Add request for following app permissions:

Process overview

To start streaming, the following actions need to be taken:

  • The user installs the app containing the SDK on their phone
  • The app gets the camera credentials and sends this to the partner’s backend.
  • Partner’s backend registers camera with Cameramanager backend
  • Partner’s backend reports back to app that camera has registered
  • App starts streaming
  • App stops streaming

Below, a few more details on some of these steps:

Getting the credentials to register the camera with the CameraManager backend

Registering a camera with the CameraManager backend

This also adds it to a defined zone, so if there is no zone yet in the account, it needs to be created beforehand using the TODO: INSERT LINK TO ZONE API HERE API.
Add a camera to your zone in backend using the zone ID, hardware ID, username and password using the TODO: INSERT LINK TO CAMERA API HERE API. The "deviceTypeId" field should be set to “10031”.

Keep the following in mind:

  • Keep information about user and hardware ID in the backend
  • A Hardware ID can be added only to one account
  • If the user changes the hardware ID (for example: uninstall and install the app) you need to remove the camera in the backend too. 

Start stream in app

Example code:

Downloads

SmartphoneCameraStreamer SDK

Version Download Release notes Description
1.0.0 sdk-v1.0.0.zip Initial release of SmartphoneCameraStreamer SDK The archive contains the AAR file that should be imported into the Application project

Demo application

Version Download Release notes Description
1.0.0 sample-app-v1.0.0.zip.zip Initial release containing SmartphoneCameraStreamer SDK The archive contains the Demo App project with SDK files