private void InitFinishCollection() { DispatcherService.ExecuteTimerAction(() => { BackgroundService.Execute(() => { LoaderCompletion.FinishCollectionLoadProcess(PlayListCollection, null); }, "Getting playlist metadata...", () => { }); }, 5000); }
private void VlcMediaPlayer_EndReached(object sender, EventArgs e) { //Stop(); (IVideoElement as Window).Dispatcher.BeginInvoke(new Action(() => { DragPositionSlider.IsEnabled = false; DragPositionSlider.Value = 0; CurrentVideoItem.IsActive = false; HaslastSeen = false; LastSeenTime = TimeSpan.FromMilliseconds(0.0); if (this.RepeatMode != RepeatMode.NoRepeat) { if (IsfetchingRepeatItemAsync) { return; } IsfetchingRepeatItemAsync = true; DispatcherService.ExecuteTimerAction(() => StartRepeatAction(), 50); } FilePlayerManager.VideoElement.ContentDockRegion.Content = null; })); }