Pandora Plugin not advancing to the next song (3 Viewers)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    @hwahrmann
    One thing I notice that I think is a bit odd...
    [collapse]
    [2015-07-06 20:36:39,379] [Log ] [BASS X-Fade] [DEBUG] - BASS: X-Fading out stream http://audio-ch1-t1-1-v4v6.pandora.com/access/568503232955461445.mp4?version=4&lid=338947483&token=G0/BLuaqgInSMGXZpANjh5kc3EmYwY+r4RK0gShlj3dWAazmuP5wM9EdRwJGzVMtsJt69fCV9AMpqdwjfhHaMmapNLOrxLRxjly6PaPCTQIWFb3bmWLMSQd5yV/tVJNBy6rwrC9bBRfQVeui14UUcUQ6Z1c/t8A8LFwwlqx7z1sxmWIEZXAGjScOOmJ6AfNvPhaQeaRLM5Rag5VgOYQTbCukhP9IOSnB4Xa620VROeHnTtAevEvsT1Vb6qyEN4qCTBOKF5+nWYZs6EroaJ8jgv5FrHO34JDtV+S8/jScIDDA/mPqN87eDlrDya5z1kuko5J2w+364jde6SLyCh6wq6rD2He4nhDT4/us8JcJ5YeN8AZ3ElHw9wT11LV10FRY
    [2015-07-06 20:36:39,381] [Log ] [21 ] [DEBUG] - BASS: End of Song http://audio-ch1-t1-1-v4v6.pandora.com/access/568503232955461445.mp4?version=4&lid=338947483&token=G0/BLuaqgInSMGXZpANjh5kc3EmYwY+r4RK0gShlj3dWAazmuP5wM9EdRwJGzVMtsJt69fCV9AMpqdwjfhHaMmapNLOrxLRxjly6PaPCTQIWFb3bmWLMSQd5yV/tVJNBy6rwrC9bBRfQVeui14UUcUQ6Z1c/t8A8LFwwlqx7z1sxmWIEZXAGjScOOmJ6AfNvPhaQeaRLM5Rag5VgOYQTbCukhP9IOSnB4Xa620VROeHnTtAevEvsT1Vb6qyEN4qCTBOKF5+nWYZs6EroaJ8jgv5FrHO34JDtV+S8/jScIDDA/mPqN87eDlrDya5z1kuko5J2w+364jde6SLyCh6wq6rD2He4nhDT4/us8JcJ5YeN8AZ3ElHw9wT11LV10FRY
    [2015-07-06 20:36:43,382] [Log ] [BASS X-FadeEnded] [DEBUG] - BASS: Fading of stream finished.
    [2015-07-06 20:36:43,858] [Log ] [21 ] [DEBUG] - BASS: Disposing Music Stream http://audio-ch1-t1-1-v4v6.pandora.com/access/568503232955461445.mp4?version=4&lid=338947483&token=G0/BLuaqgInSMGXZpANjh5kc3EmYwY+r4RK0gShlj3dWAazmuP5wM9EdRwJGzVMtsJt69fCV9AMpqdwjfhHaMmapNLOrxLRxjly6PaPCTQIWFb3bmWLMSQd5yV/tVJNBy6rwrC9bBRfQVeui14UUcUQ6Z1c/t8A8LFwwlqx7z1sxmWIEZXAGjScOOmJ6AfNvPhaQeaRLM5Rag5VgOYQTbCukhP9IOSnB4Xa620VROeHnTtAevEvsT1Vb6qyEN4qCTBOKF5+nWYZs6EroaJ8jgv5FrHO34JDtV+S8/jScIDDA/mPqN87eDlrDya5z1kuko5J2w+364jde6SLyCh6wq6rD2He4nhDT4/us8JcJ5YeN8AZ3ElHw9wT11LV10FRY
    ']
    '][/collapse]


    ...then later...
    [2015-07-06 20:37:19,319] [Log ] [MPMain ] [DEBUG] - g_Player.doStop() keepTimeShifting = False keepExclusiveModeOn = False
    [2015-07-06 20:37:19,319] [Log ] [MPMain ] [INFO ] - g_Player.OnStopped()

    So, it looks like BASS notices the end of the stream is reached, but the player doesn't realise it has stopped (???). Key point is that there is no g_Player.OnEnded() notification. From the code, I think the Pandora plugin may rely on that notification in order to start the next song.

    Any thoughts?
     

    Cam

    Portal Pro
    February 28, 2012
    360
    97
    62
    Georgia
    Home Country
    United States of America United States of America
    Oh Ok,
    The reason I didn't mention it is because it was the 1st time it happen that I know of and you know computers are, sometimes things don't flow like they should ..... do a reboot all is well until the next time.
     

    hwahrmann

    Development Group
  • Team MediaPortal
  • September 15, 2004
    4,633
    2,457
    Vienna, Austria
    Home Country
    Austria Austria
    No, haven't seen that.
    i guess you are right that Pandora needs to get a player ended events.

    i just wonder how the Bassd player was able to detect end of stream on a http resource.
    This should never happen.
    I never used this plugin. do we need credentials for running it?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    In case it helps, you can see the relevant code here:
    http://pandora-musicbox.googlecode.com/svn/trunk/Source/MediaPortalPlugin/GUI/MusicBoxGUI.cs

    Code:
    private void OnPlayBackEnded(g_Player.MediaType type, string filename) {
      try {
        if (!initialized || handlingEvent) return;
        handlingEvent = true;
    
        if (Core.MusicBox.CurrentSong != null && filename == Core.MusicBox.CurrentSong.AudioURL) {
          logger.Debug("Playback ended for current Pandora song.");
          setWorkingAnimationStatus(true);
          PlayNextTrack();
          setWorkingAnimationStatus(false);
        }
      }
      catch (Exception ex) {
        GracefullyFail(ex);
      }
      finally {
        handlingEvent = false;
      }
    }

    And in Init():
    Code:
    g_Player.PlayBackEnded += new g_Player.EndedHandler(OnPlayBackEnded);

    So, the plugin is triggered to play the next track when the current one finishes.

    The log shows that this function is being called by BASS:
    https://github.com/MediaPortal/Medi...tal/Core/MusicPlayer/BASS/MixerStream.cs#L845

    That function notifies the audio engine to start crossfading:
    https://github.com/MediaPortal/Medi...Core/MusicPlayer/BASS/BassAudioEngine.cs#L533

    There should not be any next song queued so I don't understand why the log says "BASS: Fading of stream finished." instead of the expected "BASS: Reached end of playlist.".
     

    Cam

    Portal Pro
    February 28, 2012
    360
    97
    62
    Georgia
    Home Country
    United States of America United States of America
    I can hit the next or skip button on the remote and it will advance to the next song
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    As easy as that ;). Restarted HTPC and 'out of memory' errors have disappeared, thank you!
    As easy as that ;). Restarted HTPC and 'out of memory' errors have disappeared, thank you!
    Just installed the MediaPortal 1.37 Pre-Release. Client takes a long time to start up because it is looking for the...
    Replies
    4
    Views
    664
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    I am a long-time user of MediaPortal to watch TV. I use the Media Portal TV Server as a backend, and Kodi (previously known as...
    Replies
    19
    Views
    3K
    This is one of the top search results for WMC having stopped working; thanks everyone for the useful information! My shell scripting skills are very rusty these days, so for those like me who are still rocking Windows 7's (or some later version of) WMC, I thought I'd post the (rather hacky) Python script I'm using as a drop-in...
    This is one of the top search results for WMC having stopped working; thanks everyone for the useful information! My shell...
    NOT A MEDIAPORTAL ISSUE. Using MediaPortal1, Kodi for TV viewing. Today I noticed the TV Guide in Kodi stopped updating. A Google...
    Replies
    32
    Views
    4K
    I'm getting old... no... I am old... "Once upon a time..." there was a tool to Export MovingPictures-Database to a Document (pdf). Does anybody remeber how it was called, where I can find it... Here are screenshot from the exported Files -->
    I'm getting old... no... I am old... "Once upon a time..." there was a tool to Export MovingPictures-Database to a Document (pdf)...
    I'm getting old... no... I am old... "Once upon a time..." there was a tool to Export MovingPictures-Database to a Document (pdf)...
    Replies
    0
    Views
    434
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers have instead simply "faded away", gradually spending less and less time on MP2 until the present, when they spend no time on MP2. But one or more of the developers might return next week! It is impossible...
    I should point out that the developers have not formally left the project, and development has not formally stopped. The developers...
    Hi Folks, I need some help with fixing the Problem that MP2 doesn't keep the sorted Order of Channels in TV-Configuraiton. I am...
    Replies
    10
    Views
    474
    Top Bottom