I am having trouble (OH2.4) with getting the Sitemap to display the HLSstream from my IP camera. I have other features of the IP camera binding working (Snapshot, animated GIF). I think I am very close, since the binding is producing 2 sec videos, but they are not appearing when I activate streaming in BasicUI (Sitemap). I generally followed the documented solution with the exception that I added a 64 GB USB drive to my RPi3 to store the animated gif’s so I could review them periodically. By design the HLS are in the same folder. Here is what I am looking at.
Camera Thing:
Thing ipcamera:HTTPONLY:Basement “Basement Cam” @ “Basement”
[
IPADDRESS=“192.168.0.126”,
USERNAME=“admin”,
PASSWORD= “xxxxxx”,
PORT=80,
POLL_CAMERA_MS=2000,
SERVER_PORT=50001,
NVR_CHANNEL=1,
SNAPSHOT_URL_OVERRIDE=“http://192.168.0.126/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password=xxxxxxx”,
IMAGE_UPDATE_EVENTS=0,
UPDATE_IMAGE=false,
GIF_PREROLL=0,
GIF_POSTROLL=10,
FFMPEG_INPUT=“rtsp://192.168.0.126:554/h264Preview_01_main”,
FFMPEG_LOCATION=“/usr/local/bin/ffmpeg”,
FFMPEG_OUTPUT=“/mnt/mydisk/cameras/Basement”,
IP_WHITELIST=“DISABLE”
]
Sitemap entry:
Frame label=Streams{
Text label=“iOS Stream” icon=“camera”{
Webview url=“http://192.168.0.70:50001/ipcamera.m3u8” height=15
}}
Extract of log file:
IPcamstreamtest.txt (13.6 KB)
Picture of generated files in /mnt/mydisk/cameras.
Note the versions/times do not match the log file because I did additional tests after I extracted the log file, and ran a new test this morning.
Again my issue is that although HLS files are generated, they are not being displayed as a stream on my sitemap. This is true whether I open the sitemap in Safari or Chrome.
I think I am missing something simple, but do not know what. Any help would be appreciated.