Skip to content

v0.10.28: stream header before dialling

Choose a tag to compare

@gnacho gnacho released this 05 Nov 22:35
· 36 commits to main since this release

The stream says something the moment somebody opens it.

Fixed

  • 0.10.27 wrote the MPEG-TS header, but only after the tunnel with the doorbell
    was up, and that takes tens of seconds while the bell sleeps on batteries.
    Home Assistant validates the camera by opening the stream and gives up long
    before the first byte, so the flow kept answering stream_source: timeout.
  • The muxer, its PAT, PMT and the SPS/PPS are now created and written at the
    very start of the video process, before dialling the doorbell.

Verified

  • TestStreamHeaderIsWrittenBeforeConnecting points the cloud at a closed port
    so the tunnel never comes up, and still finds a TS packet first (0x47) and at
    least three packets of output. It runs in milliseconds.
  • gofmt, go vet clean, full suite green (8.0 s), coverage 64.1% against a CI
    floor of 62%.

Not verified

  • The camera entry itself: Home Assistant needs a picture, and the bell has not
    sent a keyframe in any capture so far.