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.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
|
||||
_epgRefreshTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(10) };
|
||||
var _epgRefreshTick = 0;
|
||||
_epgRefreshTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(60) };
|
||||
_epgRefreshTimer.Tick += (_, _) =>
|
||||
{
|
||||
if (_currentChannel == null) return;
|
||||
if (_currentChannel.Source == ChannelSource.FritzBox && _currentMedia != null)
|
||||
UpdateEpgFromMedia(_currentMedia);
|
||||
_epgRefreshTick++;
|
||||
if (_epgRefreshTick >= 6)
|
||||
{
|
||||
_epgRefreshTick = 0;
|
||||
if (_currentChannel != null)
|
||||
UpdateNextFromEpgService(_currentChannel);
|
||||
}
|
||||
};
|
||||
_epgRefreshTimer.Start();
|
||||
|
||||
|
|
@ -154,15 +145,11 @@ public partial class MainWindow : Window
|
|||
Core.Initialize(vlcDir);
|
||||
|
||||
_libVLC = new LibVLC(
|
||||
"--network-caching=300", // Genereller Netzwerk-Cache (ms)
|
||||
"--rtsp-caching=300", // RTSP-spezifischer Cache (FritzBox)
|
||||
"--live-caching=300", // Live-Stream-Cache
|
||||
"--clock-jitter=0", // Kein Jitter-Buffer
|
||||
"--clock-synchro=0", // Keine Synchronisation
|
||||
"--network-caching=1000",
|
||||
"--no-video-title-show",
|
||||
"--no-osd",
|
||||
"--no-snapshot-preview",
|
||||
"--rtsp-tcp" // TCP statt UDP (verhindert Paketverluste)
|
||||
"--rtsp-tcp"
|
||||
);
|
||||
_player = new MediaPlayer(_libVLC);
|
||||
_player.Volume = initialVolume;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue