I am using a hdhomerun tuner over OpenVPN and using the direct link from the device's web interface, plays the video stream without problems. But because of the VPN, the application is not able to discover the tuner by itself.
Using a static ip address in the settings menu, would solve this problem and use it in the creation of the url or as the first argument
for function hdhomerun_discover_find_devices_custom_v2 , instead of 0, would solve at least this kind of issues.