Project

General

Profile

"Switch to another service" not working with IPTV sources

Added by C M over 2 years ago

For the sake of testing, I have a channel with two services attached. When I play it, it selects service01 (adapter: "IPTV #1") and when it has "timeout waiting for packets" it just keeps reconnecting to the same network and not rolling to the next.
I'm using pass profile and in that profile, "Restart on error" and "Switch to another service" are both checked.

Am I misunderstanding how this works or is this maybe a bug?

Thanks!


Replies (5)

RE: "Switch to another service" not working with IPTV sources - Added by C M over 2 years ago

Okay I do think this is a bug but the workaround is simple enough. I had left both networks with default priority of "1". I picked one of them and set the priority to "10" and that has the fail-over working.

I got the idea from this thread: https://tvheadend.org/issues/5850

Seems to be if networks are left at the default (because I have no preference), "Switch to another service" in channel settings is not functional.

RE: "Switch to another service" not working with IPTV sources - Added by C M over 2 years ago

I spoke too soon I guess.
"webui: Stop streaming /stream/channelid/186505070?auth=xxxxxxxxxxxxxxxxxxxxxxxxxx&profile=pass, timeout waiting for packets"
Then it reconnects to the same service instead of trying the other service. Anyone have a clue why?

RE: "Switch to another service" not working with IPTV sources - Added by C M over 2 years ago

Just throwing darts and posting my journey for future people.
I've lowered the timeout of the networks to a second shorter than the pass profile timeout. My hunch is that would make it move on to the other network instead of starting over with the first service.

RE: "Switch to another service" not working with IPTV sources - Added by Dave Pickles over 2 years ago

This occurs when streaming, rather than recording?

The behaviour seems to be by design. Function http_stream_run() in webui/webui.c has no means of returning an error if the stream returns no data, and so the calling functions always assume success.

RE: "Switch to another service" not working with IPTV sources - Added by Helge B about 2 years ago

Really? What is the point of adding two sources then?

    (1-5/5)