Esempio n. 1
0
 /// <summary>
 /// This methods is called by Mediaportal periodically. This guarantees that osd is updated immediately
 /// </summary>
 public override void Process()
 {
     if (_osdHandler != null)
     {
         _osdHandler.UpdateGUI();
     }
     if (_seekingHandler != null)
     {
         _seekingHandler.CheckPosition();
     }
     if (_mediaInfo != null)
     {
         GUIPropertyManager.SetProperty("#Play.Current.VideoCodec.Texture",
                                        MediaPortal.Util.Utils.MakeFileName(_mediaInfo.VideoCodec));
         GUIPropertyManager.SetProperty("#Play.Current.VideoResolution", _mediaInfo.VideoResolution);
         GUIPropertyManager.SetProperty("#Play.Current.AudioCodec.Texture",
                                        MediaPortal.Util.Utils.MakeFileName(_mediaInfo.AudioCodec));
         GUIPropertyManager.SetProperty("#Play.Current.AudioChannels", _mediaInfo.AudioChannelsFriendly);
         GUIPropertyManager.SetProperty("#Play.Current.HasSubtitles", _mediaInfo.HasSubtitles.ToString());
         GUIPropertyManager.SetProperty("#Play.Current.AspectRatio", _mediaInfo.AspectRatio);
     }
     base.Process();
 }