[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

in MP config goto plugins -> MovingPictures and open the config. There you can delete the wanted movies ;)
in MP config goto plugins -> MovingPictures and open the config. There you can delete the wanted movies ;)
I am using MediaPortal 1.30 and Moving Pictures. In fact, I have been using them for so long that my movie list is now... a mess...
Replies
1
Views
294
Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields) so I have decided to have a go at creating an XML based on the XBMC Local xml. This has not been tested with multi languages and it has been configured for my personal collection. I'm hoping it will work...
Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields)...
Hello all, Recently I have been having a few problems importing movies to Moving Pictures using the IMDB+ plugin (missing fields)...
Replies
0
Views
182
So most probably it was your ip blacklisted and cleared again. Some websites are blocking for hours and some are for days. Ok then, enjoy :)
So most probably it was your ip blacklisted and cleared again. Some websites are blocking for hours and some are for days. Ok then...
Hi everyone. My name is Kivanc and I am the developer of Tempest EPG Generator which is a single php file xmltv formatted epg...
Replies
66
Views
7K
I’d be also interested if the same advantages are feasible for MP2?!
I’d be also interested if the same advantages are feasible for MP2?!
Started on: 2022-08-28 last update: 2022-08-28 Summary: Improve EPG speed by adding indices to "program" table Area: TvServer SQL...
Replies
2
Views
695
Of course this would be the best option, but I guess it’s not that easy to integrate external players into MP2. It was somewhere discussed, but I could not find the related thread.
Of course this would be the best option, but I guess it’s not that easy to integrate external players into MP2. It was somewhere...
Hi there, I have a few questions about the limitations I've discovered (so far, it's early days!) when it comes to watching a tv...
Replies
9
Views
638
Top Bottom