Revert: EIT-Polling entfernt (Einfrieren), Cache zurueck auf 1000ms
This commit is contained in:
parent
5e211cc038
commit
58ffc7300b
1 changed files with 4 additions and 17 deletions
|
|
@ -66,21 +66,12 @@ public partial class MainWindow : Window
|
||||||
_epgTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(500) };
|
_epgTimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(500) };
|
||||||
_epgTimer.Tick += EpgTimer_Tick;
|
_epgTimer.Tick += EpgTimer_Tick;
|
||||||
|
|
||||||
// Jede 10s: EIT-Daten aus Media neu lesen (libVLC feuert MetaChanged nicht bei laufendem EIT-Update)
|
|
||||||
// Jede 60s: XMLTV Jetzt/Danach refreshen
|
// Jede 60s: XMLTV Jetzt/Danach refreshen
|
||||||
_epgRefreshTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(10) };
|
_epgRefreshTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(60) };
|
||||||
var _epgRefreshTick = 0;
|
|
||||||
_epgRefreshTimer.Tick += (_, _) =>
|
_epgRefreshTimer.Tick += (_, _) =>
|
||||||
{
|
{
|
||||||
if (_currentChannel == null) return;
|
if (_currentChannel != null)
|
||||||
if (_currentChannel.Source == ChannelSource.FritzBox && _currentMedia != null)
|
|
||||||
UpdateEpgFromMedia(_currentMedia);
|
|
||||||
_epgRefreshTick++;
|
|
||||||
if (_epgRefreshTick >= 6)
|
|
||||||
{
|
|
||||||
_epgRefreshTick = 0;
|
|
||||||
UpdateNextFromEpgService(_currentChannel);
|
UpdateNextFromEpgService(_currentChannel);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
_epgRefreshTimer.Start();
|
_epgRefreshTimer.Start();
|
||||||
|
|
||||||
|
|
@ -154,15 +145,11 @@ public partial class MainWindow : Window
|
||||||
Core.Initialize(vlcDir);
|
Core.Initialize(vlcDir);
|
||||||
|
|
||||||
_libVLC = new LibVLC(
|
_libVLC = new LibVLC(
|
||||||
"--network-caching=300", // Genereller Netzwerk-Cache (ms)
|
"--network-caching=1000",
|
||||||
"--rtsp-caching=300", // RTSP-spezifischer Cache (FritzBox)
|
|
||||||
"--live-caching=300", // Live-Stream-Cache
|
|
||||||
"--clock-jitter=0", // Kein Jitter-Buffer
|
|
||||||
"--clock-synchro=0", // Keine Synchronisation
|
|
||||||
"--no-video-title-show",
|
"--no-video-title-show",
|
||||||
"--no-osd",
|
"--no-osd",
|
||||||
"--no-snapshot-preview",
|
"--no-snapshot-preview",
|
||||||
"--rtsp-tcp" // TCP statt UDP (verhindert Paketverluste)
|
"--rtsp-tcp"
|
||||||
);
|
);
|
||||||
_player = new MediaPlayer(_libVLC);
|
_player = new MediaPlayer(_libVLC);
|
||||||
_player.Volume = initialVolume;
|
_player.Volume = initialVolume;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue