INTERACT FORUM

Windows => Plug-in Development => Topic started by: Zoner on November 16, 2007, 03:15:16 am

Title: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on November 16, 2007, 03:15:16 am
The MJCurPlaylistAutomation.Shuffle property used to be a BOOL, but according to http://wiki.jrmediacenter.com/index.php/MJCurPlaylistAutomation#number_Shuffle.28.29_.28read_.2F_write.29 is now a "number".  I see in the GUI that there are now 3 settings: On, Off, and Automatic, so I guess it makes sense that it should be changed.  The problem is that the TLB file included with the latest MC12 build still lists it as a BOOL.  GetShuffle() returns accurate values, but PutShuffle() no longer has any effect.  In other words, the BOOL property is no longer writeable, and there is no "number" property in the TLB.  Can we please have a new TLB file that includes a working method for changing the shuffle mode.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Matt on November 16, 2007, 09:59:09 am
SetShuffle(...) should still work.  The only hitch is that you be able to set the player to "automatic".

Note that this is the same as MCC_SHUFFLE with the parameter set to 3, 4 (and now 5).  So you could also fire the command as an MCC through the command line or with a windows message.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on November 16, 2007, 01:06:54 pm
My testing indicates that SetShuffle() no longer has any effect.  GetShuffle() returns the correct value, but SetShuffle() does nothing.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on November 16, 2007, 01:07:56 pm
Sorry I meant PutShuffle().  According to the TLB, there is no SetShuffle() function.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: JimH on November 16, 2007, 01:27:22 pm
Carl,
Someone just asked today where to get your software.  I couldn't find it.  Could you provide a link?

Thanks,

Jim
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on November 16, 2007, 03:33:02 pm
Sorry - link was broken!  Now I fixed it: http://www.objective.se/cav66.zip.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: blipszyc on December 12, 2007, 10:40:19 pm
JimH - any progress on this for Zoner?  Does the 388 build have the latest TLB?
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Matt on February 18, 2009, 10:14:42 am
Sorry for the late response on this one, but in Media Center 13.0.125 and later:
Fixed: Setting the shuffle mode using CMJCurPlaylistAutomation worked in reverse, so off turned it on and on turned it off.

Thanks.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on February 18, 2009, 10:16:11 am
Woohoo!  Thanks Matt!
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on April 01, 2009, 02:26:26 am
I'm afraid it seems that this is still not fixed in MC13.  The problem is that the Shuffle property in the TLB is a BOOL, not a long.  From the TLB:

    VARIANT_BOOL GetShuffle();
    void PutShuffle(VARIANT_BOOL _val);

Can we get a fix for this?  Thanks!
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Matt on April 01, 2009, 10:56:37 am
I'm afraid it seems that this is still not fixed in MC13.  The problem is that the Shuffle property in the TLB is a BOOL, not a long.  From the TLB:

    VARIANT_BOOL GetShuffle();
    void PutShuffle(VARIANT_BOOL _val);

Can we get a fix for this?  Thanks!

It will only support toggling on and off. 

Is the problem that you can't even toggle it on and off, or that you want access to more advanced shuffle modes?  We can't really change the interface, but we could add Shuffle2 or something.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: Zoner on April 01, 2009, 11:01:16 am
Good question.  Right now I'm server-less, so I can't test myself, but I am told that it doesn't work at all.  I should have my server setup again in a couple of days, so I'll test it and get back to you.
Title: Re: MJCurPlaylistAutomation.Shuffle property not working in MC12
Post by: JimH on April 01, 2009, 11:09:51 am
Here's a link to the thread on AVSForum:
http://www.avsforum.com/avs-vb/showthread.php?t=534233&page=27