[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


Write your reply...

Similar threads

  • Sticky
Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many Thanks(y):)
Upgrade install on MP 1.36 x64 proceeded without issue, everything I have tried so far is working and looking very good. Many...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
1
Views
435
MP1 MP2 Case Downsizing DE
Most (all?) small PC cases accept only ITX motherboards, which have only one PCI-E slot. So you could install only one PCI-E tuner card. A quad-tuner card would give you four tuners, but if you wanted more tuners you would need to use the TBS eight-tuner card, or use external tuners, either USB tuners (available with single or dual...
Most (all?) small PC cases accept only ITX motherboards, which have only one PCI-E slot. So you could install only one PCI-E tuner...
I've been using MP2 now for about 3 years: I really happy with the way it works, although I can think of many great features I'd...
Replies
1
Views
601
All good now!!
All good now!!
We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
Replies
2
Views
2K
I have all of my media on a NAS. I guess it might just be a network issue, then.
I have all of my media on a NAS. I guess it might just be a network issue, then.
Whenever I go into the back end for Moving Pictures, it almost immediately hangs on the Movie Importer tab. If I want to go into...
Replies
4
Views
1K
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5221] - Core: Fix...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
Replies
0
Views
2K
Top Bottom