- Thread starter
- #451
eagle said:@SteveV
hi Steve, did you have a look to the issue of different duration of songs displayed in"now playing" and album view?
eagle
Sorry, completely slipped my mind. I'll have a look at it over the weekend.
eagle said:@SteveV
hi Steve, did you have a look to the issue of different duration of songs displayed in"now playing" and album view?
eagle
mikael said:This is a very minor request, but I would like to see the progressbar in the "now playing screen" to move buoyant instead of moving in hacks. Could this be implented with the existing gfx engine?
Current
Progress Duration % Progbar Value
240 300 80.0 80
241 300 80.3 80
242 300 80.6 80
243 300 81.0 81
EqualRightsForWerewolves said:is it possible to change it for album titles as well then? consistency is always a good thing :wink:
egonspengleruk said:Its probably been mentioned before (but going through 30 pages of forum posts isnt fun...my bad) but can we add in track duration for each song, both on the playlist and also on the main selection screen. I only ask this as im working on improvements to the MyBurner plugin and am after a way of knowing when the user has selected too many songs....ie. total time is over 70 minutes of music.
Egon
PlayList curPlaylist = PlaylistPlayer.GetPlaylist(PlayListType.PLAYLIST_MUSIC);
int totalSeconds = 0;
int maxSeconds = 60 * 70;
PlayList burnPlaylist = new PlayList();
foreach (PlayListItem pli in curPlaylist)
{
MusicTag tag = (MusicTag)pli.MusicTag;
if (totalSeconds + tag.Duration > maxSeconds)
break;
totalSeconds += tag.Duration;
burnPlaylist.Add(pli);
}
SteveV said:egonspengleruk said:Its probably been mentioned before (but going through 30 pages of forum posts isnt fun...my bad) but can we add in track duration for each song, both on the playlist and also on the main selection screen. I only ask this as im working on improvements to the MyBurner plugin and am after a way of knowing when the user has selected too many songs....ie. total time is over 70 minutes of music.
Egon
Actually, it's already there. Each PlaylistItem in the playlist has a MusicTag member from which you can read the duration Property. Something like this should do the trick:
Code:PlayList curPlaylist = PlaylistPlayer.GetPlaylist(PlayListType.PLAYLIST_MUSIC); int totalSeconds = 0; int maxSeconds = 60 * 70; PlayList burnPlaylist = new PlayList(); foreach (PlayListItem pli in curPlaylist) { MusicTag tag = (MusicTag)pli.MusicTag; if (totalSeconds + tag.Duration > maxSeconds) break; totalSeconds += tag.Duration; burnPlaylist.Add(pli); }
Steve
PlayList burnlist;
burnlist = PlayListPlayer.SingletonPlayer.GetPlaylist(PlayListType.PLAYLIST_MUSIC);
Debugger.Launch();
Debugger.Break();
foreach (PlayListItem playlistitem in burnlist)
{
GUIListItem pItem = new GUIListItem();
pItem.Path = Path.GetDirectoryName(playlistitem.FileName);
pItem.Label = Path.GetFileName(playlistitem.FileName);
pItem.MusicTag = playlistitem.MusicTag;
GUIControl.AddListItemControl(GetID, (int)Controls.CONTROL_LIST_FILES_TO_BURN, pItem);
}
eagle said:@SteveV
hi Steve, did you have a look to the issue of different duration of songs displayed in"now playing" and album view?
eagle