How to read is shuffle or repeat is turned on (1 Viewer)

crawshaws

Portal Member
October 1, 2010
11
0
Home Country
United Kingdom United Kingdom
I am writing a plugin, and as part of this plugin i need to find out while music is playing if shuffle and/or repeat is activated.

Does anyone know where i should be looking etc...

Thanks for your help.
Stuart.
 

crawshaws

Portal Member
October 1, 2010
11
0
Home Country
United Kingdom United Kingdom
OK, Found it. Well part of it.

To find out if repeat is turned on when playing music read the following property.
Code:
bool MediaPortal.Playlists.PlayListPlayer.SingletonPlayer.RepeatPlaylist

As for shuffle, it seems this is not an actual on/off value. When you hit shuffle, it randomizes the playlist and plays through the new randomized list instead of actually reading if shuffle is turned on and picking the next track at random.

So seems shuffle cannot be detected.
 

Users who are viewing this thread

Top Bottom