reload webtv/iptv stream if connection lost

This commit is contained in:
BPanther
2023-07-16 21:21:03 +02:00
committed by Thilo Graf
parent 38372a143e
commit 344cf247a6
6 changed files with 13 additions and 8 deletions

View File

@@ -439,7 +439,7 @@ void cPlayback::GetPts(uint64_t &pts)
}
// in milliseconds
bool cPlayback::GetPosition(int &position, int &duration)
bool cPlayback::GetPosition(int &position, int &duration, bool isWebChannel)
{
bool got_duration = false;
hal_debug("%s %d %d\n", __func__, position, duration);
@@ -472,8 +472,13 @@ bool cPlayback::GetPosition(int &position, int &duration)
if (player && player->playback && !player->playback->isPlaying)
{
hal_info("%s !!!!EOF!!!! < -1\n", __func__);
position = duration + 1000;
return false;
if (isWebChannel) { // WebTV/IPTV
position = duration - 1000;
return true;
} else {
position = duration + 1000;
return false;
}
}
int64_t vpts = 0;