Hey
I have 2 problems with the API at the moment. When the user changed the tags of the current playing track hte API must hit "NotificationType.TagsChanged" but in my case it doesn't. Is this a known bug or is it my code?
The code below is my code for it:
case NotificationType.TagsChanged:
case NotificationType.NowPlayingArtworkReady:
case NotificationType.RatingChanged:
case NotificationType.TrackChanged:
string artist = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Artist);
string album = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Album);
string title = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.TrackTitle);
string artwork = mbApiInterface.NowPlaying_GetArtwork();
string rating = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.Rating);
string playlist = mbApiInterface.Playlist_QueryGetAllFiles();
logitech.changeArtistTitle(artist, album, title, rating, artwork, mbApiInterface.NowPlaying_GetDuration()/1000, mbApiInterface.Player_GetPosition()/1000);
break;
}
Second problem is setting the rating of the current playing track. I use following code but it doesn't work.
foalt number = 0.5f;
String url = mbApiInterface.NowPlaying_GetFileUrl();
mbApiInterface.Library_SetFileTag(url, MetaDataType.Rating, number.ToString());
Can someone help me with those problems. Tnx a lot for your time.