Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Application Flow (Live streaming)


How to Connect:

To view live streaming video from rpi-camera in your mobile mobile you need to follow the below steps

Step 1: Please download the app-release.apk and install in your android device

Step 2: Please follow the steps from this URL to start R-PI camera client and peer connection server

Step 3: After successful completion of step 2, Navigate to Open_WebRTC/openwebrtc-m72/out/Default and ./peerconnection_server hit Enter to start the server

Step 4: SSH into R-PI and enter "./peerconnection_client" which asks for the server IP & Enter Server IP (Your machine IP where peerconnection_server is running) and port number as 8888.

Console
root@raspberrypi3-rdk-camera:~# peerconnection_client 
Inside constructor CustomSocketServer().....
Initialized thread...
"Registering PeerConnectionClient::RegisterObserver()" 
Enter server IP Address 

Step 5: Open your mobile app and click on scan in live-feed page to get the list of cameras in your network.

Step 6: Select the camera you want to watch the live feed.

Note: Make sure your R-PI board and mobile app should be in the same network.

Mobile App Features

Following are the mobile application features.

...

Note: To view the list of available cameras in the network user should configure the Server IP and Port in Settings tab > Server IP option


Connection Setup:  To make this application work we need to run the server as well. To run the server in the local PC we need to clone the OpenWebRTC code and build the code, To build the OpenWebRTC code please execute the below commands in terminal

...

LiveFeed:  Lists the available camera connections in your network. Click on any camera name to view the live streaming

Image Added

Live Streaming: Playing live streaming video from rpi camera in the mobile app

After successfully completing the above steps navigate to openwebrtc-m72/out/Default

Enter ./Peerconnection_server and hit enter to run the local server.

Next you need to have RPI Camera image embedded with the openwebrtc peerconnection_client binaries (which are located while building openwebrtc code inside out/default folder)

SSH into RPI which is connected with Camera and start the RPI peer connection client and Enter the Local server IP address, port number which is 8888.

Image Removed 

Once RPI connected to server, Open mobile application click SCAN button in the LiveFeed page to get the list of available Cameras Connected to your local server.

Image Removed

Select the camera from populated list and it'll navigate to the live streaming page which contains video player, playing live stream from RPI Camera.


Recordings: In this user can select the specific option such as today, last week and custom range to view the list of recordings stored in the cloud under logged in user id or user name. For custom user should suppose to select start and end date to get the list of recordings. In the list of recordings user can able to see the recording name, recording date and duration of recording.

...