Skip to content

lanikai/alohartc

Repository files navigation

AlohaRTC

Real-time communication with embedded cameras, natively within the browser

Building

First, download dependencies:

make get

To cross-compile for a Raspberry Pi Model 3B/3B+ (armv7-based architecture):

make

To cross-compile for a Raspberry Pi Zero (armv6-based architecture):

GOARM=6 make

To build for production:

GOFLAGS="-tags=production" make

Quickstart

Build code as above, then transfer alohacam to Raspberry Pi and run. Open http://<target>:8000 in browser. This should start a live video stream from Raspberry Pi.

Notes

Ensure camera is enabled on Raspberry Pi and that v4l2 module is loaded.

Modify /etc/modules as follows:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

bcm2835-v4l2
...

Modify /boot/config.txt as follows:

boot/config.txt
...
start_x=1
gpu_mem=128