- January 31, 2014
- 7
- 0
- 48
- Home Country
- Canada
Why not use the 'nowplaying' message? It includes much more info about the playing media. I'm not using the 'Title' from the 'status' message myself.
Highlighted is what I mean about 'Title' not being populated right on start
Here is the message once the mp3 starts playing: (note title is "")
Received message: {"Type":"status","IsPlaying":true,"IsPaused":false,"IsPlayerOnTop":false,"Title":"","CurrentModule":"Music/playlist","SelectedItem":"Rihanna - Right Now (feat. David Guetta)","WindowId":500}
Here is the 'nowplaying' message with less relevant Artist - Title information than the final 'status' message below
Received message: {"Type":"nowplaying","Duration":181,"File":"N:\\Music\\Trance\\Compilations\\2013 Mix\\Rihanna\\Unapologetic (Deluxe Version)\\07 Right Now (feat. David Guetta).m4a","Position":0,"IsTv":false,"IsFullscreen":false,"MediaInfo":{"MediaType":"music","MpExtId":"-1","MpExtMediaType":1,"MpExtProviderId":4,"ItemId":-1,"Album":"","AlbumArtist":"","Artist":"","BitRate":0,"BitRateMode":"","BPM":0,"Channels":0,"Codec":"","Comment":"","Composer":"","Conductor":"","DateTimeModified":"\/Date(-62135575200000-0600)\/","DateTimePlayed":"\/Date(-62135575200000-0600)\/","DiscId":0,"DiscTotal":0,"Duration":0,"Genre":"","Lyrics":"","Rating":0,"SampleRate":0,"TimesPlayed":0,"Title":"","Track":0,"TrackTotal":0,"URL":"","WebImage":"","Year":0,"ImageName":""}}
Here is the status message after the now playing message runs through..giving me 'Title' information for the playing track
Received message: {"Type":"status","IsPlaying":true,"IsPaused":false,"IsPlayerOnTop":false,"Title":"Right Now (feat. David Guetta)","CurrentModule":"Music/playlist","SelectedItem":"Rihanna - Right Now (feat. David Guetta)","WindowId":500}