Hello,
I am using TVHeaded to manage a number of over the air (ATSC) and IPTV streams. Some channels I am able to receive over the air as well as via IPTV, and I would like to use the ATSC stream if it's available and then fail over to the IPTV version if not. What I have done so far is to map both services to a channel, and define the priority of the ATSC to be higher then the IPTV version. This works as expected when changing channels; if my tuner is unavailable for some reason, TVHeadend will seamlessly begin using the IPTV source.
Where I begin to encounter issues is when the ATSC channel is weak enough to cause playback errors (I am receiving channels from far away and sometimes weather conditions will cause the signal strength to drop) but not weak enough to be unavailable altogether. In this situation TVHeaded will lock onto the ATSC version of the channel, and continue trying to play it despite the stream being unwatchable (constant breakups).
I am wondering if it's possible to configure TVHeaded to look at either the transport or continuity error counters, and fail over to the backup source if they exceed a certain threshold.