Timeout when playing Web-radio from www.sverigesradio.se (1 Viewer)

jblomb

Retired Team Member
  • Premium Supporter
  • May 17, 2007
    96
    17
    Sundsvall
    Home Country
    Sweden Sweden
    MediaPortal Version: 1.2.2

    Description
    When playing web-radio stream from www.sverigesradio.se, it seems like it takes around 8 secs for the server to respond to the stream request. At least it does in my setup with a squid proxy etc. However, the BASS player is set to timeout after 5 secs, and the stream won't play. Actually, the default of BASS library is 5 secs, and it is not changed in MP code.
    To change the timeout to 15 secs, in BassAudio.cs add the line
    Code:
    Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_NET_TIMEOUT, 15000);
    before
    Code:
    stream = Bass.BASS_StreamCreateURL(filePath, 0, streamFlags, null, IntPtr.Zero);

    Steps to Reproduce:
    Make sure you are using BASS engine for your playback.
    Create a m3u-file containing only the line
    http://http-live.sr.se/p3-aac-192
    Play the file in MP music section, and the timeout will occur.
    This happens every time on my setup, but needs to be confirmed on other setups as well.
     

    Wbunaarf

    Portal Pro
    December 9, 2005
    534
    103
    Sweden
    Home Country
    Sweden Sweden
    Steps to Reproduce:
    Make sure you are using BASS engine for your playback.
    Create a m3u-file containing only the line
    http://http-live.sr.se/p3-aac-192
    Play the file in MP music section, and the timeout will occur.
    This happens every time on my setup, but needs to be confirmed on other setups as well.


    I just tried this on a completely clean (1.2.2) installation and I couldn't reproduce your problem. P3 started playing after a few seconds with no timeout.

    Code:
    2012-03-26 14:07:32.361675 [Info.][MPMain(1)]: GUIMusic:Play: play single playlist item - http://http-live.sr.se/p3-aac-192
    2012-03-26 14:07:32.373677 [Info.][MPMain(1)]: g_Player.Play(http://http-live.sr.se/p3-aac-192 Music)
    2012-03-26 14:07:32.379677 [Info.][MPMain(1)]: Loading external players plugins
    2012-03-26 14:07:32.380677 [Info.][MPMain(1)]:  found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2012-03-26 14:07:32.380677 [Info.][MPMain(1)]:  player:iTunes.  author: Frodo
    2012-03-26 14:07:32.381677 [Info.][MPMain(1)]:  found plugin:MediaPortal.WinampPlayer.WinampPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2012-03-26 14:07:32.381677 [Info.][MPMain(1)]:  player:Winamp.  author: int_20h
    2012-03-26 14:07:32.383678 [Info.][MPMain(1)]: BASS: Initializing BASS audio engine...
    2012-03-26 14:07:32.383678 [Info.][MPMain(1)]: BASS: Using default Sound Device
    2012-03-26 14:07:33.521791 [Info.][MPMain(1)]: BASS: Initialization done.
    2012-03-26 14:07:36.137053 [Info.][MPMain(1)]: BASS: Connection Information: HTTP/1.0 200 OK
    2012-03-26 14:07:36.138053 [Info.][MPMain(1)]: BASS: Connection Information: Content-Type: audio/aac
    2012-03-26 14:07:36.138053 [Info.][MPMain(1)]: BASS: Connection Information: icy-name:Sveriges Radio P3
    2012-03-26 14:07:36.138053 [Info.][MPMain(1)]: BASS: Connection Information: icy-pub:0
    2012-03-26 14:07:36.139053 [Info.][MPMain(1)]: BASS: Connection Information: icy-url:p3-aac-192
    2012-03-26 14:07:36.139053 [Info.][MPMain(1)]: BASS: Connection Information: Server: Icecast 2.3.2
    2012-03-26 14:07:36.139053 [Info.][MPMain(1)]: BASS: Connection Information: Cache-Control: no-cache
    2012-03-26 14:07:36.139053 [Info.][MPMain(1)]: BASS: Connection Information: icy-metaint:16000
    2012-03-26 14:07:36.184058 [Info.][MPMain(1)]: BASS: playback started

    //W
     

    Users who are viewing this thread

    Top Bottom