bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
121 stars 18 forks source link

Audio Issues #16

Closed ArJunaZ closed 5 years ago

ArJunaZ commented 5 years ago

No audio under Firefox or IE11. Many of us refuse to use Goggle Chrome for obvious privacy reasons. I'm a long time Blue Iris user. i would love if audio would work. Yes i have BI4 setup correctly to broadcast audio with most cameras, but they do not have sound under UI3. UI2's sound used to work for me under IE10 or IE11.

My browser most certainly supports H.264 streams and all online tests affirm this. If I open an HLS stream of a camera via the right-click interface of UI3 the stream works and I get sound, so I don't see any reason the sound can't work as it used to on the primary interface.

There is no option to watch clips with sound either. Is this true also when using UI3 in Google Chrome as well?

Not having instant sound seems completely unnecessary with such an important app, especially since there is no good alternative for monitoring on a remote Windows PC. Ideally, there would be a remote version of BI that would provide much the same interface as on the server it is running on.

Blue Iris is such a gem. Lacking a robust remote monitoring option is its ONLY negative quality. It does EVERYTHING else.

bp2008 commented 5 years ago

ALL of the streaming methods you find implemented at YouTube, Netflix, etc force too much video delay to be useful in UI3. The HLS stream is one such example. You've seen how long it takes to buffer, and how much delay it imposes. Blue Iris's HLS streams are among the lowest latency live streams you can deliver to a browser using standard methods. And in this case I use the term "standard" loosely because HLS streaming only works in most browsers via a third party video player.

This is why UI3 uses a non-standard streaming method for H.264. I can reliably achieve a small fraction of a second of delay using the "fetch" API with a ReadableStream. IE does not support this method, and never will. Firefox actually got support about 11 months ago but the necessary features are not enabled by default. Go to "about:config" in your address bar and enable the settings dom.streams.enabled and javascript.options.streams.

That said, Firefox is not a great browser for UI3. Its HTML5 player can't do low-latency streams properly, for technical reasons I won't go into here. Suffice it to say it is less efficient than other browsers. Edge is bad for different reasons. If you won't use Chrome, consider Opera instead. Opera performs about as well as Chrome.

UI2 uses a much more primitive audio streaming method which is independent of the video. But it only works for single-camera live streams. UI3's audio streaming is completely different internally, and works with everything (camera groups, single cameras, and recordings), but is only available with H.264 video.

ArJunaZ commented 5 years ago

Thanks for the quick and detailed response. I will try out the FF settings.