Music Player Rework (2 Viewers)

Status
Not open for further replies.

Vasilich

Portal Pro
August 30, 2009
3,394
1,170
Germany, Mayence
Home Country
Russian Federation Russian Federation
easily reproducible with
Radio: TV Server with built-in RadioWebStream card. As channel example - http://stream.fusionradio.fm:8004
MiniDisplay: as type set "Debug (preview) Form)".
Code:
		this.status = Status.Idle;
		if (g_Player.Player != null)
		{
		  if (Settings.Instance.ExtensiveLogging)
		  {
			Log.Debug("Active player detected");
		  }
		  GUIPropertyManager.SetProperty("#paused", g_Player.Paused ? "true" : string.Empty);
		  if (g_Player.IsDVD)
		  {
			this.status = Status.PlayingDVD;
		  }
		  else if (g_Player.IsRadio)
		  {
			this.status = Status.PlayingRadio;
		  }
		  else if (g_Player.IsMusic)
		  {
			this.status = Status.PlayingMusic;
		  }
...
		}
...
		if (Settings.Instance.ExtensiveLogging)
		{
		  Log.Debug("Detected status is {0}", status.ToString());
		}
 
Last edited:

megahorst

Super User
  • Team MediaPortal
  • Super User
  • July 8, 2006
    879
    259
    Home Country
    Germany Germany
    Hello,
    I'm using the plugin "Audio renderer changer" to switch between different audio devices.
    Together with the new BASS implementation (included in Scythes Area51 build) I can't open the configuration of this plugin. It crashes the config tool.
    arc_bass_error.png


    Perhaps @Thor2605 should also have a look at this (he is the developer of the plugin).
     
    Last edited:

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    Hello, I'm using the plugin "Audio renderer changer" to switch between different audio devices. Together with the new BASS implementation (included in Scythes Area51 build) I can't open the configuration of this plugin. It crashes the config tool. Perhaps @Thor2605 should also have a look at this (he is the developer of the plugin).

    The author of the Plugin needs to recompile it, so that the new BASS.NET version is used.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    easily reproducible with
    Radio: TV Server with built-in RadioWebStream card. As channel example - http://stream.fusionradio.fm:8004
    MiniDisplay: as type set "Debug (preview) Form)".
    Code:
    		this.status = Status.Idle;
    		if (g_Player.Player != null)
    		{
    		  if (Settings.Instance.ExtensiveLogging)
    		  {
    			Log.Debug("Active player detected");
    		  }
    		  GUIPropertyManager.SetProperty("#paused", g_Player.Paused ? "true" : string.Empty);
    		  if (g_Player.IsDVD)
    		  {
    			this.status = Status.PlayingDVD;
    		  }
    		  else if (g_Player.IsRadio)
    		  {
    			this.status = Status.PlayingRadio;
    		  }
    		  else if (g_Player.IsMusic)
    		  {
    			this.status = Status.PlayingMusic;
    		  }
    ...
    		}
    ...
    		if (Settings.Instance.ExtensiveLogging)
    		{
    		  Log.Debug("Detected status is {0}", status.ToString());
    		}

    Looking at the above code, i can't see how the BASS rework might affect this.
    If g_Player.IsRadio is truem then we will never end up at the if for checking the Music.
    So it seems that the player instance used by Radio doesn't correctly set the status.

    Can you post a full log? What Player is used to play the RAdio?
    Is it the TVServer?
     
    Last edited:
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom