Rockstar - the ultimate online music plugin (Spotify&Grooveshark&Rdio) (4 Viewers)

powermarcel10

Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    36
    Groningen
    Home Country
    Netherlands Netherlands
    I had to read your post a couple of times, but now I understand what you want! :p

    I know how to do that.. So, stay tuned..

    One small other thing: It would be nice if the logo of the provider is visible (Spotify, Grooveshark or Rdio) when there is no thumb availible for the current artist/album/track. But I don't think that this is possible yet.. Any suggestion?
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    36
    Groningen
    Home Country
    Netherlands Netherlands
    @seco: Like this? :)
     

    Attachments

    • Rockstar 1.jpg
      Rockstar 1.jpg
      396.8 KB
    • Rockstar 2.jpg
      Rockstar 2.jpg
      314.4 KB
    • Rockstar 3.jpg
      Rockstar 3.jpg
      435.4 KB

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    I had to read your post a couple of times, but now I understand what you want! :p
    I know how to do that.. So, stay tuned..

    Yeah it was a bit difficult to explain..

    One small other thing: It would be nice if the logo of the provider is visible (Spotify, Grooveshark or Rdio) when there is no thumb availible for the current artist/album/track. But I don't think that this is possible yet.. Any suggestion?

    If there is no cover art then image "missing_coverart.png" is displayed. This is a default image included in DefaultWide. I'm not sure why Titan does not have that, it seems to have "audio_nothumb.png" which I think should be used.
     

    Al_Capone

    MP Donator
  • Premium Supporter
  • September 26, 2006
    527
    19
    Home Country
    Norway Norway
    powermarcel10
    Hi, tested the xml you attached, it works as described.
    is is possible to not show menu, but rather load "playlists" directly ? - user would expect to see playlists instantly, instead of having to click a button each time.


    Now for something not xml related:
    on each streamed song, I get one error message, these accumulate and after an hour of streaming, requires many "OK" clicks.

    The errors are like: (and yes, despite what the log says, the version confirmed by extension manager is 2.5.0)

    Code:
    03-Jan-2014 22:09:05.949  Info [      RockstarPlugin]: Running Rockstar 2.4.2
    03-Jan-2014 22:09:05.975  Info [      TorshifyClient]: Creating session
    03-Jan-2014 22:09:06.535  Info [      RockstarPlugin]: Initialization successful
    03-Jan-2014 22:09:17.336  Info [        Localization]: Using language: en
    03-Jan-2014 22:09:26.349  Info [      TorshifyClient]: Logging in
    03-Jan-2014 22:09:26.512  Info [      TorshifyClient]: Login completed: , status OK
    03-Jan-2014 22:09:26.512  Info [      TorshifyClient]: Connection state updated: Offline, status OK
    03-Jan-2014 22:09:27.344  Info [      TorshifyClient]: Connection state updated: LoggedIn, status OK
    03-Jan-2014 22:09:40.859 Error [      RockstarPlugin]: Streaming track Let it snow, URI spotify:track:1wXeAB4P5vtBJA5xoJMxLp failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)
    03-Jan-2014 22:09:48.191 Error [      RockstarPlugin]: Streaming track Himmel På Jord, URI spotify:track:0WFyQgDzbQCfJuxcHW4Zrt failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)
    03-Jan-2014 22:13:17.053 Error [      RockstarPlugin]: Streaming track Last Christmas - Single Version, URI spotify:track:6cs1TI1lcgyM29XK7cOa3S failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    powermarcel10
    Hi, tested the xml you attached, it works as described.
    is is possible to not show menu, but rather load "playlists" directly ? - user would expect to see playlists instantly, instead of having to click a button each time.

    No, if you enter plugin "first time" after MP start no "section" is selected. Playlists would not be good option as default since loading playlists may take some time. If you go away to Home or other plugin and come back the "section" which you were when you left will be displayed.

    Now for something not xml related:
    on each streamed song, I get one error message, these accumulate and after an hour of streaming, requires many "OK" clicks.

    The errors are like: (and yes, despite what the log says, the version confirmed by extension manager is 2.5.0)

    Code:
    03-Jan-2014 22:09:05.949  Info [      RockstarPlugin]: Running Rockstar 2.4.2
    03-Jan-2014 22:09:05.975  Info [      TorshifyClient]: Creating session
    03-Jan-2014 22:09:06.535  Info [      RockstarPlugin]: Initialization successful
    03-Jan-2014 22:09:17.336  Info [        Localization]: Using language: en
    03-Jan-2014 22:09:26.349  Info [      TorshifyClient]: Logging in
    03-Jan-2014 22:09:26.512  Info [      TorshifyClient]: Login completed: , status OK
    03-Jan-2014 22:09:26.512  Info [      TorshifyClient]: Connection state updated: Offline, status OK
    03-Jan-2014 22:09:27.344  Info [      TorshifyClient]: Connection state updated: LoggedIn, status OK
    03-Jan-2014 22:09:40.859 Error [      RockstarPlugin]: Streaming track Let it snow, URI spotify:track:1wXeAB4P5vtBJA5xoJMxLp failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)
    03-Jan-2014 22:09:48.191 Error [      RockstarPlugin]: Streaming track Himmel På Jord, URI spotify:track:0WFyQgDzbQCfJuxcHW4Zrt failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)
    03-Jan-2014 22:13:17.053 Error [      RockstarPlugin]: Streaming track Last Christmas - Single Version, URI spotify:track:6cs1TI1lcgyM29XK7cOa3S failed System.Exception: Unexpected exception while buffering! ---> Newtonsoft.Json.JsonSerializationException: Error getting value from 'MediaInfo' on 'WifiRemote.MessageNowPlaying'. ---> System.MissingMethodException: Method not found: 'System.String MediaPortal.Music.Database.Song.get_WebImage()'.
      at WifiRemote.NowPlayingMusic..ctor(Song song)
      at WifiRemote.MessageNowPlaying.get_MediaInfo()
      at GetMediaInfo(Object )
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.Serialization.DynamicValueProvider.GetValue(Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContract collectionValueContract)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value)
      at Newtonsoft.Json.JsonConvert.SerializeObject(Object value, Formatting formatting, JsonSerializerSettings settings)
      at WifiRemote.SocketServer.SendNowPlayingToAllClients()
      at WifiRemote.WifiRemote.g_Player_PlayBackStarted(MediaType type, String filename)
      at MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)
      at MediaPortal.Player.g_Player.OnStarted()
      at MediaPortal.Player.g_Player.Play(String strFile, MediaType type, TextReader chapters, Boolean fromPictures, Int32 title, Boolean forcePlay, Boolean fromExtTS)
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      --- End of inner exception stack trace ---
      at Rockstar.Mediaportal.BassPlayer.BufferingCompleted(String url)
      at Rockstar.Core.Client.StreamingClient.OnBufferingCompleted(String url)
      at Rockstar.Core.Client.Spotify.TorshifyClient.Download(Track track)

    Disable WifiRemote, it is not compatible with 1.6.0
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    36
    Groningen
    Home Country
    Netherlands Netherlands
    @seco: Like this? :)

    I like this very much, thanks. I will do some testing and include this in the next version of Rockstar.

    Great!

    Here is the final version for now including some more fixes. I included also a missing_coverart.png image in the .zip file, and that is working fine! But what I acutally meant is that I think it's nice that the logo of the provider is shown when there is no thumb availible.. But that is something that need to be programmed into the plugin I gues..
     

    Attachments

    • Rockstar for Titan 04-01-2014.zip
      182.1 KB

    Al_Capone

    MP Donator
  • Premium Supporter
  • September 26, 2006
    527
    19
    Home Country
    Norway Norway
    seco: yep, just came back to to remove my message that was caused by wifiremote, you beat me to it. Thank you.
     

    Users who are viewing this thread

    Top Bottom