// --------------------------------------------------------------- // private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { if (!Enabled) { return; } switch (args.Event) { case PlayerEngineEvent.TrackInfoUpdated: if (ValidTrack && current_artist != PlayerEngineCore.CurrentTrack.Artist) { ShowRecommendations(PlayerEngineCore.CurrentTrack.Artist); } break; case PlayerEngineEvent.StartOfStream: if (ValidTrack) { ShowRecommendations(PlayerEngineCore.CurrentTrack.Artist); } break; case PlayerEngineEvent.EndOfStream: if (PaneVisible) { HideRecommendations(); } break; } }
private void OnPlayerEventChanged(object o, PlayerEngineEventArgs args) { if (args.Event == PlayerEngineEvent.Error && last_loaded_track != null) { last_loaded_track.PlayNextStream(); } }
private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { switch (args.Event) { case PlayerEngineEvent.Iterate: OnPlayerEngineTick(); break; case PlayerEngineEvent.StartOfStream: //seek_slider.CanSeek = PlayerEngineCore.CanSeek; seek_slider.CanSeek = true; break; case PlayerEngineEvent.Volume: volumeButton.Volume = PlayerEngineCore.Volume; break; case PlayerEngineEvent.Buffering: if (args.BufferingPercent >= 1.0) { stream_position_label.IsBuffering = false; break; } stream_position_label.IsBuffering = true; stream_position_label.BufferingProgress = args.BufferingPercent; break; case PlayerEngineEvent.Error: UpdateMetaDisplay(); break; case PlayerEngineEvent.TrackInfoUpdated: UpdateMetaDisplay(); break; } }
private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { if (!Enabled) { return; } switch (args.Event) { case PlayerEngineEvent.StartOfStream: if (ValidTrack) { ShowWikipedia(PlayerEngineCore.CurrentTrack); } break; case PlayerEngineEvent.EndOfStream: if (PaneVisible) { HideWikipedia(); } break; } }
private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { if (!Enabled) return; switch (args.Event) { case PlayerEngineEvent.StartOfStream: if (ValidTrack) ShowRecommendations (PlayerEngineCore.CurrentTrack.Artist); break; case PlayerEngineEvent.EndOfStream: if (PaneVisible) HideRecommendations (); break; } }
private void OnPlayerEventChanged(object o, PlayerEngineEventArgs args) { if(args.Event == PlayerEngineEvent.Error && last_loaded_track != null) { last_loaded_track.PlayNextStream(); } }
private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { switch(args.Event) { case PlayerEngineEvent.Iterate: OnPlayerEngineTick(); break; case PlayerEngineEvent.StartOfStream: seek_slider.CanSeek = PlayerEngineCore.CanSeek; break; case PlayerEngineEvent.Volume: volume_button.Volume = PlayerEngineCore.Volume; break; case PlayerEngineEvent.Buffering: if(args.BufferingPercent >= 1.0) { stream_position_label.IsBuffering = false; break; } stream_position_label.IsBuffering = true; stream_position_label.BufferingProgress = args.BufferingPercent; break; case PlayerEngineEvent.Error: UpdateMetaDisplay(); break; case PlayerEngineEvent.TrackInfoUpdated: UpdateMetaDisplay(); break; } }
// --------------------------------------------------------------- // private void OnPlayerEngineEventChanged(object o, PlayerEngineEventArgs args) { if(!Enabled) { return; } switch(args.Event) { case PlayerEngineEvent.TrackInfoUpdated: if(ValidTrack && current_artist != PlayerEngineCore.CurrentTrack.Artist) { ShowRecommendations(PlayerEngineCore.CurrentTrack.Artist); } break; case PlayerEngineEvent.StartOfStream: if(ValidTrack) { ShowRecommendations(PlayerEngineCore.CurrentTrack.Artist); } break; case PlayerEngineEvent.EndOfStream: if(PaneVisible) { HideRecommendations(); } break; } }