Illustrates use of YI 4K action camera Java API. This demo application connects to a YI 4K camera over wifi and continuously records 10 second videos.
- Make sure your camera's serial number starts with
Z16V13L
- Install custom firmware by downloading
firmware_1.10.50.bin
from psolyca/Yi_4k_ROOTFS, renaming the file tofirmware.bin
, copying it to the root of your SD card and restarting the camera - Put the camera in station mode and connect to your wireless network by creating a file named
wifi.conf
at the root of your SD card that looks like this:
##### STA mode configuration ##########################################
# ESSID
ESSID=<YOUR_WIFI_NAME>
# Passphrase. Leave empty at no security mode
PASSWORD=<YOUR_WIFI_PASSWORD>
# Device Name for AMBA Discovery Protocol (optional and different for each cam)
STA_DEVICE_NAME=cam01
# Static IP address if your access point does not have a DHCP server (remove # to activate)
#STA_IP=<YOUR_STATIC_IP>
- You need to know the IP address of your camera
- Install YI 4K Java API JAR as a local Maven dependency
YI4KAPIDemo is using Apache Maven. You can package and run the application as follows:
$ mvn package exec:java -Dexec.mainClass="com.myrosh.yi4kapidemo.App"