[Music] Show dialog when Music starts (1 Viewer)

mbuzina

Retired Team Member
  • Premium Supporter
  • April 11, 2005
    2,839
    726
    Germany
    Germany Germany
    Country flag
    I think I proposed the same, just having a starting screen which lists all available views.
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Croatia Croatia
    Country flag
    Actually it's pretty easy to do something like this in my videos, but don't ask me to do this in music :), result is that in shares view you will see all shares and all views so no need for hidden menu on start. To add extra things is like plugins is not so easy but I can't say that is impossible. Only problem with special views is that they are not so easy to create and some things are impossible without messing in MP code (like categories creation in MoPi)

    Code:
    // Add db views after shares was added in facade layout with this:
    in method
    private void LoadDirectory(parameters)
      {
    ......
    .......
    AddDbViews(itemlist); // itemlist contains shares, now it's time to add views
    
    // Add db views after shares was added in facade layout with this:
    
    private void AddDbViews(List<GUIListItem> itemList)
        {
          if (handler != null && handler.Views.Any() && _adddDbViewsToShares)
          {
            foreach (ViewDefinition view in handler.Views)
            {
              GUIListItem item = new GUIListItem();
              item.IsFolder = true;
              item.IsBdDvdFolder = false;
              item.UserBool1 = true;  // -->mark that this item is view, not some file or folder, this property (UserBool1) does not exist in GUIListItem but can be easily added
              item.UserString1 = view.Name; // View name to open, this property (UserString1 ) does not exist in GUIListItem but can be easily added
              item.Label = view.LocalizedName;
              item.Label2 = "DBView";
              item.IsPlayed = true;
              item.OnItemSelected += item_OnItemSelected;
              item.IconImageBig = "DefaultPlaylistBig.png";
              item.IconImage = "DefaultPlaylist.png";
              item.ThumbnailImage = "DefaultPlaylistBig.png";
              facadeLayout.Add(item);
              itemList.Add(item);
            }
          }
        }
    bla bla, end of LoadDirectory
    
    // Test in onclick handler which opens dbview
    protected override void OnClick(int iItem)
      {
         ... bla bla test against nulls and empty items then somewhere...
            if (item.UserBool1)
          {
            _playClicked = false;
            GUIVideoTitle videoTitle = (GUIVideoTitle)GUIWindowManager.GetWindow((int)Window.WINDOW_VIDEO_TITLE);
            videoTitle.StartView = item.UserString1;
            GUIWindowManager.ActivateWindow((int)Window.WINDOW_VIDEO_TITLE);
            return;
          }
     
    Last edited:

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    R MP 2.2.3 Search TV program only with the correct begin of show title General 7
    F Show Player info while skipping Feature Requests 0
    P Recordings not showing up unless re-imported and not possible to delete General 0
    C Imported media doesn't show up immediately? General 1
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    tano_grasa Movie cover not showing when starting a movie aMPed 0
    M [Rejected] Always show full hours in TV Guide Feature Requests 2
    J Understanding what EPG shows about schedules General 8
    J Show media item location Feature Requests 4
    ratata Non present codecs is still showing... MediaPortal 1 Talk 2
    C Recording back to back shows from IPTV streams General Support 0
    J Resume from Standby Last Module TV Showing TV Server Settings Television (MyTV frontend and TV-Server) 2
    K Genres in MovingPictures not show ... Fanart Handler 12
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    Lehmden Manual schedule: Possibility to enter a show name Feature Requests 1
    N [Finished] [MP2-806] Playing a recorded radio program does not show screen to allow skipping forward, etc MediaPortal 2 141
    B Media info shows audio is 5.1 MP shows 2.0 Watch / Listen Media 2
    ge2301 [Finished] [MP2-782] Show mouse cursor only if it was moved more than 10 pixels MediaPortal 2 13
    stirlinghart Folders showing up in MOVIES share General 2
    W [solved] MP 1.20 Video IMDB no showing plot General Support 129
    F Config starting, but not showing. Moving Pictures 2
    W Strange recording behavior - Schedule shows type once when should be always General Support 1
    M partially watched video/song/recorded tv show file text color + remember cursor in folders other features (of release or svn versions) 28
    N [solved] MediaPortal do not show TV Channels, although Channels found in TV-Server Configuration Television (MyTV frontend and TV-Server) 7
    N [solved] MediaPortal do not show TV Channels, although Channels found in TV-Server Configuration Codecs, External Players 2
    Similar threads

























    Top Bottom