[Patch] AutoShuffle and AutoRepeat for SlideShows (1 Viewer)

U

UncleFestis

Guest
Just uploaded to SourceForge...

Pretty self explanatory. Added autoshuffle and autorepeat options
to the Pictures configuration and the code to implement the features
to the SlideShow GUI.
 
X

xenon2000

Guest
UncleFestis said:
Just uploaded to SourceForge...

Pretty self explanatory. Added autoshuffle and autorepeat options
to the Pictures configuration and the code to implement the features
to the SlideShow GUI.

WOW! Finally. This sounds like what I have requested since 3 months ago. I really hope this finds it's way into the next release instead of just a patch. And that is evolves as well.

personally I don't see how random and constant slide show features got missed when it was created in the first place. Who wants to go through their pictures once through in order. No one. :) Thanks a ton!
 
X

xenon2000

Guest
UncleFestis said:
Just uploaded to SourceForge...

Pretty self explanatory. Added autoshuffle and autorepeat options
to the Pictures configuration and the code to implement the features
to the SlideShow GUI.

WOW! Finally! Thanks a ton. I have been waiting for random and continuous slideshow features since the beginning. Personally I don't understand why anyone would want a slideshow that goes in order just once through. If I wanted that, I would just browse full screen and use forward and back.

Thanks again! I hope this makes it's way into the full release and not just as a patch. And that is sees further development. Since I personally use MP for way more than TV stuff. Actually, I use it way more for non TV stuff. I rarely record things and I watch my live TV without using my HTPC. So development on things like Music, Images, and other plugins are more exciting for me. :)

Anyways, thanks again for making this patch!! Great to see that someone else also wants to use the slideshow feature, since without random display, I find it quite useless and ended up just using the microsoft My Picture Slideshow. Which isn't the greatest, but at least it's kinda random.

Now if MP could have a random seeding sliding show as well so that it's not always the same repeat of the autoshuffle. :) Thanks.
 
U

UncleFestis

Guest
I stole the shuffle code from the playlist class. It should generate a unique order each time the slideshow is started:

Code:
    public void Shuffle()
    {
      Random r = new System.Random( DateTime.Now.Millisecond );
      int nItemCount = m_slides.Count;

      // iterate through each catalogue item performing arbitrary swaps
      for ( int nItem=0; nItem < nItemCount; nItem++ )
      {
        int nArbitrary = r.Next( nItemCount );

        if ( nArbitrary != nItem )
        {
          string anItem = (string)m_slides[ nArbitrary ];
          m_slides[ nArbitrary ] = m_slides[ nItem ];
          m_slides[ nItem ] = anItem;
        }
      }
    }
 
X

xenon2000

Guest
UncleFestis said:
I stole the shuffle code from the playlist class. It should generate a unique order each time the slideshow is started:

Code:
    public void Shuffle()
    {
      Random r = new System.Random( DateTime.Now.Millisecond );
      int nItemCount = m_slides.Count;

      // iterate through each catalogue item performing arbitrary swaps
      for ( int nItem=0; nItem < nItemCount; nItem++ )
      {
        int nArbitrary = r.Next( nItemCount );

        if ( nArbitrary != nItem )
        {
          string anItem = (string)m_slides[ nArbitrary ];
          m_slides[ nArbitrary ] = m_slides[ nItem ];
          m_slides[ nItem ] = anItem;
        }
      }
    }

Each time it is started, so does that count for if it is in a constant/forever loop? So that it runs forever re-randomizing after going through the completed randomized list? If not, then it would just repeat the first randomized list when it was first started. Which would be fine if you have 10,000+ images, but if you only have 50 or so, it would get old.
 
U

UncleFestis

Guest
Just posted a change that will reshuffle a completed slideshow if autorepeat and autoshuffle are enabled.

[/quote]
Each time it is started, so does that count for if it is in a constant/forever loop? So that it runs forever re-randomizing after going through the completed randomized list? If not, then it would just repeat the first randomized list when it was first started. Which would be fine if you have 10,000+ images, but if you only have 50 or so, it would get old.[/quote]
 

Users who are viewing this thread

Similar threads

Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work. Spotify desktop app installed on same computer as you are going to use with MediaPortal Getting ready Create an app at spotify, use this link: Dashboard | Spotify for Developers, you have to login. Click...
Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
Prerequisites A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work...
Replies
0
Views
737
Yes, I understood. Is it worth adding some notes to users who installed MP x86 first and then x64 in addition, that the registration script is required? Best would be adjusting the x64 setup to register the x64 libraries indepedently from if the x86 libraries are installed or not.
Yes, I understood. Is it worth adding some notes to users who installed MP x86 first and then x64 in addition, that the...
[MP1-5154] Mediaportal x64 version with SharpDX - MediaPortal Jira GitHub - MediaPortal/MediaPortal-1 at...
Replies
818
Views
46K
Understood.
Understood.
In the UK an American show, NCIS, has several series being broadcast on the same day. As a consequence, when I choose to record the...
Replies
25
Views
1K
MP1 MP2 Dropping Episodes DE
Hello everyone, I have the same problem on some series, the last one I found is Law and Order (New York Police judiciaire in French), season 20 only displays the first 3 episodes, I couldn't find any difference in the file names between these first 3 episodes and the following ones except for the episode number of course. By going...
Hello everyone, I have the same problem on some series, the last one I found is Law and Order (New York Police judiciaire in...
Hi all, this seems to be a bit of a follow up on an issue I was having a couple of years ago. That issue just seemed to resolve...
Replies
3
Views
534
MP1 MP2 MP2 - V2.4.1 Mouse support for timeshift DE
I guess it's really a rare case, most users use remote controls, then keyboards and last mouse. I tired to design things mouse friendly as much as possible, because it was almost impossible when I joined the team. As former WMC user I quickly decided to create a WMC-like skin which comes as close as possible in terms of appearance and...
I guess it's really a rare case, most users use remote controls, then keyboards and last mouse. I tired to design things mouse...
Hi, I am new to Media Portal, I am an avid Windows Media Center user, love it and trying to hold onto it as long as possible...
Replies
9
Views
782
Top Bottom