Bug 192747

Summary: Playing streams with amarok does not work with http proxy
Product: [Frameworks and Libraries] Phonon Reporter: Matthias Bach <marix>
Component: KDE platform pluginAssignee: Matthias Kretz <kretz>
Status: RESOLVED FIXED    
Severity: normal CC: bjoernv, bugs.kde.org, cgalisteo, g2, rasasi78, rdieter
Priority: NOR    
Version: 4.3.0 (KDE 4.2.0)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.4.2
Sentry Crash Report:
Attachments: export http_proxy variable according to KDE settings

Description Matthias Bach 2009-05-15 10:47:49 UTC
Version:           2.0.90 (using KDE 4.2.3)
OS:                Linux
Installed from:    SuSE RPMs

It is not possible to play streams, e.g. Last.FM or SLAY Radio if an HTTP proxy is required to connect to the internet.

I have setup KDE for automatic proxy configuration and the proxy is used by KDE in all other places. Even amarok uses the proxy for scrobbling to last.fm, retrieving the last.fm neighbours-list etc. Attempting to start a stream, e.g. by selecting SLAY Radio from Cool Streams nothing will happen. There is no error, it just won't start to play anything. Playing local music works fine, and streaming through the proxy is possible as it works with othere players like vlc, mplayer and last.fm-proxy.
Comment 1 Matthias Bach 2009-05-15 14:33:52 UTC
Thanks to a hint of Matthias Kretz I now have a workaround. Exporting the proxy via the http_proxy environment variable enables the stream.

Not a really nice solution, though, as this way I loose my auto configuration.
Comment 2 Mark Kretschmann 2009-05-15 14:53:41 UTC
Ok, but that's definitely a Phonon issue then, right? Amarok is not the right place for reporting it.

As Matthias Kretz (Phonon maintainer) already seems to know about this issue, I'm not going to reassign the report. You can judge yourself if a bug report for Phonon is still needed.
Comment 3 Matthias Kretz 2009-05-15 15:04:27 UTC
Created attachment 33681 [details]
export http_proxy variable according to KDE settings

Phonon bugs are still maintained (ok, I admit, mostly not by me) in bugs.kde.org. :-)

Reopening...

Please try the attached patch. I'm especially interested in how well the auto-config works.
Comment 4 Raúl 2009-09-30 17:09:43 UTC
Hello:

I reached this problem once I noticed that playing to a streamin in amarok started from konsole worked and it doesn't when I invoke it from krunner. I then guessed that http_proxy variable should had been inherited on the konsole case.

I'm on Debian testing with kde 4.3.1, Qt4.5.2 and amarok 2.2beta1. I rebuild the kdebase-runtime package with the patch applied, installed it and now amarok invoked from krunner is able to play remote streams.

HTH, regards,
Comment 5 Myriam Schweingruber 2010-04-06 10:05:08 UTC
Is this still valid with KDE SC 4.4.2?
Comment 6 Myriam Schweingruber 2010-05-03 10:14:26 UTC
Closing for lack of feedback. Please only reopen this report if you can reproduce it with KDE SC 4.4.2/Phonon 4.4.0 or later.
Comment 7 Carlos Galisteo 2010-05-13 16:57:34 UTC
I can confirm this issue is still present with phonon 4.6.0 and KDE 4.4.3 (Debian Sid).

If you need to perform any test just let me know.

Thanks.
Comment 8 g2 2013-03-07 19:12:02 UTC
Hi there,

on a lattest stable KDE4.9.5 and Amarok2.7.0 this issue remains! Streaming (HTTP) is not working behind a proxy, although kde proxy settings are valid and also environment variables are set.

This might be related to the fact, that I am moving between with and without proxy, back and forth without locking in/out again!?! I will confirm later.

Also this is independent of the phonon backend, and gstreamer and vlc are conncting fine when running as stand-alones!

Ideas how to fix this, or is it still a bug in 4.9.5?
Comment 9 Tranquillity 2013-03-20 07:21:59 UTC
Hello,

my observations with Amarok 2.6.0 under KDE 4.8.4 on Debian Sid are as follows:

- With the Phonon backend VLC you have to set the proxy settings in the real VLC GUI
- With the Phonon backend GStreamer you can start Amarok like this:
    sh -c "http_proxy=\"http://192.168.1.1:8080/\" amarok"

So it depends on the Phonon backend, how to configure the proxy settings. The KDE proxy settings seem not to suffice.
I often switch between places where I need a proxy and where not, and I use the proxy checkbox in Konquerer to switch, maybe that's important.

Maybe this helps someone to work around the problem or to find a unified approach to solve it.